/* ==========================================================================
   LUXURY WEDDING INVITATION - STYLESHEET (PHASE 2)
   Muhammed Shamnad & Fathima NafiYa
   Mobile-First, Elegant, Editorial, Lightweight
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Soft Ivory, Warm Cream, Champagne Gold & Deep Burgundy */
  --color-bg-primary: #F8F4EC;
  /* Soft Ivory */
  --color-bg-secondary: #EFE7DA;
  /* Warm Cream */
  --color-bg-card: #FFFFFF;
  --color-bg-glass: rgba(255, 255, 255, 0.88);

  --color-text-primary: #2D2926;
  /* Deep Charcoal */
  --color-text-secondary: #585047;
  /* Warm Slate */
  --color-text-muted: #84796D;
  /* Muted Taupe */
  --color-text-light: #F8F4EC;

  /* Champagne / Muted Gold */
  --color-accent-gold: #B89A68;
  --color-accent-gold-dark: #977B4E;
  --color-accent-gold-light: #DFCFA8;
  --color-gold-tint: rgba(184, 154, 104, 0.12);
  --color-gold-border: rgba(184, 154, 104, 0.35);
  --color-gold-border-subtle: rgba(184, 154, 104, 0.18);

  /* Deep Burgundy Accent (Inspired by Bride's Attire) */
  --color-burgundy: #8E1F32;
  --color-burgundy-dark: #701625;
  --color-burgundy-light: #A82C42;
  --color-burgundy-tint: rgba(142, 31, 50, 0.08);
  --color-burgundy-border: rgba(142, 31, 50, 0.22);

  /* Typography */
  --font-serif-title: 'Cinzel', Georgia, serif;
  --font-serif-name: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* Spacing */
  --section-padding-y: clamp(4.5rem, 9vw, 8rem);
  --section-padding-x: clamp(1.25rem, 5vw, 3rem);
  --container-max-width: 1040px;

  /* Elevation & Shadows */
  --shadow-subtle: 0 4px 20px rgba(45, 41, 38, 0.04);
  --shadow-card: 0 12px 35px -8px rgba(45, 41, 38, 0.08);
  --shadow-elevated: 0 22px 50px -10px rgba(45, 41, 38, 0.14);
  --shadow-gold-glow: 0 10px 30px rgba(184, 154, 104, 0.2);
  --shadow-artistic: 0 20px 45px rgba(45, 41, 38, 0.09);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-arch: 180px 180px 20px 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.25s ease;
  --transition-base: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Paper Texture & Soft Watercolor Ambience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(239, 231, 218, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(223, 207, 168, 0.25) 0%, transparent 45%),
    radial-gradient(var(--color-gold-border-subtle) 0.75px, transparent 0.75px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography Defaults */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif-title);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

p {
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   3. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
}

.section--alt {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-gold-border-subtle);
  border-bottom: 1px solid var(--color-gold-border-subtle);
  position: relative;
}

/* Very subtle Islamic geometric texture watermark (opacity ~0.04) */
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='none' stroke='%23B89A68' stroke-width='0.75' stroke-opacity='0.18'/%3E%3Cpath d='M30 10l20 20-20 20L10 30z' fill='none' stroke='%23B89A68' stroke-width='0.75' stroke-opacity='0.12'/%3E%3Ccircle cx='30' cy='30' r='3.5' fill='none' stroke='%23B89A68' stroke-width='0.75' stroke-opacity='0.15'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.section--alt>.container {
  position: relative;
  z-index: 1;
}

.section--interlude {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
}

.text-center {
  text-align: center;
}

/* Section Header Typography */
.section-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-accent-gold-dark);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-tagline--burgundy {
  color: var(--color-burgundy);
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.section-description {
  max-width: 580px;
  margin: 0 auto 2.5rem auto;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Ornamental Flourish & Section Divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem auto 2.5rem auto;
  color: var(--color-accent-gold);
  opacity: 0.85;
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  height: 1px;
  width: 36px;
  background: linear-gradient(to right, transparent, var(--color-gold-border));
}

.ornament-divider::after {
  background: linear-gradient(to left, transparent, var(--color-gold-border));
}

.ornament-divider img {
  width: 170px;
  height: auto;
  max-width: 75%;
}

/* --------------------------------------------------------------------------
   4. OPENING / WELCOME SCREEN (INTERACTIVE OVERLAY)
   -------------------------------------------------------------------------- */
.welcome-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  z-index: 9999;
  background-color: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  contain: paint;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-40px) scale(1.02);
  pointer-events: none;
}

/* Ambient Glow Orbs */
.welcome-screen-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.welcome-circle {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(60px);
  opacity: 0.35;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.welcome-circle--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--color-accent-gold-light), transparent 70%);
  top: -80px;
  right: -60px;
}

.welcome-circle--2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--color-burgundy-tint), transparent 70%);
  bottom: -60px;
  left: -40px;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(35px) scale(1.08);
  }
}

/* 3D Scene Wrapper */
.invitation-card-scene {
  perspective: 2000px;
  -webkit-perspective: 2000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: welcomeEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes welcomeEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* The 3D Invitation Card */
.invitation-card {
  position: relative;
  width: min(84vw, 360px);
  max-height: 68vh;
  aspect-ratio: 768 / 1024;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(22, 17, 16, 0.22),
    0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.35, 1);
}

/* Base inside page (revealed under the cover when flipped open to the left) */
.invitation-card-inside {
  position: absolute;
  inset: 0;
  background-color: #FAF6F0;
  border-radius: 8px;
  border: 1px solid var(--color-gold-border);
  box-shadow: inset 0 0 45px rgba(184, 150, 90, 0.12),
    inset 8px 0 16px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  overflow: hidden;
  z-index: 1;
}

.card-inside-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold-border-subtle);
  border-radius: 6px;
  padding: 1.25rem 1rem;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0%, rgba(250, 246, 240, 0.65) 100%);
}

.card-inside-seal {
  font-family: var(--font-serif-title);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--color-accent-gold-dark);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ornament-divider--inside {
  margin: 0.35rem 0 0.75rem;
  opacity: 0.7;
}

.ornament-divider--inside img {
  width: 75px;
  height: auto;
}

.card-inside-greeting {
  font-family: var(--font-serif-title);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.card-inside-sub {
  font-family: var(--font-serif-name);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--color-accent-gold-dark);
  margin-bottom: 0.85rem;
}

.card-inside-names {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  color: var(--color-burgundy);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.card-inside-date {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

/* 3D Rotating Cover Hinge (Opens to the LEFT) */
.invitation-card-flipper {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  -webkit-transform-origin: left center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.35, 1);
  border-radius: 8px;
  z-index: 2;
}

/* Front Cover (Contains the EXACT uploaded wedding card artwork) */
.invitation-card-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(0deg);
  background-color: #FAF6F0;
  box-shadow: inset 0 0 0 1px rgba(184, 150, 90, 0.2);
}

.invitation-card-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  pointer-events: none;
}

.card-lighting-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.32) 0%, rgba(255, 255, 255, 0.15) 40%, rgba(0, 0, 0, 0.12) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  mix-blend-mode: multiply;
}

/* Back Surface of the rotating cover */
.invitation-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: #FAF6F0;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--color-gold-border);
  box-shadow: inset -8px 0 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-surface {
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-inner-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold-border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-monogram {
  font-family: var(--font-serif-title);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: rgba(184, 150, 90, 0.45);
  font-weight: 500;
}

/* 3D Physical Opening States */
.welcome-screen.is-opening .invitation-card-flipper {
  transform: rotateY(-140deg);
  -webkit-transform: rotateY(-140deg);
}

.welcome-screen.is-opening .card-lighting-overlay {
  opacity: 0.35;
}

.welcome-screen.is-opening .invitation-card {
  transform: translateX(min(5vw, 22px));
}

/* Action Container & Button */
.invitation-action-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 5;
}

.welcome-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 2.35rem;
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: 1.5px solid var(--color-accent-gold);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(142, 31, 50, 0.32), 0 0 10px rgba(184, 150, 90, 0.18);
  transition: all var(--transition-base);
  min-height: 48px;
}

.welcome-open-btn:hover:not(:disabled),
.welcome-open-btn:focus-visible:not(:disabled) {
  background-color: var(--color-burgundy-dark);
  border-color: var(--color-accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(142, 31, 50, 0.42), 0 0 15px rgba(212, 175, 55, 0.32);
}

.welcome-open-btn:active:not(:disabled) {
  transform: translateY(0);
}

.welcome-open-btn:disabled {
  opacity: 0.75;
  cursor: default;
}

.open-btn-glyph {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.welcome-open-btn:hover .open-btn-glyph {
  transform: translateX(3px);
}

.welcome-open-btn.is-fading {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Luxury Button */
.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.25rem;
  background-color: var(--color-text-primary);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent-gold);
  box-shadow: 0 4px 15px rgba(45, 41, 38, 0.15);
  transition: var(--transition-base);
  min-height: 48px;
}

.btn-luxury:hover,
.btn-luxury:focus-visible {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy-light);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(142, 31, 50, 0.25);
  outline: none;
}

.btn-luxury-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.btn-luxury:hover .btn-luxury-icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. HERO COUPLE SECTION (PRIMARY WATERCOLOR ARTWORK)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}

/* Monogram: S & F Inside Delicate Double Concentric Gold Ring */
.hero-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--color-accent-gold);
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  position: relative;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-subtle);
}

.hero-monogram::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--color-accent-gold-light);
  border-radius: var(--radius-full);
}

.hero-monogram-text {
  font-family: var(--font-serif-name);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-burgundy);
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.hero-tagline-joy {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-gold-dark);
  margin-bottom: 2.25rem;
}

/* Primary Watercolor Artwork Frame (Breathing, Organic Edge Presentation) */
.hero-watercolor-wrapper {
  max-width: 440px;
  width: 100%;
  margin: 0 auto 2.5rem auto;
  position: relative;
  padding: 0 1rem;
}

.hero-watercolor-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(248, 244, 236, 0.8) 100%);
  padding: 10px;
  border: 1px solid var(--color-gold-border-subtle);
  box-shadow: var(--shadow-artistic);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-watercolor-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 10px);
  filter: drop-shadow(0 4px 16px rgba(45, 41, 38, 0.05));
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-watercolor-wrapper:hover .hero-watercolor-img {
  transform: scale(1.02);
}

/* Couple Names Typography Hierarchy */
.hero-names-block {
  margin-top: 1rem;
}

.hero-couple-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--font-serif-name);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
}

.hero-weds-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5.5vw, 3rem);
  color: var(--color-burgundy);
  display: block;
  margin: 0.15rem 0;
  font-weight: 400;
  line-height: 1;
}

.hero-invitation-line {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-gold-dark);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   6. WEDDING INVITATION MESSAGE SECTION
   -------------------------------------------------------------------------- */
.intro-quote-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold-border-subtle);
  box-shadow: var(--shadow-card);
  position: relative;
}

.intro-quote-icon {
  width: 36px;
  height: 36px;
  color: var(--color-burgundy);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.intro-quote-text {
  font-family: var(--font-serif-name);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.intro-quote-author {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-gold-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. DATE & COUNTDOWN SECTION
   -------------------------------------------------------------------------- */
.date-section {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  text-align: center;
}

.save-the-date-banner {
  margin-bottom: 2rem;
}

.date-display-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.date-day-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 0.25rem;
}

.date-number {
  font-family: var(--font-serif-name);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-primary);
}

.date-month-year {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Countdown Grid */
.countdown-container {
  max-width: 620px;
  margin: 0 auto;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 2.5vw, 1.25rem);
}

.countdown-box {
  background: var(--color-bg-card);
  padding: clamp(1rem, 3.5vw, 1.75rem) 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold-border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
  border-color: var(--color-accent-gold);
}

.countdown-number {
  font-family: var(--font-serif-name);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-primary);
  display: block;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-gold-dark);
  margin-top: 0.35rem;
}

.countdown-celebration {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent-gold);
  box-shadow: var(--shadow-card);
  font-family: var(--font-serif-name);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--color-burgundy);
}

/* --------------------------------------------------------------------------
   11. WEDDING EVENTS TIMELINE SECTION
   -------------------------------------------------------------------------- */
.events-timeline-container {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

/* Connected Timeline Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  position: relative;
}

@media (min-width: 768px) {
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  /* Connecting Horizontal Bridge on Desktop */
  .timeline-grid::before {
    content: "";
    position: absolute;
    top: 70px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    z-index: 1;
    pointer-events: none;
  }
}

@media (max-width: 767px) {

  /* Connecting Vertical Line on Mobile */
  .timeline-grid::before {
    content: "";
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-accent-gold), transparent);
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
  }
}

.timeline-event-card {
  width: 100%;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-card);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.25rem);
  position: relative;
  text-align: center;
  z-index: 2;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.timeline-event-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--color-gold-border-subtle);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* Event Badge & Node */
.event-node-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.event-number-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  background: var(--color-burgundy-tint);
  border: 1px solid var(--color-burgundy-border);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.timeline-event-card--reception .event-number-badge {
  color: var(--color-accent-gold-dark);
  background: var(--color-gold-tint);
  border-color: var(--color-gold-border);
}

.event-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-gold-border);
  color: var(--color-burgundy);
  box-shadow: var(--shadow-subtle);
}

.event-icon-badge svg,
.event-icon-badge img {
  width: 24px;
  height: 24px;
}

.event-title {
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.event-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.75rem 0 2rem 0;
  text-align: left;
}

.event-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold-border-subtle);
}

.event-info-icon {
  width: 20px;
  height: 20px;
  color: var(--color-burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}

.event-info-text strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.event-info-text span {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Outline Luxury Button (for Add to Calendar) */
.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  background-color: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-accent-gold);
  transition: var(--transition-base);
  min-height: 48px;
  width: 100%;
}

.btn-luxury-outline:hover,
.btn-luxury-outline:focus-visible {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 31, 50, 0.22);
  outline: none;
}

.btn-luxury-outline-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. VENUE SECTION (AT HOME - FAMILY RESIDENCE)
   -------------------------------------------------------------------------- */
.venue-home-container {
  max-width: 680px;
  margin: 0 auto;
}

.venue-home-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-accent-gold-light);
  box-shadow: var(--shadow-elevated), var(--shadow-gold-glow);
  padding: clamp(2.5rem, 7vw, 4.25rem) clamp(1.5rem, 6vw, 3.5rem);
  text-align: center;
}

.venue-home-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--color-gold-border-subtle);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.venue-home-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-gold-border);
  color: var(--color-burgundy);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.venue-home-icon-badge svg,
.venue-home-icon-badge img {
  width: 28px;
  height: 28px;
}

.venue-home-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 0.4rem;
}

.venue-home-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent-gold-dark);
  margin-bottom: 1rem;
}

.venue-home-name {
  font-family: var(--font-serif-name);
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.venue-home-date {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.venue-home-note {
  font-family: var(--font-serif-name);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 2.25rem;
}

/* Venue Action Button Container & View Location Button */
.venue-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

#venue-maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: 1px solid var(--color-burgundy);
  border-radius: var(--radius-full);
  padding: 0.95rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 48px;
  min-width: 220px;
  max-width: 280px;
  width: 100%;
  box-shadow: 0 4px 18px rgba(142, 31, 50, 0.28);
  transition: var(--transition-base);
  text-decoration: none;
}

#venue-maps-btn:hover,
#venue-maps-btn:focus-visible {
  background-color: var(--color-burgundy-dark);
  border-color: var(--color-burgundy-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(112, 22, 37, 0.38);
  outline: none;
}

#venue-maps-btn .btn-luxury-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

#venue-maps-btn:hover .btn-luxury-icon {
  transform: translateY(-2px) scale(1.1);
}

/* --------------------------------------------------------------------------
   13. RSVP SECTION (DIRECT ACCEPT / DECLINE)
   -------------------------------------------------------------------------- */
.rsvp-section {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background-color: var(--color-bg-primary);
}

.rsvp-header {
  margin-bottom: 2.25rem;
}

.rsvp-subtitle {
  font-family: var(--font-serif-name);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-style: italic;
  color: var(--color-text-secondary);
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
}

.rsvp-actions-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.rsvp-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Luxury RSVP Buttons */
.btn-rsvp {
  min-height: 54px;
  min-width: 240px;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Joyfully Accept Button: Luxury Burgundy with subtle champagne glow */
.btn-rsvp--accept {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: 1.5px solid var(--color-burgundy);
  box-shadow: 0 4px 18px rgba(142, 31, 50, 0.22);
}

.btn-rsvp--accept:hover:not(:disabled) {
  background-color: var(--color-burgundy-dark);
  border-color: var(--color-burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(142, 31, 50, 0.35);
}

.btn-rsvp--accept:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(142, 31, 50, 0.2);
}

/* Regretfully Decline Button: Warm cream/ivory with subtle gold outline */
.btn-rsvp--decline {
  background-color: #FFFFFF;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-gold-border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.btn-rsvp--decline:hover:not(:disabled) {
  background-color: var(--color-bg-primary);
  border-color: var(--color-accent-gold);
  color: var(--color-burgundy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 150, 90, 0.18);
}

.btn-rsvp--decline:active:not(:disabled) {
  transform: translateY(0);
}

/* Button States after submission */
.btn-rsvp:disabled {
  cursor: default;
  transform: none !important;
}

.btn-rsvp.is-completed {
  opacity: 0.95;
  box-shadow: none;
}

.btn-rsvp.is-completed-accept {
  background-color: #2D6A4F;
  border-color: #2D6A4F;
  color: #FFFFFF;
}

.btn-rsvp.is-completed-decline {
  background-color: #F4F1EA;
  border-color: var(--color-gold-border);
  color: var(--color-text-secondary);
}

.btn-rsvp.is-muted {
  opacity: 0.45;
  pointer-events: none;
}

/* Inline Error Banner */
.rsvp-error-banner {
  max-width: 440px;
  margin: 1.25rem auto 0;
  padding: 0.85rem 1.25rem;
  background-color: var(--color-burgundy-tint);
  border: 1px solid var(--color-burgundy-border);
  color: var(--color-burgundy);
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  text-align: center;
  animation: fadeInNotice 0.3s ease forwards;
}

@keyframes fadeInNotice {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   LUXURY MODALS (ACCEPT CELEBRATION, DECLINE, & ADMIN PANEL)
   ========================================================================== */
.luxury-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.luxury-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 17, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1001;
  animation: modalFadeIn 0.35s ease forwards;
}

.luxury-modal-dialog {
  position: relative;
  z-index: 1002;
  width: 100%;
  max-width: 520px;
  margin: auto;
  animation: modalPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.luxury-modal-card {
  background: #FFFFFF;
  border: 1.5px solid var(--color-gold-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(184, 150, 90, 0.15);
  padding: clamp(2rem, 6vw, 3.25rem) clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal-heart-icon {
  font-size: 2.25rem;
  color: var(--color-burgundy);
  line-height: 1;
  margin-bottom: 0.65rem;
  animation: softPulse 2s ease-in-out infinite;
}

@keyframes softPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

.luxury-modal-title {
  font-family: var(--font-serif-title);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--color-burgundy);
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.ornament-divider--modal {
  max-width: 130px;
  margin: 0.65rem auto 1.25rem;
}

.ornament-divider--modal img {
  height: 12px;
  opacity: 0.85;
}

.luxury-modal-body {
  font-family: var(--font-serif-name);
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.luxury-modal-signature {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-gold-border-subtle);
}

.modal-signature-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--color-accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.modal-signature-names {
  font-family: var(--font-serif-title);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  letter-spacing: 0.14em;
  color: var(--color-text-primary);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
}

.btn-luxury-modal-close {
  background: var(--color-burgundy);
  color: #FFFFFF;
  border: 1.5px solid var(--color-burgundy);
  padding: 0.8rem 2.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(142, 31, 50, 0.22);
}

.btn-luxury-modal-close:hover {
  background: var(--color-burgundy-dark);
  border-color: var(--color-burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(142, 31, 50, 0.32);
}

/* ==========================================================================
   CELEBRATION PARTICLES / CONFETTI (TASTEFUL LUXURY GOLD/HEART SYSTEM)
   ========================================================================== */
.celebration-particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.celebration-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  animation: particleFall linear forwards;
}

.celebration-particle--heart {
  border-radius: 0;
  font-size: 14px;
  color: var(--color-burgundy);
  animation: particleFloatHeart linear forwards;
}

@keyframes particleFall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(0.6);
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(380px) rotate(420deg) scale(1);
    opacity: 0;
  }
}

@keyframes particleFloatHeart {
  0% {
    transform: translateY(120px) scale(0.5);
    opacity: 0;
  }

  20% {
    opacity: 0.85;
  }

  100% {
    transform: translateY(-80px) scale(1.15) rotate(20deg);
    opacity: 0;
  }
}

/* ==========================================================================
   HIDDEN ADMIN MODALS & STATS PANEL
   ========================================================================== */
.admin-card {
  background: #FCFAF6;
  border: 1.5px solid var(--color-accent-gold);
  max-width: 480px;
  margin: 0 auto;
}

.admin-modal-close-x {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.35rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.admin-modal-close-x:hover {
  color: var(--color-burgundy);
}

.admin-pin-prompt {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.admin-pin-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.admin-pin-input {
  width: 200px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--color-text-primary);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.admin-pin-input:focus {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 3px rgba(142, 31, 50, 0.12);
}

.btn-admin-action {
  min-width: 170px;
  min-height: 46px;
  padding: 0.75rem 2rem;
  font-size: 0.8rem;
}

.admin-error-text {
  color: var(--color-burgundy);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.85rem;
}

/* Admin Statistics Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  text-align: center;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-gold-border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.stat-number {
  font-family: var(--font-serif-title);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.stat-number--accepted {
  color: var(--color-burgundy);
}

.stat-number--declined {
  color: #6C757D;
}

.stat-number--rate {
  color: #2D6A4F;
}

.admin-stats-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-admin-secondary {
  background: #FFFFFF;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-gold-border);
  padding: 0.8rem 1.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-admin-secondary:hover {
  background: var(--color-bg-primary);
  border-color: var(--color-accent-gold);
  color: var(--color-burgundy);
}

/* Reset Test Data Container & Button */
.admin-reset-container {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-gold-border-subtle);
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-admin-reset {
  background-color: #FDF9F7;
  color: var(--color-burgundy);
  border: 1.5px solid rgba(142, 31, 50, 0.4);
  padding: 0.65rem 1.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(142, 31, 50, 0.04);
}

.btn-admin-reset:hover {
  background-color: #F8EDED;
  border-color: var(--color-burgundy);
  color: var(--color-burgundy-dark);
  box-shadow: 0 4px 14px rgba(142, 31, 50, 0.14);
  transform: translateY(-1px);
}

.btn-admin-reset:active {
  transform: translateY(0);
}

.admin-feedback-msg {
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  animation: fadeInNotice 0.3s ease forwards;
  width: 100%;
}

.admin-feedback-msg--success {
  background-color: #EBF7EE;
  border: 1px solid #A5D6A7;
  color: #2E7D32;
}

.admin-feedback-msg--error {
  background-color: var(--color-burgundy-tint);
  border: 1px solid var(--color-burgundy-border);
  color: var(--color-burgundy);
}

.admin-feedback-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.admin-feedback-sub {
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.95;
}

#admin-reset-modal {
  z-index: 1050;
}

#admin-reset-modal .luxury-modal-backdrop {
  z-index: 1051;
  background: rgba(22, 17, 16, 0.65);
}

#admin-reset-modal .luxury-modal-dialog {
  z-index: 1052;
}

#admin-reset-modal .luxury-modal-card {
  background: #FFFFFF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(184, 150, 90, 0.2);
}

.admin-reset-desc {
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

.admin-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-admin-reset-confirm {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: 1.5px solid var(--color-burgundy);
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(142, 31, 50, 0.22);
}

.btn-admin-reset-confirm:hover:not(:disabled) {
  background-color: var(--color-burgundy-dark);
  border-color: var(--color-burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(142, 31, 50, 0.32);
}

.btn-admin-reset-confirm:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Modal Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .luxury-modal-backdrop,
  .luxury-modal-dialog,
  .modal-heart-icon,
  .celebration-particle {
    animation: none !important;
    transition: none !important;
  }

  .celebration-particles-canvas {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   14. CLOSING & FAMILY BLESSINGS SECTION
   -------------------------------------------------------------------------- */
.footer-section {
  text-align: center;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-gold-border-subtle);
}

.footer-quote {
  font-family: var(--font-serif-name);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

/* Family Blessings */
.family-section {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
  padding: 1.75rem 1.25rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold-border-subtle);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-subtle);
}

.family-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 1.25rem;
}

.family-names-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.family-name-item {
  font-family: var(--font-serif-name);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  color: var(--color-text-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.family-name-item:not(:last-child)::after {
  content: "•";
  margin-left: 1.25rem;
  color: var(--color-accent-gold);
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-names {
  font-family: var(--font-serif-name);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--color-burgundy);
  margin-bottom: 0.5rem;
}

/* Footer Closing Seal: S & N inside delicate circle + 06 DECEMBER 2026 */
.footer-seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto 1.5rem auto;
}

.footer-seal-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-card);
  position: relative;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 0.85rem;
}

.footer-seal-circle::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--color-accent-gold-light);
  border-radius: var(--radius-full);
}

.footer-seal-monogram {
  font-family: var(--font-serif-name);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-burgundy);
  letter-spacing: 0.05em;
}

.footer-seal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}

.footer-seal-day {
  font-family: var(--font-serif-name);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1;
}

.footer-seal-month {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-gold-dark);
  font-weight: 600;
  margin-top: 2px;
}

.footer-seal-year {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.footer-blessing {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   14. SHARE INVITATION SECTION
   -------------------------------------------------------------------------- */
.share-section {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background-color: var(--color-bg-primary);
}

.share-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--color-bg-card);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-card);
  position: relative;
  text-align: center;
}

.share-motif {
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.share-title {
  font-family: var(--font-serif-name);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.share-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  max-width: 460px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.6;
}

.share-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-luxury--whatsapp {
  background-color: #20432E;
  border-color: #386B49;
  color: #FFFFFF;
}

.btn-luxury--whatsapp:hover,
.btn-luxury--whatsapp:focus-visible {
  background-color: #172D1E;
  border-color: var(--color-accent-gold);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(32, 67, 46, 0.35);
}

/* Toast Notification (Copy fallback) */
.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text-primary);
  color: var(--color-text-light);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent-gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  z-index: 10000;
}

.share-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   14B. FLOATING BACKGROUND MUSIC CONTROL
   -------------------------------------------------------------------------- */
.music-control-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9500;
}

.btn-music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-primary);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  min-height: 44px;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-music-toggle:hover,
.btn-music-toggle:focus-visible {
  background-color: var(--color-bg-card);
  border-color: var(--color-accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated), var(--shadow-gold-glow);
  outline: none;
}

.btn-music-toggle[aria-pressed="true"] {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.music-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-gold);
}

.music-status-text {
  font-family: var(--font-sans);
}

/* --------------------------------------------------------------------------
   14C. SUBTLE AMBIENT PARTICLES
   -------------------------------------------------------------------------- */
.ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  contain: paint;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--color-accent-gold);
  border-radius: var(--radius-full);
  opacity: 0.28;
  filter: blur(0.5px);
  animation: floatDrift 22s ease-in-out infinite alternate;
}

.particle--1 {
  top: 20%;
  left: 12%;
  animation-duration: 18s;
}

.particle--2 {
  top: 45%;
  right: 14%;
  animation-duration: 24s;
  animation-delay: -6s;
  width: 6px;
  height: 6px;
}

.particle--3 {
  bottom: 25%;
  left: 20%;
  animation-duration: 20s;
  animation-delay: -11s;
}

.particle--4 {
  top: 30%;
  right: 18%;
  animation-duration: 22s;
}

.particle--5 {
  bottom: 30%;
  left: 15%;
  animation-duration: 26s;
  animation-delay: -8s;
  width: 4px;
  height: 4px;
}

@keyframes floatDrift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-22px) translateX(12px);
    opacity: 0.38;
  }

  100% {
    transform: translateY(16px) translateX(-10px);
    opacity: 0.16;
  }
}

/* --------------------------------------------------------------------------
   15. SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  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: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Artistic Image Reveals: Opacity + Subtle Scale from 0.97 to 1 */
.reveal-scale {
  opacity: 0;
  transform: scale(0.97) translateY(20px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger Delays */
.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* --------------------------------------------------------------------------
   16. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .welcome-circle {
    animation: none;
  }

  .reveal-on-scroll,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINT REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --section-padding-x: 1.15rem;
  }

  .hero-watercolor-wrapper {
    padding: 0 0.5rem;
    max-width: 360px;
  }

  .countdown-grid {
    gap: 0.5rem;
  }

  .countdown-number {
    font-size: 1.6rem;
  }

  .countdown-label {
    font-size: 0.6rem;
  }

  .share-actions-group .btn-luxury {
    width: 100%;
    max-width: 290px;
  }

  .music-control-container {
    bottom: 16px;
    right: 16px;
  }

  .rsvp-buttons-group {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .btn-rsvp {
    width: 100%;
    max-width: 320px;
    min-height: 52px;
  }
}

/* Extra Small Mobile (360px and down) */
@media (max-width: 360px) {
  :root {
    --section-padding-x: 1rem;
  }

  .hero-watercolor-wrapper {
    max-width: 310px;
  }

  .countdown-grid {
    gap: 0.35rem;
  }

  .countdown-number {
    font-size: 1.45rem;
  }

  .countdown-label {
    font-size: 0.58rem;
  }
}