/*
 ====================================================================
 💖 BIRTHDAY SURPRISE WEBSITE DESIGN SYSTEM & CORE STYLES
 ====================================================================
 Dreamy, romantic, glassmorphic, mobile-friendly design with rich typography.
 Supports 4 color themes: pink-pastel, lavender-dream, peach-blossom, twilight-magic.
*/

:root {
  /* Default: Pink Pastel & Rose Gold */
  --bg-gradient: linear-gradient(135deg, #fde2e4 0%, #ffcad4 30%, #fbe7c6 65%, #ffccd5 100%);
  --bg-mesh: radial-gradient(at 20% 20%, rgba(255, 182, 193, 0.45) 0px, transparent 50%),
              radial-gradient(at 80% 20%, rgba(230, 190, 255, 0.4) 0px, transparent 50%),
              radial-gradient(at 50% 80%, rgba(255, 220, 180, 0.45) 0px, transparent 50%);
  --primary-pink: #ff6b8b;
  --primary-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --accent-gold: #f5af19;
  --accent-gold-glow: rgba(245, 175, 25, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.38);
  --glass-bg-hover: rgba(255, 255, 255, 0.55);
  --glass-card: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 16px 36px rgba(255, 107, 139, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  --text-primary: #3d263b;
  --text-secondary: #6e4d6a;
  --text-muted: #957291;
  --parchment-bg: rgba(255, 253, 248, 0.88);
  --parchment-border: rgba(245, 222, 179, 0.65);
  --font-heading: 'Dancing Script', cursive;
  --font-cursive: 'Great Vibes', cursive;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tamil: 'Mukta Malar', 'Noto Sans Tamil', 'Latha', sans-serif;
}

/* Theme 2: Lavender Dream */
body.theme-lavender-dream {
  --bg-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  --bg-mesh: radial-gradient(at 20% 20%, rgba(199, 125, 255, 0.4) 0px, transparent 50%),
              radial-gradient(at 80% 20%, rgba(157, 78, 221, 0.3) 0px, transparent 50%);
  --primary-pink: #9d4edd;
  --primary-gradient: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
  --accent-gold: #ffd166;
  --text-primary: #240046;
  --text-secondary: #5a189a;
  --glass-shadow: 0 16px 36px rgba(157, 78, 221, 0.16);
}

/* Theme 3: Peach Blossom */
body.theme-peach-blossom {
  --bg-gradient: linear-gradient(135deg, #fedac2 0%, #ffb4a2 50%, #e5989b 100%);
  --bg-mesh: radial-gradient(at 20% 20%, rgba(255, 180, 162, 0.5) 0px, transparent 50%),
              radial-gradient(at 80% 80%, rgba(244, 162, 97, 0.4) 0px, transparent 50%);
  --primary-pink: #e76f51;
  --primary-gradient: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  --text-primary: #46261f;
  --text-secondary: #773e34;
}

/* Theme 4: Twilight Magic */
body.theme-twilight-magic {
  --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --bg-mesh: radial-gradient(at 20% 20%, rgba(255, 117, 140, 0.25) 0px, transparent 50%),
              radial-gradient(at 80% 80%, rgba(126, 87, 194, 0.35) 0px, transparent 50%);
  --primary-pink: #ff758c;
  --primary-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --glass-bg: rgba(30, 20, 50, 0.65);
  --glass-card: rgba(40, 25, 65, 0.75);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  --text-primary: #fff5f8;
  --text-secondary: #e2c0e8;
  --text-muted: #b99bc4;
  --parchment-bg: rgba(45, 30, 70, 0.9);
  --parchment-border: rgba(255, 117, 140, 0.3);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-gradient);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric Mesh overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-mesh);
  pointer-events: none;
  z-index: 1;
}

/* Ambient Canvas for Floating Hearts & Fireworks */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- GLASSMORPHISM UTILITY --- */
.glassmorphism {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-card {
  text-align: center;
  padding: 40px 32px;
  max-width: 420px;
  margin: 20px;
}

.pulsing-heart-icon {
  font-size: 64px;
  display: inline-block;
  animation: heartbeat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(255, 107, 139, 0.4));
}

.preloader-card h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-pink);
  margin: 20px 0 12px;
}

.preloader-progress-ring {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  margin: 20px auto 0;
  overflow: hidden;
}

.ring-bar {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  animation: progressFill 1.8s ease-in-out infinite;
}

/* --- APP HEADER & CONTROLS --- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-pink);
}

.header-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.progress-step-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.journey-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  overflow: hidden;
}

.journey-progress-bar {
  height: 100%;
  width: 10%;
  background: var(--primary-gradient);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Audio Visualizer Mini Bars */
.audio-visualizer-mini {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  padding: 0 4px;
}

.vis-bar {
  width: 3.5px;
  height: 6px;
  background: var(--primary-pink);
  border-radius: 2px;
  transition: height 0.08s ease;
}

.header-icon-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.header-icon-btn:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

.header-icon-btn.is-playing {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 107, 139, 0.35);
}

/* --- MAIN CONTAINER & SLIDES --- */
#app-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 76px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.journey-slide {
  position: absolute;
  inset: 0;
  padding: 86px 20px 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.5s ease;
}

.journey-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.journey-slide.slide-exit {
  opacity: 0;
  transform: scale(1.04) translateY(-20px);
}

.slide-content-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 38px 32px;
  text-align: center;
  position: relative;
}

/* --- TYPOGRAPHY & HEADINGS --- */
.slide-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-pink);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 14px;
  line-height: 1.25;
}

.slide-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* --- BUTTONS --- */
.primary-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 139, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 107, 139, 0.45);
}

.primary-btn:active {
  transform: translateY(1px) scale(0.99);
}

.secondary-btn {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.secondary-btn:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.glow-btn:hover::before {
  transform: rotate(45deg) translateY(100%);
}

.slide-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ====================================================================
   SLIDE 1: WELCOME SURPRISE (3D ENVELOPE / GIFT)
   ==================================================================== */
.welcome-gift-wrap {
  margin: 28px auto;
  position: relative;
  display: inline-block;
}

.gift-box-3d {
  width: 140px;
  height: 140px;
  background: var(--primary-gradient);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(255, 107, 139, 0.4);
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-ribbon-vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 10px);
  width: 20px;
  background: linear-gradient(to bottom, #ffd700, #f5af19);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.gift-ribbon-horizontal {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 10px);
  height: 20px;
  background: linear-gradient(to right, #ffd700, #f5af19);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.gift-bow {
  position: absolute;
  top: -24px;
  font-size: 42px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.gift-sparkles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.sparkle-dot {
  position: absolute;
  font-size: 18px;
  animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}
.sparkle-dot:nth-child(1) { top: 0; left: -10px; animation-delay: 0.2s; }
.sparkle-dot:nth-child(2) { top: -15px; right: -10px; animation-delay: 0.7s; }
.sparkle-dot:nth-child(3) { bottom: -10px; left: 10px; animation-delay: 1.2s; }
.sparkle-dot:nth-child(4) { bottom: 0; right: -15px; animation-delay: 0.5s; }

/* ====================================================================
   SLIDE 2: PASSWORD GAME 🔐
   ==================================================================== */
.password-game-card {
  max-width: 480px;
}

.lock-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  box-shadow: 0 8px 24px rgba(255, 107, 139, 0.2);
}

.password-input-group {
  margin: 24px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.romantic-input {
  width: 100%;
  max-width: 340px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 2px solid rgba(255, 107, 139, 0.35);
  background: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  font-family: var(--font-body);
  text-align: center;
  letter-spacing: 2px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s ease;
}

.romantic-input:focus {
  border-color: var(--primary-pink);
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 107, 139, 0.3);
}

.input-error {
  border-color: #ff4757 !important;
  animation: shake 0.4s ease;
}

.password-feedback-msg {
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 12px;
}

.password-feedback-msg.error-msg {
  color: #d63031;
  background: rgba(255, 71, 87, 0.1);
}

.password-feedback-msg.success-msg {
  color: #2ed573;
  background: rgba(46, 213, 115, 0.15);
  font-weight: 600;
}

.hint-container {
  margin-top: 14px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.text-btn:hover {
  color: var(--primary-pink);
}

.hint-bubble {
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.playful-notice {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ====================================================================
   SLIDE 3 & 9: LOVE MESSAGES (PARCHMENT & WAX SEAL)
   ==================================================================== */
.parchment-container {
  background: var(--parchment-bg);
  border: 1px solid var(--parchment-border);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
}

.wax-seal-badge {
  position: absolute;
  top: -24px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e84118, #c23616);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(194, 54, 22, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.letter-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--primary-pink);
  margin-bottom: 20px;
  text-align: center;
}

.letter-para {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.letter-signature-box {
  margin-top: 24px;
  text-align: right;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
}

.signature-signoff {
  font-size: 14px;
  color: var(--text-muted);
}

.signature-name {
  font-family: var(--font-cursive);
  font-size: 28px;
  color: var(--primary-pink);
  margin-top: 4px;
}

/* ====================================================================
   SLIDE 4: OUR BEAUTIFUL MEMORIES (CAROUSEL & GALLERY)
   ==================================================================== */
.gallery-slide-card {
  max-width: 620px;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  margin: 16px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.carousel-slide-item {
  min-width: 100%;
  padding: 6px;
}

.photo-card {
  border-radius: 20px;
  overflow: hidden;
  padding: 12px;
}

.photo-img-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.photo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-img-wrapper:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.25s ease;
}

.photo-img-wrapper:hover .photo-overlay {
  opacity: 1;
}

.photo-details {
  padding: 14px 8px 6px;
  text-align: left;
}

.photo-caption {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.photo-tag {
  font-size: 12px;
  color: var(--primary-pink);
  font-weight: 600;
}

.carousel-arrow-btn {
  position: absolute;
  top: calc(50% - 20px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.carousel-arrow-btn.prev { left: 12px; }
.carousel-arrow-btn.next { right: 12px; }

.carousel-arrow-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.gallery-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 107, 139, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.gallery-dot.active {
  width: 22px;
  border-radius: 6px;
  background: var(--primary-pink);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption-text {
  color: #fff;
  margin-top: 14px;
  font-size: 16px;
}

.close-lightbox-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

/* ====================================================================
   SLIDE 5: LOVELY TAMIL KAVITHAI 🌸
   ==================================================================== */
.kavithai-card {
  max-width: 620px;
}

.kavithai-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.kavithai-tab-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.kavithai-tab-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 107, 139, 0.35);
}

.kavithai-frame {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 182, 193, 0.5);
  border-radius: 20px;
  padding: 32px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(255, 107, 139, 0.15);
}

.kavithai-lines-wrap {
  font-family: var(--font-tamil);
  font-size: 20px;
  line-height: 2;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
}

.kavithai-line {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin: 6px 0;
}

.kavithai-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.kavithai-meaning-box {
  margin-top: 20px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
}

/* ====================================================================
   SLIDE 6: BACKGROUND MUSIC EXPERIENCE 🎵
   ==================================================================== */
.music-player-card {
  max-width: 520px;
}

.music-disc-visual {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b1055 20%, #111 60%, #3d263b 100%);
  border: 4px solid #ffd700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin 8s linear infinite;
}

.music-disc-center {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.current-song-info {
  margin: 16px 0;
}

.song-title-display {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 4px;
}

.song-artist-display {
  font-size: 13px;
  color: var(--text-muted);
}

.music-controls-panel {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.volume-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.volume-slider {
  width: 140px;
  accent-color: var(--primary-pink);
}

.preset-selector-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.romantic-select {
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

/* ====================================================================
   SLIDE 7: BIRTHDAY CAKE & CANDLE GAME 🎂
   ==================================================================== */
.cake-game-card {
  max-width: 580px;
}

.cake-stage {
  position: relative;
  width: 260px;
  height: 220px;
  margin: 20px auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Cake Layers */
.cake-layer-top {
  width: 140px;
  height: 55px;
  background: linear-gradient(to bottom, #fff5f5, #ffccd5);
  border-radius: 16px 16px 6px 6px;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.cake-layer-bottom {
  width: 210px;
  height: 70px;
  background: linear-gradient(to bottom, #ffb3c1, #ff758c);
  border-radius: 18px 18px 8px 8px;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 139, 0.3);
  position: relative;
  margin-top: -8px;
  z-index: 1;
}

.cake-plate {
  width: 250px;
  height: 14px;
  background: linear-gradient(to right, #ffd700, #fff275, #ffd700);
  border-radius: 12px;
  margin-top: -4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 0;
}

/* Candles */
.cake-candles-wrap {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  z-index: 3;
}

.candle-stick {
  width: 12px;
  height: 48px;
  background: repeating-linear-gradient(
    45deg,
    #ffd166,
    #ffd166 6px,
    #ff6b8b 6px,
    #ff6b8b 12px
  );
  border-radius: 4px;
  position: relative;
}

.candle-wick {
  position: absolute;
  top: -8px;
  left: 5px;
  width: 2px;
  height: 8px;
  background: #333;
}

.candle-flame {
  position: absolute;
  top: -24px;
  left: 0px;
  width: 14px;
  height: 22px;
  background: radial-gradient(ellipse at bottom, #ffd700 0%, #ff4500 70%, transparent 95%);
  border-radius: 50% 50% 35% 35%;
  filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.8));
  animation: candleFlicker 0.25s infinite alternate ease-in-out;
  transform-origin: bottom center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.candle-flame.extinguished {
  opacity: 0;
  transform: scale(0.1) translateY(-10px);
}

.candle-stick.smoking::after {
  content: "💨";
  position: absolute;
  top: -24px;
  left: -2px;
  font-size: 14px;
  animation: smokePuff 1.2s forwards;
}

.cake-controls {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.mic-toggle-btn {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.mic-toggle-btn.active-mic {
  background: #2ed573;
  color: #fff;
  border-color: transparent;
  animation: pulseGlow 1.5s infinite;
}

.mic-status-msg {
  font-size: 13px;
  color: var(--text-muted);
}

.wish-result-banner {
  margin-top: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 107, 139, 0.25));
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ====================================================================
   SLIDE 8: CATCH THE LOVE MINI-GAME 🎮
   ==================================================================== */
.game-card {
  max-width: 600px;
}

.game-hud-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  margin-bottom: 16px;
}

.hud-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-pink);
}

.game-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.game-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  transition: width 0.2s ease;
}

.love-game-stage {
  position: relative;
  width: 100%;
  height: 260px;
  background: rgba(255, 255, 255, 0.4);
  border: 2px dashed rgba(255, 107, 139, 0.35);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spawned-heart {
  position: absolute;
  bottom: -40px;
  cursor: pointer;
  user-select: none;
  animation: floatUp linear forwards;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 139, 0.35));
  transition: transform 0.15s ease;
}

.spawned-heart:hover {
  transform: scale(1.25);
}

.spawned-heart.popped {
  transform: scale(1.6);
  opacity: 0;
}

.plus-one-float {
  position: fixed;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-pink);
  pointer-events: none;
  animation: floatFade 0.8s ease-out forwards;
  z-index: 9999;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.game-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

/* ====================================================================
   SLIDE 10: THE GRAND FINALE 🎉
   ==================================================================== */
.finale-card {
  max-width: 660px;
}

.finale-golden-name {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  color: var(--primary-pink);
  text-shadow: 0 0 16px var(--accent-gold-glow), 0 4px 12px rgba(255, 107, 139, 0.3);
  margin-bottom: 16px;
  animation: pulseGlow 2.5s infinite alternate;
}

.finale-cake-wrap {
  margin: 16px auto;
  font-size: 72px;
  display: inline-block;
  animation: heartbeat 2s infinite ease-in-out;
  filter: drop-shadow(0 12px 24px rgba(255, 107, 139, 0.35));
}

.finale-wish-container {
  background: var(--parchment-bg);
  border: 1px solid var(--parchment-border);
  border-radius: 20px;
  padding: 28px 24px;
  margin: 18px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.finale-wish-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}

.finale-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

/* --- FOOTER PROGRESS DOTS --- */
.app-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  z-index: 100;
}

.progress-dots-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 107, 139, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot.active {
  width: 26px;
  border-radius: 8px;
  background: var(--primary-pink);
  box-shadow: 0 0 10px rgba(255, 107, 139, 0.5);
}

.progress-dot.completed {
  background: rgba(255, 107, 139, 0.65);
}

/* --- FLOATING ACTION BUTTONS --- */
.floating-action-btn {
  position: fixed;
  z-index: 150;
  background: var(--glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.settings-cog-btn {
  top: 74px;
  right: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-primary);
}

.settings-cog-btn:hover {
  transform: translateY(-2px);
  background: #fff;
}

/* --- CUSTOMIZER MODAL --- */
.customizer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.customizer-dialog {
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.customizer-header {
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customizer-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary-pink);
}

.customizer-header .subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: #ff4757;
}

.customizer-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 24px 0;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}

.cust-tab-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cust-tab-btn.active {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
}

.customizer-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.cust-tab-panel {
  display: none;
}

.cust-tab-panel.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.form-group textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 8px rgba(255, 107, 139, 0.2);
}

.form-group small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Photo Manager Inside Customizer */
.photo-manager-actions {
  margin-bottom: 20px;
}

.custom-file-upload {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 6px;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.cust-photo-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.cust-photo-item {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumb-container {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
}

.thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cust-photo-caption {
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.delete-photo-btn {
  background: #ff4757;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px;
  font-size: 11px;
  cursor: pointer;
}

.customizer-footer {
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.danger-outline {
  color: #ff4757;
  border-color: rgba(255, 71, 87, 0.3);
}

.danger-outline:hover {
  background: rgba(255, 71, 87, 0.08);
}

/* --- TOAST NOTIFICATIONS --- */
.custom-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 20, 40, 0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  pointer-events: none;
}

.toast-fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .app-header {
    padding: 0 14px;
  }
  .header-brand-title {
    font-size: 18px;
  }
  .header-progress-wrap {
    min-width: 100px;
  }
  .slide-content-card {
    padding: 28px 18px;
  }
  .slide-title {
    font-size: 26px;
  }
  .photo-img-wrapper {
    height: 240px;
  }
  .finale-golden-name {
    font-size: 34px;
  }
  .settings-cog-btn .btn-label {
    display: none;
  }
  .settings-cog-btn {
    padding: 8px 12px;
  }
  .kavithai-lines-wrap {
    font-size: 17px;
    line-height: 1.8;
  }
}
