/* ==========================================================
   MOBILE BIRTHDAY WEBPAGE - STYLESHEET (PERSONALIZED FOR VIDHI)
   Aesthetics: Romantic Glow / Glassmorphism / Vibrant Pastels
   ========================================================== */

:root {
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-handwriting: 'Dancing Script', cursive;
  
  /* Modern & Warm Hindi Typography */
  --font-hindi-body: 'Poppins', 'Mukta', sans-serif;
  --font-hindi-letter: 'Kalam', 'Poppins', cursive;
  --font-hindi-title: 'Rozha One', 'Poppins', serif;

  /* Rose Gold Theme Default */
  --bg-gradient-start: #ff758c;
  --bg-gradient-mid: #ff7eb3;
  --bg-gradient-end: #7928ca;
  --primary-accent: #ff4081;
  --primary-light: #ffd1dc;
  --gold-accent: #ffd700;
  --card-bg: rgba(255, 255, 255, 0.22);
  --card-border: rgba(255, 255, 255, 0.4);
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  --text-main: #ffffff;
  --text-dark: #2d142c;
  --text-muted: rgba(255, 255, 255, 0.85);
  --ribbon-color: #ff2a6d;
  --ribbon-gold: #ffbe0b;
}

/* Alternate Theme: Lavender Dream */
body.theme-lavender {
  --bg-gradient-start: #6a11cb;
  --bg-gradient-mid: #b972e2;
  --bg-gradient-end: #2575fc;
  --primary-accent: #b057f5;
  --primary-light: #e6ccff;
  --gold-accent: #ffe066;
  --card-bg: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.35);
  --ribbon-color: #9d4edd;
}

/* Alternate Theme: Sunset Glow */
body.theme-sunset {
  --bg-gradient-start: #ff4e50;
  --bg-gradient-mid: #f9d423;
  --bg-gradient-end: #e14fad;
  --primary-accent: #ff3366;
  --primary-light: #ffeb99;
  --gold-accent: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.25);
  --card-border: rgba(255, 255, 255, 0.45);
  --ribbon-color: #ff3838;
}

/* ==========================================================
   HINDI TYPOGRAPHY RULES (Refined Body, Paragraphs & Letter)
   ========================================================== */
body.lang-hi {
  font-family: var(--font-hindi-body);
}

/* Hindi Normal Paragraphs & Subtitles */
body.lang-hi p,
body.lang-hi .gift-subtitle,
body.lang-hi .hero-tagline,
body.lang-hi .section-desc,
body.lang-hi .polaroid-caption p,
body.lang-hi .reveal-back p,
body.lang-hi .hug-desc,
body.lang-hi .footer-text,
body.lang-hi .tap-hint,
body.lang-hi .modal-note {
  font-family: var(--font-hindi-body);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.2px;
}

body.lang-hi .gift-subtitle {
  font-size: 0.96rem;
  font-weight: 500;
}

body.lang-hi .hero-tagline {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

body.lang-hi .hero-pretitle {
  font-family: var(--font-hindi-body);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 1rem;
}

/* Hindi Heartfelt Letter - Warm handwritten/card feel */
body.lang-hi .letter-card {
  font-family: var(--font-hindi-letter);
}

body.lang-hi .letter-p {
  font-family: var(--font-hindi-letter);
  font-size: 1.15rem;
  line-height: 1.75;
  color: #3b200b;
  font-weight: 400;
}

body.lang-hi .letter-to {
  font-family: var(--font-hindi-letter);
  font-size: 1.55rem;
  font-weight: 700;
}

body.lang-hi .letter-name {
  font-family: var(--font-hindi-letter);
  font-size: 1.95rem;
  font-weight: 700;
}

body.lang-hi .signature-pre {
  font-family: var(--font-hindi-letter);
  font-size: 1.05rem;
}

body.lang-hi .signature {
  font-family: var(--font-hindi-letter);
  font-size: 1.6rem;
  font-weight: 700;
}

/* Hindi Titles */
body.lang-hi .section-title,
body.lang-hi .gift-title,
body.lang-hi .modal-title,
body.lang-hi .hug-title {
  font-family: var(--font-hindi-title);
  letter-spacing: 0px;
}

body.lang-hi .hero-name {
  font-family: var(--font-hindi-title);
  font-size: 4.2rem;
  letter-spacing: 1px;
}

body.lang-hi .footer-subtext {
  font-family: var(--font-hindi-letter);
  font-size: 1.7rem;
  font-weight: 700;
}

body.lang-hi .reveal-title {
  font-family: var(--font-hindi-body);
  font-weight: 600;
  font-size: 0.98rem;
}

body.lang-hi .polaroid-caption strong {
  font-family: var(--font-hindi-body);
  font-weight: 700;
  font-size: 1.1rem;
}

body.lang-hi .action-btn,
body.lang-hi .hug-btn,
body.lang-hi .lang-toggle-btn {
  font-family: var(--font-hindi-body);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Respect the OS/browser "reduce motion" accessibility preference across the
   whole site: collapse every CSS animation/transition to a near-instant
   simple fade instead of removing feedback entirely. JS-driven continuous
   effects (ambient background, cursor sparkle trail) are separately skipped
   in script.js, and confetti/fireworks bursts are toned down there too. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Canvas Trail for touch sparkles */
#trailCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Ambient Floating Background Items */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ambient-item {
  position: absolute;
  user-select: none;
  animation: floatUpward linear infinite;
  opacity: 0.75;
}

@keyframes floatUpward {
  0% {
    transform: translateY(110vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-15vh) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}

/* Sticky Header */
/* Belt-and-suspenders for #pricing and any future in-page anchor target:
   nav.js explicitly scrolls with header-offset math (see scrollToHashTarget),
   but this covers the moment before JS runs / a browser's own native
   on-load fragment scroll, so the target section's top isn't left hidden
   under the fixed .app-header either way. */
section[id] {
  scroll-margin-top: 64px;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.24);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  flex-shrink: 1;
  min-width: 0;
}

.badge-text {
  white-space: nowrap;
}

.badge-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Language Toggle Button */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 5px 10px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lang-toggle-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.45);
}

.lang-text {
  letter-spacing: 0.3px;
}

/* ==========================================================
   Shared Site Navigation (nav.js) — hamburger toggle + slide-in panel.
   Injected by nav.js on any page with a #navMenuToggle button in its
   header; markup for the panel/overlay themselves is built in JS since
   this is a static site with no per-page server includes.
   ========================================================== */
.nav-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.nav-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-main, #fff);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu-toggle.open span:nth-child(2) { opacity: 0; }
.nav-menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.nav-open-lock {
  overflow: hidden;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 199;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(84vw, 300px);
  background: linear-gradient(160deg, var(--bg-gradient-start), var(--bg-gradient-mid) 55%, var(--bg-gradient-end));
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: 200;
  overflow-y: auto;
  padding: 14px 16px 30px;
}

.nav-panel.open {
  transform: translateX(0);
}

/* Seasonal Festive Promo Popup (Diwali/Dussehra) — built by nav.js */
.festive-promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 500;
}
.festive-promo-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.festive-promo-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, #3d2c0a 0%, #6e4e13 60%, #8a5a10 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 24px;
  padding: 28px 22px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s ease;
}
.festive-promo-overlay.open .festive-promo-card {
  transform: scale(1) translateY(0);
}
.festive-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}
.festive-promo-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.5);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.festive-promo-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.festive-promo-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 22px;
}
.festive-promo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.festive-promo-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.festive-promo-btn:hover {
  transform: translateY(-2px);
}
.festive-promo-btn-diwali {
  background: linear-gradient(135deg, #ffd700, #ff9100);
  color: #2b1100;
}
.festive-promo-btn-dussehra {
  background: linear-gradient(135deg, #ff4e50, #b71c1c);
  color: #fff;
}

.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main, #fff);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 10px;
}

.nav-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-main, #fff);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.nav-section {
  margin-bottom: 12px;
}

.nav-section-title {
  color: var(--gold-accent, #ffd700);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 10px 4px;
  opacity: 0.9;
}

.nav-link {
  display: block;
  color: var(--text-main, #fff);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.nav-link:hover,
.nav-link:active {
  background: rgba(255, 255, 255, 0.16);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 3px 0 0 var(--gold-accent, #ffd700);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.icon-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.45);
}

.music-btn.playing {
  background: var(--gold-accent);
  color: #333;
  box-shadow: 0 0 16px var(--gold-accent);
}

.music-wave {
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
  margin-left: 2px;
}

.music-btn.playing .music-icon {
  display: none;
}

.music-btn.playing .music-wave {
  display: flex;
}

.music-wave span {
  width: 3px;
  height: 100%;
  background: #333;
  border-radius: 2px;
  animation: waveAnim 0.8s ease-in-out infinite alternate;
}
.music-wave span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.music-wave span:nth-child(3) { animation-delay: 0.4s; height: 80%; }

@keyframes waveAnim {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* ==========================================================
   SCREEN 1: GIFT BOX UNBOXING SCREEN
   ========================================================== */
.gift-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 40px 24px;
  position: relative;
  z-index: 10;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gift-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.gift-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.floating-hearts-intro {
  font-size: 1.7rem;
  letter-spacing: 8px;
  margin-bottom: 12px;
  animation: bounceIntro 2s ease-in-out infinite;
}

@keyframes bounceIntro {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gift-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gift-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 35px;
  /* Same fix as .landing-title/.hero-name and for the same reason: this
     was a pale gradient clipped to the text, low contrast against the
     saturated pastel background it sits on across every theme, and it's
     the very first line a recipient reads before they even open the
     gift. Solid warm-white plus a real layered shadow instead. */
  color: #fffdf7;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.28),
    0 2px 5px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Gift Box Component */
.gift-box {
  width: 160px;
  height: 150px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  animation: giftWiggle 3.5s ease-in-out infinite;
  margin-bottom: 30px;
}

@keyframes giftWiggle {
  0%, 80%, 100% { transform: rotate(0deg) scale(1); }
  85% { transform: rotate(-5deg) scale(1.04); }
  90% { transform: rotate(5deg) scale(1.06); }
  95% { transform: rotate(-3deg) scale(1.04); }
}

.gift-box.opening {
  animation: giftOpenPop 1.2s forwards ease-in-out;
}

@keyframes giftOpenPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.15) rotate(-3deg); }
  60% { transform: scale(1.25) rotate(4deg); opacity: 1; }
  100% { transform: scale(2) translateY(-80px); opacity: 0; }
}

.gift-lid {
  position: absolute;
  top: 0;
  left: -5px;
  width: 170px;
  height: 42px;
  background: linear-gradient(135deg, #ff4071, #d61a4c);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 5;
  transition: transform 0.6s ease;
}

.gift-box.opening .gift-lid {
  transform: translateY(-80px) rotate(-25deg) scale(0.9);
}

.gift-ribbon-bow {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 30px;
}

.gift-ribbon-bow::before,
.gift-ribbon-bow::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 24px;
  border: 4px solid var(--ribbon-gold);
  border-radius: 50% 50% 10% 50%;
  top: 0;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.gift-ribbon-bow::before {
  left: -2px;
  transform: rotate(-30deg);
}

.gift-ribbon-bow::after {
  right: -2px;
  transform: rotate(30deg) scaleX(-1);
}

.gift-ribbon-v {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 100%;
  background: var(--ribbon-gold);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
}

.gift-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 160px;
  height: 115px;
  background: linear-gradient(135deg, #ff2a6d, #b51748);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 2;
}

.gift-ribbon-h {
  position: absolute;
  top: 45%;
  left: 0;
  width: 100%;
  height: 24px;
  background: var(--ribbon-gold);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
}

.gift-ribbon-v-body {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 100%;
  background: var(--ribbon-gold);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
}

.gift-sparkles {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.3rem;
  animation: sparkleTwinkle 1.5s infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
  100% { transform: scale(1.3) rotate(35deg); opacity: 1; }
}

.gift-shadow {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 18px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  filter: blur(6px);
  z-index: 1;
}

.tap-hint {
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.25);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.tap-finger {
  display: inline-block;
  animation: fingerTap 1.2s infinite ease-in-out;
}

@keyframes fingerTap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================
   SCREEN 2: MAIN CONTENT PORTAL
   ========================================================== */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin: 0 auto;
  padding: 75px 16px 100px 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 25px 10px 30px 10px;
  position: relative;
}

.crown-icon {
  font-size: 3rem;
  margin-bottom: 6px;
  display: inline-block;
  animation: crownFloat 2.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.6));
}

@keyframes crownFloat {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-10px) rotate(6deg); }
}

.hero-pretitle {
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-name {
  font-family: var(--font-handwriting);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  /* The recipient's own name, at the moment they open their wish — the
     single most important word on the entire site, and it needs to read
     clearly no matter which theme (rose/lavender/sunset/party/romantic/
     gratitude — all saturated pastels) the creator picked. Was a pale
     white/gold gradient clipped to the text, same low-contrast issue as
     .landing-title above and for the same reason: fixed the same way,
     solid warm-white plus a real layered shadow instead of a gradient fill
     that can't guarantee contrast against every theme's background. */
  color: #fffdf7;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.38),
    0 8px 22px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto 24px auto;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.stats-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pill {
  flex: 1;
  max-width: 110px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 6px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill-number {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-top: 2px;
}

/* Card Sections Base */
.card-section {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 26px 20px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.section-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.section-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* ==========================================================
   DYNAMIC SCENE ENGINE — shared wrapper classes used by every
   Scene Engine-rendered signature scene (scene_engine.js). These
   alias the same visual language as .card-section/.section-* above
   so dynamically-rendered scenes look native to the page.
   ========================================================== */
.text-center {
  text-align: center;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.caw-scene {
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease both;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

.centerpiece-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 26px 20px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.card-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.card-description {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Fallback layout for the handful of signature-scene "stages" that don't
   already have bespoke styling below — keeps interactive elements inside
   them centered, tappable, and reasonably spaced without needing a full
   custom treatment per scene. */
.mirror-stage,
.canvas-art-stage,
.tree-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  padding: 20px;
  cursor: pointer;
}

.mirror-glass-frame,
.canvas-art-surface,
.memory-tree-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 160px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
  text-align: center;
  padding: 16px;
  transition: transform 0.4s ease, background 0.4s ease;
}

.mirror-glass-frame:hover,
.canvas-art-surface:hover,
.memory-tree-graphic:hover {
  transform: scale(1.03);
}

.mirror-rippled,
.canvas-painted {
  background: rgba(255, 255, 255, 0.28);
}

.memory-tree-graphic .tree-seed {
  font-size: 3rem;
}

.memory-tree-graphic .tree-canopy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 1.5rem;
}

/* ==========================================================
   INTERACTIVE CAKE & CANDLE SECTION
   ========================================================== */
.cake-stage {
  width: 100%;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 15px;
  position: relative;
}

.cake-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Candles */
.candles-container {
  display: flex;
  gap: 26px;
  margin-bottom: -4px;
  z-index: 10;
}

.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.candle-stick {
  width: 10px;
  height: 38px;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.c1 { background: repeating-linear-gradient(45deg, #ff4081, #ff4081 5px, #ffffff 5px, #ffffff 10px); }
.c2 { background: repeating-linear-gradient(45deg, #7c4dff, #7c4dff 5px, #ffffff 5px, #ffffff 10px); }
.c3 { background: repeating-linear-gradient(45deg, #00e676, #00e676 5px, #ffffff 5px, #ffffff 10px); }

.wick {
  width: 2px;
  height: 7px;
  background: #333;
}

.flame {
  width: 14px;
  height: 22px;
  background: linear-gradient(to top, #ff3d00, #ffea00, #ffffff);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  box-shadow: 0 0 14px #ff9800, 0 0 25px #ff5722;
  animation: flicker 0.9s ease-in-out infinite alternate;
  transform-origin: center bottom;
  margin-bottom: 1px;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 8px #ffeb3b); }
  50% { transform: scale(1.12) rotate(2deg); filter: drop-shadow(0 0 14px #ff9800); }
  100% { transform: scale(0.95) rotate(-2deg); filter: drop-shadow(0 0 10px #ff5722); }
}

.candle.blown-out .flame {
  display: none;
}

/* Diwali Diya Row (Template 30) — reuses the @keyframes flicker defined
   above for the candle flame so a lit diya's glow flickers the same way. */
.diya-row-stage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
}
.diya-lamp {
  font-size: 2.6rem;
  cursor: pointer;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease, transform 0.3s ease;
  user-select: none;
}
.diya-lamp:hover {
  transform: scale(1.08);
}
.diya-lamp.diya-lit {
  filter: drop-shadow(0 0 14px #ffb300) drop-shadow(0 0 26px #ff6f00);
  animation: flicker 0.9s ease-in-out infinite alternate;
}

.smoke-puff {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: smokeRise 1.2s forwards ease-out;
  pointer-events: none;
}

@keyframes smokeRise {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  100% { transform: translateY(-40px) scale(3.5); opacity: 0; filter: blur(3px); }
}

/* Cake Tiers */
.cake-tier {
  position: relative;
  background: #fff;
  border-radius: 12px 12px 6px 6px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tier-top {
  width: 120px;
  height: 42px;
  background: linear-gradient(to bottom, #fff0f5, #ffd1dc);
  z-index: 3;
  display: flex;
  justify-content: center;
}

.berries {
  position: absolute;
  top: -12px;
  font-size: 1.1rem;
  letter-spacing: 6px;
}

.tier-middle {
  width: 170px;
  height: 48px;
  background: linear-gradient(to bottom, #ffd1dc, #ff94b4);
  z-index: 2;
  margin-top: -6px;
}

.tier-bottom {
  width: 220px;
  height: 52px;
  background: linear-gradient(to bottom, #ff94b4, #ff5388);
  z-index: 1;
  margin-top: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frosting-drips {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.frosting-drips span {
  width: 14px;
  height: 12px;
  background: #ffffff;
  border-radius: 0 0 10px 10px;
}

.cake-decorations {
  font-size: 0.9rem;
  letter-spacing: 8px;
}

.cake-plate {
  width: 250px;
  height: 14px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  margin-top: -4px;
}

/* Actions */
.cake-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.action-btn {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #2b1100;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 170, 0, 0.4);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 280px;
}

.action-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(255, 170, 0, 0.3);
}

.action-btn-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wish-granted-banner {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #c2185b;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  text-align: center;
  animation: popBanner 0.5s ease-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

@keyframes popBanner {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================
   POLAROID MEMORY SECTION
   ========================================================== */
.polaroid-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.polaroid-card {
  background: #ffffff;
  color: #222;
  padding: 12px 12px 18px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 320px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.polaroid-card[data-tilt="-2"] { transform: rotate(-2.5deg); }
.polaroid-card[data-tilt="3"] { transform: rotate(3deg); }
.polaroid-card[data-tilt="-3"] { transform: rotate(-3deg); }

.polaroid-card:hover, .polaroid-card:active {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  z-index: 10;
}

.polaroid-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.polaroid-img-wrapper {
  width: 100%;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.polaroid-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.polaroid-card:hover .polaroid-real-img {
  transform: scale(1.05);
}

.polaroid-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.polaroid-caption {
  margin-top: 14px;
  text-align: center;
}

.polaroid-caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.polaroid-caption p {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.4;
}

/* ==========================================================
   PHOTO LIGHTBOX MODAL
   ========================================================== */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.photo-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.photo-modal-content {
  position: relative;
  z-index: 2;
  background: #ffffff;
  color: #222;
  border-radius: 20px;
  padding: 16px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: zoomModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

@keyframes zoomModal {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-img-frame {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}

.modal-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #d81b60;
  margin-bottom: 6px;
}

.modal-note {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

/* ==========================================================
   HEARTFELT LETTER CARD SECTION
   ========================================================== */
.letter-card {
  background: #fffcf8;
  color: #3d2314;
  border-radius: 20px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #f0e6d6;
}

.letter-stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 48px;
  border: 2px dashed #ff4081;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  background: #fff0f5;
  transform: rotate(6deg);
}

.letter-header {
  margin-bottom: 14px;
}

.letter-to {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #b71c1c;
}

.letter-name {
  font-family: var(--font-handwriting);
  font-size: 2rem;
  color: #d81b60;
}

.letter-body {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #4a2c11;
}

.letter-p {
  margin-bottom: 14px;
}

.voice-note-player {
  margin: 18px 0 6px;
  padding: 14px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 14px;
  text-align: center;
}

.voice-note-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a2c11;
  margin-bottom: 8px;
}

.voice-note-player audio {
  width: 100%;
  max-width: 340px;
}

.letter-footer {
  margin-top: 20px;
  text-align: right;
  border-top: 1px dashed #e0c9b6;
  padding-top: 12px;
}

.signature-pre {
  font-size: 0.85rem;
  color: #795548;
}

.signature {
  font-family: var(--font-handwriting);
  font-size: 1.7rem;
  color: #d81b60;
  font-weight: 700;
}

/* ==========================================================
   REASONS / FLIP CARDS
   ========================================================== */
.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reveal-card {
  perspective: 1000px;
  height: 88px;
  cursor: pointer;
}

.reveal-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 18px;
}

.reveal-card.flipped .reveal-card-inner {
  transform: rotateY(180deg);
}

.reveal-front, .reveal-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
}

.reveal-front {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  justify-content: space-between;
}

.reveal-number {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold-accent);
  background: rgba(0, 0, 0, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reveal-title {
  font-weight: 600;
  font-size: 1.02rem;
  flex: 1;
  text-align: left;
  margin-left: 12px;
}

.tap-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 10px;
  opacity: 0.9;
  flex-shrink: 0;
}

.reveal-back {
  background: linear-gradient(135deg, #ffffff, #fff3f8);
  color: #2b111e;
  transform: rotateY(180deg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  gap: 12px;
}

.back-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.reveal-back p {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

/* ==========================================================
   VIRTUAL HUG COUNTER SECTION
   ========================================================== */
.hug-card {
  text-align: center;
  padding: 10px;
}

.hug-emoji {
  font-size: 3.5rem;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
  filter: drop-shadow(0 4px 10px rgba(255, 64, 129, 0.5));
}

.hug-emoji.pop {
  transform: scale(1.4) rotate(-10deg);
}

.hug-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-top: 6px;
  margin-bottom: 4px;
}

.hug-desc {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 18px;
}

.hug-btn {
  background: linear-gradient(135deg, #ff4081, #e91e63);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  transition: transform 0.15s ease;
  width: 100%;
  max-width: 260px;
}

.hug-btn:active {
  transform: scale(0.94);
}

.hug-count-box {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hug-count {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-accent);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hug-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Floating Heart Spawn for Hugs */
.floating-hug-heart {
  position: fixed;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 9999;
  animation: floatHugHeart 1.2s forwards ease-out;
}

@keyframes floatHugHeart {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-120px) scale(1.6) rotate(20deg); opacity: 0; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.celebration-footer {
  text-align: center;
  padding: 30px 10px 50px 10px;
}

.footer-cake {
  font-size: 1.8rem;
  letter-spacing: 8px;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 4px;
}

.footer-subtext {
  font-family: var(--font-handwriting);
  font-size: 1.8rem;
  color: var(--gold-accent);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 24px;
}

/* Viral Growth Loop CTA (PDF Section 18) */
.viral-cta-box {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 20px 18px;
  margin-top: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.viral-cta-text {
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 12px;
}

.viral-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd700, #ff9100);
  color: #2b1100;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  box-shadow: 0 6px 18px rgba(255, 145, 0, 0.35);
  transition: transform 0.15s ease;
}

.viral-cta-btn:active {
  transform: scale(0.95);
}

/* ==========================================================
   STICKY BOTTOM ACTION BAR
   ========================================================== */
.sticky-action-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: rgba(18, 18, 28, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: slideUpBar 0.6s ease-out;
}

@keyframes slideUpBar {
  0% { transform: translate(-50%, 100%); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.sticky-btn {
  background: transparent;
  border: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.sticky-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}

.btn-icon {
  font-size: 1.35rem;
}

.btn-text {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ==========================================================
   TOAST NOTIFICATION
   ========================================================== */
.toast-popup {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: toastPop 0.3s ease-out;
  text-align: center;
  max-width: 90vw;
}

@keyframes toastPop {
  0% { transform: translate(-50%, -15px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================
   MULTI-TEMPLATE CENTERPIECES & THEMES
   ========================================================== */

/* Theme Palettes */
body.theme-romantic {
  --bg-gradient: linear-gradient(145deg, #1f030b 0%, #4a0017 40%, #780227 100%);
  --gold-accent: #ff4d6d;
}
body.theme-party {
  --bg-gradient: linear-gradient(145deg, #09001f 0%, #1a004a 45%, #00d2ff 100%);
  --gold-accent: #00ffff;
}
body.theme-gratitude {
  --bg-gradient: linear-gradient(145deg, #1c1404 0%, #3d2c0a 45%, #6e4e13 100%);
  --gold-accent: #ffd700;
}

/* 1. Wax-Sealed Envelope (Template #002) */
.wax-envelope-wrap {
  width: 280px;
  height: 190px;
  background: #fdfaf6;
  border-radius: 16px;
  margin: 25px auto 15px auto;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ecd6bf;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.wax-envelope-wrap:active {
  transform: scale(0.97);
}
.wax-envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #f4ecdf;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  border-bottom: 2px solid #dfcfb8;
}
.wax-seal {
  width: 56px;
  height: 56px;
  background: radial-gradient(circle, #e60049, #990030);
  border-radius: 50%;
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  border: 2px dashed #ff99bb;
  z-index: 10;
  transition: all 0.3s ease;
}
.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.wax-seal-icon {
  font-size: 1.6rem;
}
.envelope-card-peek {
  text-align: center;
  padding: 10px;
}

/* 2. Balloon Popper Mini-Game (Template #003) */
.balloon-pop-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}
.pop-balloon {
  width: 80px;
  height: 105px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  position: relative;
  animation: floatBalloon 3s ease-in-out infinite alternate;
  transition: transform 0.15s ease;
  user-select: none;
}
.pop-balloon:hover {
  transform: scale(1.08);
}
.pop-balloon.popped {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.b-pink { background: radial-gradient(circle at 30% 30%, #ff758c, #ff0844); }
.b-gold { background: radial-gradient(circle at 30% 30%, #ffe066, #f59f00); animation-delay: -1s; }
.b-cyan { background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe); animation-delay: -2s; }
.b-num {
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 2px;
}
.balloon-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.balloon-message-item {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  animation: fadeInUp 0.4s ease both;
}

/* 3. Vintage Parchment Scroll (Template #004) */
.parchment-scroll {
  background: #fbf5e6;
  border: 3px solid #dfc79b;
  border-radius: 14px;
  padding: 28px 20px;
  margin: 25px auto 15px auto;
  max-width: 380px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  text-align: center;
  transition: all 0.3s ease;
}
.parchment-scroll:hover {
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.3);
}
.scroll-ribbon {
  background: linear-gradient(135deg, #ffd700, #ff9100);
  color: #2b1100;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.95rem;
}

/* ==========================================================
   PHASE 4: STORYTELLING TEMPLATE SCENE STYLES
   ========================================================== */

/* 1. Royal Palace Scene */
.palace-gates-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
  user-select: none;
}
.palace-gate-left, .palace-gate-right {
  font-size: 2.4rem;
  opacity: 0.8;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
.palace-gate-center {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,105,180,0.25));
  border: 2px solid rgba(255,215,0,0.6);
  border-radius: 24px;
  padding: 20px 24px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255,215,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.palace-gate-center:hover, .palace-gate-center:active {
  transform: scale(1.06);
}
.royal-crown-glow {
  font-size: 3.2rem;
  animation: crownPulse 2s infinite alternate ease-in-out;
}
@keyframes crownPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,215,0,0.5)); }
  100% { transform: scale(1.12); filter: drop-shadow(0 0 25px rgba(255,215,0,0.9)); }
}
.royal-tribute-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #ffd700;
  margin-top: 8px;
  font-size: 1.05rem;
  letter-spacing: 1px;
}
.crowned-glow {
  box-shadow: 0 0 40px #ffd700 !important;
}

/* 2. Time Machine Scene */
.time-machine-stage {
  margin: 20px 0;
}
.time-dial-wheel {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d3748, #1a202c);
  border: 4px solid #ffd700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}
.time-year-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 1px;
}
.time-gear {
  font-size: 1.4rem;
}
.time-memory-caption {
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.95;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 3. Memory Scrapbook Scene */
.scrapbook-card {
  background: #fffdf7 !important;
  color: #333 !important;
  border: 1px solid #e0d7c3 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.scrapbook-stage {
  position: relative;
  padding: 20px 10px;
}
.scrapbook-tape {
  position: absolute;
  top: -8px;
  width: 60px;
  height: 20px;
  background: rgba(255, 235, 150, 0.7);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.t-left { left: 15px; transform: rotate(-8deg); }
.t-right { right: 15px; transform: rotate(6deg); }
.scrapbook-sticker {
  display: inline-block;
  background: #ffeb3b;
  color: #333;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.scrapbook-sticker.peeled {
  transform: rotate(12deg) scale(1.1);
  background: #ff4081;
  color: #fff;
}
.scrapbook-note-paper {
  background: #fdfbf7;
  border: 1px dashed #d1c7b7;
  border-radius: 12px;
  padding: 16px;
  margin-top: 15px;
}

/* 4. Movie Chapter Scene */
.movie-card {
  background: #0f1016 !important;
  color: #fff !important;
  border: 1px solid rgba(255,215,0,0.3) !important;
}
.cinematic-stage {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  padding: 20px 15px;
  margin: 15px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.film-letterbox-top, .film-letterbox-bottom {
  height: 6px;
  background: #111;
  width: 100%;
}
.chapter-tag {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 6px;
}
.chapter-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}
.chapter-synopsis {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.5;
  font-style: italic;
}

/* 5. Cosmic Constellation Scene */
.starfield-card {
  background: radial-gradient(circle, #1a103c, #09031c) !important;
  color: #fff !important;
  border: 1px solid rgba(138, 43, 226, 0.4) !important;
}
.constellation-stage {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  user-select: none;
}
.constellation-star {
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.4));
}
.constellation-star:hover {
  transform: scale(1.25);
}
.constellation-star.active-star {
  transform: scale(1.35);
  filter: drop-shadow(0 0 15px #ffd700);
}

/* ==========================================================
   PHASE 5: PUZZLE & INTERACTIVE TEMPLATE STYLES
   ========================================================== */

/* 1. Quest Missions */
.quest-missions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.quest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.25s ease;
  text-align: left;
}
.quest-item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.quest-check {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffd700;
}
.quest-done {
  background: rgba(76, 175, 80, 0.25) !important;
  border-color: #4caf50 !important;
  text-decoration: line-through;
  opacity: 0.85;
}

/* 2. Escape Room Digital Vault */
.vault-stage {
  margin: 20px 0;
}
.vault-door {
  background: radial-gradient(circle, #374151, #1f2937);
  border: 4px solid #9ca3af;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
  transition: all 0.4s ease;
}
.vault-wheel {
  font-size: 3rem;
  margin-bottom: 8px;
}
.vault-status {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 2px;
}
.vault-open {
  border-color: #4caf50 !important;
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.4) !important;
}
.vault-open .vault-status {
  color: #4ade80 !important;
}
.vault-keys-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.vault-key-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 3. Spin Wheel */
.wheel-stage {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 25px auto;
}
.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  z-index: 10;
}
.surprise-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #ffd700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 3s cubic-bezier(0.15, 0.9, 0.2, 1);
  background: conic-gradient(#ff758c 0deg 90deg, #ffe066 90deg 180deg, #4facfe 180deg 270deg, #b388ff 270deg 360deg);
}
.wheel-seg {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 800;
  color: #222;
}
.s-1 { top: 20%; left: 25%; }
.s-2 { top: 20%; right: 25%; }
.s-3 { bottom: 20%; right: 25%; }
.s-4 { bottom: 20%; left: 25%; }
.wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #222;
  color: #ffd700;
  font-weight: 800;
  border: 3px solid #ffd700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  z-index: 5;
}

/* 4. Seven Layers */
.layers-stage {
  margin: 20px 0;
}
.layer-progress-bar {
  background: rgba(255,255,255,0.2);
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.layer-progress-fill {
  background: linear-gradient(90deg, #ff758c, #ffd700);
  height: 100%;
  transition: width 0.4s ease;
}
.layer-box {
  background: rgba(255,255,255,0.12);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 24px;
}
.layer-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}
.layer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd700;
}

/* 5. Memory Puzzle */
.puzzle-stage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
}
.puzzle-piece {
  background: linear-gradient(135deg, #ff4081, #ff80ab);
  color: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
}
.puzzle-piece.snapped {
  transform: scale(0.9);
  opacity: 0.5;
  pointer-events: none;
}

/* 6. Magic Mirror */
.mirror-glass-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0f2fe, #38bdf8);
  border: 8px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
  transition: all 0.4s ease;
}
.mirror-reflection {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c4a6e;
}
.mirror-rippled {
  animation: mirrorRipple 1s ease-out;
  background: radial-gradient(circle, #fce7f3, #f472b6);
}
@keyframes mirrorRipple {
  0% { transform: scale(1); filter: blur(0px); }
  50% { transform: scale(1.1) rotate(5deg); filter: blur(4px); }
  100% { transform: scale(1); filter: blur(0px); }
}

/* ==========================================================
   PHASE 6: EMOTIONAL & ROMANTIC TEMPLATE STYLES
   ========================================================== */

/* 1. Our Story Timeline */
.story-timeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.story-milestone {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 14px 20px;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.story-milestone:hover, .story-milestone.milestone-expanded {
  background: rgba(255, 105, 180, 0.25);
  border-color: #ff69b4;
  transform: scale(1.03);
}
.milestone-icon {
  font-size: 1.5rem;
}
.milestone-label {
  font-weight: 700;
  color: #ffd700;
  margin: 4px 0;
}
.milestone-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  font-style: italic;
}
.timeline-line {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.3);
}

/* 2. Heartbeat ECG Monitor */
.heartbeat-card {
  background: #0d0208 !important;
  border: 1px solid rgba(255, 0, 100, 0.4) !important;
}
.ecg-stage {
  margin: 20px 0;
}
.ecg-line-box {
  background: #1a0510;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #ff0055;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255,0,85,0.3);
}
.ecg-svg {
  width: 100%;
  height: 80px;
}
.ecg-path {
  fill: none;
  stroke: #ff0055;
  stroke-width: 3;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: ecgPulse 2.5s linear infinite;
}
@keyframes ecgPulse {
  to { stroke-dashoffset: 0; }
}
.ecg-heart-icon {
  font-size: 2.2rem;
  margin-top: 10px;
  animation: heartThrob 1.2s infinite ease-in-out;
}
@keyframes heartThrob {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
  60% { transform: scale(1); }
}
.heart-burst {
  animation: heartExplode 0.6s ease-out;
}
@keyframes heartExplode {
  50% { transform: scale(2) rotate(15deg); filter: drop-shadow(0 0 20px #ff0055); }
}
.ecg-bpm-label {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #ff758c;
  margin-top: 10px;
}

/* 3. Rose Garden */
.rose-garden-stage {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 25px 0;
}
.garden-rose {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.garden-rose:hover {
  transform: translateY(-4px);
}
.rose-bud {
  font-size: 2.4rem;
  display: block;
  transition: transform 0.3s ease;
}
.garden-rose.bloomed .rose-bud {
  transform: scale(1.3);
}
.rose-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd700;
  margin-top: 6px;
}

/* 4. Peaceful Candle */
.candle-wish-card {
  background: radial-gradient(circle, #2a1625, #120914) !important;
}
.peaceful-candle-stage {
  margin: 25px 0;
}
.single-candle {
  font-size: 4.5rem;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 25px rgba(255,215,0,0.8));
}
.single-candle.candle-blown {
  opacity: 0.3;
  filter: blur(1px);
  transform: scale(0.9);
}
.candle-whisper-text {
  font-style: italic;
  font-size: 0.95rem;
  color: #ffd700;
  margin-top: 15px;
}

/* 5. Cloud Letter */
.cloud-letter-stage {
  background: linear-gradient(180deg, #fdf2f8, #fbcfe8);
  border-radius: 20px;
  padding: 24px 18px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.3);
}
.floating-cloud-bg {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* 6. Memory Tree */
.memory-tree-graphic {
  background: rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 24px;
  cursor: pointer;
  margin: 20px auto;
  max-width: 320px;
  transition: all 0.3s ease;
}
.tree-seed {
  font-size: 4rem;
  display: block;
}
.tree-canopy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}
.leaf-photo {
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================
   PHASE 7: EXPERIMENTAL & GLOBAL TEMPLATE STYLES
   ========================================================== */

/* 1. Balloon Sky Journey */
.sky-journey-stage {
  margin: 20px 0;
  position: relative;
}
.hot-air-balloon {
  display: inline-block;
  cursor: pointer;
  margin: 15px 0;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.balloon-envelope {
  font-size: 4rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}
.balloon-basket {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 4px;
}
.balloon-floating-up {
  transform: translateY(-40px) scale(1.15);
}

/* 2. Around The World */
.world-map-stage {
  margin: 20px 0;
}
.globe-icon {
  font-size: 4rem;
  animation: spinSlow 12s linear infinite;
  display: inline-block;
  margin-bottom: 15px;
}
@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.flight-stops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}
.flight-stop-pin {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}
.flight-stop-pin:hover, .flight-stop-pin.visited {
  background: rgba(79, 172, 254, 0.3) !important;
  border-color: #00f2fe !important;
  transform: translateX(6px);
}

/* 3. Fake Smartphone UI */
.smartphone-lockscreen {
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 16px;
  margin: 15px 0;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 12px;
  padding: 0 4px;
}
.phone-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-bubble {
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s ease;
}
.phone-bubble:hover {
  background: rgba(255,255,255,0.25);
}
.bubble-opened {
  opacity: 0.6;
  border-color: #4caf50;
}
.bubble-app {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffd700;
  display: block;
}
.bubble-title {
  font-size: 0.85rem;
  margin-top: 2px;
}
.incoming-call-box {
  background: linear-gradient(135deg, #1e1b4b, #311042);
  border: 2px solid #a855f7;
  border-radius: 20px;
  padding: 18px;
  margin-top: 15px;
  animation: popBanner 0.4s ease;
}
.caller-avatar {
  font-size: 2.8rem;
}
.caller-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 12px 0;
}
.call-btn-accept {
  background: #22c55e;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}

/* 4. Cosmic Universe */
.cosmic-universe-card {
  background: radial-gradient(circle, #0f051d, #030008) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
}
.universe-nebula-stage {
  padding: 25px 0;
  cursor: pointer;
}
.nebula-galaxy {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
}
.universe-center-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd700;
  margin-top: 12px;
  letter-spacing: 2px;
  transition: all 0.4s ease;
}
.nebula-ignited .universe-center-name {
  transform: scale(1.2);
  text-shadow: 0 0 25px #ffd700, 0 0 40px #a855f7;
}

/* 5. Living Painting Canvas */
.living-painting-card {
  background: #fdf6ec !important;
  color: #2b1a09 !important;
}
.canvas-art-surface {
  background: #fff;
  border: 4px solid #b45309;
  border-radius: 16px;
  padding: 35px 20px;
  margin: 20px auto;
  max-width: 300px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.25);
  transition: all 0.4s ease;
}
.canvas-painted {
  background: linear-gradient(135deg, #fef08a, #fed7aa, #fbcfe8);
  border-color: #ec4899;
}




/* ==========================================================
   LANDING PAGE COMPONENTS — shared by index.html (marketing
   homepage) and occasion.php (SEO occasion landing pages).
   Moved here from index.html's inline <style> block so both
   pages use one source of truth instead of duplicated CSS.
   ========================================================== */
.landing-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 85px 20px 80px 20px;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.landing-hero {
  text-align: center;
  padding: 30px 10px 50px 10px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.landing-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  /* Was a pale white/gold gradient clipped to the text (background-clip:
     text, transparent fill) — elegant on paper, but a near-white fill has
     low contrast against this same page's pink/purple gradient, right on
     the single most important line of copy on the page. A solid warm-white
     fill plus a real layered shadow (a crisp near edge + a soft glow, not
     just one soft blur) holds legible contrast regardless of exactly which
     part of the background gradient sits behind it. */
  color: #fffdf7;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 10px 26px rgba(0, 0, 0, 0.32);
}
.landing-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 32px auto;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}
.btn-hero-primary {
  background: linear-gradient(135deg, #ffd700, #ff9100);
  color: #2b1100;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 35px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(255, 145, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 145, 0, 0.6);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 35px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

/* Social Trust Proof */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* How It Works Section */
.section-head-wrap {
  text-align: center;
  margin: 60px 0 35px 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.feature-step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease;
  position: relative;
}
.feature-step-card:hover {
  transform: translateY(-5px);
}
.step-badge-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-accent);
  color: #2b1100;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.feature-icon {
  font-size: 2.8rem;
  margin: 12px 0 10px 0;
  display: inline-block;
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Templates Showcase Section */
.template-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}
.template-card:hover {
  transform: scale(1.02);
  border-color: var(--gold-accent);
}
.tpl-preview-box {
  height: 160px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
}
.tpl-bg-1 { background: linear-gradient(135deg, #ff758c, #ff7eb3); }
.tpl-bg-2 { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.tpl-bg-3 { background: linear-gradient(135deg, #ff4e50, #f9d423); }
.tpl-btn {
  background: #ffffff;
  color: #7928ca;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  margin-top: 14px;
  transition: all 0.2s;
}
.tpl-btn:hover {
  background: var(--gold-accent);
  color: #2b1100;
}

/* Interactive Showcase Banner */
.interactive-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  padding: 35px 24px;
  margin: 50px 0;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}
.banner-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 12px;
}
.banner-desc {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
  opacity: 0.95;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.price-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(14px);
  position: relative;
}
.price-card.featured {
  background: rgba(255, 255, 255, 0.32);
  border: 2px solid var(--gold-accent);
  transform: scale(1.04);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.price-popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-accent);
  color: #2b1100;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 12px;
}
.price-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.price-val { font-size: 2.4rem; font-weight: 800; color: var(--gold-accent); margin: 12px 0; }
.price-features { list-style: none; text-align: left; margin: 18px 0; font-size: 0.9rem; line-height: 1.8; opacity: 0.95; }
.price-features li::before { content: '✓ '; color: #00ff88; font-weight: 800; }

/* Footer */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 10px 20px 10px;
  text-align: center;
}

/* ==========================================================
   FORM FIELDS — shared by create.html and the login/register
   pages. Moved here from create.html's inline <style> block so
   other pages (login.html, register.html) can reuse it too.
   ========================================================== */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-accent);
  background: rgba(255, 255, 255, 0.26);
}
.form-select option {
  background: #2b102b;
  color: #fff;
}

/* ==========================================================
   LEGAL PAGES — Privacy Policy, Refund Policy, Return Policy,
   Disclaimer. Shared by all of them for consistent, readable
   long-form text inside the existing .card-section container.
   ========================================================== */
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 28px 0 10px 0;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 1.02rem;
  margin: 18px 0 8px 0;
}
.legal-content p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 12px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
}
.legal-content li {
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--gold-accent);
  font-weight: 600;
}
.legal-meta {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-bottom: 22px;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.legal-nav a {
  font-size: 0.82rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
  color: #fff;
}
.legal-nav a.active {
  background: var(--gold-accent);
  color: #2b1100;
  font-weight: 700;
  border-color: transparent;
}

/* ==========================================================
   WISH LOCK SCREEN — password-protected or scheduled-reveal
   wishes (Special tier). Reuses .gift-screen/.gift-container
   for positioning, just with different content.
   ========================================================== */
.lock-screen-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
}
.lock-screen-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.lock-screen-desc {
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.6;
  margin-bottom: 22px;
}
.lock-countdown {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 22px;
  color: var(--gold-accent, #ffd700);
}
.lock-password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lock-error {
  color: #ffb3b3;
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* ==========================================================
   PLAN SELECTOR — create.html Step 6, reuses .price-card as
   its base (already defined for index.html's pricing section).
   ========================================================== */
.plan-card {
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}
.plan-card:hover {
  transform: translateY(-2px);
}
.plan-card.selected {
  border-color: var(--gold-accent);
  background: rgba(255, 255, 255, 0.32);
}

/* ==========================================================
   PHOTO CAPTION FIELDS — create.html Step 4, one per uploaded
   photo (title / tag / short note), previously not editable.
   ========================================================== */
.photo-caption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.photo-caption-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-caption-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.photo-caption-input {
  font-size: 0.85rem;
  padding: 8px 10px;
}
