/* ==========================================================================
   THE ROYAL WEDDING EXPERIENCE — JAMOLADDIN & RO'ZA
   05.12.2026 • Humonur To'yxonasi, Xiva
   World-Class Luxury Styling (Vaslnoma-Inspired UX + Royal Aesthetics)
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --black: #070707;
  --dark-base: #0c0c0c;
  --card-bg: rgba(18, 18, 18, 0.88);
  --card-border: rgba(212, 168, 83, 0.28);
  --card-glow: rgba(212, 168, 83, 0.08);
  
  --gold: #d4a853;
  --gold-light: #f5dfa2;
  --gold-bright: #ffd700;
  --gold-dark: #9e7523;
  --gold-shadow: rgba(212, 168, 83, 0.35);
  
  --ivory: #faf4ea;
  --champagne: #f7ebd7;
  --muted: rgba(250, 244, 234, 0.65);
  --text-dim: rgba(250, 244, 234, 0.45);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-cinzel: 'Cinzel', 'Playfair Display', serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-arabic: 'Amiri', serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--black);
  color-scheme: dark;
}

body {
  font-family: var(--font-serif);
  background: radial-gradient(circle at 50% 20%, #17130a 0%, #070707 65%, #020202 100%);
  color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background: var(--gold);
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ==========================================================================
   1. FLOATING MUSIC TOGGLE BUTTON
   ========================================================================== */
.floating-music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 15px var(--gold-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.floating-music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.5);
}

.music-disc-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 0%, #111 70%, #000 100%);
  border: 1px solid rgba(212, 168, 83, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 13px;
}

.music-playing .music-disc-icon {
  animation: discSpin 4s linear infinite;
}

.music-bars {
  position: absolute;
  top: -4px;
  right: -4px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
  display: none;
}

.music-playing .music-bars {
  display: flex;
}

.music-bars span {
  width: 2.5px;
  background: var(--gold-bright);
  border-radius: 1px;
  animation: barBounce 1s ease-in-out infinite alternate;
}
.music-bars span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.music-bars span:nth-child(2) { height: 11px; animation-delay: 0.3s; }
.music-bars span:nth-child(3) { height: 7px; animation-delay: 0.2s; }
.music-bars span:nth-child(4) { height: 12px; animation-delay: 0.4s; }

/* ==========================================================================
   2. INTERACTIVE ROYAL COVER / ENVELOPE OVERLAY
   ========================================================================== */
.envelope-cover {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 30%, #1c150b 0%, #080808 65%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.9s cubic-bezier(0.77, 0, 0.175, 1), transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.9s;
}

.envelope-cover.cover-opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.envelope-container {
  position: relative;
  max-width: 460px;
  width: 100%;
}

.cover-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.envelope-card {
  position: relative;
  background: linear-gradient(160deg, #161512 0%, #0d0c0a 60%, #181510 100%);
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 168, 83, 0.12), inset 0 0 25px rgba(212, 168, 83, 0.04);
  padding: 3.2rem 2.2rem 2.5rem;
  text-align: center;
  cursor: pointer;
}

.royal-crest {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.4));
}

.crest-svg {
  width: 100%;
  height: 100%;
}

.envelope-eyebrow {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 5px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

.envelope-names {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0.4rem 0 1.8rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 40%, var(--gold) 80%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(212, 168, 83, 0.35));
}

.name-amp {
  font-family: var(--font-serif);
  font-size: 0.6em;
  font-style: italic;
  display: inline-block;
  margin: 0 0.15em;
  color: var(--gold-light);
  -webkit-text-fill-color: var(--gold-light);
}

/* 3D Wax Seal Button */
.wax-seal-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.seal-ripple {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: sealPulse 2.4s ease-out infinite;
}

.seal-circle-text {
  position: absolute;
  inset: 0;
  animation: textSpin 25s linear infinite;
}

.rotating-text-svg {
  width: 100%;
  height: 100%;
}

.rotating-text-svg text {
  fill: var(--gold-light);
  font-family: var(--font-cinzel);
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 600;
}

.wax-seal-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5dfa2 0%, #d4a853 40%, #8c6418 85%, #593e0b 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 168, 83, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wax-seal-wrapper:hover .wax-seal-core {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.6);
}

.seal-stamp-inner {
  text-align: center;
  line-height: 1.15;
}

.stamp-monogram {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 15px;
  font-weight: 900;
  color: #3b2704;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
}

.stamp-date {
  font-size: 8.5px;
  font-family: var(--font-serif);
  color: #4a340a;
  letter-spacing: 1px;
  font-weight: bold;
}

.envelope-blessing {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.envelope-blessing strong {
  color: var(--gold-light);
  font-weight: 600;
}

.open-btn-pill {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ffeaa7 0%, var(--gold) 50%, #b8860b 100%);
  color: #070707;
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.4);
  transition: all 0.3s;
}

.envelope-card:hover .open-btn-pill {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.6);
}

.open-btn-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-top: 0.6rem;
  opacity: 0.8;
}

/* ==========================================================================
   3. MAIN INVITATION CONTENT (VASLNOMA STRUCTURE)
   ========================================================================== */
.main-content {
  max-width: 540px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 6rem;
  position: relative;
  z-index: 10;
}

.section-block {
  margin-bottom: 2.4rem;
}

/* Universal Card Box */
.card-box {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.8rem 1.8rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--card-glow);
}

.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  opacity: 0.6;
}
.corner-tl { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
.corner-tr { top: 6px; right: 6px; border-width: 1.5px 1.5px 0 0; }
.corner-bl { bottom: 6px; left: 6px; border-width: 0 0 1.5px 1.5px; }
.corner-br { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }

.sec-badge {
  display: inline-block;
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  padding: 4px 14px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.sec-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.8rem;
}

/* 3.1 Hero Section */
.sec-hero {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

.bismillah-calligraphy {
  margin-bottom: 1rem;
}

.arabic-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(212, 168, 83, 0.35);
  direction: rtl;
}

.hero-divider {
  color: var(--gold);
  letter-spacing: 6px;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.hero-label {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 5px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.4rem;
}

.hero-couple-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9.5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0.4rem 0 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 40%, var(--gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(212, 168, 83, 0.4));
}

.hero-date-badge {
  display: inline-block;
  padding: 6px 18px;
  border-top: 1px solid rgba(212, 168, 83, 0.3);
  border-bottom: 1px solid rgba(212, 168, 83, 0.3);
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}

.hero-venue-name {
  font-size: 1.05rem;
  color: var(--champagne);
  font-style: italic;
}

/* 3.2 Main Invitation Card */
.inv-salutation {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.inv-body-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--ivory);
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.inv-body-text p {
  margin-bottom: 0.8rem;
}

.inv-highlight {
  color: var(--champagne);
  font-style: italic;
  font-weight: 400;
}

.inv-signature {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  padding-top: 1.2rem;
}

.sig-title {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  display: block;
}

.sig-family {
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.view-photo-wrap {
  margin-top: 1.8rem;
}

.view-photo-btn {
  background: transparent;
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: var(--gold-light);
  padding: 10px 20px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.view-photo-btn:hover {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--gold);
  color: #fff;
}

/* 3.3 Quran Verse / Quote */
.quote-card {
  background: rgba(18, 16, 12, 0.85);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 12px;
  padding: 2.2rem 1.6rem;
  text-align: center;
}

.quran-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.arabic-verse {
  font-family: var(--font-arabic);
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  color: var(--gold-light);
  line-height: 1.9;
  direction: rtl;
  margin-bottom: 1rem;
}

.quote-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0.8rem auto 1rem;
  opacity: 0.5;
}

.verse-uzbek {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--champagne);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.verse-source {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold);
  font-family: var(--font-cinzel);
}

/* 3.4 Countdown & Calendar */
.event-full-date {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
}

.countdown-caption {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.cd-box {
  flex: 1;
  max-width: 80px;
  background: linear-gradient(145deg, #181818 0%, #0d0d0d 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.cd-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.cd-unit {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--gold-light);
}

.btn-royal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-cal {
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.btn-cal:hover {
  background: rgba(212, 168, 83, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

/* 3.5 Timeline Program */
.timeline-wrap {
  position: relative;
  text-align: left;
  padding-left: 20px;
  margin-top: 1.5rem;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 31px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(212, 168, 83, 0.2) 100%);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.8rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-time {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  width: 50px;
  flex-shrink: 0;
  padding-top: 2px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
  z-index: 2;
}

.step-info h4 {
  font-size: 1.05rem;
  color: var(--ivory);
  margin-bottom: 2px;
}

.step-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* 3.6 Venue & Map */
.venue-highlight {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.venue-address {
  font-size: 1.05rem;
  color: var(--champagne);
  margin-bottom: 1.5rem;
}

.map-embed-frame {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 1.2rem;
}

.map-embed-frame iframe {
  display: block;
}

.venue-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-venue-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-google {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #070707;
  border: 1px solid var(--gold);
}

.btn-yandex {
  background: rgba(255, 255, 255, 0.06);
  color: var(--champagne);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.btn-taxi {
  background: #ffcc00;
  color: #070707;
  border: 1px solid #ffcc00;
}

.btn-venue-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* 3.7 Dress-code */
.dresscode-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.palette-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 65px;
}

.color-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-label {
  font-size: 0.75rem;
  color: var(--champagne);
  text-align: center;
}

/* 3.8 Love Story */
.story-box {
  background: linear-gradient(160deg, #161208 0%, #0d0c0a 100%);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 12px;
  padding: 3rem 1.8rem;
  text-align: center;
}

.story-badge {
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.story-slogan {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.story-names {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 8vw, 4rem);
  color: var(--gold-light);
  margin: 0.2rem 0 1rem;
}

.story-quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--champagne);
  margin-bottom: 1rem;
}

.story-divider {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: heartPulse 1.8s infinite;
}

.story-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
}

/* 3.9 Guide List */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.guide-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.guide-num {
  font-family: var(--font-cinzel);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  width: 24px;
  flex-shrink: 0;
}

.guide-text strong {
  font-size: 0.95rem;
  color: var(--ivory);
  display: block;
  margin-bottom: 2px;
}

.guide-text p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* 3.10 RSVP Form */
.rsvp-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.rsvp-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  font-family: var(--font-serif);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--gold);
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.radio-label:hover {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold);
}

.radio-label input[type="radio"] {
  accent-color: var(--gold);
}

.btn-submit-rsvp {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #070707;
  border: 1px solid var(--gold);
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 0.5rem;
}

.btn-submit-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
}

.rsvp-success {
  padding: 2rem 1rem;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: #070707;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.rsvp-success h4 {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.rsvp-success p {
  color: var(--champagne);
  font-size: 1.05rem;
}

/* 3.11 Song Lyrics & Piano Banner */
.piano-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.8rem;
  text-align: left;
}

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

.pb-icon {
  font-size: 1.8rem;
}

.pb-left strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.pb-left p {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-download-audio {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-download-audio:hover {
  background: var(--gold);
  color: #070707;
}

.song-lyrics-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.lyric-block {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 3px solid var(--gold-dark);
}

.chorus-block {
  border-left-color: var(--gold);
  background: rgba(212, 168, 83, 0.06);
}

.lyric-author {
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.lyric-text p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ivory);
  line-height: 1.8;
}

/* 3.12 Footer / End */
.footer-card {
  text-align: center;
  padding: 3rem 1.5rem 1rem;
}

.footer-crest {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.5));
}

.footer-title {
  font-family: var(--font-cinzel);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--champagne);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-family {
  font-family: var(--font-cinzel);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.btn-tg {
  background: #0088cc;
  color: #fff;
}
.btn-tg:hover { background: #0099e6; }

.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover { background: #2ee672; }

.btn-copy {
  background: rgba(212, 168, 83, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-copy:hover {
  background: rgba(212, 168, 83, 0.25);
}

.copyright-sub {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  padding-top: 1.5rem;
}

/* ==========================================================================
   4. LIGHTBOX MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-inner {
  position: relative;
  background: #141414;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.8rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-heading {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.modal-img-wrap {
  width: 100%;
  max-height: 65vh;
  overflow: auto;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  margin-bottom: 0.8rem;
}

.modal-photo {
  width: 100%;
  display: block;
}

.modal-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes discSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes barBounce {
  from { height: 3px; }
  to { height: 12px; }
}

@keyframes sealPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

@keyframes textSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 480px) {
  .envelope-card {
    padding: 2.5rem 1.4rem 2rem;
  }
  .envelope-names {
    font-size: 2.8rem;
  }
  .card-box {
    padding: 2.2rem 1.2rem;
  }
  .countdown-grid {
    gap: 6px;
  }
  .cd-box {
    padding: 10px 4px;
  }
  .cd-number {
    font-size: 1.6rem;
  }
  .floating-music-btn {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }
}
