/* ==========================================
   PREMIUM WEDDING INVITATION DESIGN SYSTEM
   MIDNIGHT EMERALD & CHAMPAGNE GOLD EDITION
   ========================================== */

/* Variables & Theme Tokens */
:root {
  /* Premium Midnight Emerald & Champagne Gold Theme Constants */
  --theme-primary: #041610;
  --theme-secondary: #0a241b;
  --theme-bg-gradient: radial-gradient(circle at center, #082d21 0%, #020806 100%);
  --theme-text-light: #f2f7f5;
  --theme-card-bg: rgba(6, 22, 17, 0.72);
  --theme-card-border: rgba(212, 175, 55, 0.28);
  --theme-accent: #0b3326;

  /* Luxury Champagne Gold Palette */
  --gold-primary: #d4af37;
  --gold-light: #fcfaf2;
  --gold-mid: #aa7c11;
  --gold-shine: #fffdf7;
  --gold-dark: #8c660d;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fcfaf2 25%, #aa7c11 50%, #fffdf7 75%, #8c660d 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(252, 250, 242, 0.18) 50%, rgba(140, 102, 13, 0.18) 100%);
  --gold-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  --gold-shadow-heavy: 0 8px 32px rgba(170, 124, 17, 0.45);

  /* Fonts */
  --font-serif-display: 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Amiri', serif;

  /* Layout constraints */
  --app-max-width: 480px;

  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* General Layout & Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #070f1a;
  color: var(--theme-text-light);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Support for Urdu language layout */
body[lang="ur"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-urdu);
}

/* Adjust line-heights globally for Urdu to prevent Nastaliq clipping */
body[lang="ur"] p, 
body[lang="ur"] span, 
body[lang="ur"] h1, 
body[lang="ur"] h2, 
body[lang="ur"] h3, 
body[lang="ur"] h4, 
body[lang="ur"] h5, 
body[lang="ur"] h6,
body[lang="ur"] .timeline-desc,
body[lang="ur"] .quran-translation,
body[lang="ur"] .invitation-intro {
  line-height: 2.2 !important;
  letter-spacing: 0px !important;
}

body[lang="ur"] .timeline-item {
  border-left: none;
  border-right: 1px solid var(--gold-primary);
  padding-left: 0;
  padding-right: 25px;
}

body[lang="ur"] .timeline-dot {
  left: auto;
  right: -5px;
}

body[lang="ur"] .attendance-radio input[type="radio"]+.radio-custom {
  margin-right: 0;
  margin-left: 10px;
}

/* Keep floating buttons in fixed, non-swapping positions for consistent UX */

/* Specific styling adjust for Urdu navigation elements */
body[lang="ur"] .navigation-btn span,
body[lang="ur"] .lang-btn {
  line-height: 1.5 !important;
}

/* Desktop Backdrop Wallpaper */
.desktop-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.4);
  pointer-events: none;
  background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1920&q=80');
}

.desktop-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
}

/* Floating Buttons */
.audio-control-container,
.lang-control-container {
  position: fixed;
  top: 20px;
  z-index: 999;
}

.audio-control-container {
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-control-container {
  left: 20px;
}

/* Audio Visualizer Style */
.audio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  padding: 0 4px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.audio-visualizer.active {
  opacity: 1;
  transform: translateX(0);
}

.audio-visualizer .bar {
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 2px;
  transform-origin: bottom;
  animation: bounce-bar 1.2s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.audio-visualizer.active .bar {
  animation-play-state: running;
}

.audio-visualizer .bar:nth-child(1) { animation-duration: 0.8s; height: 35%; }
.audio-visualizer .bar:nth-child(2) { animation-duration: 1.1s; height: 75%; animation-delay: -0.15s; }
.audio-visualizer .bar:nth-child(3) { animation-duration: 0.9s; height: 50%; animation-delay: -0.3s; }
.audio-visualizer .bar:nth-child(4) { animation-duration: 1.3s; height: 95%; animation-delay: -0.45s; }

@keyframes bounce-bar {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 23, 37, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(191, 149, 63, 0.2);
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--gold-shadow), inset 0 0 15px rgba(191, 149, 63, 0.4);
}

.lang-btn {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.hidden {
  display: none !important;
}

/* Main App Container (Centered Frame) */
#app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--app-max-width);
  height: 100vh;
  min-height: 100vh;
  background: var(--theme-bg-gradient);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
}

#app-container::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome/Safari */
}


/* Floral Corner Accents */
.floral-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.75;
  z-index: 15;
}

.floral-corner.top-left {
  top: 15px;
  left: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bf953f'%3E%3Cpath d='M2,2A10,10 0 0,1 12,12A10,10 0 0,1 22,22M2,6A6,6 0 0,1 8,12M2,10A2,2 0 0,1 4,12'/%3E%3C/svg%3E");
}

.floral-corner.top-right {
  top: 15px;
  right: 15px;
  transform: rotate(90deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bf953f'%3E%3Cpath d='M2,2A10,10 0 0,1 12,12A10,10 0 0,1 22,22M2,6A6,6 0 0,1 8,12M2,10A2,2 0 0,1 4,12'/%3E%3C/svg%3E");
}

.floral-corner.bottom-left {
  bottom: 15px;
  left: 15px;
  transform: rotate(-90deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bf953f'%3E%3Cpath d='M2,2A10,10 0 0,1 12,12A10,10 0 0,1 22,22M2,6A6,6 0 0,1 8,12M2,10A2,2 0 0,1 4,12'/%3E%3C/svg%3E");
}

.floral-corner.bottom-right {
  bottom: 15px;
  right: 15px;
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bf953f'%3E%3Cpath d='M2,2A10,10 0 0,1 12,12A10,10 0 0,1 22,22M2,6A6,6 0 0,1 8,12M2,10A2,2 0 0,1 4,12'/%3E%3C/svg%3E");
}


/* ==================== COVER & ENVELOPE SECTIONS ==================== */
.cover-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--theme-primary);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease-in-out;
}

.cover-section.slide-out {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.envelope-container {
  position: relative;
  width: 320px;
  height: 220px;
  background-color: #051d14;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  perspective: 1000px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Opening cover page responsiveness styling */
@media (max-width: 360px) {
  .envelope-container {
    transform: scale(0.85);
    /* Shrinks proportionally to fit viewports down to 320px */
  }
}

@media (max-width: 300px) {
  .envelope-container {
    transform: scale(0.75);
  }
}

@media (max-height: 480px) {
  .envelope-container {
    transform: scale(0.75);
    /* Prevents overflow in short landscape viewports */
  }
}

/* Flaps & Backing */
.envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: 8px;
  border: 1px solid rgba(191, 149, 63, 0.2);
  z-index: 1;
}

.envelope-front {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  background-color: var(--theme-secondary);
  background-image:
    linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(225deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0, 50% 60%);
  border-radius: 8px;
  border: 1px solid rgba(191, 149, 63, 0.2);
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.4);
}

.envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: var(--theme-secondary);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  border-bottom: 1px solid rgba(191, 149, 63, 0.3);
  transform-origin: top;
  transform: rotateX(0deg);
  transition: transform 0.8s ease-in-out;
  z-index: 5;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.envelope-container.open .envelope-top {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Letter Card inside Envelope */
.envelope-card {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 200px;
  background: radial-gradient(circle at center, #0a2d21 0%, #03100b 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 6px;
  padding: 15px;
  box-sizing: border-box;
  transform: translateY(0px);
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1) 0.5s;
  z-index: 2;
  box-shadow: inset 0 0 20px rgba(191, 149, 63, 0.15);
}

.envelope-container.open .envelope-card {
  transform: translateY(-110px);
}

/* Scale adjustments when envelope is scaled */
@media (max-width: 360px) {
  .envelope-container.open .envelope-card {
    transform: translateY(-90px);
  }
}

@media (max-height: 480px) {
  .envelope-container.open .envelope-card {
    transform: translateY(-80px);
  }
}

.card-inner {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(252, 246, 186, 0.3);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-title-prefix {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.card-names {
  font-family: var(--font-serif-display);
  font-size: 18px;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-divider-mini {
  width: 40px;
  height: 1px;
  background: var(--gold-gradient);
  margin-bottom: 10px;
}

.card-date {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #fff;
}

/* Wax Seal Wax Stamp button */
.wax-seal-wrapper {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  transition: transform 0.8s ease-in-out, opacity 0.5s ease-in-out;
}

.envelope-container.open .wax-seal-wrapper {
  transform: translate(-50%, 90px) rotateX(180deg);
  opacity: 0;
  pointer-events: none;
}

@keyframes gold-shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.wax-seal {
  background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fcf6ba 75%, #aa771c 100%);
  background-size: 200% auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.6), 
    inset 0 0 12px rgba(255, 255, 255, 0.4), 
    0 0 0 5px rgba(212, 175, 55, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: gold-shimmer 4s linear infinite, pulse-seal 2s infinite ease-in-out;
  transition: var(--transition-fast);
}

.wax-seal:hover {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.12);
  box-shadow: 
    0 10px 25px rgba(212, 175, 55, 0.4), 
    inset 0 0 15px rgba(255, 255, 255, 0.5), 
    0 0 0 6px rgba(212, 175, 55, 0.45);
}

.wax-seal-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.seal-logo {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: bold;
  color: #1a1505;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.seal-text {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 1px;
  color: #1a1505;
  opacity: 0.9;
  margin-top: 3px;
  font-weight: 700;
}

@keyframes pulse-seal {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 0px rgba(191, 149, 63, 0.5);
  }

  70% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(191, 149, 63, 0);
  }

  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 0px rgba(191, 149, 63, 0);
  }
}


/* ==================== CONTENT WRAPPER SECTIONS ==================== */
.hidden-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
  padding: 60px 25px 40px 25px;
}

.hidden-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.active-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Card Style Sections */
.card-style {
  background: linear-gradient(135deg, rgba(6, 22, 17, 0.65) 0%, rgba(3, 11, 8, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 32px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5), 
    inset 0 0 30px rgba(212, 175, 55, 0.03),
    0 0 1px rgba(252, 250, 242, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-style:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.6), 
    inset 0 0 30px rgba(212, 175, 55, 0.05),
    0 0 15px rgba(212, 175, 55, 0.15);
}

.card-border-gold {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  right: 6px;
  border: 1px dashed rgba(191, 149, 63, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

/* Bismillah & Title styles */
.bismillah-container {
  margin-top: 29px;
  margin-bottom: 25px;
}

.bismillah-text {
  font-family: var(--font-urdu);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  border: 1px solid rgba(191, 149, 63, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  background-color: rgba(191, 149, 63, 0.05);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body[lang="ur"] .section-title {
  font-family: var(--font-urdu);
  font-size: 26px;
  font-weight: normal;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 80%;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Gold Separator Divider */
.gold-divider {
  display: flex;
  align-items: center;
  width: 160px;
  margin: 15px auto;
}

.divider-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.divider-diamond {
  color: var(--gold-primary);
  margin: 0 10px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.invitation-intro {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 90%;
  margin-top: 15px;
}

body[lang="ur"] .invitation-intro {
  font-family: var(--font-urdu);
  font-size: 16px;
  line-height: 2.1;
}


.quran-verse-container {
  margin: 5px auto 25px auto;
  max-width: 90%;
  padding: 18px;
  background: rgba(18, 40, 62, 0.4);
  border: 1px solid rgba(191, 149, 63, 0.2);
  border-radius: 8px;
  box-shadow: inset 0 0 15px rgba(191, 149, 63, 0.05);
  backdrop-filter: blur(5px);
}

.quran-arabic {
  font-family: 'Amiri', 'Noto Nastaliq Urdu', serif;
  font-size: 16px;
  color: var(--gold-light);
  line-height: 2;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  direction: rtl;
}

.quran-translation {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-style: italic;
  color: rgba(230, 238, 245, 0.85);
  line-height: 1.6;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body[lang="ur"] .quran-translation {
  font-family: var(--font-urdu);
  font-size: 13.5px;
  font-style: normal;
  line-height: 2;
  margin-bottom: 10px;
}

.quran-surah {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
}

/* ==================== HERO DETAILS ==================== */
.hero-names {
  font-family: var(--font-serif-display);
  font-size: 34px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  margin: 10px 0;
}


/* ==================== COUPLE PROFILE SECTION ==================== */
.couple-profiles {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 25px;
  position: relative;
}

.profile-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.profile-frame {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.gold-circle-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(191, 149, 63, 0.3);
  transition: var(--transition-fast);
}

.profile-card:hover .gold-circle-border {
  border-color: var(--gold-light);
  box-shadow: var(--gold-shadow);
}

.profile-avatar {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--theme-accent);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: var(--transition-fast);
}

.profile-card:hover .profile-avatar {
  transform: scale(1.05);
}

.groom-bg,
.bride-bg {
  background: linear-gradient(135deg, var(--theme-accent) 30%, #05241a 100%);
}

.avatar-letter {
  font-family: var(--font-serif-display);
  font-size: 32px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.profile-role {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 5px;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[lang="ur"] .profile-name {
  font-family: var(--font-urdu);
  font-size: 18px;
  font-weight: normal;
}

.profile-parents {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 140px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body[lang="ur"] .profile-parents {
  font-family: var(--font-urdu);
  font-size: 12px;
  line-height: 1.7;
}

.couple-connector {
  position: absolute;
  left: 50%;
  top: 45px;
  transform: translate(-50%, -50%);
  color: var(--gold-primary);
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(191, 149, 63, 0.4));
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.couple-connector svg {
  width: 26px;
  height: 26px;
}

.heart-pulse-icon {
  animation: heartbeat 1.5s infinite alternate;
}

@keyframes heartbeat {
  0% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1.15);
  }
}


/* ==================== SCRATCH CARD TO REVEAL DATE ==================== */
.scratch-card-container {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  margin: 15px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--gold-primary);
  overflow: hidden;
  background-color: var(--theme-secondary);
}

.revealed-date-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at center, var(--theme-accent) 0%, var(--theme-primary) 100%);
  border-radius: 50%;
  z-index: 5;
}

.date-month-year {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.date-day {
  font-family: var(--font-serif-display);
  font-size: 64px;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 2px;
}

.date-weekday {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 12px;
}

.date-time {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

#scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: grab;
  border-radius: 50%;
  transition: opacity 0.8s ease;
}

#scratch-canvas:active {
  cursor: grabbing;
}

.scratch-success-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(18, 40, 62, 0.95);
  border: 1px solid var(--gold-primary);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gold-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden-fade {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}


/* ==================== COUNTDOWN TIMER ==================== */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.countdown-box {
  width: 72px;
  height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(252, 250, 242, 0.07) 0%, rgba(252, 250, 242, 0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 12px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.45),
    inset 0 0 15px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 
    0 15px 30px rgba(212, 175, 55, 0.22),
    inset 0 0 15px rgba(212, 175, 55, 0.12);
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}


/* ==================== TIMELINE PROGRAM ==================== */
.timeline-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-top: 20px;
  padding: 10px 0;
}

.timeline-item {
  position: relative;
  padding-left: 25px;
  border-left: 1px solid var(--gold-primary);
  margin-bottom: 35px;
  text-align: left;
}

.timeline-item:last-child {
  margin-bottom: 10px;
  border-left: 1px dashed transparent;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: var(--gold-shadow);
}

.timeline-content {
  background: linear-gradient(135deg, rgba(6, 22, 17, 0.55) 0%, rgba(3, 11, 8, 0.75) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.18);
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
}

body[lang="ur"] .timeline-title {
  font-family: var(--font-urdu);
  font-size: 18px;
  font-weight: normal;
}

.timeline-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

body[lang="ur"] .timeline-desc {
  font-family: var(--font-urdu);
  font-size: 13.5px;
  line-height: 1.9;
}


/* ==================== VENUE & MAP SECTION ==================== */
.venue-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-icon {
  color: var(--gold-primary);
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: #fff;
  margin-bottom: 5px;
}

body[lang="ur"] .venue-name {
  font-family: var(--font-urdu);
  font-size: 21px;
  font-weight: normal;
}

.venue-room {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.venue-city {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

/* Beautiful custom map box */
.map-placeholder {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  border: 1px solid rgba(191, 149, 63, 0.3);
  overflow: hidden;
  margin-bottom: 20px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* Premium dark emerald aesthetic filter for Google Maps iframe */
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(95%) saturate(110%);
}

/* Golden buttons styling */
.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(120deg, #bf953f 0%, #fcf6ba 30%, #b38728 50%, #fcf6ba 70%, #aa771c 100%);
  background-size: 200% auto;
  animation: gold-shimmer 6s linear infinite;
  border: none;
  border-radius: 25px;
  color: #1a1505;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-shadow-heavy);
  filter: brightness(1.08);
}

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


/* ==================== RSVP FORM SECTION ==================== */
.rsvp-form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.rsvp-form-container.fade-out-height {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

body[lang="ur"] .form-group label {
  font-family: var(--font-urdu);
  font-size: 13.5px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 149, 63, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}

.form-group textarea {
  resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 8px rgba(191, 149, 63, 0.2);
}

.attendance-options {
  display: flex;
  gap: 15px;
  margin-top: 4px;
}

.attendance-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.attendance-radio input[type="radio"] {
  display: none;
}

.attendance-radio .radio-custom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  margin-right: 8px;
  display: inline-block;
  position: relative;
  background-color: transparent;
  transition: var(--transition-fast);
}

.attendance-radio input[type="radio"]:checked+.radio-custom {
  background-color: var(--gold-primary);
}

.attendance-radio input[type="radio"]:checked+.radio-custom::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
}

.submit-rsvp-btn {
  margin-top: 10px;
  width: 100%;
}

/* Success alert card state */
.rsvp-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  gap: 8px;
  padding: 10px 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rsvp-success svg {
  color: var(--gold-primary);
  margin-bottom: 5px;
}

.rsvp-success h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
}

.rsvp-success p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 90%;
  line-height: 1.5;
}


/* ==================== GUESTBOOK WISHES FEED ==================== */
.wishes-feed-container {
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
  padding-right: 5px;
}

/* Style scrollbar inside guest wishes feed */
.wishes-feed-container::-webkit-scrollbar {
  width: 4px;
}

.wishes-feed-container::-webkit-scrollbar-thumb {
  background: var(--gold-gradient-soft);
  border-radius: 4px;
}

.wish-card {
  background: var(--theme-card-bg);
  border: 1px solid rgba(252, 246, 186, 0.15);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: left;
  animation: slide-in-wish 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.wish-author {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-light);
}

.wish-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.wish-badge.attending {
  background-color: rgba(8, 36, 27, 0.4);
  color: #a3e635;
  border: 0.5px solid #a3e635;
}

.wish-badge.declined {
  background-color: rgba(138, 17, 28, 0.4);
  color: #f87171;
  border: 0.5px solid #f87171;
}

.wish-text {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  word-wrap: break-word;
}

.wish-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

@keyframes slide-in-wish {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

.loading-wishes {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold-light);
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.loading-wishes::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(191, 149, 63, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ==================== FOOTER SECTION ==================== */
#invitation-footer {
  margin-top: 40px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.gold-divider-mini {
  width: 80px;
  height: 1px;
  background: var(--gold-gradient);
}

.footer-note {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  max-width: 80%;
  line-height: 1.4;
}

body[lang="ur"] .footer-note {
  font-family: var(--font-urdu);
  font-size: 13px;
  line-height: 1.8;
}

.footer-copyright {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 5px;
}