/* ==========================================================================
   Shubh Vivah - Invitation Themes & Interactive Preview Stylesheet
   100% Original CSS Art, Animations, and Layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Variables & Universal Invitation Reset
   -------------------------------------------------------------------------- */
.invite-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Playfair Display', Georgia, serif;
  color: #faf5ee;
  background-color: #1a050d;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   23 Distinct Jewel-Tone & Gold Template Themes
   -------------------------------------------------------------------------- */

/* 1. Royal Gateway */
.theme-royal-gateway {
  --th-bg: #2b0914;
  --th-surface: #3d0e1c;
  --th-surface-card: #320b17;
  --th-accent: #8b1e3f;
  --th-gold: #D49846;
  --th-gold-light: #f3e5ab;
  --th-text: #faf5ee;
  --th-text-muted: #e0c9a6;
  --th-border: rgba(212, 152, 70, 0.45);
  --th-door-grad-1: #6A3F2C;
  --th-door-grad-2: #2b0914;
}

/* 2. Opal Romance */
.theme-opal-romance {
  --th-bg: #2b0a12;
  --th-surface: #3d1220;
  --th-surface-card: #320f1a;
  --th-accent: #881337;
  --th-gold: #FABA47;
  --th-gold-light: #fde68a;
  --th-text: #fff1f2;
  --th-text-muted: #fbcfe8;
  --th-border: rgba(250, 186, 71, 0.45);
  --th-door-grad-1: #E5745A;
  --th-door-grad-2: #EC8E8C;
}

/* 3. Vrindavan Bliss */
.theme-vrindavan-bliss {
  --th-bg: #04152d;
  --th-surface: #0e2b4f;
  --th-surface-card: #08223d;
  --th-accent: #c026d3;
  --th-gold: #f59e0b;
  --th-gold-light: #fed7aa;
  --th-text: #eff6ff;
  --th-text-muted: #93c5fd;
  --th-border: rgba(245, 158, 11, 0.45);
  --th-door-grad-1: #0e4b75;
  --th-door-grad-2: #04152d;
}

/* 4. Mangala Muhurtham */
.theme-mangala-muhurtham {
  --th-bg: #330808;
  --th-surface: #4d1010;
  --th-surface-card: #3f0d0d;
  --th-accent: #991b1b;
  --th-gold: #f59e0b;
  --th-gold-light: #fef3c7;
  --th-text: #fffbeb;
  --th-text-muted: #fde68a;
  --th-border: rgba(245, 158, 11, 0.5);
  --th-door-grad-1: #5b1313;
  --th-door-grad-2: #1c0404;
}

/* 5. Shiv Parinay */
.theme-shiv-parinay {
  --th-bg: #141416;
  --th-surface: #222226;
  --th-surface-card: #1f1f23;
  --th-accent: #7f1d1d;
  --th-gold: #eab308;
  --th-gold-light: #e0f2fe;
  --th-text: #fafaf9;
  --th-text-muted: #cbd5e1;
  --th-border: rgba(234, 179, 8, 0.45);
  --th-door-grad-1: #2d262b;
  --th-door-grad-2: #0d0d0e;
}

/* 6. Noor-e-Nikah */
.theme-noor-e-nikah {
  --th-bg: #041c16;
  --th-surface: #0a2e25;
  --th-surface-card: #0b2520;
  --th-accent: #065f46;
  --th-gold: #d97706;
  --th-gold-light: #fde68a;
  --th-text: #faf5ee;
  --th-text-muted: #a7f3d0;
  --th-border: rgba(217, 119, 6, 0.45);
  --th-door-grad-1: #0a2e25;
  --th-door-grad-2: #041c16;
}

/* 7. Pastel Bloom */
.theme-pastel-bloom {
  --th-bg: #fdf2f4;
  --th-surface: #ffffff;
  --th-surface-card: #f9ecee;
  --th-accent: #84a98c;
  --th-gold: #d4af37;
  --th-gold-light: #a17a22;
  --th-text: #4a1525;
  --th-text-muted: #784d5b;
  --th-border: rgba(212, 175, 55, 0.45);
  --th-door-grad-1: #ffffff;
  --th-door-grad-2: #fdf2f4;
}

/* 8. Rajasthani Royal */
.theme-royal-rajasthani {
  --th-bg: #2a0e1c;
  --th-surface: #42162c;
  --th-surface-card: #361224;
  --th-accent: #9d174d;
  --th-gold: #f59e0b;
  --th-gold-light: #fef08a;
  --th-text: #fdf2f8;
  --th-text-muted: #fbcfe8;
  --th-border: rgba(245, 158, 11, 0.5);
  --th-door-grad-1: #4e1a34;
  --th-door-grad-2: #17080f;
}

/* 9. Maharajas Dream */
.theme-maharajas-dream {
  --th-bg: #2a0812;
  --th-surface: #400d1c;
  --th-surface-card: #340b17;
  --th-accent: #b91c1c;
  --th-gold: #fbbf24;
  --th-gold-light: #fef3c7;
  --th-text: #fff7ed;
  --th-text-muted: #fed7aa;
  --th-border: rgba(251, 191, 36, 0.5);
  --th-door-grad-1: #4c0f21;
  --th-door-grad-2: #17040a;
}

/* 10. Nachdi Wedding */
.theme-nachdi-wedding {
  --th-bg: #271008;
  --th-surface: #3d1c0e;
  --th-surface-card: #32170b;
  --th-accent: #c2410c;
  --th-gold: #f59e0b;
  --th-gold-light: #fed7aa;
  --th-text: #fff7ed;
  --th-text-muted: #fdba74;
  --th-border: rgba(245, 158, 11, 0.5);
  --th-door-grad-1: #482111;
  --th-door-grad-2: #150904;
}

/* 11. Mountain Bliss */
.theme-mountain-bliss {
  --th-bg: #0c1a29;
  --th-surface: #152b42;
  --th-surface-card: #112336;
  --th-accent: #fda4af;
  --th-gold: #bae6fd;
  --th-gold-light: #ffffff;
  --th-text: #f8fafc;
  --th-text-muted: #94a3b8;
  --th-border: rgba(186, 230, 253, 0.45);
  --th-door-grad-1: #1e3a5f;
  --th-door-grad-2: #0c1a29;
}

/* 12. Punjabi Cinematic */
.theme-punjabi-cinematic {
  --th-bg: #1a1206;
  --th-surface: #2e2008;
  --th-surface-card: #261a07;
  --th-accent: #a16207;
  --th-gold: #fbbf24;
  --th-gold-light: #fef3c7;
  --th-text: #fff7ed;
  --th-text-muted: #fde68a;
  --th-border: rgba(251, 191, 36, 0.45);
  --th-door-grad-1: #362609;
  --th-door-grad-2: #0e0a03;
}

/* 13. Shubh Vivah */
.theme-shubh-vivah {
  --th-bg: #0f1f0d;
  --th-surface: #1a3315;
  --th-surface-card: #152a11;
  --th-accent: #166534;
  --th-gold: #f59e0b;
  --th-gold-light: #fef3c7;
  --th-text: #f0fdf4;
  --th-text-muted: #bbf7d0;
  --th-border: rgba(245, 158, 11, 0.5);
  --th-door-grad-1: #1f3c19;
  --th-door-grad-2: #081107;
}

/* 14. Blush Romance */
.theme-blush-romance {
  --th-bg: #0f172a;
  --th-surface: #1e293b;
  --th-surface-card: #182232;
  --th-accent: #f472b6;
  --th-gold: #f59e0b;
  --th-gold-light: #fde68a;
  --th-text: #fdf2f8;
  --th-text-muted: #fbcfe8;
  --th-border: rgba(245, 158, 11, 0.45);
  --th-door-grad-1: #1e1b4b;
  --th-door-grad-2: #0f172a;
}

/* 15. Shubh Dussehra */
.theme-shubh-dussehra {
  --th-bg: #1f0d02;
  --th-surface: #331503;
  --th-surface-card: #2a1102;
  --th-accent: #b45309;
  --th-gold: #f59e0b;
  --th-gold-light: #fef3c7;
  --th-text: #fffbeb;
  --th-text-muted: #fde68a;
  --th-border: rgba(245, 158, 11, 0.5);
  --th-door-grad-1: #3c1904;
  --th-door-grad-2: #110701;
}

/* 16. Shubh Navratri */
.theme-shubh-navratri {
  --th-bg: #2a0605;
  --th-surface: #450a08;
  --th-surface-card: #390807;
  --th-accent: #991b1b;
  --th-gold: #fbbf24;
  --th-gold-light: #fef3c7;
  --th-text: #fff7ed;
  --th-text-muted: #fecaca;
  --th-border: rgba(251, 191, 36, 0.45);
  --th-door-grad-1: #510c09;
  --th-door-grad-2: #170303;
}

/* 17. Royal Rajasthani Wedding */
.theme-royal-rajasthani-wedding {
  --th-bg: #2a1206;
  --th-surface: #421c0a;
  --th-surface-card: #361708;
  --th-accent: #9a3412;
  --th-gold: #f59e0b;
  --th-gold-light: #ffedd5;
  --th-text: #fff7ed;
  --th-text-muted: #fdba74;
  --th-border: rgba(245, 158, 11, 0.5);
  --th-door-grad-1: #4e210c;
  --th-door-grad-2: #170a03;
}

/* 18. Royal Jaipur */
.theme-royal-jaipur {
  --th-bg: #2b0a16;
  --th-surface: #3d1222;
  --th-surface-card: #320e1b;
  --th-accent: #f43f5e;
  --th-gold: #f59e0b;
  --th-gold-light: #fffbeb;
  --th-text: #fffbeb;
  --th-text-muted: #fecdd3;
  --th-border: rgba(245, 158, 11, 0.45);
  --th-door-grad-1: #4a1226;
  --th-door-grad-2: #18040b;
}

/* 19. Midnight Floral */
.theme-midnight-floral {
  --th-bg: #0f0a1e;
  --th-surface: #1c1233;
  --th-surface-card: #170f2a;
  --th-accent: #6d28d9;
  --th-gold: #e7c873;
  --th-gold-light: #fef9c3;
  --th-text: #f5f3ff;
  --th-text-muted: #ddd6fe;
  --th-border: rgba(231, 200, 115, 0.45);
  --th-door-grad-1: #21153c;
  --th-door-grad-2: #080611;
}

/* 20. Vintage Romance */
.theme-vintage-romance {
  --th-bg: #20060d;
  --th-surface: #33101a;
  --th-surface-card: #2a0d15;
  --th-accent: #881337;
  --th-gold: #d9a05b;
  --th-gold-light: #fde68a;
  --th-text: #fff1f2;
  --th-text-muted: #fecdd3;
  --th-border: rgba(217, 160, 91, 0.45);
  --th-door-grad-1: #3c131f;
  --th-door-grad-2: #120307;
}

/* 21. Royal Udaipur */
.theme-royal-udaipur {
  --th-bg: #0a1622;
  --th-surface: #12283a;
  --th-surface-card: #0f2130;
  --th-accent: #155e75;
  --th-gold: #e2c275;
  --th-gold-light: #fef9c3;
  --th-text: #f0f9ff;
  --th-text-muted: #bae6fd;
  --th-border: rgba(226, 194, 117, 0.45);
  --th-door-grad-1: #152f44;
  --th-door-grad-2: #060c13;
}

/* 22. Royal Punjabi Wedding */
.theme-royal-punjabi-wedding {
  --th-bg: #220a08;
  --th-surface: #38120c;
  --th-surface-card: #2e0f0a;
  --th-accent: #b91c1c;
  --th-gold: #f59e0b;
  --th-gold-light: #fef3c7;
  --th-text: #fff7ed;
  --th-text-muted: #fecaca;
  --th-border: rgba(245, 158, 11, 0.5);
  --th-door-grad-1: #42150e;
  --th-door-grad-2: #130604;
}

/* 23. Royal 3D Palace */
.theme-royal-3d-palace {
  --th-bg: #0b1226;
  --th-surface: #16213f;
  --th-surface-card: #121b34;
  --th-accent: #1e40af;
  --th-gold: #fbbf24;
  --th-gold-light: #fef3c7;
  --th-text: #eff6ff;
  --th-text-muted: #bfdbfe;
  --th-border: rgba(251, 191, 36, 0.5);
  --th-door-grad-1: #1a274a;
  --th-door-grad-2: #060a15;
}

/* Global Applied Theme Variables */
.invite-wrapper {
  background-color: var(--th-bg);
  color: var(--th-text);
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 70%),
    radial-gradient(circle at 10% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
}

/* --------------------------------------------------------------------------
   Animated Opening: Grand Royal Gateway / Darwaza Doors
   -------------------------------------------------------------------------- */
.gateway-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  background: rgba(8, 2, 4, 0.96);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  overflow: hidden;
}

.gateway-overlay.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gateway-doors-container {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.gateway-door {
  flex: 1;
  height: 100%;
  background: radial-gradient(circle at center, var(--th-door-grad-1) 0%, var(--th-door-grad-2) 100%);
  position: relative;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--th-gold);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gateway-door-left {
  transform-origin: left center;
  border-right: 2px solid var(--th-gold);
  justify-content: flex-end;
}

.gateway-door-right {
  transform-origin: right center;
  border-left: 2px solid var(--th-gold);
  justify-content: flex-start;
}

.gateway-overlay.is-opened .gateway-door-left {
  transform: rotateY(-110deg);
}

.gateway-overlay.is-opened .gateway-door-right {
  transform: rotateY(110deg);
}

/* Door Arch & Jali Artwork */
.door-arch-art {
  position: absolute;
  inset: 2rem;
  border: 2px solid var(--th-border);
  border-radius: 120px 120px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.03) 0, rgba(212, 175, 55, 0.03) 10px, transparent 0, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.03) 0, rgba(212, 175, 55, 0.03) 10px, transparent 0, transparent 20px);
}

.door-handle-stud {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--th-gold-light) 0%, var(--th-gold) 100%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  margin: 0 1.5rem;
}

/* Central Royal Seal Button */
.gateway-seal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gateway-seal-wrapper:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.gateway-seal {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #3d0e1c 0%, #1a050d 100%);
  border: 3px double var(--th-gold);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), inset 0 0 20px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: pulseGoldSeal 2.5s infinite;
}

@keyframes pulseGoldSeal {
  0%, 100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 45px rgba(212, 175, 55, 0.7); }
}

.gateway-seal-icon {
  width: 44px;
  height: 44px;
  fill: var(--th-gold);
  margin-bottom: 0.35rem;
}

.gateway-seal-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-gold-light);
  line-height: 1.1;
  text-align: center;
}

.gateway-tap-hint {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--th-gold-light);
  text-transform: uppercase;
  animation: fadeInOut 2s infinite ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Floating Navigation & Ambient Music Audio Controller
   -------------------------------------------------------------------------- */
.invite-floating-bar {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.invite-icon-btn {
  background: rgba(22, 6, 12, 0.85);
  border: 1px solid var(--th-gold);
  color: var(--th-gold-light);
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.invite-icon-btn:hover {
  background: var(--th-surface);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.invite-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-bar {
  width: 2px;
  height: 4px;
  background-color: var(--th-gold);
  border-radius: 1px;
}

.music-active .music-bar:nth-child(1) { animation: soundBar 0.8s infinite ease-in-out; }
.music-active .music-bar:nth-child(2) { animation: soundBar 1.1s infinite 0.2s ease-in-out; }
.music-active .music-bar:nth-child(3) { animation: soundBar 0.9s infinite 0.4s ease-in-out; }

@keyframes soundBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* --------------------------------------------------------------------------
   Main Invitation Paper / Scroll Canvas
   -------------------------------------------------------------------------- */
.invite-canvas {
  max-width: 760px;
  margin: 3.5rem auto 5rem auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

.invite-card-frame {
  background-color: var(--th-surface);
  border: 2px solid var(--th-border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.15);
}

/* Ornamental Golden Scalloped Arches at Card Borders */
.frame-top-arch, .frame-bottom-arch {
  height: 28px;
  background: radial-gradient(circle at 50% 100%, transparent 14px, var(--th-border) 15px, transparent 16px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.frame-bottom-arch {
  transform: rotate(180deg);
}

.invite-content-inner {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

/* Section Common Styling */
.inv-section {
  text-align: center;
  position: relative;
}

.inv-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  color: var(--th-gold-light);
  margin-bottom: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.inv-section-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--th-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   1. Hero Section: Auspicious Invocation & Couple Names
   -------------------------------------------------------------------------- */
.hero-inv-invocation {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--th-gold);
  margin-bottom: 1rem;
}

.hero-motif-svg {
  width: 54px;
  height: 54px;
  fill: var(--th-gold);
  margin: 0 auto 1.5rem auto;
  display: block;
}

.hero-family-invite {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--th-text-muted);
  max-width: 560px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.5;
}

.hero-couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--th-gold-light) 0%, var(--th-gold) 60%, #b3891d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.03em;
}

.hero-ampersand {
  font-family: 'Great Vibes', cursive;
  font-size: 2.75rem;
  color: var(--th-gold-light);
  line-height: 1;
  margin: -0.25rem 0;
  opacity: 0.9;
}

.hero-hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--th-border);
  color: var(--th-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-date-banner {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--th-gold-light);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--th-border);
  border-bottom: 1px solid var(--th-border);
  padding: 0.85rem 0;
  max-width: 440px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   2. Live Countdown
   -------------------------------------------------------------------------- */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.countdown-box {
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 14px;
  padding: 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--th-gold);
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--th-gold-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--th-text-muted);
}

/* --------------------------------------------------------------------------
   3. Love Story Timeline
   -------------------------------------------------------------------------- */
.story-timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--th-gold) 15%, var(--th-gold) 85%, transparent);
  transform: translateX(-50%);
}

.story-milestone {
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
  text-align: right;
  padding-right: 2.25rem;
}

.story-milestone:nth-child(even) {
  margin-left: auto;
  text-align: left;
  padding-right: 0;
  padding-left: 2.25rem;
}

.story-milestone-node {
  position: absolute;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--th-surface);
  border: 2px solid var(--th-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  z-index: 2;
}

.story-milestone:nth-child(odd) .story-milestone-node {
  right: -9px;
}

.story-milestone:nth-child(even) .story-milestone-node {
  left: -9px;
}

.story-year {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-gold);
  margin-bottom: 0.25rem;
}

.story-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--th-gold-light);
  margin-bottom: 0.35rem;
}

.story-card-desc {
  font-size: 0.88rem;
  color: var(--th-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   4. Ceremony Cards
   -------------------------------------------------------------------------- */
.ceremonies-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ceremony-card {
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  text-align: left;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ceremony-card:hover {
  transform: translateY(-3px);
  border-color: var(--th-gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.ceremony-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--th-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceremony-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: var(--th-gold);
}

.ceremony-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ceremony-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--th-gold-light);
}

.ceremony-date-badge {
  font-size: 0.82rem;
  color: var(--th-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ceremony-meta-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--th-text-muted);
  margin-top: 0.5rem;
}

.ceremony-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ceremony-meta-item svg {
  width: 14px;
  height: 14px;
  fill: var(--th-gold);
  flex-shrink: 0;
}

.ceremony-dress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed var(--th-border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  color: var(--th-gold-light);
}

/* --------------------------------------------------------------------------
   5. Photo Gallery (Artistic CSS/SVG Placeholder Frames)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-art-frame {
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gallery-art-frame:hover {
  transform: translateY(-5px);
  border-color: var(--th-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.gallery-art-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  pointer-events: none;
}

.gallery-illustration-box {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.gallery-illustration-box svg {
  width: 72px;
  height: 72px;
  fill: var(--th-gold);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--th-gold-light);
  margin-bottom: 0.25rem;
}

.gallery-caption {
  font-size: 0.78rem;
  color: var(--th-text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   6. Venue & Static Map-Style Card
   -------------------------------------------------------------------------- */
.venue-card {
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 20px;
  overflow: hidden;
}

.venue-artistic-map {
  height: 200px;
  background: radial-gradient(circle at center, #1b2838 0%, #0d1520 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--th-border);
  overflow: hidden;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-center-pin {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.pin-pulse-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 1.5px solid var(--th-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  animation: pulsePin 2s infinite ease-in-out;
}

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

.pin-pulse-circle svg {
  width: 24px;
  height: 24px;
  fill: var(--th-gold);
}

.map-pin-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--th-gold-light);
  text-transform: uppercase;
  background: rgba(13, 21, 32, 0.85);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--th-border);
}

.venue-details-wrap {
  padding: 2rem;
  text-align: center;
}

.venue-palace-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--th-gold-light);
  margin-bottom: 0.5rem;
}

.venue-palace-address {
  font-size: 0.95rem;
  color: var(--th-text-muted);
  max-width: 440px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Scratch-to-Reveal Date Card (HTML5 Canvas)
   -------------------------------------------------------------------------- */
.scratch-container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.scratch-card-box {
  width: 100%;
  height: 180px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--th-gold);
  margin: 1.25rem auto;
}

/* Hidden text revealed underneath the canvas */
.scratch-secret-content {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--th-surface-card) 0%, #150308 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1;
}

.scratch-shubh-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-gold);
  margin-bottom: 0.35rem;
}

.scratch-revealed-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--th-gold-light);
  line-height: 1.2;
}

.scratch-revealed-mantra {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--th-text-muted);
  margin-top: 0.4rem;
}

/* The scratchable gold foil canvas */
.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

.scratch-hint-bar {
  font-size: 0.85rem;
  color: var(--th-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.scratch-revealed-badge {
  display: none;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--th-gold);
  color: var(--th-gold-light);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  animation: fadeIn 0.4s ease;
}

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

/* --------------------------------------------------------------------------
   8. RSVP Form
   -------------------------------------------------------------------------- */
.rsvp-box {
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.rsvp-fieldset {
  border: none;
  margin-bottom: 1.25rem;
}

.rsvp-legend {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--th-gold-light);
  margin-bottom: 0.75rem;
  display: block;
}

.rsvp-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.rsvp-check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.88rem;
  color: var(--th-text);
  cursor: pointer;
}

.rsvp-check-item input[type="checkbox"],
.rsvp-check-item input[type="radio"] {
  accent-color: var(--th-gold);
  width: 16px;
  height: 16px;
}

.rsvp-success-alert {
  display: none;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #86efac;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   9. Wishes Wall (Live Guestbook)
   -------------------------------------------------------------------------- */
.wishes-card {
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 20px;
  padding: 2rem;
}

.wishes-form {
  margin-bottom: 2rem;
  text-align: left;
}

.wishes-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.wish-entry {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--th-gold);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  text-align: left;
}

.wish-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.wish-author {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--th-gold-light);
}

.wish-time {
  font-size: 0.72rem;
  color: var(--th-text-muted);
}

.wish-body {
  font-size: 0.88rem;
  color: var(--th-text);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. WhatsApp Share & Bottom Action Bar
   -------------------------------------------------------------------------- */
.share-action-box {
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.share-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #073816;
  font-weight: 700;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #22bf5b;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a050d;
  color: var(--th-gold-light);
  border: 1px solid var(--th-gold);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Tweaks for Invitation
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .invite-canvas {
    margin-top: 1.5rem;
    padding: 0 0.75rem;
  }
  .invite-content-inner {
    padding: 2.25rem 1.25rem;
    gap: 3.5rem;
  }
  .hero-name {
    font-size: 2.5rem;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .story-timeline::before {
    left: 12px;
  }
  .story-milestone, .story-milestone:nth-child(even) {
    width: 100%;
    text-align: left;
    padding-left: 2.25rem;
    padding-right: 0;
    margin-left: 0;
  }
  .story-milestone:nth-child(odd) .story-milestone-node,
  .story-milestone:nth-child(even) .story-milestone-node {
    left: 3px;
    right: auto;
  }
  .ceremony-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ceremony-icon-wrap {
    margin: 0 auto;
  }
  .ceremony-header-row {
    justify-content: center;
  }
  .ceremony-meta-item {
    justify-content: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rsvp-checkboxes-grid {
    grid-template-columns: 1fr;
  }
  .gateway-seal {
    width: 120px;
    height: 120px;
  }
}

/* ==========================================================================
   Detail-spec additions — 14-section layout, carousel gallery, petals,
   couple/family/contact/closing, RSVP stepper, responsive rules
   (Added for the 23-template detail spec; all original CSS art.)
   ========================================================================== */

.hidden { display: none !important; }

/* --- Button system (also styles the .btn/.btn-primary used by earlier markup) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--th-border);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: var(--th-text);
  background: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, var(--th-gold), var(--th-gold-light));
  color: #2b1a05;
  border-color: transparent;
}
.btn-outline { background: transparent; color: var(--th-gold-light); border-color: var(--th-gold); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* --- Form controls --- */
.form-input, .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--th-border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--th-text);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
}
.form-input::placeholder, .form-control::placeholder { color: var(--th-text-muted); opacity: 0.75; }
.form-input:focus, .form-control:focus { outline: 2px solid var(--th-gold); outline-offset: 1px; }
.field-label, .form-label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--th-gold-light);
}
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

/* --- Scroll prompt (appears after the gateway opens) --- */
.scroll-prompt {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 9000;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--th-gold);
  background: rgba(10, 4, 6, 0.85);
  color: var(--th-gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: scrollPromptBob 1.6s ease-in-out infinite;
  pointer-events: none;
}
.scroll-prompt .scroll-arrow { display: inline-block; animation: scrollArrowDrop 1.6s ease-in-out infinite; }
@keyframes scrollPromptBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@keyframes scrollArrowDrop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* --- Falling petals (hero) --- */
.inv-hero { position: relative; overflow: hidden; }
.inv-hero > *:not(.petals-container) { position: relative; z-index: 1; }
.petals-container { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.petal { position: absolute; top: -24px; display: block; opacity: 0.85; animation: petalFall linear infinite; }
.petal-petal { background: radial-gradient(circle at 30% 30%, #ffd1dc, #f9a8d4); border-radius: 60% 40% 60% 40%; }
.petal-gold { background: radial-gradient(circle at 30% 30%, #fef3c7, #d4af37); border-radius: 50%; }
.petal-floating { background: radial-gradient(circle at 30% 30%, #ffffff, #fbcfe8); border-radius: 60% 40% 60% 40%; animation-name: petalFloat; }
@keyframes petalFall { 0% { transform: translateY(-24px) rotate(0deg); } 100% { transform: translateY(620px) rotate(320deg); } }
@keyframes petalFloat { 0% { transform: translateY(-24px) translateX(0) rotate(0deg); } 50% { transform: translateY(300px) translateX(18px) rotate(160deg); } 100% { transform: translateY(620px) translateX(-8px) rotate(320deg); } }

/* --- The Royal Couple --- */
.couple-frames { display: flex; align-items: flex-start; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.couple-frame { text-align: center; max-width: 300px; }
.portrait-frame {
  position: relative;
  width: 220px; height: 260px;
  margin: 0 auto 1rem;
  border: 3px solid var(--th-gold);
  border-radius: 140px 140px 14px 14px;
  background: linear-gradient(160deg, var(--th-surface), var(--th-surface-card));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 0 0 6px var(--th-surface-card), inset 0 0 0 8px var(--th-border);
}
.portrait-initial { font-family: 'Great Vibes', cursive; font-size: 5rem; color: var(--th-gold); line-height: 1; }
.portrait-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--th-gold); }
.portrait-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.portrait-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.portrait-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.portrait-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.couple-person-name { font-family: 'Great Vibes', cursive; font-size: 2rem; color: var(--th-gold-light); margin: 0.2rem 0; }
.couple-role { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.78rem; color: var(--th-text-muted); margin: 0.2rem 0 0.6rem; }
.couple-parents { font-size: 0.95rem; color: var(--th-text-muted); font-style: italic; margin: 0; }
.couple-amp { font-family: 'Great Vibes', cursive; font-size: 3rem; color: var(--th-gold); align-self: center; }

/* --- Family --- */
.family-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.family-group-title { text-align: center; color: var(--th-gold-light); letter-spacing: 0.14em; text-transform: uppercase; font-size: 1rem; margin-bottom: 1rem; }
.family-members { display: flex; flex-direction: column; gap: 0.8rem; }
.family-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1rem; border: 1px solid var(--th-border); border-radius: 14px;
  background: var(--th-surface-card);
}
.family-initial {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--th-gold); color: var(--th-gold);
  font-family: 'Great Vibes', cursive; font-size: 1.5rem;
}
.family-name { margin: 0; font-weight: 700; }
.family-relation { margin: 0; color: var(--th-text-muted); font-size: 0.9rem; }

/* --- Ceremonies: description + 5-across on wide screens --- */
.ceremony-desc { margin: 0.6rem 0 0; color: var(--th-text-muted); font-size: 0.95rem; line-height: 1.55; }
@media (min-width: 1100px) {
  .ceremonies-grid { grid-template-columns: repeat(5, 1fr); }
  .venue-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Gallery carousel --- */
.gallery-carousel { position: relative; margin-top: 1.5rem; }
.gallery-slides { position: relative; min-height: 340px; }
.gallery-slide {
  display: none; text-align: center; padding: 1.5rem 1rem;
  border: 1px solid var(--th-border); border-radius: 18px; background: var(--th-surface-card);
  cursor: pointer;
}
.gallery-slide.active { display: block; }
.gallery-slide figcaption strong { display: block; font-size: 1.25rem; color: var(--th-gold-light); margin: 0.8rem 0 0.3rem; }
.gallery-slide figcaption span { color: var(--th-text-muted); font-size: 0.95rem; line-height: 1.5; }
.gallery-icon { color: var(--th-gold); display: flex; justify-content: center; }
.gallery-icon .gi-svg, .gallery-icon svg { width: 110px; height: 110px; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 50%;
  border: 1px solid var(--th-gold); background: rgba(10, 4, 6, 0.8); color: var(--th-gold-light);
  font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2;
}
.gallery-arrow-prev { left: 10px; }
.gallery-arrow-next { right: 10px; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.gallery-dots { display: flex; gap: 0.5rem; }
.gallery-dot {
  width: 14px; height: 14px; min-width: 14px; min-height: 14px; border-radius: 50%;
  border: 1px solid var(--th-gold); background: transparent; cursor: pointer; padding: 0;
}
.gallery-dot.active { background: var(--th-gold); }
.gallery-counter { color: var(--th-gold-light); letter-spacing: 0.15em; font-size: 0.95rem; }

/* --- Gallery grid variant (Opal Romance) --- */
.gallery-cell {
  border: 1px solid var(--th-border); border-radius: 18px; background: var(--th-surface-card);
  padding: 1.2rem 1rem; text-align: center; cursor: pointer; margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-cell:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.gallery-cell figcaption strong { display: block; font-size: 1.15rem; color: var(--th-gold-light); margin: 0.7rem 0 0.3rem; }
.gallery-cell figcaption span { color: var(--th-text-muted); font-size: 0.92rem; line-height: 1.5; }
#btn-gallery-more { display: block; margin: 1.2rem auto 0; }

/* --- Gallery lightbox --- */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 95000;
  background: rgba(5, 2, 3, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.gallery-lightbox.hidden { display: none; }
.lightbox-content {
  position: relative; max-width: 520px; width: 100%; text-align: center;
  border: 1px solid var(--th-gold); border-radius: 20px; background: var(--th-surface);
  padding: 2.5rem 1.5rem 2rem;
}
.lightbox-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--th-gold); background: transparent; color: var(--th-gold-light);
  font-size: 1.2rem; cursor: pointer;
}
.lightbox-icon { color: var(--th-gold); display: flex; justify-content: center; }
.lightbox-icon .gi-svg, .lightbox-icon svg { width: 140px; height: 140px; }
.lightbox-title { color: var(--th-gold-light); font-size: 1.5rem; margin: 1rem 0 0.4rem; }
.lightbox-caption { color: var(--th-text-muted); line-height: 1.6; margin: 0; }

/* --- Venues: 3 cards --- */
.venue-cards-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.venue-mini-card {
  border: 1px solid var(--th-border); border-radius: 16px; background: var(--th-surface-card);
  padding: 1.2rem 1.3rem; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.venue-mini-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.venue-label { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.75rem; color: var(--th-gold); margin: 0 0 0.5rem; }
.venue-mini-name { color: var(--th-gold-light); font-size: 1.2rem; margin: 0 0 0.5rem; }
.venue-address, .venue-schedule { color: var(--th-text-muted); font-size: 0.95rem; line-height: 1.55; margin: 0.3rem 0; }
.venue-mini-card .btn { margin-top: 0.8rem; }

/* --- RSVP: accept/decline pills + guest stepper --- */
.rsvp-toggle { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.rsvp-pill { flex: 1; min-width: 160px; }
.rsvp-pill input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-pill span {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid var(--th-border); border-radius: 999px; cursor: pointer;
  font-weight: 600; color: var(--th-text-muted); transition: all 0.2s ease; padding: 0.5rem 1rem;
}
.rsvp-pill input:checked + span { background: linear-gradient(135deg, var(--th-gold), var(--th-gold-light)); color: #2b1a05; border-color: transparent; }
.rsvp-pill input:focus-visible + span { outline: 2px solid var(--th-gold); outline-offset: 2px; }
.guest-stepper { display: flex; align-items: center; gap: 1rem; }
.stepper-btn {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 50%;
  border: 1px solid var(--th-gold); background: transparent; color: var(--th-gold-light);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.guest-count { font-size: 1.6rem; font-weight: 700; color: var(--th-gold-light); min-width: 2rem; text-align: center; }
.guest-label { color: var(--th-text-muted); }
.rsvp-success { margin-top: 1rem; padding: 1rem; border-radius: 12px; border: 1px solid var(--th-gold); background: rgba(212, 175, 55, 0.1); color: var(--th-gold-light); text-align: center; }
#btn-scratch-reveal { display: block; margin: 1rem auto 0; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
.contact-card { border: 1px solid var(--th-border); border-radius: 16px; background: var(--th-surface-card); padding: 1.3rem 1.2rem; text-align: center; }
.contact-name { color: var(--th-gold-light); font-size: 1.2rem; margin: 0 0 0.3rem; }
.contact-relation { color: var(--th-text-muted); font-size: 0.92rem; margin: 0 0 0.3rem; }
.contact-phone { font-weight: 700; letter-spacing: 0.04em; margin: 0 0 0.9rem; }
.contact-buttons { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* --- Closing --- */
.inv-closing { text-align: center; padding-bottom: 2rem; }
.closing-blessing { color: var(--th-gold); letter-spacing: 0.12em; font-size: 1.05rem; margin-bottom: 1rem; }
.closing-names { font-family: 'Great Vibes', cursive; font-size: 2.6rem; color: var(--th-gold-light); margin: 0.3rem 0; line-height: 1.2; }
.closing-date { color: var(--th-text-muted); font-size: 1.05rem; margin: 0.3rem 0 1.2rem; }
.closing-hashtag-row { display: flex; align-items: center; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.closing-hashtag { font-size: 1.3rem; font-weight: 700; color: var(--th-gold); letter-spacing: 0.03em; }
.closing-footer { color: var(--th-text-muted); font-size: 0.9rem; margin-top: 1.6rem; }

/* --- Scratch reveal button + badge --- */
.scratch-revealed-badge { margin-top: 0.8rem; }

/* --- Responsive: phone-first rules for the new sections --- */
@media (max-width: 768px) {
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .couple-frames { flex-direction: column; align-items: center; gap: 1.2rem; }
  .couple-amp { transform: rotate(90deg); }
  .family-groups { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .venue-cards-grid { grid-template-columns: 1fr; }
  .gallery-slides { min-height: 360px; }
  .gallery-arrow { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .closing-names { font-size: 2.1rem; }
  .rsvp-toggle { flex-direction: column; }
  .rsvp-pill { min-width: 0; }
}

/* ==========================================================================
   Unique Template Variant Styles (Round 2 Enhancements)
   ========================================================================== */

/* --- 1. Mountain Bliss: Diagonal Envelope Opener --- */
.opener-envelope-diagonal .envelope-diagonal-wrap {
  position: relative;
  width: 90%;
  max-width: 460px;
  height: 340px;
  background: #152b42;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  border: 2px solid var(--th-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.envelope-flap {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a5f 0%, #0c1a29 100%);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.flap-top-left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform-origin: top left;
}
.flap-top-right {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform-origin: top right;
}
.opener-envelope-diagonal.is-opened .flap-top-left {
  transform: rotate(-100deg) translate(-40px, -40px);
}
.opener-envelope-diagonal.is-opened .flap-top-right {
  transform: rotate(100deg) translate(40px, -40px);
}
.envelope-seal-center {
  position: absolute;
  z-index: 5;
  text-align: center;
  cursor: pointer;
}
.himalayan-wax-seal {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8 0%, #0369a1 100%);
  border: 3px double #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
  animation: pulseGoldSeal 2.5s infinite;
  padding: 0.75rem;
}
.himalayan-wax-seal .seal-icon { font-size: 2rem; margin-bottom: 0.2rem; }
.himalayan-wax-seal .seal-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- 2. Noor-e-Nikah: Red Wax Seal & Bismillah Hero --- */
.opener-wax-seal .wax-envelope-wrap {
  position: relative;
  width: 90%;
  max-width: 440px;
  height: 320px;
  background: #0a2e25;
  border-radius: 12px;
  border: 2px solid var(--th-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.envelope-body-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.envelope-arabic-shubh {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.5rem;
  color: var(--th-gold);
  margin-top: 1rem;
}
.wax-seal-stamp {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  text-align: center;
}
.wax-seal-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #b91c1c 0%, #7f1d1d 100%);
  border: 3px dashed #f59e0b;
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: pulseGoldSeal 2.5s infinite;
  padding: 1rem;
}
.seal-arabic-symbol { font-size: 2.2rem; font-weight: bold; }
.wax-seal-text { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; margin-top: 0.3rem; }

.bismillah-calligraphy-banner {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(6, 95, 70, 0.2);
  border: 1px dashed var(--th-gold);
  border-radius: 12px;
}
.bismillah-text {
  font-size: 1.6rem;
  color: var(--th-gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.surah-quote {
  font-size: 0.95rem;
  color: var(--th-text-muted);
  font-style: italic;
}

/* --- 3. Royal Jaipur: Cream/Gold Card Cover & Numbered Journey --- */
.opener-jaipur-card .jaipur-card-cover {
  width: 90%;
  max-width: 450px;
  background: #fffbeb;
  color: #2b0a16;
  border: 3px double var(--th-gold);
  border-radius: 16px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.jaipur-card-cover:hover { transform: scale(1.02); }
.ganesha-medallion {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: #b91c1c;
}
.ganesha-medallion svg { width: 100%; height: 100%; fill: currentColor; }
.jaipur-shloka-verse {
  font-size: 0.88rem;
  color: #881337;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.jaipur-card-names {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  color: #2b0a16;
  margin-bottom: 0.3rem;
}
.jaipur-card-date {
  font-size: 1rem;
  color: #78350f;
  margin-bottom: 1.5rem;
}
.open-invitation-pill {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: #881337;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 15px rgba(136, 19, 55, 0.4);
}

.jaipur-journey-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.jaipur-journey-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--th-surface-card);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.journey-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--th-gold);
  line-height: 1;
}
.journey-title {
  color: var(--th-gold-light);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.journey-desc {
  color: var(--th-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- 4. Blush Romance: Padlocked Gate Opener --- */
.opener-padlock-gate .padlock-gates-container {
  position: absolute;
  inset: 0;
  display: flex;
}
.padlock-gate {
  flex: 1;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--th-gold);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}
.gate-left { transform-origin: left center; }
.gate-right { transform-origin: right center; }
.opener-padlock-gate.is-opened .gate-left { transform: rotateY(-110deg); }
.opener-padlock-gate.is-opened .gate-right { transform: rotateY(110deg); }
.golden-padlock {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}
.golden-padlock svg { width: 36px; height: 36px; fill: currentColor; }
.padlock-text { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; margin-top: 0.2rem; }
.golden-padlock.padlock-dropped {
  transform: translateY(220px) scale(0.6);
  opacity: 0;
}

/* --- 5. Vrindavan Bliss: Swinging Jhoola & Hindi Nimantran --- */
.hindi-nimantran-card {
  background: rgba(14, 43, 79, 0.7);
  border: 2px solid var(--th-gold);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}
.nimantran-shloka {
  font-size: 1.15rem;
  color: var(--th-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.nimantran-heading {
  font-size: 1.6rem;
  color: var(--th-gold-light);
  margin-bottom: 0.75rem;
}
.nimantran-text {
  font-size: 0.95rem;
  color: var(--th-text);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.5rem auto;
}
.nimantran-family-line {
  color: var(--th-text-muted);
  font-size: 0.88rem;
  margin: 0.5rem 0 1rem;
}

.swinging-jhoola-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  perspective: 600px;
}
.jhoola-ropes {
  display: flex;
  justify-content: space-between;
  width: 280px;
  height: 40px;
}
.jhoola-rope {
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--th-gold), var(--th-border));
}
.jhoola-plank {
  width: 100%;
  background: linear-gradient(135deg, rgba(14, 43, 79, 0.9), rgba(4, 21, 45, 0.9));
  border: 2px solid var(--th-gold);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transform-origin: top center;
  animation: swingJhoola 3.5s ease-in-out infinite alternate;
}
@keyframes swingJhoola {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

/* --- 6. Shiv Parinay: Blinking Countdown & Temple Portraits --- */
.blinking-countdown-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid var(--th-gold);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.blink-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseBlink 1.2s infinite;
}
.blink-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--th-gold-light);
}
@keyframes pulseBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.temple-arch-portrait {
  border-radius: 120px 120px 8px 8px !important;
  border-width: 2px !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.35) !important;
}
.grandparents-blessing-banner {
  background: rgba(127, 29, 29, 0.25);
  border: 1px dashed var(--th-gold);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
}
.gp-banner-title {
  color: var(--th-gold-light);
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.gp-banner-text {
  color: var(--th-text-muted);
  font-size: 0.9rem;
}

/* --- 7. Style Guide & Dress Code (mountain-bliss) --- */
.dresscode-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.dresscode-item {
  border: 1px solid var(--th-border);
  border-radius: 12px;
  background: var(--th-surface-card);
  overflow: hidden;
}
.dresscode-toggle-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--th-gold-light);
  font-size: 1.1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.dresscode-arrow { transition: transform 0.3s ease; }
.dresscode-toggle-btn.is-active .dresscode-arrow { transform: rotate(180deg); }
.dresscode-body {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dresscode-body.is-open { display: block; }
.dresscode-attire { color: var(--th-text); font-size: 0.95rem; margin-top: 0.75rem; }
.dresscode-note { color: var(--th-text-muted); font-size: 0.88rem; margin: 0.4rem 0 0.8rem; }
.dresscode-swatches { display: flex; gap: 0.5rem; }
.swatch-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* --- Monogram Family (pastel-bloom) --- */
.monogram-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
}
.monogram-family-item {
  padding: 1rem 0.5rem;
  border: 1px solid var(--th-border);
  border-radius: 12px;
  background: var(--th-surface-card);
}
.monogram-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--th-gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--th-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 0.5rem auto;
}
.monogram-name { color: var(--th-gold-light); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.monogram-relation { color: var(--th-text-muted); font-size: 0.82rem; }

/* --- Instagram Finale & Handles --- */
.closing-instagram-handles {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(253, 164, 175, 0.15);
  border: 1px solid var(--th-accent);
  color: var(--th-gold-light);
  font-size: 0.88rem;
  text-decoration: none;
}
.insta-badge svg { width: 18px; height: 18px; fill: currentColor; }
.couple-insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--th-gold);
}
.couple-insta-link svg { width: 16px; height: 16px; fill: currentColor; }

