/* ==========================================================================
   HansSanctuary - Royal-Sanctuary Stylesheet
   Stand-alone unified CSS bundle
   ========================================================================== */

/* 1. RESET & BASE */
/* ==========================================================================
   HansSanctuary - CSS Reset & Base Optimizations
   Prevents CLS, sets up responsive viewport and box-sizing
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--desktop-bg);
  background-image: var(--desktop-flower-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden; /* Locked until envelope opened */
}

body.invitation-opened {
  overflow-y: auto;
}

/* Image Optimization & Zero CLS Guarantee */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  content-visibility: auto;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* 2. BASE VARIABLES */
/* ==========================================================================
   HansSanctuary - Design Tokens & Variables
   Optimized for High Performance Mobile-First Digital Invitations
   ========================================================================== */

:root {
  /* Color Palette - Luxury Champagne & Warm Ivory */
  --color-primary: #C5A880;          /* Champagne Gold */
  --color-primary-light: #EADBC8;    /* Soft Gold Tint */
  --color-primary-dark: #8C6D42;     /* Antique Gold */
  --color-primary-deep: #5A4325;     /* Deep Bronze */
  
  --color-bg-main: #FBF9F5;          /* Warm Ivory Background */
  --color-bg-card: rgba(255, 255, 255, 0.85); /* Frosted Glass */
  --color-bg-alt: #F3EFEA;           /* Sandstone Section Background */
  --color-surface: #FFFFFF;
  
  --color-text-main: #2C2C2C;        /* Charcoal for readability */
  --color-text-muted: #6B6864;       /* Elegant muted slate */
  --color-text-gold: #967548;        /* Contrast Gold Text */
  --color-border: rgba(197, 168, 128, 0.3);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-title: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Great Vibes', cursive, serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(35, 25, 15, 0.05);
  --shadow-md: 0 8px 24px rgba(35, 25, 15, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 25, 15, 0.12);
  --shadow-gold: 0 4px 20px rgba(197, 168, 128, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Spacing & Desktop Presentation */
  --container-max-width: 480px;      /* Optimal Mobile/Tablet Screen Width */
  --desktop-bg: #F8F5EE;             /* Clean ivory & gold desktop backdrop */
  --desktop-flower-bg: url('bg-floral-royal.svg');
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



/* 3. ANIMATIONS & REVEALS */
/* ==========================================================================
   HansSanctuary - Scroll Reveal & Keyframe Animations
   Pure CSS hardware-accelerated transitions (Transform & Opacity only)
   60fps performance on mobile devices with zero layout recalculations
   ========================================================================== */

/* Base Reveal Attribute */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Specific Reveal Directions */
[data-reveal="fade-in"] {
  transform: none;
}

[data-reveal="slide-up"] {
  transform: translate3d(0, 36px, 0);
}

[data-reveal="slide-down"] {
  transform: translate3d(0, -36px, 0);
}

[data-reveal="slide-left"] {
  transform: translate3d(40px, 0, 0);
}

[data-reveal="slide-right"] {
  transform: translate3d(-40px, 0, 0);
}

[data-reveal="zoom-in"] {
  transform: scale(0.92);
}

/* Active State applied via IntersectionObserver */
[data-reveal].is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Transition Delays for Staggered Effects */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }
[data-delay="800"] { transition-delay: 800ms; }

/* --------------------------------------------------------------------------
   Floating Petals & Sparkle Dust (Pure CSS Animation)
   -------------------------------------------------------------------------- */
.petals-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.petal {
  position: absolute;
  top: -24px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 235, 238, 0.92) 0%, rgba(245, 205, 205, 0.78) 50%, rgba(197, 168, 128, 0.45) 90%);
  border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(197, 168, 128, 0.18);
  animation: fall linear infinite;
  will-change: transform;
}

.petal:nth-child(1) { left: 10%; width: 14px; height: 16px; animation-duration: 9s; animation-delay: 0s; }
.petal:nth-child(2) { left: 25%; width: 10px; height: 12px; animation-duration: 12s; animation-delay: 2s; }
.petal:nth-child(3) { left: 45%; width: 16px; height: 18px; animation-duration: 8s; animation-delay: 4s; }
.petal:nth-child(4) { left: 65%; width: 12px; height: 14px; animation-duration: 11s; animation-delay: 1s; }
.petal:nth-child(5) { left: 80%; width: 15px; height: 17px; animation-duration: 10s; animation-delay: 3s; }
.petal:nth-child(6) { left: 90%; width: 11px; height: 13px; animation-duration: 13s; animation-delay: 5s; }

@keyframes fall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg) rotateY(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.88;
  }
  50% {
    transform: translate3d(30px, 50vh, 0) rotate(180deg) rotateY(180deg);
    opacity: 0.82;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(60px, 105vh, 0) rotate(360deg) rotateY(360deg);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Ambient Romantic Float & Shimmer Effects
   -------------------------------------------------------------------------- */
@keyframes romanticFloatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-portrait-wrap.is-revealed {
  animation: romanticFloatSlow 6s ease-in-out infinite;
}

.couple-photo-wrap {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.couple-card:hover .couple-photo-wrap {
  transform: translateY(-4px) scale(1.02);
}

@keyframes goldGlintSweep {
  0% { transform: translateX(-150%) rotate(25deg); }
  25%, 100% { transform: translateX(180%) rotate(25deg); }
}

.event-card, .bank-card, .rsvp-card {
  position: relative;
  overflow: hidden;
}

.event-card::after, .bank-card::after, .rsvp-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(212, 175, 55, 0.08) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: goldGlintSweep 8s ease-in-out infinite;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Spinning Vinyl Animation for Audio Player
   -------------------------------------------------------------------------- */
@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.is-spinning {
  animation: spinVinyl 6s linear infinite;
}

/* Sound Waves Pulsing Effect */
@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.8; }
}

.wave-pulse {
  animation: pulseWave 2s infinite ease-in-out;
}

/* Accessibility: Reduce motion if preferred */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .petal {
    display: none !important;
  }
  .is-spinning {
    animation: none !important;
  }
}



/* 4. ENVELOPE & COVER OVERLAY */
/* ==========================================================================
   HansSanctuary - Envelope Cover Component
   High-performance 3D envelope opening transition with pure CSS transforms
   ========================================================================== */

.envelope-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--desktop-bg);
  background-image: var(--desktop-flower-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 1s ease;
  overflow: hidden;
  will-change: transform, opacity;
}

/* Ambient glow particles behind envelope */
.envelope-overlay::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.envelope-wrapper {
  position: relative;
  width: 92%;
  max-width: 380px;
  max-height: 94vh;
  max-height: 94dvh;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The Envelope Container (Paskan 1 Layar HP) */
.envelope {
  position: relative;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  background: linear-gradient(145deg, #FFFFFF 0%, #FAF8F3 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 45px rgba(197, 168, 128, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.35);
  padding: 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Corner filigree decorations */
.envelope-corner {
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
  opacity: 0.55;
}
.corner-tl { top: 8px; left: 8px; }
.corner-tr { top: 8px; right: 8px; transform: rotate(90deg); }
.corner-bl { bottom: 8px; left: 8px; transform: rotate(270deg); }
.corner-br { bottom: 8px; right: 8px; transform: rotate(180deg); }

/* Envelope Flap 3D Simulation (Header Flap Rapi & Elegan) */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background: linear-gradient(180deg, #E5DCB0 0%, #D8CEBD 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12));
}

/* Wax Seal Centered (Denyut Pendaran Emas Romantis di Atas Konten) */
.envelope-wax-seal {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: 48px;
  height: 48px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  filter: drop-shadow(0 4px 10px rgba(80, 50, 20, 0.4));
  animation: waxSealBreath 3.5s ease-in-out infinite;
}

@keyframes waxSealBreath {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 4px 10px rgba(80, 50, 20, 0.4));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.65));
  }
}

/* Kilauan Stardust Emas pada Amplop */
.envelope-sparkle {
  position: absolute;
  background: radial-gradient(circle, #FFFFFF 0%, #FFEAA7 40%, #D4AF37 80%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleTwinkle ease-in-out infinite alternate;
}

.envelope-sparkle.es1 { top: 20%; left: 18%; width: 6px; height: 6px; animation-duration: 2.2s; animation-delay: 0.2s; }
.envelope-sparkle.es2 { top: 32%; right: 20%; width: 8px; height: 8px; animation-duration: 3s; animation-delay: 1.1s; }
.envelope-sparkle.es3 { top: 72%; left: 22%; width: 5px; height: 5px; animation-duration: 2.6s; animation-delay: 0.7s; }
.envelope-sparkle.es4 { top: 82%; right: 25%; width: 7px; height: 7px; animation-duration: 3.4s; animation-delay: 1.6s; }

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.65) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.2) rotate(90deg);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.85));
  }
}

/* Content inside the envelope invitation card (Tidak Tertutup Lipatan/Seal) */
.envelope-content {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px; /* Ruang aman eksklusif: nama pengantin 100% bebas terlihat tanpa terhalang */
}

.envelope-badge {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.envelope-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: 6px;
  font-weight: 700;
}

.envelope-subtitle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.envelope-recipient {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  width: 100%;
  max-width: 290px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.1);
}

.recipient-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.recipient-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  word-break: break-word;
}

.recipient-note {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  font-style: italic;
}

/* Open Invitation CTA Button (Simetris & Proporsional di HP) */
.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 250px;
  min-height: 46px;
  background: linear-gradient(135deg, #C5A880 0%, #A68453 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(166, 132, 83, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: invitePulse 3.2s ease-in-out infinite;
}

@keyframes invitePulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(166, 132, 83, 0.35);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.55);
  }
}

.btn-open-invitation:hover,
.btn-open-invitation:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 25px rgba(166, 132, 83, 0.45);
}

.btn-open-invitation:active {
  transform: translateY(1px) scale(0.98);
}

/* Subtle shine animation on the button */
.btn-open-invitation::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(25deg);
  animation: shineButton 3.5s infinite;
}

@keyframes shineButton {
  0% { transform: translateX(-100%) rotate(25deg); }
  25%, 100% { transform: translateX(100%) rotate(25deg); }
}

/* OPENING STATE ANIMATIONS */
.envelope-overlay.is-opening .envelope-flap {
  transform: rotateX(-180deg);
}

.envelope-overlay.is-opening .envelope-wax-seal {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
}

.envelope-overlay.is-opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}



/* 5. LAYOUT & DESKTOP SCREEN CONTAINER */
/* ==========================================================================
   HansSanctuary - Layout & Typography (Mobile-First)
   Optimized for high visual appeal on smartphones with elegant desktop wrapper
   ========================================================================== */

/* Outer Desktop Frame: Centered mobile screen simulation on desktop */
.app-container,
.invitation-container {
  width: 100%;
  max-width: var(--container-max-width, 480px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg-main, #FFFFFF);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow-x: hidden;
}

/* Common Section Styling */
.section {
  position: relative;
  padding: 64px 24px;
  text-align: center;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Ornamental SVG Dividers */
.ornament-divider {
  display: block;
  width: 180px;
  height: 24px;
  margin: 12px auto 0 auto;
}

.ornament-header {
  display: block;
  width: 200px;
  height: 50px;
  margin: 0 auto 12px auto;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  background: radial-gradient(circle at 50% 30%, #FFFDF9 0%, #F5EFE6 100%);
  overflow: hidden;
}

.hero-portrait-wrap {
  position: relative;
  width: 240px;
  height: 320px;
  margin: 0 auto 28px;
}

.hero-portrait-frame {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  z-index: 3;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 120px 120px 16px 16px; /* Arched luxury shape */
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}

.hero-pretitle {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-couple-names {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-text-main);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-couple-names span {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-primary);
  display: inline-block;
  margin: 0 4px;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-deep);
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Quote / Verse Section
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 16px;
}

.quote-source {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Couple Section (Groom & Bride)
   -------------------------------------------------------------------------- */
.couple-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.couple-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-photo-wrap {
  position: relative;
  width: 180px;
  height: 220px;
  margin-bottom: 20px;
}

.couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 90px 90px 12px 12px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 9 / 11;
  border: 2px solid var(--color-primary-light);
}

.couple-frame {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
}

.couple-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.couple-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.couple-parents {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.couple-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-primary-deep);
  padding: 6px 14px;
  background: rgba(197, 168, 128, 0.12);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background var(--transition-fast);
}

.couple-social:hover {
  background: rgba(197, 168, 128, 0.25);
}

/* Lottie Center Divider */
.lottie-ring-container {
  width: 140px;
  height: 140px;
  margin: -10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Events Section (Akad & Resepsi)
   -------------------------------------------------------------------------- */
.event-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.event-type {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: 16px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.event-venue-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}

.event-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: linear-gradient(135deg, #C5A880 0%, #A68453 100%);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(166, 132, 83, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(166, 132, 83, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: var(--color-primary-deep);
  border: 1.5px solid var(--color-primary);
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
  box-sizing: border-box;
}

.btn-outline:hover {
  background: rgba(197, 168, 128, 0.1);
}

/* --------------------------------------------------------------------------
   Love Story Timeline Section
   -------------------------------------------------------------------------- */
.story-timeline {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-primary-light);
  transform: translateX(-50%);
}

.story-item {
  position: relative;
  margin-bottom: 36px;
}

.story-dot {
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--color-primary-light);
  border-radius: 50%;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}

.story-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.story-year {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.story-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
}

.story-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Gallery Section (Zero CLS Grid)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: var(--color-bg-alt);
  aspect-ratio: 1 / 1;
}

.gallery-item:nth-child(3n + 1) {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Footer & Closing Section
   -------------------------------------------------------------------------- */
.closing-section {
  padding-bottom: 100px; /* Room for floating controls */
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-credits {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}



/* 6. COMPONENTS (ATM DEBIT CARDS, COUNTDOWN, RSVP, AUDIO, LIGHTBOX) */
/* ==========================================================================
   HansSanctuary - Components (Floating Audio, Countdown, RSVP, Gift, Lightbox)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Audio Player Component
   -------------------------------------------------------------------------- */
.floating-audio {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 16px rgba(197, 168, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--color-primary-dark);
}

.audio-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
}

.audio-disc-icon {
  width: 48px;
  height: 48px;
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}

.audio-status-icon {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  color: var(--color-primary-deep);
}

/* Ripple wave pulse when playing */
.audio-btn.is-playing::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: audioPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes audioPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* --------------------------------------------------------------------------
   2. Countdown Timer Component
   -------------------------------------------------------------------------- */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 380px;
  margin: 24px auto 0;
}

.countdown-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.countdown-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. Wedding Gift / Amplop Digital & Realistic ATM Debit Cards
   Aspect Ratio: ISO/IEC 7810 ID-1 (1.586 : 1)
   -------------------------------------------------------------------------- */
.gift-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.gift-bank-logo {
  height: 34px;
  margin: 0 auto 14px;
}

.gift-account-number {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.gift-account-holder {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  min-height: 42px;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(197, 168, 128, 0.15);
  color: var(--color-primary-deep);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  cursor: pointer;
  border: 1px solid rgba(197, 168, 128, 0.4);
}

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

.qris-preview {
  width: 170px;
  height: 170px;
  margin: 12px auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* Realistic Physical ATM / Debit Card Container */
.atm-card-wrapper {
  max-width: 380px;
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.atm-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 16px;
  padding: 18px 22px;
  box-sizing: border-box;
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  user-select: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.atm-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 
    0 24px 46px rgba(0, 0, 0, 0.36),
    0 6px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

/* Metallic holographic shine refraction overlay */
.atm-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.12) 46%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.12) 54%,
    transparent 64%
  );
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.65s ease;
}

.atm-card:hover::before {
  transform: rotate(-15deg) translateY(12%);
}

/* Guilloche fine security curves overlay */
.atm-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* 1. BCA Paspor Platinum / Blue Design */
.atm-card.bca {
  background: 
    radial-gradient(ellipse at 85% 15%, rgba(0, 163, 255, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(0, 43, 91, 0.9) 0%, transparent 65%),
    linear-gradient(135deg, #061c38 0%, #004b93 42%, #002855 80%, #001229 100%);
}

/* 2. Bank Mandiri Debit Gold / Navy Design */
.atm-card.mandiri {
  background: 
    radial-gradient(ellipse at 90% 75%, rgba(251, 133, 0, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 25%, rgba(255, 183, 3, 0.22) 0%, transparent 50%),
    linear-gradient(135deg, #09172c 0%, #132a4e 44%, #0b1a30 78%, #040a14 100%);
}

.atm-card.mandiri .mandiri-bg-swoosh {
  position: absolute;
  right: -30px;
  top: -20px;
  width: 220px;
  height: 240px;
  background: radial-gradient(circle at 70% 30%, rgba(255, 183, 3, 0.28) 0%, rgba(251, 133, 0, 0.14) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Inner Layers */
.atm-card-header,
.atm-card-number,
.atm-card-footer {
  position: relative;
  z-index: 3;
}

/* Card Header */
.atm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.atm-chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.atm-chip {
  width: 44px;
  height: 35px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: block;
}

.atm-contactless {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  display: block;
}

.atm-bank-logo {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  display: block;
}

/* Card Number: 3D Embossed Font */
.atm-card-number {
  font-family: 'OCR A Extended', 'Courier New', Courier, monospace;
  font-size: clamp(1.05rem, 4.4vw, 1.28rem);
  font-weight: 700;
  letter-spacing: clamp(1.8px, 0.8vw, 3px);
  color: #FFFFFF;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 -1px 0.5px rgba(255, 255, 255, 0.6),
    1px 0 1px rgba(0, 0, 0, 0.8);
  margin: 8px 0 6px;
  display: flex;
  justify-content: space-between;
}

/* Card Footer */
.atm-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.atm-holder-wrap {
  display: flex;
  flex-direction: column;
}

.atm-card-validity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.atm-valid-label {
  font-size: 0.5rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.atm-valid-date {
  font-family: 'OCR A Extended', 'Courier New', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

.atm-card-holder {
  font-family: 'OCR A Extended', 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 -0.5px 0.5px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.atm-network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atm-network-logo {
  height: 24px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: block;
}

.atm-debit-text {
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 1px;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Action button underneath ATM Card */
.btn-atm-copy {
  margin-top: 10px;
  width: 100%;
  max-width: 380px;
}

/* --------------------------------------------------------------------------
   4. RSVP & Wishes Form
   -------------------------------------------------------------------------- */
.rsvp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: var(--radius-sm);
  background: #FFFDFB;
  color: var(--color-text-main);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Radio Group for Attendance (Simetris di HP) */
.radio-group {
  display: flex;
  gap: 6px;
  width: 100%;
}

.radio-label {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  background: #FFFDFB;
  transition: all var(--transition-fast);
  text-align: center;
  box-sizing: border-box;
}

.radio-label input {
  display: none;
}

.radio-label:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.wishes-list {
  margin-top: 28px;
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.wish-item {
  background: #FAF7F2;
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
}

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

.wish-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary-deep);
}

.wish-status-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(197, 168, 128, 0.2);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.wish-text {
  font-size: 0.82rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. Toast Notification System
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2C2825;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  border: 1px solid rgba(197, 168, 128, 0.4);
}

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

/* --------------------------------------------------------------------------
   6. Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 12, 10, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}



/* 7. THEME-SPECIFIC CUSTOMIZATIONS: Royal-Sanctuary */
:root {
      --color-primary: #C5A880;          /* Royal Champagne Gold */
      --color-primary-light: #F4E8D6;    /* Soft Imperial Tint */
      --color-primary-dark: #8C6D42;     /* Antique 24k Gold */
      --color-primary-deep: #5A4325;     /* Deep Bronze Gold */
      
      --color-bg-main: #FFFFFF;          /* Pure White */
      --color-bg-card: rgba(255, 255, 255, 0.95);
      --color-bg-alt: #FDFBF7;           /* Pearl Ivory */
      --color-surface: #FFFFFF;
      
      --color-text-main: #1F2226;
      --color-text-muted: #555961;
      --color-text-gold: #9C7A48;
      --color-border: rgba(212, 175, 55, 0.32);
      
      --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
      --desktop-bg: #F8F5EE;
      --desktop-flower-bg: url('farhan-hannah/bg-floral-royal.svg');
    }

    .envelope-overlay::before {
      background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%) !important;
    }

    .envelope {
      background: linear-gradient(145deg, #FFFFFF 0%, #FAF8F3 100%) !important;
      border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
      box-shadow: 0 16px 45px rgba(197, 168, 128, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.4) !important;
    }

    .envelope-flap {
      background: linear-gradient(180deg, #E5DCB0 0%, #D8CEBD 100%) !important;
      border-bottom: 2px solid #D4AF37;
    }

    .envelope-wax-seal {
      filter: drop-shadow(0 6px 14px rgba(80, 50, 20, 0.45)) !important;
    }

    .btn-open-invitation {
      background: linear-gradient(135deg, #D4AF37 0%, #9C7A48 100%) !important;
      box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
    }

    /* Falling Royal Gold Leaves & Champagne Petals */
    .petal.gold-leaf {
      background: radial-gradient(circle at 35% 35%, #FFF2CC 0%, #D4AF37 55%, #9C7A48 100%) !important;
      border-radius: 80% 0 55% 50% / 55% 0 80% 50% !important;
      box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
    }

    .petal.champagne {
      background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #FAF3E6 55%, rgba(212, 175, 55, 0.4) 100%) !important;
      border-radius: 80% 0 55% 50% / 55% 0 80% 50% !important;
    }

    .btn-primary {
      background: linear-gradient(135deg, #D4AF37 0%, #9C7A48 100%) !important;
      box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35) !important;
    }

    .btn-outline {
      border-color: #D4AF37 !important;
      color: #9C7A48 !important;
    }

    .hero-section {
      background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #FAF7F0 100%) !important;
    }

    .royal-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 18px;
      background: #FFFFFF;
      border: 1px solid var(--color-border);
      border-radius: 9999px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--color-primary-dark);
      margin-bottom: 12px;
      box-shadow: 0 2px 10px rgba(212, 175, 55, 0.18);
    }

    /* Anti-FOUC & Elegant Screen Preloader */
    body.is-loading > *:not(#app-preloader) {
      opacity: 0 !important;
      visibility: hidden !important;
    }
    body > *:not(#app-preloader) {
      transition: opacity 0.45s ease-out;
    }
    #app-preloader {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100vh;
      height: 100dvh;
      background: #FFFFFF;
      z-index: 99999999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
    }
    #app-preloader.is-hidden {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }
    .preloader-brand {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      text-align: center;
    }
    .preloader-logo {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      object-fit: contain;
      animation: preloaderPulse 1.8s ease-in-out infinite alternate;
    }
    .preloader-spinner {
      width: 32px;
      height: 32px;
      border: 2.5px solid rgba(212, 175, 55, 0.25);
      border-top-color: #D4AF37;
      border-radius: 50%;
      animation: preloaderSpin 0.85s linear infinite;
    }
    .preloader-text {
      font-family: 'Cinzel', serif, system-ui;
      font-size: 0.8rem;
      letter-spacing: 2.5px;
      color: #9C7A48;
      text-transform: uppercase;
      font-weight: 600;
    }
    @keyframes preloaderSpin {
      to { transform: rotate(360deg); }
    }
    @keyframes preloaderPulse {
      0% { transform: scale(0.95); opacity: 0.85; }
      100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.35)); }
    }
