/* ==========================================================================
   CONSTANCE & ONYEKACHI WEDDING - LUXURY 3D INVITATION EXPERIENCE
   Theme: Royal Emerald, Champagne Gold, Burnt Orange, Burgundy
   ========================================================================== */

:root {
  /* Core Wedding Palette from Invitation */
  --emerald-primary: #043927;
  --emerald-deep: #022419;
  --emerald-rich: #094d36;
  --emerald-light: #16684b;
  --emerald-glow: rgba(9, 77, 54, 0.4);
  
  --gold-champagne: #e5c378;
  --gold-primary: #d4af37;
  --gold-bright: #f7e2a9;
  --gold-dark: #aa8222;
  --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  --gold-shimmer: linear-gradient(90deg, #aa771c 0%, #fcf6ba 50%, #aa771c 100%);
  --gold-border: linear-gradient(135deg, rgba(229, 195, 120, 0.9) 0%, rgba(170, 119, 28, 0.4) 50%, rgba(252, 246, 186, 0.9) 100%);

  --burnt-orange: #c05820;
  --burnt-orange-glow: rgba(192, 88, 32, 0.35);

  --burgundy: #6b1426;
  --burgundy-deep: #470c18;
  --burgundy-glow: rgba(107, 20, 38, 0.35);

  --ivory-white: #faf8f2;
  --pearl-white: #ffffff;
  --text-dark: #1b2621;
  --text-muted: #53645b;
  --text-gold: #e5c378;

  /* Typography */
  --font-script: 'Great Vibes', cursive;
  --font-serif-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-serif-royal: 'Cinzel', serif;
  --font-serif-body: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  /* Elevations & Shadows */
  --shadow-gold: 0 10px 30px -5px rgba(212, 175, 55, 0.3);
  --shadow-emerald: 0 20px 40px -10px rgba(2, 36, 25, 0.6);
  --shadow-deep: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
  --glass-bg: rgba(4, 57, 39, 0.65);
  --glass-card: rgba(255, 255, 255, 0.92);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--emerald-deep);
  color: var(--ivory-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 10%, #0a4f37 0%, #043927 45%, #021a12 100%);
  background-attachment: fixed;
  color: var(--ivory-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--emerald-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--gold-dark), var(--gold-champagne), var(--gold-dark));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

/* 3D WEBGL BACKGROUND CANVAS */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* FLOATING AUDIO CONTROLLER */
.audio-controller {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(4, 57, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 195, 120, 0.4);
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(229, 195, 120, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.audio-controller:hover {
  border-color: var(--gold-champagne);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 195, 120, 0.4);
  transform: translateY(-2px);
}

.audio-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-champagne);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.audio-bar {
  width: 3px;
  background: var(--gold-champagne);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-playing .audio-bar:nth-child(1) { animation: soundBar 0.8s ease-in-out infinite alternate; }
.audio-playing .audio-bar:nth-child(2) { animation: soundBar 1.1s ease-in-out infinite alternate 0.2s; }
.audio-playing .audio-bar:nth-child(3) { animation: soundBar 0.6s ease-in-out infinite alternate 0.4s; }
.audio-playing .audio-bar:nth-child(4) { animation: soundBar 0.9s ease-in-out infinite alternate 0.1s; }

@keyframes soundBar {
  0% { height: 4px; }
  100% { height: 16px; }
}

.audio-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-champagne);
  font-weight: 600;
}

/* ==========================================================================
   ROYAL NAVIGATION BAR & MOBILE DRAWER (UPGRADED)
   ========================================================================== */
.royal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 120;
  background: rgba(2, 32, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 195, 120, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.royal-nav.scrolled {
  background: rgba(1, 20, 14, 0.96);
  border-bottom-color: rgba(229, 195, 120, 0.55);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 195, 120, 0.15);
}

/* Hairline Scroll Progress Bar */
.nav-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(229, 195, 120, 0.7);
  transition: width 0.1s linear;
  z-index: 10;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: padding 0.3s ease;
}

.royal-nav.scrolled .nav-container {
  padding: 8px 24px;
}

/* Couple Brand & Monogram */
.nav-monogram {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.monogram-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-royal);
  font-weight: 800;
  font-size: 0.95rem;
  background: radial-gradient(circle, #0b593f, #022419);
  color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(229, 195, 120, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-monogram:hover .monogram-badge {
  transform: scale(1.06) rotate(6deg);
  box-shadow: 0 0 20px rgba(229, 195, 120, 0.6);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.monogram-text {
  font-family: var(--font-serif-royal);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  line-height: 1.2;
}

.nav-date-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: rgba(229, 195, 120, 0.85);
  text-transform: uppercase;
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-item {
  display: block;
  text-decoration: none;
  color: rgba(250, 248, 242, 0.82);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav-item:hover {
  color: var(--gold-bright);
  background: rgba(229, 195, 120, 0.1);
  border-color: rgba(229, 195, 120, 0.25);
  transform: translateY(-1px);
}

.nav-item.active {
  color: var(--gold-bright) !important;
  font-weight: 700;
  background: rgba(229, 195, 120, 0.18);
  border-color: rgba(229, 195, 120, 0.45);
  box-shadow: 0 2px 10px rgba(229, 195, 120, 0.2);
  text-shadow: 0 0 8px rgba(229, 195, 120, 0.5);
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  background: var(--gold-gradient);
  color: var(--emerald-deep) !important;
  font-family: var(--font-serif-royal);
  font-weight: 700 !important;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px !important;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6) !important;
}

/* Animated Hamburger Button */
.mobile-nav-toggle {
  display: none;
  background: rgba(229, 195, 120, 0.12);
  border: 1px solid rgba(229, 195, 120, 0.35);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(229, 195, 120, 0.22);
  border-color: var(--gold-champagne);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-champagne);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-Out Drawer & Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #042d1f 0%, #021a11 100%);
  border-left: 1.5px solid rgba(229, 195, 120, 0.4);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 195, 120, 0.25);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monogram-badge.small {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
}

.drawer-title {
  font-family: var(--font-serif-royal);
  font-size: 0.88rem;
  color: var(--gold-bright);
  letter-spacing: 1px;
}

.drawer-subtitle {
  font-size: 0.68rem;
  color: rgba(250, 248, 242, 0.7);
  letter-spacing: 0.5px;
}

.drawer-close-btn {
  background: none;
  border: 1px solid rgba(229, 195, 120, 0.3);
  color: var(--gold-bright);
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(229, 195, 120, 0.2);
  transform: rotate(90deg);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: rgba(250, 248, 242, 0.85);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.mobile-link svg {
  width: 18px;
  height: 18px;
  color: var(--gold-champagne);
  flex-shrink: 0;
}

.mobile-link:hover, .mobile-link.active {
  background: rgba(229, 195, 120, 0.15);
  border-color: rgba(229, 195, 120, 0.35);
  color: var(--gold-bright);
  transform: translateX(4px);
}

.drawer-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(229, 195, 120, 0.2);
  padding-top: 18px;
}

.drawer-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease;
}

.drawer-whatsapp-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   INITIAL 3D ENVELOPE MODAL / UNSEALING CEREMONY
   ========================================================================== */
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at center, #063f2d 0%, #022016 60%, #01120c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s ease;
  perspective: 1200px;
  padding: 20px;
}

#envelope-overlay.unsealed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-wrapper {
  position: relative;
  width: 360px;
  max-width: 90vw;
  height: 240px;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.envelope-wrapper:hover {
  transform: translateY(-8px) rotateX(4deg);
}

/* The Envelope Shell */
.envelope-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #054d35, #022a1d);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(229, 195, 120, 0.25);
  border: 1.5px solid rgba(229, 195, 120, 0.6);
  transform-style: preserve-3d;
  overflow: visible;
}

/* Envelope Flaps */
.envelope-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 55%);
  background: linear-gradient(180deg, #085a3e 0%, #033624 100%);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transform-origin: top center;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.envelope-wrapper.opening .envelope-flap-top {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-front-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #033423 0%, #064b34 50%, #02281a 100%);
  border-radius: 12px;
  z-index: 4;
  border: 1px solid rgba(229, 195, 120, 0.35);
}

/* Wax Seal Monogram */
.wax-seal {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at 35% 35%, #ffd700 0%, #d4af37 40%, #8c6d1f 80%, #59420b 100%);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.5), inset 0 -3px 5px rgba(0, 0, 0, 0.6);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.wax-seal::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.7);
}

.wax-seal-text {
  font-family: var(--font-serif-royal);
  font-weight: 800;
  font-size: 1.15rem;
  color: #3d2c05;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6), -1px -1px 1px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

/* Peek Card Inside Envelope */
.peek-card {
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 200px;
  background: #faf8f2;
  border-radius: 8px;
  z-index: 3;
  padding: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--gold-champagne);
}

.envelope-wrapper.opening .peek-card {
  transform: translateY(-90px);
}

.peek-card-border {
  border: 1px solid var(--gold-champagne);
  padding: 12px 16px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.peek-names {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--emerald-primary);
  line-height: 1.2;
}

.peek-date {
  font-family: var(--font-serif-royal);
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 2px;
  margin-top: 6px;
  text-transform: uppercase;
}

/* Envelope Instructions */
.envelope-prompt {
  margin-top: 45px;
  text-align: center;
}

.unseal-btn {
  background: var(--gold-gradient);
  color: #1a271f;
  border: none;
  font-family: var(--font-serif-royal);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4), 0 0 20px rgba(229, 195, 120, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.unseal-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6), 0 0 30px rgba(229, 195, 120, 0.5);
}

.envelope-tip {
  margin-top: 14px;
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(229, 195, 120, 0.85);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MAIN WEBPAGE CONTAINER & SECTIONS
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

.section-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-serif-royal);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 8px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(229, 195, 120, 0.12);
  border: 1px solid rgba(229, 195, 120, 0.3);
}

.section-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ivory-white);
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-champagne));
}

.divider-line.right {
  background: linear-gradient(to left, transparent, var(--gold-champagne));
}

.divider-icon {
  color: var(--gold-champagne);
  font-size: 1.1rem;
}

/* ==========================================================================
   HERO SECTION - 3D INTERACTIVE CARD & RINGS
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* 3D FLOATING WEDDING CARD (TILT COMPONENT) */
.invitation-card-3d-wrap {
  perspective: 1500px;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.invitation-card-3d {
  position: relative;
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(229, 195, 120, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

/* Luxurious Gold Frame */
.card-gold-frame {
  position: absolute;
  inset: 12px;
  border: 2px solid #d4af37;
  border-radius: 10px;
  pointer-events: none;
}

.card-gold-frame-inner {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 6px;
  pointer-events: none;
}

/* Floral Corner Accents */
.floral-corner {
  position: absolute;
  width: 90px;
  height: 90px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 2;
}

.floral-corner.top-left {
  top: 0;
  left: 0;
  background: radial-gradient(circle at top left, rgba(229, 195, 120, 0.35) 0%, transparent 70%);
}

.floral-corner.bottom-right {
  bottom: 0;
  right: 0;
  background: radial-gradient(circle at bottom right, rgba(229, 195, 120, 0.35) 0%, transparent 70%);
}

.card-content-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 10px;
}

.card-families {
  margin-bottom: 20px;
}

.card-family-title {
  font-family: var(--font-serif-royal);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.family-name {
  font-family: var(--font-serif-royal);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--emerald-primary);
  letter-spacing: 1px;
  line-height: 1.4;
}

.family-amp {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold-dark);
  margin: 2px 0;
}

.card-request {
  font-family: var(--font-serif-body);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-style: italic;
  color: #33443b;
  margin: 18px 0 10px;
}

.card-ceremony-title {
  font-family: var(--font-serif-royal);
  font-size: clamp(1.3rem, 3.5vw, 1.85rem);
  font-weight: 900;
  color: #b86b24; /* burnt orange gold blend from card */
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #a35016, #d47a2a, #8e4210);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-ceremony-sub {
  font-family: var(--font-serif-royal);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 900;
  color: #9e4b17;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #a35016, #d47a2a, #8e4210);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-children-phrase {
  font-family: var(--font-serif-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* COUPLE CALLIGRAPHY NAMES */
.card-couple-names {
  margin: 16px 0;
}

.couple-name {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--emerald-primary);
  line-height: 1.25;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
  display: block;
}

.couple-ampersand {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: #d47a2a;
  margin: 2px 0;
  display: block;
}

/* FILIGREE ORNAMENT */
.filigree-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
}

.filigree-wing {
  height: 1px;
  width: 70px;
  background: linear-gradient(to right, transparent, var(--gold-primary));
}

.filigree-wing.right {
  background: linear-gradient(to left, transparent, var(--gold-primary));
}

.filigree-center {
  color: var(--gold-dark);
  font-size: 1.2rem;
}

/* CARD DATE & VENUE */
.card-datetime-highlight {
  font-family: var(--font-serif-royal);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--emerald-primary);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.card-datetime-highlight span {
  color: #c05820;
}

.card-location-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 16px;
  color: #273830;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-location-box svg {
  color: var(--emerald-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Card Quick Badges (Reception, RSVP) */
.card-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  padding-top: 16px;
  margin-top: 16px;
}

.card-detail-item h5 {
  font-family: var(--font-serif-royal);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--emerald-primary);
  margin-bottom: 4px;
}

.card-detail-item p {
  font-size: 0.85rem;
  color: #3b4d44;
  line-height: 1.4;
}

/* Toast Bible Verse Circle */
.card-toast-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(229, 195, 120, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50px;
  padding: 10px 20px;
  margin-top: 20px;
  text-align: center;
}

.card-toast-verse {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--emerald-primary);
}

.card-toast-ref {
  font-family: var(--font-serif-royal);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 35px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--emerald-deep);
  font-family: var(--font-serif-royal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.55);
}

.btn-secondary {
  background: rgba(4, 57, 39, 0.7);
  backdrop-filter: blur(10px);
  color: var(--gold-champagne);
  border: 1.5px solid var(--gold-champagne);
  font-family: var(--font-serif-royal);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(229, 195, 120, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   3D RINGS STUDIO (INTERACTIVE 3D VIEWER)
   ========================================================================== */
.rings-studio-section {
  position: relative;
  background: radial-gradient(circle at center, #063f2e 0%, #03251a 70%, #01140e 100%);
  border-top: 1px solid rgba(229, 195, 120, 0.2);
  border-bottom: 1px solid rgba(229, 195, 120, 0.2);
}

.rings-studio-card {
  position: relative;
  background: rgba(2, 28, 19, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 195, 120, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.rings-viewport-container {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rings-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.rings-overlay-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid rgba(229, 195, 120, 0.3);
  z-index: 5;
}

.ring-control-btn {
  background: transparent;
  border: 1px solid rgba(229, 195, 120, 0.4);
  color: var(--gold-champagne);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ring-control-btn:hover, .ring-control-btn.active {
  background: var(--gold-champagne);
  color: var(--emerald-deep);
  font-weight: 700;
}

.ring-hint {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(229, 195, 120, 0.8);
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(229, 195, 120, 0.2);
}

/* ==========================================================================
   COUNTDOWN TIMER SECTION
   ========================================================================== */
.countdown-section {
  text-align: center;
  position: relative;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.countdown-box {
  background: rgba(4, 57, 39, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 195, 120, 0.35);
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(229, 195, 120, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-5px);
  border-color: var(--gold-champagne);
}

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

.countdown-number {
  font-family: var(--font-serif-royal);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 15px rgba(229, 195, 120, 0.4);
  line-height: 1;
  margin-bottom: 8px;
}

.countdown-label {
  font-family: var(--font-serif-royal);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.7);
}

/* Save Date Calendar Buttons */
.calendar-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ==========================================================================
   VENUES & SCHEDULE SECTION
   ========================================================================== */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.venue-card {
  background: rgba(4, 57, 39, 0.6);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(229, 195, 120, 0.35);
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: var(--shadow-emerald);
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.venue-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-champagne);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(229, 195, 120, 0.2);
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif-royal);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-champagne);
  background: rgba(229, 195, 120, 0.12);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(229, 195, 120, 0.3);
  margin-bottom: 20px;
  align-self: flex-start;
}

.venue-name {
  font-family: var(--font-serif-royal);
  font-size: 1.5rem;
  color: var(--ivory-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.venue-time {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.venue-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(250, 248, 242, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.venue-address svg {
  color: var(--gold-champagne);
  flex-shrink: 0;
  margin-top: 4px;
}

.venue-map-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   COLOURS OF THE DAY / DRESS CODE PALETTE
   ========================================================================== */
.palette-showcase {
  background: rgba(2, 28, 19, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 195, 120, 0.35);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-deep);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.palette-card {
  border-radius: 14px;
  background: rgba(4, 57, 39, 0.5);
  border: 1px solid rgba(229, 195, 120, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.palette-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.color-swatch {
  height: 120px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
}

.color-swatch.emerald {
  background: linear-gradient(135deg, #094d36, #043927);
}

.color-swatch.champagne {
  background: linear-gradient(135deg, #f7e2a9, #d4af37);
}

.color-swatch.orange {
  background: linear-gradient(135deg, #e67e22, #c05820);
}

.color-swatch.burgundy {
  background: linear-gradient(135deg, #8b1832, #6b1426);
}

.swatch-tag {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.palette-info {
  padding: 18px 16px;
}

.palette-title {
  font-family: var(--font-serif-royal);
  font-size: 1.1rem;
  color: var(--ivory-white);
  margin-bottom: 6px;
}

.palette-desc {
  font-size: 0.85rem;
  color: rgba(250, 248, 242, 0.75);
  line-height: 1.4;
}

.copy-hex-hint {
  font-size: 0.7rem;
  color: var(--gold-champagne);
  margin-top: 8px;
  display: block;
  font-weight: 600;
}

/* ==========================================================================
   PERSONALIZED VIP PASS GENERATOR
   ========================================================================== */
.vip-pass-section {
  position: relative;
}

.vip-creator-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: rgba(2, 28, 19, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 195, 120, 0.4);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-deep);
}

.vip-form-col h3 {
  font-family: var(--font-serif-royal);
  font-size: 1.4rem;
  color: var(--gold-champagne);
  margin-bottom: 8px;
}

.vip-form-col p {
  font-size: 0.9rem;
  color: rgba(250, 248, 242, 0.75);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-serif-royal);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 18px;
  background: rgba(4, 57, 39, 0.6);
  border: 1px solid rgba(229, 195, 120, 0.35);
  border-radius: 10px;
  color: var(--ivory-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-champagne);
  box-shadow: 0 0 15px rgba(229, 195, 120, 0.3);
  background: rgba(4, 57, 39, 0.85);
}

/* 3D VIP TICKET PREVIEW */
.vip-ticket-preview-wrap {
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-ticket {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, #074732 0%, #032c1e 100%);
  border: 2px solid #d4af37;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.vip-ticket::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(229, 195, 120, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(229, 195, 120, 0.4);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.ticket-brand {
  font-family: var(--font-serif-royal);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold-champagne);
}

.ticket-badge {
  background: var(--gold-gradient);
  color: #1b2621;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.ticket-guest-name {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-bright);
  line-height: 1.2;
  margin-bottom: 4px;
  word-break: break-word;
}

.ticket-guest-tier {
  font-family: var(--font-serif-royal);
  font-size: 0.75rem;
  color: rgba(250, 248, 242, 0.7);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.ticket-event-details {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: rgba(250, 248, 242, 0.85);
  line-height: 1.5;
  margin-bottom: 16px;
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-qr {
  width: 55px;
  height: 55px;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-code {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--gold-champagne);
  letter-spacing: 2px;
}

/* ==========================================================================
   RSVP & GUESTBOOK SECTION
   ========================================================================== */
.rsvp-section {
  position: relative;
}

.rsvp-guestbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.rsvp-card, .guestbook-card {
  background: rgba(2, 28, 19, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 195, 120, 0.35);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-deep);
}

.direct-rsvp-box {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.whatsapp-rsvp-btn {
  flex: 1;
  background: #25d366;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.call-rsvp-btn {
  background: rgba(229, 195, 120, 0.15);
  border: 1px solid var(--gold-champagne);
  color: var(--gold-champagne);
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.call-rsvp-btn:hover {
  background: var(--gold-champagne);
  color: var(--emerald-deep);
}

/* Guestbook Wall Messages */
.wishes-scroll-box {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wish-item {
  background: rgba(4, 57, 39, 0.5);
  border: 1px solid rgba(229, 195, 120, 0.25);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s ease;
}

.wish-item:hover {
  transform: translateX(4px);
  border-color: rgba(229, 195, 120, 0.5);
}

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

.wish-author {
  font-family: var(--font-serif-royal);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-bright);
}

.wish-time {
  font-size: 0.7rem;
  color: rgba(250, 248, 242, 0.5);
}

.wish-text {
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(250, 248, 242, 0.9);
  line-height: 1.5;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.wedding-footer {
  text-align: center;
  padding: 60px 24px 40px;
  border-top: 1px solid rgba(229, 195, 120, 0.25);
  background: rgba(1, 18, 12, 0.95);
  position: relative;
  z-index: 10;
}

.footer-quote {
  font-family: var(--font-serif-body);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--gold-bright);
  max-width: 600px;
  margin: 0 auto 12px;
  line-height: 1.4;
}

.footer-ref {
  font-family: var(--font-serif-royal);
  font-size: 0.85rem;
  color: var(--gold-champagne);
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.footer-monogram {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.footer-credits {
  font-size: 0.75rem;
  color: rgba(250, 248, 242, 0.6);
  letter-spacing: 1px;
}

/* ==========================================================================
   WEDDING REGISTRY, FINANCIAL BLESSINGS & GUEST SUPPORT
   ========================================================================== */
.registry-section {
  position: relative;
}

.registry-card-container {
  background: rgba(2, 28, 19, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 195, 120, 0.35);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-deep);
}

.registry-note-card {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 20px 24px;
  background: rgba(229, 195, 120, 0.08);
  border: 1px solid rgba(229, 195, 120, 0.25);
  border-radius: 16px;
}

.registry-note-text {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ivory-white);
  line-height: 1.6;
}

.registry-note-verse {
  display: block;
  font-family: var(--font-serif-royal);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold-champagne);
  margin-top: 10px;
  text-transform: uppercase;
}

/* Registry Tabs Switcher */
.registry-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.registry-tab-btn {
  background: rgba(4, 57, 39, 0.6);
  border: 1.5px solid rgba(229, 195, 120, 0.35);
  color: var(--ivory-white);
  font-family: var(--font-serif-royal);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.registry-tab-btn:hover {
  border-color: var(--gold-champagne);
  background: rgba(229, 195, 120, 0.15);
  transform: translateY(-2px);
}

.registry-tab-btn.active {
  background: var(--gold-gradient);
  color: var(--emerald-deep);
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Tab Panels */
.registry-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.registry-panel.active {
  display: block;
}

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

/* Account Cards Grid */
.account-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.account-cards-single {
  grid-template-columns: 1fr !important;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.account-actions-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.account-card {
  background: linear-gradient(145deg, rgba(6, 63, 44, 0.85) 0%, rgba(2, 34, 23, 0.95) 100%);
  border: 1.5px solid rgba(229, 195, 120, 0.4);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.account-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-champagne);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 195, 120, 0.25);
}

.account-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(229, 195, 120, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(229, 195, 120, 0.3);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.account-bank-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(229, 195, 120, 0.15);
  border: 1px solid rgba(229, 195, 120, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-champagne);
}

.account-bank-name {
  font-family: var(--font-serif-royal);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 1px;
}

.account-currency-tag {
  font-size: 0.7rem;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--gold-champagne);
  border: 1px solid rgba(229, 195, 120, 0.2);
}

.account-number-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(229, 195, 120, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}

.account-number-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(250, 248, 242, 0.6);
  margin-bottom: 6px;
}

.account-number-digits {
  font-family: monospace;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(229, 195, 120, 0.4);
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: rgba(250, 248, 242, 0.85);
}

.account-info-label {
  color: rgba(229, 195, 120, 0.8);
  font-family: var(--font-serif-royal);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.account-info-val {
  font-weight: 600;
  color: var(--ivory-white);
  text-align: right;
}

.btn-copy-account {
  width: 100%;
  margin-top: 14px;
  background: rgba(229, 195, 120, 0.15);
  border: 1px solid var(--gold-champagne);
  color: var(--gold-champagne);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-copy-account:hover {
  background: var(--gold-champagne);
  color: var(--emerald-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.btn-copy-account.copied {
  background: #25d366 !important;
  color: #ffffff !important;
  border-color: #25d366 !important;
}

/* Logistics & Concierge Support Bar */
.support-concierge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  border-top: 1px solid rgba(229, 195, 120, 0.3);
  padding-top: 30px;
}

.concierge-card {
  background: rgba(4, 57, 39, 0.45);
  border: 1px solid rgba(229, 195, 120, 0.25);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.concierge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(229, 195, 120, 0.15);
  border: 1px solid rgba(229, 195, 120, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-champagne);
  flex-shrink: 0;
}

.concierge-info h5 {
  font-family: var(--font-serif-royal);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.concierge-info p {
  font-size: 0.8rem;
  color: rgba(250, 248, 242, 0.75);
  line-height: 1.4;
}

/* ==========================================================================
   RSVP SUBMISSION CELEBRATION MODAL
   ========================================================================== */
.rsvp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rsvp-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.rsvp-success-modal {
  background: linear-gradient(145deg, #043927 0%, #022016 100%);
  border: 1.5px solid var(--gold-champagne);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(229, 195, 120, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsvp-modal-backdrop.active .rsvp-success-modal {
  transform: scale(1);
}

.rsvp-modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.rsvp-modal-title {
  font-family: var(--font-serif-royal);
  font-size: 1.45rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.rsvp-modal-desc {
  font-size: 0.9rem;
  color: rgba(250, 248, 242, 0.85);
  line-height: 1.5;
  margin-bottom: 20px;
}

.rsvp-modal-summary {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(229, 195, 120, 0.25);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(250, 248, 242, 0.9);
  margin-bottom: 24px;
}

.btn-whatsapp-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 20px;
  border-radius: 40px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 12px;
}

.btn-whatsapp-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP TO ULTRA-MOBILE BREAKPOINTS)
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
}

/* 2. Tablets & Small Desktops (<= 900px) */
@media (max-width: 900px) {
  .vip-creator-card,
  .rsvp-guestbook-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .account-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. Mobile Devices (<= 768px) - CORE MOBILE REFINEMENT */
@media (max-width: 768px) {
  /* Global Layout & Spacing */
  .section-container {
    padding: 60px 16px;
  }
  .section-tag {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }
  .section-title {
    font-size: clamp(1.85rem, 6.5vw, 2.3rem);
  }
  .section-header p {
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 0 8px;
  }

  /* 3D Invitation Card */
  .invitation-card-3d {
    padding: 26px 16px;
    border-radius: 20px;
  }
  .card-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-couple-names {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  /* Calendar Actions & Venues on Mobile */
  .calendar-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .calendar-actions .btn-primary,
  .calendar-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .venues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .venue-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  /* ----------------------------------------------------
     BLESS THE COUPLE (REGISTRY SECTION) - MOBILE PERFECTION
     ---------------------------------------------------- */
  .registry-card-container {
    padding: 24px 14px;
    border-radius: 20px;
  }

  .registry-note-card {
    padding: 16px 14px;
    margin-bottom: 22px;
    border-radius: 14px;
  }

  .registry-note-text {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .registry-note-verse {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin-top: 8px;
  }

  /* Tabs Switcher */
  .registry-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
  }

  .registry-tab-btn {
    padding: 12px 14px;
    font-size: 0.76rem;
    letter-spacing: 0.8px;
    flex: 1 1 160px;
    justify-content: center;
    border-radius: 14px;
    min-height: 48px;
  }

  /* Account Cards */
  .account-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .account-card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .account-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .account-bank-name {
    font-size: 0.92rem;
  }

  .account-currency-tag {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  /* Large, unmistakable Account Number Box */
  .account-number-box {
    padding: 16px 12px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(229, 195, 120, 0.35);
  }

  .account-number-label {
    font-size: 0.66rem;
    letter-spacing: 1.5px;
  }

  .account-number-digits {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    letter-spacing: 2px;
    word-break: break-all;
  }

  /* Clean Stacking for Account Info Rows on Mobile */
  .account-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(229, 195, 120, 0.12);
  }

  .account-info-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 4px;
  }

  .account-info-label {
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: rgba(229, 195, 120, 0.8);
  }

  .account-info-val {
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
  }

  /* Touch-optimized Copy Buttons */
  .btn-copy-account {
    padding: 13px 18px;
    font-size: 0.82rem;
    min-height: 48px;
    border-radius: 30px;
    width: 100%;
  }

  .account-actions-dual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  /* Concierge Support Grid */
  .support-concierge-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 24px;
  }

  .concierge-card {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 12px;
  }

  .concierge-icon {
    width: 36px;
    height: 36px;
  }

  .concierge-info h5 {
    font-size: 0.85rem;
  }

  .concierge-info p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* ----------------------------------------------------
     RSVP & WELL WISHES SECTION - MOBILE PERFECTION
     ---------------------------------------------------- */
  .rsvp-guestbook-grid {
    gap: 24px;
  }

  .rsvp-card,
  .guestbook-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .rsvp-card h3,
  .guestbook-card h3 {
    font-size: 1.25rem !important;
  }

  /* Direct WhatsApp & Call Buttons: Stacked & Thumb-Friendly */
  .direct-rsvp-box {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .whatsapp-rsvp-btn,
  .call-rsvp-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.92rem;
    border-radius: 40px;
    min-height: 48px;
    justify-content: center;
  }

  .whatsapp-rsvp-btn {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }

  /* Form Elements: Touch Optimized & Anti-Zoom */
  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important; /* Critical: Stops iOS Safari auto-zoom */
    padding: 13px 14px;
    border-radius: 12px;
    min-height: 48px;
    background: rgba(4, 57, 39, 0.75);
  }

  .form-textarea {
    min-height: 95px;
    line-height: 1.45;
  }

  /* Full-width High-Impact Submit Button */
  .rsvp-card .btn-primary {
    padding: 15px 20px;
    font-size: 0.95rem;
    min-height: 52px;
    border-radius: 40px;
    font-weight: 700;
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4);
  }

  /* Guestbook Wall on Mobile */
  .wishes-scroll-box {
    max-height: 380px;
    padding-right: 4px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .wish-item {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .wish-author {
    font-size: 0.86rem;
  }

  .wish-time {
    font-size: 0.65rem;
  }

  .wish-text {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  /* Floating Audio Controller */
  .audio-controller {
    bottom: 14px;
    right: 14px;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 40px;
  }

  .audio-sublabel {
    display: none !important;
  }

  .audio-label {
    font-size: 0.68rem;
  }

  /* Celebration Modal */
  .rsvp-success-modal {
    width: 94%;
    max-width: 440px;
    padding: 26px 18px;
    border-radius: 22px;
    margin: 10px auto;
  }

  .rsvp-modal-title {
    font-size: 1.35rem;
  }

  .rsvp-modal-desc {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  .rsvp-modal-summary {
    padding: 12px 14px;
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .btn-whatsapp-action {
    padding: 14px 18px;
    font-size: 0.9rem;
    min-height: 48px;
  }
}

/* 4. Ultra-Small Phones (<= 400px, e.g. iPhone SE, Fold phones) */
@media (max-width: 400px) {
  .section-container {
    padding: 50px 12px;
  }

  .registry-card-container,
  .rsvp-card,
  .guestbook-card {
    padding: 18px 12px;
    border-radius: 16px;
  }

  .registry-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .registry-tab-btn {
    width: 100%;
  }

  .account-card {
    padding: 18px 12px;
  }

  .account-number-digits {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  .account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .account-currency-tag {
    align-self: flex-start;
  }
}
