/* ===== RESET & CSS VARS ===== */
:root {
  --cream: #FFF8ED; --peach: #FFD6B0; --rose: #FFB5C8; --mint: #B5EDD8;
  --sky: #B5D8FF; --lavender: #D8B5FF; --yellow: #FFE566; --orange: #FF8C42;
  --pink: #FF5F8F; --green: #3DBE8A; --blue: #4A90D9; --purple: #9B59B6;
  --brown: #8B5E3C; --dark: #2D1B0E; --coin: #FFD700; --red: #FF4444;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: var(--cream); min-height: 100vh; overflow-x: hidden; }

/* ===== HEADER ===== */
.app-header {
  position: relative; z-index: 10;
  background: linear-gradient(135deg, var(--rose) 0%, var(--peach) 50%, var(--yellow) 100%);
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); border-bottom: 4px solid var(--orange);
}
.logo { font-family: 'Baloo 2', cursive; font-size: 1.8rem; font-weight: 800; color: var(--dark); text-shadow: 3px 3px 0 rgba(255,255,255,0.5); }
.logo span { color: var(--pink); }
.header-right { display: flex; align-items: center; gap: 10px; }
.coin-display { display: flex; align-items: center; gap: 6px; background: white; border-radius: 50px; padding: 7px 16px; border: 3px solid var(--coin); box-shadow: 0 4px 12px rgba(255,215,0,0.3); font-weight: 900; font-size: 1.1rem; color: var(--dark); }
.coin-icon { font-size: 1.2rem; animation: spin 4s linear infinite; }
@keyframes spin { 0% { transform: rotateY(0) } 100% { transform: rotateY(360deg) } }
.logout-btn { background: white; border: 3px solid var(--peach); border-radius: 20px; padding: 6px 14px; font-family: 'Baloo 2', cursive; font-size: 0.85rem; font-weight: 700; color: var(--dark); cursor: pointer; }

/* ===== NAV ===== */
.nav-tabs { position: relative; z-index: 10; display: flex; gap: 4px; background: var(--dark); padding: 8px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-btn { background: transparent; border: none; color: rgba(255,255,255,0.5); font-family: 'Baloo 2', cursive; font-size: 0.95rem; font-weight: 600; padding: 9px 18px; border-radius: 12px 12px 0 0; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.tab-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.tab-btn.active { background: var(--cream); color: var(--dark); transform: translateY(2px); }

/* ===== TIMER BANNER ===== */
.timer-banner {
  background: linear-gradient(135deg, var(--purple), #7D3C98);
  color: white; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between;
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.95rem;
  position: relative; z-index: 9;
}
.timer-banner.hidden { display: none; }
.timer-banner.warning { background: linear-gradient(135deg, var(--red), #CC0000); animation: timerPulse 1s infinite; }
@keyframes timerPulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.7 } }
.buy-time-btn { background: white; color: var(--purple); border: none; border-radius: 12px; padding: 6px 14px; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.85rem; cursor: pointer; }

/* ===== LOCKED OVERLAY ===== */
.locked-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 5000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; }
.locked-overlay.hidden { display: none; }
.locked-box { background: white; border-radius: 28px; padding: 40px; text-align: center; max-width: 400px; width: 90%; }
.locked-box h2 { font-family: 'Baloo 2', cursive; font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.locked-box p { color: var(--brown); margin-bottom: 24px; line-height: 1.6; }
.time-packages { display: flex; flex-direction: column; gap: 10px; }
.time-pkg { background: var(--cream); border: 3px solid var(--peach); border-radius: 16px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.2s; }
.time-pkg:hover { border-color: var(--purple); background: var(--lavender); }
.time-pkg .pkg-info { font-weight: 700; color: var(--dark); }
.time-pkg .pkg-cost { font-family: 'Baloo 2', cursive; font-weight: 800; color: var(--purple); font-size: 1.1rem; }

/* ===== MAIN WRAPPER ===== */
.main { position: relative; z-index: 5; max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.screen { display: none; }
.screen.active { display: block; }

/* ===== SHARED CARD ===== */
.panel-card { background: white; border-radius: 20px; padding: 16px; border: 3px solid var(--peach); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.panel-title { font-family: 'Baloo 2', cursive; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.canvas-btn { background: white; border: 3px solid var(--peach); border-radius: 11px; padding: 7px 12px; font-family: 'Baloo 2', cursive; font-size: 0.82rem; font-weight: 700; color: var(--dark); cursor: pointer; transition: all 0.2s; }
.canvas-btn:hover { background: var(--peach); transform: translateY(-2px); }
.canvas-btn.primary { background: linear-gradient(135deg, var(--pink), var(--purple)); color: white; border-color: transparent; }

/* ===== FX ===== */
.toast { position: fixed; top: 80px; right: 16px; background: var(--dark); color: white; padding: 10px 18px; border-radius: 14px; font-family: 'Baloo 2', cursive; font-size: 0.95rem; font-weight: 600; z-index: 10000; transform: translateX(220px); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none; }
.toast.show { transform: translateX(0); }
.floating-coin { position: fixed; font-size: 1.3rem; pointer-events: none; z-index: 9999; animation: coinFly 1s forwards; font-family: 'Baloo 2', cursive; font-weight: 900; }
@keyframes coinFly { 0% { opacity: 1; transform: translateY(0) scale(1) } 100% { opacity: 0; transform: translateY(-70px) scale(1.5) } }
.konfetti-piece { position: fixed; width: 9px; height: 9px; pointer-events: none; z-index: 9998; animation: konfettiFall 1.5s forwards; }
@keyframes konfettiFall { 0% { opacity: 1; transform: translateY(-20px) rotate(0deg) } 100% { opacity: 0; transform: translateY(120vh) rotate(720deg) } }
.bg-paws { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-paw { position: absolute; font-size: 2rem; opacity: 0.05; animation: floatPaw 12s infinite ease-in-out; }
@keyframes floatPaw { 0%, 100% { transform: translateY(0) rotate(0deg) } 50% { transform: translateY(-20px) rotate(15deg) } }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .salon-layout, .mathe-layout, .haus-grid, .designer-layout, .parent-layout { grid-template-columns: 1fr; }
  .logo { font-size: 1.3rem; }
}
