@import url('fonts.css');

/* =====================================================================
   ROYAL DIGITAL WEDDING INVITATION — BAZM-E-GHULAB LUXURY EDITION
   Inspired by Ceremonia Invites "Bazm-e-Ghulab"
   - Full-Screen 4-Flap 3D Envelope Reveal Physics
   - Fonts: Alex Brush, Great Vibes, Playfair Display, Cinzel, Cormorant Garamond, Amiri, Plus Jakarta Sans
   - Palette: Deep Ceremonial Crimson (#5F0606), Burgundy (#711D2B), 
     Ivory Parchment (#FAF8F5, #EDEBE5), Warm Gold (#D4AF37, #A98A62)
   ===================================================================== */

:root {
  /* Royal Palette */
  --c-bg-cover: #5F0606;
  --c-burgundy-deep: #430404;
  --c-burgundy-rich: #711D2B;
  --c-burgundy-light: #8E2536;
  --c-burgundy-tint: #F5EAEB;

  /* Cardstock */
  --c-parchment: #FAF8F5;
  --c-parchment-deep: #EDEBE5;
  --c-parchment-border: #E2DDD5;

  /* Metallic & Ochre Golds */
  --c-gold-primary: #D4AF37;
  --c-gold-warm: #C5A059;
  --c-gold-ochre: #A98A62;
  --c-gold-light: #FBF3DC;
  --c-gold-deep: #8C6F3B;

  /* Typography Colors */
  --text-primary: #711D2B;
  --text-dark: #2A2524;
  --text-body: #4A4442;
  --text-muted: #857D7A;
  --text-gold: #9C7D4E;

  /* Font Families - Royal Luxury Suite */
  --font-script: 'Alex Brush', 'Great Vibes', 'Allura', cursive;
  --font-qwigley: 'Alex Brush', 'Great Vibes', 'Allura', cursive;
  --font-arizonia: 'Alex Brush', 'Great Vibes', 'Arizonia', cursive;
  --font-heading: 'Playfair Display', 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-garamond: 'Cormorant Garamond', Georgia, serif;
  --font-cinzel: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-amiri: 'Amiri', 'Traditional Arabic', serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* Base Reset & Smooth Rendering */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100%;
  background-color: var(--c-bg-cover);
  color: var(--text-body);
  font-family: var(--font-garamond);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sealed State locks scrolling while envelope is closed */
html.bg-sealed,
body.bg-sealed {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
}

/* Avoid page horizontal scrolling while retaining full accessibility */
body {
  overflow-x: clip;
}

/* Canvas Confetti */
.bg-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}

/* =====================================================================
   TOP FLOATING CONTROLS (Music, Personalization, Share)
   ===================================================================== */
.bg-top-controls {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  width: min(94vw, 480px);
  margin: 0 auto;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body:not(.bg-sealed) .bg-top-controls {
  opacity: 1;
  transform: translateY(0);
}

.bg-ctrl-pill {
  pointer-events: auto;
  background: rgba(250, 248, 245, 0.97);
  border: 1px solid var(--c-gold-primary);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-burgundy-rich);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.bg-ctrl-pill:active {
  transform: scale(0.96);
}

#navGuestName {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.music-wave span {
  width: 2px;
  background: var(--c-burgundy-rich);
  border-radius: 1px;
  animation: waveBar 0.9s ease-in-out infinite alternate;
}

.music-wave span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.music-wave span:nth-child(2) { height: 10px; animation-delay: 0.3s; }
.music-wave span:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.music-wave span:nth-child(4) { height: 8px; animation-delay: 0.4s; }

@keyframes waveBar {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.1); }
}

/* Floating Scroll Down Cue */
.bg-scroll-cue {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: rgba(113, 29, 43, 0.9);
  color: #FAF8F5;
  border: 1px solid var(--c-gold-primary);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.3s ease;
}

body:not(.bg-sealed) .bg-scroll-cue {
  opacity: 1;
  pointer-events: auto;
  animation: scrollCueFloat 2.2s ease-in-out infinite;
}

@keyframes scrollCueFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* =====================================================================
   1. THE SEALED ENVELOPE (CEREMONIA 4-FLAP 3D OPENING PHYSICS)
   Full-screen floral envelope in long form that covers the mobile screen
   ===================================================================== */
.bg-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-bg-cover);
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s;
  overflow: hidden;
}

.bg-cover.is-fading {
  opacity: 0;
}

.bg-cover.is-open {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Envelope Container: scales seamlessly to 390x844 mobile viewport */
.bg-env {
  --e: min(calc(100vw / 390), calc(100dvh / 844));
  width: calc(390 * var(--e));
  height: calc(844 * var(--e));
  position: relative;
  perspective: 1400px;
  overflow: visible;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65);
}

/* Mobile full-screen coverage */
@media (max-width: 500px) {
  .bg-env {
    --e: calc(100vw / 390);
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
  }
}

/* Flaps base style */
.bg-flap {
  position: absolute;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.bg-flap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Left Flap */
.bg-flap-left {
  width: 50%;
  height: 100%;
  left: 0;
  top: 0;
  transform-origin: left center;
  z-index: 2;
  transition: transform 3s cubic-bezier(.25, .8, .25, 1);
}

.bg-cover.is-opening .bg-flap-left {
  transform: rotateY(-128deg);
}

/* Right Flap */
.bg-flap-right {
  width: 50%;
  height: 100%;
  right: 0;
  top: 0;
  left: auto;
  transform-origin: right center;
  z-index: 2;
  transition: transform 3s cubic-bezier(.25, .8, .25, 1);
}

.bg-cover.is-opening .bg-flap-right {
  transform: rotateY(128deg);
}

/* Top Flap */
.bg-flap-top {
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  transform-origin: center top;
  z-index: 3;
  transition: transform 3s cubic-bezier(.25, .8, .25, 1) 0.1s;
}

.bg-cover.is-opening .bg-flap-top {
  transform: rotateX(128deg);
}

/* Bottom Flap */
.bg-flap-bottom {
  width: 100%;
  height: auto;
  bottom: 0;
  left: 0;
  transform-origin: center bottom;
  z-index: 3;
  transition: transform 3s cubic-bezier(.25, .8, .25, 1) 0.1s;
}

.bg-cover.is-opening .bg-flap-bottom {
  transform: rotateX(-128deg);
}

/* Center Royal Wax Seal Button */
.bg-wax-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: calc(112 * var(--e));
  height: calc(112 * var(--e));
  transition: transform 0.4s ease, opacity 0.5s ease;
  animation: waxPulse 2.4s ease-in-out infinite;
  outline: none;
}

@keyframes waxPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    filter: drop-shadow(0 10px 28px rgba(212, 175, 55, 0.75));
  }
}

.bg-wax-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.bg-wax-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bg-cover.is-opening .bg-wax-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Breathing Tap Cue in Arizonia Script */
.bg-tap-cue {
  position: absolute;
  top: calc(50% + calc(68 * var(--e)));
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-arizonia);
  font-size: calc(34 * var(--e));
  color: #F8E39D;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 20px rgba(212, 175, 55, 0.7);
  z-index: 10;
  pointer-events: none;
  animation: tapCueBreath 2s ease-in-out infinite;
  letter-spacing: 0.04em;
  user-select: none;
}

@keyframes tapCueBreath {
  0%, 100% { opacity: 0.8; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.bg-cover.is-opening .bg-tap-cue {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Top Flap Header Area (Positioned prominently in the upper flap area above wax seal) */
.bg-env-top-header {
  position: absolute;
  top: calc(205 * var(--e));
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: calc(340 * var(--e));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--e));
  z-index: 10;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bg-cover.is-opening .bg-env-top-header {
  opacity: 0;
  transform: translate(-50%, calc(-15 * var(--e))) scale(0.92);
}

/* Personalized Guest Ribbon Tag / Family Heading on Envelope - BARA & PROMINENT */
.bg-guest-envelope-ribbon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(55, 6, 14, 0.92) 0%, rgba(24, 2, 5, 0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 175, 55, 0.8);
  border-radius: 999px;
  padding: calc(9 * var(--e)) calc(22 * var(--e));
  color: #FFF2C6;
  font-family: var(--font-cinzel), serif;
  font-size: calc(14.5 * var(--e));
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.75), 0 0 16px rgba(212, 175, 55, 0.35);
  white-space: normal;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(212, 175, 55, 0.5);
}

/* Subtitle Credit - BARA & PROMINENT */
.bg-env-credit {
  position: static;
  margin: 0;
  padding: 0 calc(8 * var(--e));
  text-align: center;
  font-family: var(--font-garamond), serif;
  font-style: italic;
  font-size: calc(16.5 * var(--e));
  font-weight: 600;
  line-height: 1.35;
  color: #FCE6B2;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.85);
}

/* =====================================================================
   2. THE EDITORIAL WEDDING CARD & SCROLL-SNAP SECTIONS
   ===================================================================== */
.bg-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background-color: var(--c-parchment);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.bg-main {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Generic Section Framework — Ornate royal wedding cardstock with subtle depth */
.bg-sec {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 38px 18px 32px 18px;
  background-color: var(--c-parchment);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.4);
  overflow: hidden;
}

/* Alternating subtle parchment grain */
.bg-sec:nth-child(even) {
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #F5ECE0 100%);
}

.bg-sec:nth-child(odd) {
  background: radial-gradient(circle at 50% 30%, #FAF8F5 0%, #EDE4D4 100%);
}

/* Delicate royal perimeter hairline */
.bg-sec::before {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border: 1px dashed rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

.bg-hero::before,
.bg-closing::before {
  display: none;
}

.bg-col {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Royal Crest Badges at top of each section */
.royal-crest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #4A0E17 0%, #711D2B 100%);
  border: 1.5px solid #D4AF37;
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(113, 29, 43, 0.25), 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.royal-crest-badge .crest-icon {
  color: #F7E7A9;
  font-size: 0.88rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.royal-crest-badge .crest-text {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #F7E7A9;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ornate Royal Flourish Divider */
.royal-flourish-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 260px;
  margin: 4px auto 16px auto;
}

.flourish-wing {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.flourish-crest {
  color: var(--c-gold-primary);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.bg-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 5.6vw, 2.2rem);
  font-weight: 700;
  color: #4A0E17;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.bg-para {
  font-family: var(--font-garamond);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 12px;
}

/* Signature Double Hairline Gold Card Framing */
.royal-card-framed {
  position: relative;
  background: #FFFDF9;
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.45);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.royal-card-framed:hover {
  box-shadow: 0 14px 38px rgba(95, 6, 6, 0.12), 0 0 0 3px #FFFDF9, 0 0 0 5.5px rgba(212, 175, 55, 0.65);
}

/* =====================================================================
   SECTION 1: HERO COVER WITH CEREMONIA ARCH ARTWORK
   Lifting text upward so dates badge and names never get clipped by foliage
   ===================================================================== */
.bg-hero {
  position: relative;
  /* svh does not change while the phone's address bar slides away, so the page never jumps mid-scroll */
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 16px 50px 16px;
  background-color: var(--c-parchment);
  overflow: hidden;
}

.bg-arch {
  position: absolute;
  /* The artwork has ~11% empty space above the curtain rod. Starting the box that far
     above the hero pushes the blank strip off-screen while the lanterns stay on the floor. */
  top: -11%;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/arch.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.95;
  z-index: 0;
  transition: transform 3.5s cubic-bezier(.25, .8, .25, 1);
}

.bg-hero.is-shown .bg-arch {
  transform: scale(1.02);
}

.bg-hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(84vw, 320px);
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translateY(clamp(72px, 10.5vh, 92px)); /* Clears the hanging lamp and stays centered in arch */
}

.bg-eyebrow {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #8C5E14;
  font-weight: 800;
  margin-bottom: 2px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.arabic-hero-bismillah {
  font-family: var(--font-amiri);
  font-size: 1.45rem;
  font-weight: 700;
  color: #4A0E17;
  /* Arabic vowel marks sit well above and below the letters; the tall line box
     keeps them clear of the English lines on either side. */
  line-height: 2;
  margin: 2px 0 4px 0;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.bg-hero-blessing {
  font-size: 0.88rem;
  font-weight: 600;
  font-style: italic;
  color: #5C524F;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 4px;
}

/* Couple Names in Elegant Bold Script */
.bg-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4px 0 6px 0;
  width: 100%;
}

.bg-name {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 10.5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.98;
  color: #711D2B;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(113, 29, 43, 0.18);
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0.35px #711D2B;
}

.bg-weds {
  font-family: var(--font-garamond), serif;
  font-style: italic;
  font-size: clamp(1.4rem, 4.4vw, 1.7rem);
  font-weight: 700;
  color: #8C5E14;
  letter-spacing: 0.20em;
  /* The script names carry empty space below their letters but none above,
     so a larger bottom margin is what makes "weds" look evenly spaced. */
  margin: 2px 0 14px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.bg-weds::before,
.bg-weds::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #B88924);
  vertical-align: middle;
}

.bg-weds::after {
  background: linear-gradient(90deg, #B88924, transparent);
  margin-left: -0.20em; /* cancels the letter-spacing after the "s" so the word sits dead centre */
}

.bg-hero-sub {
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  color: #4A4442;
  margin: 2px 0 4px 0;
}

.hero-dates-badge {
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #4A0E17;
  font-weight: 900;
  border: 1.5px solid rgba(212, 175, 55, 0.75);
  padding: 6px 16px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(113, 29, 43, 0.12), 0 0 0 1px rgba(212, 175, 55, 0.35);
}

/* =====================================================================
   SECTION 2: DEAR GUESTS & FAMILY HOST ANNOUNCEMENT
   ===================================================================== */
.guest-salute-box {
  background: radial-gradient(circle at 50% 20%, #FFFDF9 0%, #FAF5EB 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 16px;
  padding: 0 0 16px 0;
  margin: 6px 0 14px 0;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.45);
  width: 100%;
  overflow: hidden;
}

.salute-label {
  display: block;
  background: linear-gradient(135deg, #4A0E17 0%, #711D2B 50%, #4A0E17 100%);
  color: #F7E7A9;
  border-bottom: 1.5px solid #D4AF37;
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  padding: 9px 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

/* VIP Family Parents / Couple Photo Frame */
.guest-family-photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px auto 10px auto;
}

.guest-photo-halo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2.5px solid var(--c-gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.55), 0 4px 12px rgba(95, 6, 6, 0.15);
  padding: 3px;
  background: #FFFFFF;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.guest-photo-halo:hover {
  transform: scale(1.05);
}

.guest-photo-halo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.guest-relation-tag {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #711D2B;
  background: linear-gradient(135deg, #FFFDF8 0%, #F5EDE0 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.salute-name {
  font-family: var(--font-cinzel);
  font-size: 1.35rem;
  font-weight: 800;
  color: #4A0E17;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 4px 14px 8px 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  letter-spacing: 0.04em;
}

.guest-personal-note {
  font-family: var(--font-garamond);
  font-size: 0.98rem;
  font-style: italic;
  color: #554D49;
  line-height: 1.5;
  margin: 4px 16px 12px 16px;
}

.host-invitation-intro {
  margin-top: 14px;
  font-size: 1.05rem;
}

.bg-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 14px;
  margin-top: 14px;
  margin-bottom: 26px;
}

.bg-pill {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-cinzel);
  font-size: 0.69rem;
  font-weight: 700;
  color: #711D2B;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bg-pill:hover,
.bg-pill:active {
  background: #FDF4E3;
  transform: translateY(-1px);
}

.bg-quran-box {
  background: radial-gradient(circle at 50% 20%, #FFFDF9 0%, #FAF5EB 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 28px 28px 16px 16px;
  padding: 22px 18px 18px 18px;
  margin-top: 4px;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.45);
  position: relative;
  width: 100%;
}

.quran-text {
  font-family: var(--font-amiri);
  font-size: 1.38rem;
  line-height: 2.1;
  color: #4A0E17;
  margin-bottom: 8px;
  direction: rtl;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(212, 175, 55, 0.2);
}

.quran-eng {
  font-family: var(--font-garamond);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.6;
  color: #4A4441;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.quran-cite {
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  color: #B8860B;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* =====================================================================
   SECTION 3: BRIDE & GROOM EDITORIAL SPOTLIGHT
   ===================================================================== */
.bg-couple-editorial {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px 0;
}

.couple-editorial-card {
  background: radial-gradient(circle at 50% 20%, #FFFDF9 0%, #FAF5EC 100%);
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 0 0 16px 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.couple-portrait-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 12px auto 8px auto;
  overflow: hidden;
  border: 2px solid var(--c-gold-primary);
  box-shadow: 0 4px 14px rgba(113, 29, 43, 0.2), 0 0 0 2px #FFFDF9, 0 0 0 3.5px rgba(212, 175, 55, 0.5);
  background: #FAF8F5;
}

.couple-portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.couple-editorial-card.groom .editorial-role {
  background: linear-gradient(135deg, #1A2744 0%, #293B63 100%);
  color: #F7E7A9;
  border-bottom: 1.5px solid #D4AF37;
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  padding: 9px 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
  display: block;
}

.couple-editorial-card.bride .editorial-role {
  background: linear-gradient(135deg, #5A0E1C 0%, #7D1D2E 100%);
  color: #FFE8E8;
  border-bottom: 1.5px solid #D4AF37;
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  padding: 9px 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
  display: block;
}

.editorial-name {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 8vw, 3.3rem);
  color: #4A0E17;
  line-height: 1.1;
  margin: 4px 0 6px 0;
  text-shadow: 0 1px 3px rgba(113, 29, 43, 0.15);
}

.editorial-parents {
  font-size: 1rem;
  color: #4A4441;
  margin-bottom: 4px;
  padding: 0 14px;
}

.editorial-parents strong {
  color: #2D2727;
}

.editorial-city {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #B8860B;
  font-weight: 700;
  display: inline-block;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 4px;
}

.editorial-knot {
  position: relative;
  z-index: 2;
  margin: -10px 0;
}

.knot-ring {
  background: linear-gradient(135deg, #FFFDF8 0%, #F5EDE0 100%);
  border: 2.5px solid var(--c-gold-primary);
  border-radius: 999px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35), 0 0 0 3px #FFFDF9;
}

.knot-ring span {
  font-family: var(--font-garamond);
  font-style: italic;
  font-size: 1.08rem;
  color: #4A0E17;
  font-weight: 700;
}

.host-line {
  font-style: italic;
  font-size: 1rem;
  color: var(--c-gold-ochre);
  margin-top: 8px;
}

/* =====================================================================
   SECTION 3.5: SACRED NIKKAH MEMORIES GALLERY
   ===================================================================== */
.bg-nikkah-memories-sec {
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #F4ECE0 100%);
}

.nikkah-lead-text {
  font-family: var(--font-garamond);
  font-size: 1.05rem;
  font-style: italic;
  color: #4A4441;
  line-height: 1.55;
  max-width: 390px;
  margin: 0 auto 16px auto;
}

.nikkah-moments-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.nikkah-moment-card {
  background: #FFFDF9;
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nikkah-moment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(212, 175, 55, 0.22), 0 0 0 3px #FFFDF9, 0 0 0 5px rgba(212, 175, 55, 0.6);
}

.nikkah-img-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #FAF6EE;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.5);
}

.nikkah-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.nikkah-moment-card:hover .nikkah-img-wrapper img {
  transform: scale(1.03);
}

.nikkah-caption-box {
  padding: 14px 16px;
}

.nikkah-moment-title {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.nikkah-moment-desc {
  font-family: var(--font-garamond);
  font-size: 0.95rem;
  font-style: italic;
  color: #554D49;
  line-height: 1.45;
}

.nikkah-announcement-banner {
  width: 100%;
  background: linear-gradient(135deg, #4A0E17 0%, #711D2B 50%, #4A0E17 100%);
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 8px 25px rgba(113, 29, 43, 0.25), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.nikkah-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.nikkah-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #F7E7A9;
}

.nikkah-banner-text strong {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #FFE6A3;
}

.nikkah-banner-text span {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #FAF4E8;
}

/* =====================================================================
   SECTION 4: COUNTDOWN TO BARAT
   ===================================================================== */
.countdown-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bg-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin: 6px 0 12px 0;
}

.cd-box {
  background: radial-gradient(circle at 50% 25%, #FFFDF9 0%, #FAF5EC 100%);
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 6px 18px rgba(113, 29, 43, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px 4px 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.cd-box:hover {
  transform: translateY(-2px);
}

.cd-val {
  font-family: var(--font-cinzel);
  font-size: 1.85rem;
  font-weight: 800;
  color: #711D2B;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cd-lbl {
  font-family: var(--font-cinzel);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  background: linear-gradient(135deg, #711D2B 0%, #5F0606 100%);
  color: #F7E7A9;
  border-radius: 999px;
  padding: 3px 8px;
  margin-top: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.cd-target-label {
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* =====================================================================
   SECTION 5: CEREMONIAL EVENTS ITINERARY
   ===================================================================== */
.events-scroll-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.editorial-event-card {
  background: #FFFDF9;
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 0 0 16px 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(95, 6, 6, 0.12), 0 0 0 3px #FFFDF9, 0 0 0 5px rgba(212, 175, 55, 0.6);
}

/* 1. Mehndi & Mayun Header Banner */
.editorial-event-card.mehndi .card-event-badge {
  background: linear-gradient(135deg, #0e3b26 0%, #175438 50%, #0e3b26 100%);
  color: #F7E7A9;
  border-bottom: 2px solid #D4AF37;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  padding: 10px 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 2. Barat & Holy Nikkah Header Banner */
/* Sehrabandi: warm bronze-gold, distinct from Mehndi green, Barat burgundy and Walima navy */
.editorial-event-card.sehrabandi .card-event-badge {
  background: linear-gradient(135deg, #5A3A08 0%, #9A6B16 50%, #5A3A08 100%);
  color: #FFF4D2;
  border-bottom: 2px solid #D4AF37;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  padding: 10px 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.editorial-event-card.barat .card-event-badge {
  background: linear-gradient(135deg, #420810 0%, #711D2B 50%, #420810 100%);
  color: #FFE7A8;
  border-bottom: 2px solid #D4AF37;
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  padding: 11px 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 3. Walima Header Banner */
.editorial-event-card.walima .card-event-badge {
  background: linear-gradient(135deg, #112038 0%, #1e365c 50%, #112038 100%);
  color: #F5E8D3;
  border-bottom: 2px solid #D4AF37;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  padding: 10px 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.editorial-event-card.main-event {
  border: 2px solid var(--c-gold-primary);
  box-shadow: 0 14px 35px rgba(113, 29, 43, 0.18), 0 0 0 3px #FFFDF9, 0 0 0 5.5px rgba(212, 175, 55, 0.6);
}

.card-event-title {
  font-family: var(--font-cinzel);
  font-size: 1.35rem;
  font-weight: 800;
  color: #4A0E17;
  margin: 0 16px 4px 16px;
  letter-spacing: 0.04em;
}

.card-event-tagline {
  font-family: var(--font-garamond);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 16px 12px 16px;
  line-height: 1.4;
}

/* Timeline of Barat */
.barat-step-timeline {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(135deg, #FAF4E8 0%, #F5EDE0 100%);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 16px 14px 16px;
  border-left: 3.5px solid #711D2B;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #3D3533;
}

.timeline-step.highlight-step {
  font-weight: 800;
  color: #711D2B;
}

.step-clock {
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  font-weight: 800;
  background: #FFFFFF;
  color: #711D2B;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(113, 29, 43, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.card-event-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 16px;
  margin-bottom: 14px;
}

.row-item {
  background: #FAF8F5;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFDF9;
  border: 1px solid var(--c-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.row-item .info {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  line-height: 1.35;
}

.row-item .info strong {
  color: #2D2727;
}

.row-item .info span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.card-event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.event-btn:active {
  transform: scale(0.97);
}

.map-btn {
  background: linear-gradient(135deg, #FBF8F2 0%, #F5EDE0 100%);
  color: #711D2B;
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.cal-btn {
  background: linear-gradient(135deg, #711D2B 0%, #5F0606 100%);
  color: #FFFFFF;
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 4px 14px rgba(113, 29, 43, 0.3);
}

/* =====================================================================
   ORNAMENT DIAMOND
   ===================================================================== */
.ornament-diamond {
  color: var(--c-gold-primary);
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 2px;
}

/* =====================================================================
   SECTION 6: BLESSINGS OF ELDERS (BAROON KI DUA) — EXACT STACKED CARDS
   ==================================================================== */
.elders-lead-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bg-elders-cards-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.elder-luxury-card {
  background: radial-gradient(circle at 50% 25%, #FFFDF9 0%, #FAF5EB 100%);
  border: 2px solid var(--c-gold-primary);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.elder-luxury-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(212, 175, 55, 0.25), 0 0 0 3px #FFFDF9, 0 0 0 5.5px rgba(212, 175, 55, 0.65);
}

.elder-portrait-glow-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2.5px solid var(--c-gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.55), 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 3px;
  background: #FFFFFF;
  margin: 0 auto 14px auto;
}

.elder-portrait-glow-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.elder-name {
  font-family: var(--font-cinzel);
  font-size: 1.12rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.elder-relation {
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 800;
  color: #B8860B;
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.elder-prayer {
  font-family: var(--font-garamond);
  font-size: 1.08rem;
  font-style: italic;
  color: #4A4441;
  line-height: 1.55;
  max-width: 380px;
  margin: 0 auto;
}

.elder-prayer::before {
  content: "“";
  font-family: var(--font-cinzel);
  font-size: 1.8rem;
  color: var(--c-gold-primary);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
}

.elder-prayer::after {
  content: "”";
  font-family: var(--font-cinzel);
  font-size: 1.8rem;
  color: var(--c-gold-primary);
  line-height: 0;
  vertical-align: -0.3em;
  margin-left: 4px;
}

.compliments-ribbon {
  width: 100%;
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #F7F1E6 100%);
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 8px 25px rgba(95, 6, 6, 0.06), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
}

.compliments-heading {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #711D2B;
  margin-bottom: 6px;
}

.compliments-names {
  font-size: 0.92rem;
  color: #4A4441;
  line-height: 1.55;
}

/* =====================================================================
   SECTION 7: HONOURED FAMILIES & GUEST DIRECTORY
   ===================================================================== */
.bg-families-sec {
  background-color: var(--c-parchment);
}

.families-admin-action-bar {
  margin: 4px 0 16px 0;
  width: 100%;
}

.admin-open-btn {
  background: linear-gradient(135deg, #711D2B 0%, #5F0606 100%);
  color: #FAF8F5;
  border: 1px solid var(--c-gold-primary);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(95, 6, 6, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, background 0.2s;
}

.admin-open-btn:active {
  transform: scale(0.97);
}

.families-cards-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.family-luxury-card {
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #FAF6EE 100%);
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 8px 24px rgba(95, 6, 6, 0.06), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.family-luxury-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(95, 6, 6, 0.1), 0 0 0 3px #FFFDF9, 0 0 0 5px rgba(212, 175, 55, 0.55);
}

/* Clean Clickable Family Name Card (No extra buttons) */
.family-name-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #FAF5EC 100%);
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 6px 20px rgba(95, 6, 6, 0.06), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.family-name-link-card:hover {
  transform: translateY(-2px);
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #FAF0E0 100%);
  box-shadow: 0 10px 28px rgba(95, 6, 6, 0.12), 0 0 0 3px #FFFDF9, 0 0 0 5px rgba(212, 175, 55, 0.65);
}

.family-name-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.family-name-bullet {
  color: var(--c-gold-primary);
  font-size: 1.05rem;
  line-height: 1;
}

.family-name-text {
  font-family: var(--font-cinzel);
  font-size: 1.08rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.family-name-arrow {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #B8860B;
  background: linear-gradient(135deg, #FFFDF8 0%, #F5EDE0 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.family-name-link-card:hover .family-name-arrow {
  background: linear-gradient(135deg, #711D2B 0%, #5F0606 100%);
  color: #F7E7A9;
  border-color: var(--c-gold-primary);
  transform: translateX(3px);
}

.family-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.family-card-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--c-gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  padding: 2px;
  background: #FFFFFF;
  flex-shrink: 0;
  overflow: hidden;
}

.family-card-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.family-card-title-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.family-card-rel {
  font-family: var(--font-cinzel);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #B8860B;
  text-transform: uppercase;
}

.family-card-title {
  font-family: var(--font-cinzel);
  font-size: 1.08rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.family-guest-badge {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #711D2B;
  font-weight: 800;
  background: linear-gradient(135deg, #FFFDF8 0%, #F5EDE0 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.family-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.fam-action-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s, background 0.15s;
}

.fam-action-btn:active {
  transform: scale(0.96);
}

.fam-open-btn {
  background: var(--text-primary);
  color: #FFFFFF;
}

.fam-copy-btn {
  background: var(--c-parchment-deep);
  color: var(--text-primary);
  border: 1px solid var(--c-parchment-border);
}

.fam-wa-btn {
  background: #25D366;
  color: #FFFFFF;
}

/* =====================================================================
   ADMIN MODAL ENHANCEMENTS
   ===================================================================== */
.admin-modal-card {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-badge {
  font-family: var(--font-cinzel);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--c-gold-ochre);
  font-weight: 800;
}

.name-suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.sugg-tag {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sugg-btn {
  background: var(--c-parchment-deep);
  border: 1px solid var(--c-parchment-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: var(--font-ui);
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sugg-btn:hover {
  border-color: var(--c-gold-primary);
  background: #FFFFFF;
}

/* Admin Form Container & Photo Uploader */
.admin-create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFDF9;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.photo-upload-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.photo-preview-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--c-gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  padding: 2px;
  background: #FFFFFF;
  flex-shrink: 0;
  overflow: hidden;
}

.photo-preview-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.photo-inputs-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-url-input {
  font-size: 0.8rem;
  padding: 7px 10px;
}

.photo-file-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.photo-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FAF8F5;
  border: 1px solid var(--c-parchment-border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-family: var(--font-cinzel);
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.15s, border-color 0.15s;
}

.photo-upload-label:hover {
  background: #FFFFFF;
  border-color: var(--c-gold-primary);
}

.photo-preset-btn {
  background: none;
  border: 1px dashed var(--c-gold-primary);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.7rem;
  font-family: var(--font-cinzel);
  font-weight: 700;
  color: #711D2B;
  cursor: pointer;
}

.full-width-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #711D2B 0%, #4A0E17 100%);
  color: #F7E7A9;
  border: 1.5px solid var(--c-gold-primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(113, 29, 43, 0.25);
  margin-top: 4px;
  cursor: pointer;
}

.bulk-add-accordion {
  background: #FAF8F5;
  border: 1px dashed var(--c-parchment-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 0.8rem;
}

.bulk-add-accordion summary {
  cursor: pointer;
  font-family: var(--font-cinzel);
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.bulk-add-box {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-add-box textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--c-parchment-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.bulk-submit-btn {
  background: var(--c-gold-ochre);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-families-list-wrap {
  margin-top: 16px;
  border-top: 1px solid var(--c-parchment-border);
  padding-top: 12px;
}

.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-list-header h4 {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-reset-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
}

.admin-families-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-family-item-row {
  background: #FAF8F5;
  border: 1px solid var(--c-parchment-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.admin-item-name {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-url {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.admin-btn-mini {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1.2;
}

.admin-btn-copy {
  background: var(--text-primary);
  color: #FFFFFF;
}

.admin-btn-wa {
  background: #25D366;
  color: #FFFFFF;
}

.admin-btn-del {
  background: #FFF0F0;
  color: #C00;
  border: 1px solid #FFD0D0;
}

/* =====================================================================
   SECTION 7: WISHES & DUAS GUESTBOOK
   ===================================================================== */
.wishes-post-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 16px 0;
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #FAF6EE 100%);
  border: 1.5px solid var(--c-gold-primary);
  box-shadow: 0 8px 24px rgba(95, 6, 6, 0.06), 0 0 0 3px #FFFDF9, 0 0 0 4px rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 14px;
}

.wish-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-parchment-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  background: #FAF8F5;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.wish-input:focus {
  border-color: var(--c-gold-primary);
  background: #FFFFFF;
}

.wish-btn {
  background: linear-gradient(135deg, #711D2B 0%, #5F0606 100%);
  color: #FFFFFF;
  border: 1.5px solid var(--c-gold-primary);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(113, 29, 43, 0.25);
  transition: transform 0.2s ease;
}

.wish-btn:active {
  transform: scale(0.97);
}

.wishes-feed {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-card {
  background: #FFFDF9;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid var(--c-gold-primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
}

.wish-quote {
  font-family: var(--font-garamond);
  font-style: italic;
  font-size: 0.98rem;
  color: #3D3533;
  margin-bottom: 4px;
  line-height: 1.5;
}

.wish-name {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  color: #B8860B;
  font-weight: 800;
  display: block;
}

/* =====================================================================
   GUEST SPOTLIGHT: DEDICATED FAMILY BANNER & HEARTFELT MESSAGE
   ===================================================================== */
.bg-guest-spotlight-sec {
  background: linear-gradient(180deg, #FBF8F3 0%, #F5ECE0 100%);
  position: relative;
}

.guest-banner-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0 16px 0;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.12);
  border: 2px solid var(--c-gold-primary);
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.guest-banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.guest-heartfelt-card {
  background: radial-gradient(circle at 50% 20%, #FFFDF9 0%, #FAF4E8 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 3px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.45);
  width: 100%;
  text-align: center;
  position: relative;
}

.heartfelt-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.heartfelt-symbol {
  font-size: 1rem;
}

.heartfelt-title {
  font-family: var(--font-cinzel);
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--c-burgundy-rich);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heartfelt-divider {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--c-gold-primary), transparent);
  margin: 6px auto 14px auto;
}

.heartfelt-text {
  font-family: var(--font-garamond);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: #3D3432;
  margin-bottom: 16px;
}

.heartfelt-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 12px;
}

.sig-title {
  font-family: var(--font-garamond);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.sig-name {
  font-family: var(--font-cinzel);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

/* =====================================================================
   SECTION 10: THANK YOU & GUIDANCE / DIRECTIONS / CONTACTS
   ===================================================================== */
.bg-thankyou-sec {
  background: radial-gradient(circle at 50% 15%, #FFFDF9 0%, #F5ECE0 100%);
  position: relative;
  padding-bottom: 70px;
}

.thankyou-main-heading {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 11vw, 4.4rem);
  color: var(--text-primary);
  line-height: 1.1;
  margin: 4px 0 2px 0;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(113, 29, 43, 0.12);
}

.thankyou-lead-box {
  background: #FFFFFF;
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 6px 22px rgba(95, 6, 6, 0.06);
  margin: 12px 0 16px 0;
  width: 100%;
  text-align: center;
}

.thankyou-lead-text {
  font-family: var(--font-garamond);
  font-size: 1.10rem;
  line-height: 1.5;
  color: #3F3735;
  margin-bottom: 12px;
}

.thankyou-host-sig {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 10px;
}

.thankyou-host-sig span {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
}

.thankyou-host-sig strong {
  font-family: var(--font-cinzel);
  font-size: 0.86rem;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.guidance-directions-card {
  background: #FFFDF9;
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 8px 25px rgba(95, 6, 6, 0.07);
  width: 100%;
  margin-bottom: 22px;
  text-align: left;
}

.guidance-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.guidance-icon {
  font-size: 1.25rem;
}

.guidance-title {
  font-family: var(--font-cinzel);
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin: 0;
}

.guidance-sub {
  font-size: 0.82rem;
  color: #5C5250;
  line-height: 1.45;
  margin-bottom: 16px;
}

.thankyou-contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thankyou-contact-card {
  background: #FAF8F5;
  border: 1px solid var(--c-parchment-border);
  border-left: 3.5px solid var(--c-gold-primary);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thankyou-contact-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-name {
  font-family: var(--font-cinzel);
  font-size: 0.84rem;
  font-weight: 800;
  color: #4A0E17;
}

.contact-role {
  font-size: 0.74rem;
  color: #7A6F6B;
}

.contact-phone-display {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-gold-ochre);
  font-family: var(--font-ui);
}

.contact-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s;
}

.contact-action-btn:hover {
  transform: scale(1.1);
}

.btn-call {
  background: #FAF3E6;
  border: 1px solid var(--c-gold-primary);
  color: #711D2B;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.reclose-envelope-btn {
  background: var(--text-primary);
  color: #FAF8F5;
  border: 1px solid var(--c-gold-primary);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background 0.2s;
}

.reclose-envelope-btn:active {
  transform: scale(0.96);
}

/* =====================================================================
   MODAL: PERSONALIZE GUEST NAME & LINK GENERATOR
   ===================================================================== */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-gold-primary);
  width: 100%;
  max-width: 440px;
  padding: 22px 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-cinzel);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-instruction {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.5;
}

.form-group label {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.gen-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-parchment-border);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.modal-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.modal-btn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.primary-btn {
  background: var(--text-primary);
  color: #FFFFFF;
}

.secondary-btn {
  background: var(--c-parchment-deep);
  color: var(--text-primary);
  border: 1px solid var(--c-parchment-border);
}

.generated-link-display {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-parchment-border);
}

.generated-link-display label {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dark);
}

.link-copy-row {
  display: flex;
  gap: 6px;
  margin: 6px 0 10px 0;
}

.url-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--c-parchment-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  background: #FAF8F5;
}

.copy-pill-btn {
  background: var(--text-primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.send-on-wa-btn {
  display: block;
  text-align: center;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 700;
}

/* =====================================================================
   VIP GUEST PRIVILEGES SUITE (EXCLUSIVE HIGH-VALUE BESPOKE DESIGN)
   ===================================================================== */
.vip-guest-privileges-suite {
  background: radial-gradient(circle at 50% 10%, #FFFDF7 0%, #FAF4E6 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 14px;
  padding: 16px 14px;
  margin: 14px 14px 12px 14px;
  box-shadow: 0 6px 20px rgba(95, 6, 6, 0.05), inset 0 0 15px rgba(212, 175, 55, 0.08);
  position: relative;
}

.privilege-suite-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.45);
}

.privilege-crown {
  font-size: 1.1rem;
}

.privilege-title {
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #711D2B;
}

.privileges-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.privilege-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 3.5px solid var(--c-gold-primary);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.privilege-item:hover {
  transform: translateX(3px);
  border-color: var(--c-gold-primary);
}

.priv-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

.priv-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.priv-info strong {
  font-family: var(--font-cinzel);
  font-size: 0.76rem;
  font-weight: 700;
  color: #4A0E17;
  letter-spacing: 0.02em;
}

.priv-info span {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #554D49;
  line-height: 1.35;
}

/* Dedicated RSVP button for personalized guest */
.vip-guest-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 28px);
  margin: 10px 14px 4px 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: 1px solid #1EBE5D;
  border-radius: 999px;
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.vip-guest-rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* =====================================================================
   SECTION 3.5: NIKKAH MEMORIES GALLERY STYLING
   ===================================================================== */
.bg-nikkah-memories-sec {
  background: #FAF8F5;
  position: relative;
}

.nikkah-lead-text {
  font-family: var(--font-garamond);
  font-style: italic;
  font-size: 1.05rem;
  color: #554D49;
  line-height: 1.6;
  margin: 6px 0 16px 0;
}

.nikkah-moments-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.nikkah-moment-card {
  background: #FFFDF9;
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(95, 6, 6, 0.06), 0 0 0 2px #FFFDF9, 0 0 0 3.5px rgba(212, 175, 55, 0.35);
  text-align: left;
}

.nikkah-img-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #FAF6EE;
}

.nikkah-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.nikkah-moment-card:hover .nikkah-img-wrapper img {
  transform: scale(1.03);
}

.nikkah-caption-box {
  padding: 12px 14px;
  background: #FFFFFF;
}

.nikkah-moment-title {
  font-family: var(--font-cinzel);
  font-size: 0.88rem;
  font-weight: 800;
  color: #4A0E17;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.nikkah-moment-desc {
  font-family: var(--font-garamond);
  font-size: 0.92rem;
  color: #5C524F;
  line-height: 1.45;
  margin: 0;
}

.nikkah-announcement-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: radial-gradient(circle at 30% 50%, #4A0E17 0%, #30080E 100%);
  color: #FAF4E6;
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(74, 14, 23, 0.25);
}

.nikkah-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.nikkah-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nikkah-banner-text strong {
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #F7E7A9;
}

.nikkah-banner-text span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

/* =====================================================================
   SECTION 7: HONOURED FAMILIES DIRECTORY (CLEAN NAME CARDS ONLY)
   ===================================================================== */
.families-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.family-name-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: radial-gradient(circle at 30% 50%, #FFFDF9 0%, #FAF5EC 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 12px;
  padding: 13px 18px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(95, 6, 6, 0.04), 0 0 0 2px #FFFDF9, 0 0 0 3.5px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.family-name-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 6, 6, 0.1), 0 0 0 2px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.6);
  border-color: #B8860B;
}

.family-name-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.family-name-bullet {
  color: var(--c-gold-primary);
  font-size: 0.95rem;
}

.family-name-text {
  font-family: var(--font-cinzel);
  font-size: 0.95rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.04em;
}

.family-name-arrow {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #711D2B;
  background: #FFF8E7;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Dedicated Bespoke Family Card on Guest View (Replaces directory) */
.bespoke-family-salute-card {
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #FAF4E6 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 2px #FFFDF9, 0 0 0 4px rgba(212, 175, 55, 0.4);
  text-align: center;
  width: 100%;
  margin-top: 14px;
}

.bespoke-salute-crown {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: block;
}

.bespoke-salute-title {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  font-weight: 800;
  color: #4A0E17;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.bespoke-salute-text {
  font-family: var(--font-garamond);
  font-style: italic;
  font-size: 1.05rem;
  color: #554D49;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* =====================================================================
   GUEST SPOTLIGHT SECTION (HOME & BESPOKE GUEST BANNER)
   ===================================================================== */
.bg-guest-spotlight-sec {
  width: 100%;
}

.guest-banner-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.15), 0 0 0 2px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.5);
  /* The frame is exactly as tall as the photo, so no empty strip shows under it */
  aspect-ratio: auto;
  max-height: none;
}

.guest-banner-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.guest-banner-wrapper:hover img {
  transform: scale(1.03);
}


.guest-heartfelt-card {
  background: radial-gradient(circle at 50% 25%, #FFFDF9 0%, #FAF4E6 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 26px rgba(95, 6, 6, 0.08), 0 0 0 2px #FFFDF9, 0 0 0 4px rgba(212, 175, 55, 0.35);
  text-align: center;
}

.heartfelt-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.heartfelt-symbol {
  font-size: 1.1rem;
}

.heartfelt-title {
  font-family: var(--font-cinzel);
  font-size: 1.05rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.06em;
  margin: 0;
}

.heartfelt-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold-primary), transparent);
  margin: 0 auto 14px auto;
}

.heartfelt-text {
  font-family: var(--font-garamond);
  font-size: 1.12rem;
  font-style: italic;
  color: #4D4440;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}

.heartfelt-signature {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 12px;
}

.sig-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #8C807A;
  text-transform: uppercase;
}

.sig-name {
  font-family: var(--font-cinzel);
  font-size: 0.96rem;
  font-weight: 800;
  color: #711D2B;
  letter-spacing: 0.04em;
}

/* =====================================================================
   SECTION 10: THANK YOU & GUIDANCE CONTACTS
   ===================================================================== */
.bg-thankyou-sec {
  width: 100%;
  padding-bottom: 40px;
}

.thankyou-main-heading {
  font-family: var(--font-script) !important;
  font-size: clamp(3.2rem, 11vw, 4.4rem) !important;
  color: #711D2B;
  margin-bottom: 4px !important;
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
}

.thankyou-lead-box {
  background: radial-gradient(circle at 50% 25%, #FFFDF9 0%, #FAF4E6 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 24px rgba(95, 6, 6, 0.07), 0 0 0 2px #FFFDF9, 0 0 0 4px rgba(212, 175, 55, 0.35);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 18px;
}

.thankyou-lead-text {
  font-family: var(--font-garamond);
  font-size: 1.15rem;
  font-style: italic;
  color: #4D4440;
  line-height: 1.6;
  margin-bottom: 16px;
}

.thankyou-lead-text strong {
  color: #711D2B;
  font-weight: 700;
}

.thankyou-host-sig {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 12px;
}

.thankyou-host-sig span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #8C807A;
  text-transform: uppercase;
}

.thankyou-host-sig strong {
  font-family: var(--font-cinzel);
  font-size: 1rem;
  font-weight: 800;
  color: #711D2B;
}

/* Guidance & Directions Card */
.guidance-directions-card {
  background: radial-gradient(circle at 50% 10%, #FFFDF9 0%, #FBF6ED 100%);
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 10px 30px rgba(95, 6, 6, 0.08), 0 0 0 2px #FFFDF9, 0 0 0 4px rgba(212, 175, 55, 0.4);
  margin-bottom: 22px;
}

.guidance-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guidance-icon {
  font-size: 1.4rem;
  color: #711D2B;
}

.guidance-title {
  font-family: var(--font-cinzel);
  font-size: 1.05rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.04em;
  margin: 0;
}

.guidance-sub {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: #695D58;
  line-height: 1.45;
  margin-bottom: 16px;
}

/* Dynamic Contacts List */
.thankyou-contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.thankyou-contact-card {
  display: flex;
  flex-wrap: wrap; /* buttons drop below the name on narrow phones instead of squeezing it */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.thankyou-contact-card:hover {
  transform: translateY(-2px);
  border-color: #B8860B;
  box-shadow: 0 6px 18px rgba(95, 6, 6, 0.09);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.contact-name {
  font-family: var(--font-cinzel);
  font-size: 0.88rem;
  font-weight: 800;
  color: #4A0E17;
  letter-spacing: 0.03em;
}

.contact-role {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: #711D2B;
  font-weight: 600;
}

.contact-phone-display {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #554D49;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

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

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;  /* labelled pill buttons ("Call", "WhatsApp"), not the old round icons */
  height: auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.contact-action-btn:hover {
  transform: translateY(-1.5px);
}

.contact-action-btn.btn-call {
  background: #FAF5EB;
  color: #711D2B;
  border: 1px solid rgba(113, 29, 43, 0.3);
}

.contact-action-btn.btn-call:hover {
  background: #711D2B;
  color: #FFFFFF;
}

.contact-action-btn.btn-whatsapp {
  background: linear-gradient(135deg, #1f6b45 0%, #154c30 100%);
  color: #FFFFFF;
  border: 1px solid #25D366;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.contact-action-btn.btn-whatsapp:hover {
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* Re-Seal Envelope Action Button */
.reclose-envelope-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #711D2B 0%, #4A0E17 100%);
  color: #F8E39D;
  border: 1.5px solid var(--c-gold-primary);
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(113, 29, 43, 0.3), 0 0 0 2px #FFFDF9, 0 0 0 3.5px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
}

.reclose-envelope-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(113, 29, 43, 0.45), 0 0 0 2px #FFFDF9, 0 0 0 4.5px rgba(212, 175, 55, 0.6);
}


/* Guest spotlight: "Invitation for 2 persons" */
.guest-persons-line {
  display: inline-block;
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A0E17;
  background: #F6E7B4;
  border: 1px solid var(--c-gold-primary);
  border-radius: 999px;
  padding: 5px 16px;
  margin: 8px auto 2px auto;
}
