/* ==========================================================================
   WEDDING INVITATION LUXURY DESIGN SYSTEM - V4 (PERFECTION)
   Theme: Deep Burgundy, Rose Blush, 24K Gold Accents, Linen Ivory
   Couple: محمد عامر & حلا
   Mothers: حرم السيد عمر سبيني & حرم السيد غزوان منقار
   Date: January 2, 2027
   Venue: صالة لاكشري بالاس دمشق - المزة (مواجه أبراج تالا)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Aref+Ruqaa:wght@400;700&family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700;800&family=Marcellus&family=Reem+Kufi:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #1A0307;
  --bg-deep-burgundy: #2C050D;
  --burgundy-rich: #4A0E18;
  --burgundy-royal: #5A1221;
  --burgundy-vivid: #72162B;
  --burgundy-darkest: #32040E;
  --blush-rose: #E8B4B8;
  --blush-pale: #FBF4F5;

  /* Gold System */
  --gold-highlight: #FFF8E7;
  --gold-light: #F7E4A6;
  --gold-pure: #D4AF37;
  --gold-medium: #C59B27;
  --gold-deep: #8E6E1B;
  --gold-foil: linear-gradient(135deg, #ECC86A 0%, #FFF4CD 25%, #C59B27 50%, #FAF0BD 75%, #9E7820 100%);
  --gold-foil-shine: linear-gradient(90deg, rgba(212,175,55,0.85) 0%, rgba(255,248,231,1) 50%, rgba(197,155,39,0.85) 100%);

  /* Ivory / Linen Card */
  --card-ivory: #FFFDF9;
  --card-ivory-cream: #FAF5EB;
  --text-dark: #2B050E;
  --text-muted: #5E2633;

  /* Typography */
  --font-arabic-calligraphy: 'Amiri', 'Aref Ruqaa', 'Traditional Arabic', serif;
  --font-arabic-traditional: 'Amiri', 'Traditional Arabic', serif;
  --font-cinzel: 'Cinzel', serif;
  --font-cinzel-dec: 'Cinzel Decorative', serif;

  /* Elevation */
  --shadow-lux: 0 25px 60px -15px rgba(22, 2, 6, 0.75), 0 0 40px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 20px 50px rgba(26, 3, 7, 0.35), 0 2px 10px rgba(212, 175, 55, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic-traditional);
  color: var(--text-dark);
  background: radial-gradient(circle at 50% 20%, #3B0610 0%, #200308 55%, #100104 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Background Swaying Master Florals & Parallax Canvas */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
}

.parallax-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.parallax-flower {
  position: absolute;
  opacity: 0.28;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.parallax-flower.top-left {
  top: -40px;
  left: -50px;
  width: 380px;
  animation: gentleSway 9s ease-in-out infinite alternate;
}

.parallax-flower.top-right {
  top: -40px;
  right: -50px;
  width: 380px;
  transform: scaleX(-1);
  animation: gentleSway 11s ease-in-out infinite alternate-reverse;
}

.parallax-flower.bottom-left {
  bottom: -40px;
  left: -40px;
  width: 320px;
  animation: gentleSway 10s ease-in-out infinite alternate;
}

.parallax-flower.bottom-right {
  bottom: -40px;
  right: -40px;
  width: 320px;
  transform: scaleX(-1);
  animation: gentleSway 12s ease-in-out infinite alternate-reverse;
}

@keyframes gentleSway {
  0% { transform: rotate(0deg) translateY(0px); }
  50% { transform: rotate(2deg) translateY(-8px); }
  100% { transform: rotate(-2deg) translateY(6px); }
}

/* ==========================================================================
   1. INTERACTIVE ENVELOPE UNBOXING (100% CLOSED & CONCEALED INITIALLY)
   ========================================================================== */
#envelope-unboxing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #350610 0%, #1A0307 70%, #0D0104 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
}

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

.envelope-stage {
  position: relative;
  width: min(92vw, 480px);
  height: min(85vh, 600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Realistic Landscape Wedding Envelope Box */
.envelope-3d-box {
  position: relative;
  width: 100%;
  height: 330px; /* Classic stationery landscape proportion */
  perspective: 1600px;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Envelope Back Wall (Interior Paper Lining) */
.envelope-back-wall {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #3B0610 0%, #200308 100%);
  border-radius: 12px;
  box-shadow: 0 35px 80px rgba(0,0,0,0.9), 0 0 30px rgba(90, 18, 33, 0.35);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  z-index: 1;
  overflow: hidden;
}

.envelope-interior-lining {
  position: absolute;
  inset: 12px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, rgba(26, 3, 7, 0.6) 100%),
              repeating-linear-gradient(45deg, rgba(212,175,55,0.04) 0, rgba(212,175,55,0.04) 2px, transparent 2px, transparent 12px);
  border-radius: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.3);
}

/* The Sliding Invitation Card (TUCKED DEEP INSIDE INITIALLY) */
.envelope-sliding-card {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  height: 300px;
  background: var(--card-ivory);
  border-radius: 10px;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5), inset 0 0 15px rgba(212, 175, 55, 0.1);
  z-index: 2; /* Below front pocket and flap */
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(0);
  transition: transform 1.5s cubic-bezier(0.2, 0.9, 0.3, 1), z-index 0.1s ease;
  will-change: transform;
}

.sliding-card-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #FFFDF9;
}

.sliding-card-floral {
  width: 70%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.sliding-card-bismillah {
  font-family: var(--font-arabic-traditional);
  font-size: 0.98rem;
  color: var(--burgundy-royal);
  font-weight: 700;
}

.sliding-card-welcome {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sliding-card-couples {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin: 2px 0;
}

.sliding-family-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sliding-mother {
  font-size: 0.74rem;
  color: var(--gold-deep);
  font-weight: 700;
}

.sliding-name {
  font-family: var(--font-arabic-calligraphy);
  font-size: 1.2rem;
  font-weight: 700;
  color: #4A0817;
  margin-top: 1px;
}

.sliding-amp {
  font-family: var(--font-cinzel-dec);
  font-size: 1.1rem;
  color: var(--gold-medium);
  margin: 0 4px;
}

.sliding-card-closure {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sliding-card-date-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 10px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.sliding-card-venue {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Authentic Envelope Folding System (Forms the physical envelope pocket) */
.envelope-pocket-front {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  z-index: 5;
}

/* Left Triangular Fold */
.envelope-fold-left {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 0 100%, 52% 50%);
  background: linear-gradient(135deg, #4A0917 0%, #35050F 70%, #250309 100%);
  border-left: 1.5px solid rgba(212, 175, 55, 0.4);
  filter: drop-shadow(3px 0 8px rgba(0,0,0,0.45));
  z-index: 1;
}

/* Right Triangular Fold */
.envelope-fold-right {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 100% 100%, 48% 50%);
  background: linear-gradient(225deg, #4A0917 0%, #35050F 70%, #250309 100%);
  border-right: 1.5px solid rgba(212, 175, 55, 0.4);
  filter: drop-shadow(-3px 0 8px rgba(0,0,0,0.45));
  z-index: 1;
}

/* Bottom Triangular Pocket Flap with Calligraphy & Crease */
.envelope-fold-bottom {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 100% 100%, 50% 38%);
  background: linear-gradient(0deg, #2A040B 0%, #3E0713 50%, #520B1A 100%);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 -8px 25px rgba(0,0,0,0.55);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 24px;
}

.pocket-v-crease {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 100% 100%, 50% 38%);
  border-top: 1.5px solid rgba(212, 175, 55, 0.45);
  pointer-events: none;
}

.envelope-front-calligraphy {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.calligraphy-small {
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  opacity: 0.85;
}

.calligraphy-names {
  font-family: var(--font-arabic-calligraphy);
  font-size: 1.3rem;
  font-weight: 700;
  color: #F8E7B9;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Top Triangular Flap: seals the envelope shut down to the apex */
.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  background: linear-gradient(180deg, #581021 0%, #460917 65%, #32040E 100%);
  border-radius: 12px 12px 0 0;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 18px 35px rgba(0,0,0,0.7);
  z-index: 10;
}

.envelope-top-flap::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  border-top: 1.5px solid rgba(212, 175, 55, 0.5);
  border-left: 1px solid rgba(212, 175, 55, 0.35);
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

.flap-gold-crease {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

/* User's Authentic Burgundy & Gold Wax Seal Stamped Over Flap Apex */
.wax-seal-container {
  position: absolute;
  top: 140px; /* Aligns with the 60% apex of the top flap! */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease, opacity 0.5s ease;
  user-select: none;
}

.wax-seal-container:hover {
  transform: translateX(-50%) scale(1.08);
}

.wax-seal-stamp-img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,0.85)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
  transition: transform 0.3s ease;
}

.wax-seal-shimmer-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.65);
  animation: sealRotate 15s linear infinite;
  pointer-events: none;
}

@keyframes sealRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wax-seal-tooltip {
  margin-top: 12px;
  background: rgba(26, 3, 7, 0.94);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.6);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: tooltipFloat 2.5s infinite ease-in-out;
}

@keyframes tooltipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* UNBOXING TRIGGERED STATE */
.envelope-3d-box.unboxing .wax-seal-container {
  transform: translateX(-50%) scale(1.25) translateY(-25px);
  opacity: 0;
  pointer-events: none;
}

.envelope-3d-box.unboxing .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-3d-box.unboxing .envelope-sliding-card {
  z-index: 15;
  transform: translateY(-88%) scale(1.05);
  box-shadow: 0 35px 70px rgba(0,0,0,0.85), 0 0 35px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   STICKY FLOATING CONTROLS
   ========================================================================== */
.floating-actions-bar {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-control-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(36, 4, 10, 0.88);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--gold-light);
  user-select: none;
}

.music-control-pill:hover {
  border-color: var(--gold-pure);
  transform: translateY(-2px);
}

.music-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #72162B, #3B0610);
  border: 1px solid var(--gold-pure);
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.music-wave-bar {
  width: 2.5px;
  background: var(--gold-pure);
  border-radius: 2px;
  height: 4px;
}

.music-control-pill.playing .music-wave-bar:nth-child(1) { animation: soundBars 0.8s ease infinite alternate; }
.music-control-pill.playing .music-wave-bar:nth-child(2) { animation: soundBars 1.1s ease infinite alternate 0.2s; }
.music-control-pill.playing .music-wave-bar:nth-child(3) { animation: soundBars 0.9s ease infinite alternate 0.4s; }
.music-control-pill.playing .music-wave-bar:nth-child(4) { animation: soundBars 1.2s ease infinite alternate 0.1s; }

@keyframes soundBars {
  0% { height: 3px; }
  100% { height: 16px; }
}

.music-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.icon-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(36, 4, 10, 0.88);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: all 0.3s;
}

.icon-action-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--gold-pure);
}

/* ==========================================================================
   MAIN INVITATION CARD (USER FLORALS & MOTHERS INVITATION)
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 18px 80px;
}

.royal-invitation-card {
  position: relative;
  background: var(--card-ivory);
  background-image: 
    radial-gradient(#F3EADA 1px, transparent 1px),
    linear-gradient(to bottom, #FFFDF9 0%, #FAF5EC 50%, #FFFDF9 100%);
  background-size: 20px 20px, 100% 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lux);
  border: 2px solid rgba(212, 175, 55, 0.45);
  padding: 55px 45px;
  margin-bottom: 45px;
  overflow: hidden;
}

.royal-invitation-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 14px;
  pointer-events: none;
}

.royal-invitation-card::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 0.5px dashed rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

.card-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}
.card-corner.top-right { top: 18px; right: 18px; }
.card-corner.top-left { top: 18px; left: 18px; transform: scaleX(-1); }
.card-corner.bottom-right { bottom: 18px; right: 18px; transform: scaleY(-1); }
.card-corner.bottom-left { bottom: 18px; left: 18px; transform: scale(-1, -1); }

/* User Watercolor Floral Garland */
.card-floral-header {
  width: 100%;
  max-width: 500px;
  margin: -30px auto 25px;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 15px 30px rgba(60, 8, 18, 0.22));
}

.card-floral-header img {
  width: 85%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.card-floral-header img:hover {
  transform: scale(1.03);
}

.card-floral-footer {
  width: 100%;
  max-width: 450px;
  margin: 35px auto -25px;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 12px 25px rgba(60, 8, 18, 0.18));
}

.card-floral-footer img {
  width: 75%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

/* Typography & Calligraphy */
.bismillah {
  font-family: var(--font-arabic-traditional);
  font-size: 1.65rem;
  font-weight: 700;
  text-align: center;
  color: var(--burgundy-royal);
  margin-bottom: 12px;
}

.quran-verse-block {
  text-align: center;
  margin: 0 auto 25px;
  max-width: 620px;
  padding: 0 15px;
}

.quran-ayah {
  font-family: var(--font-arabic-traditional);
  font-size: 1.28rem;
  line-height: 2.1;
  color: var(--text-muted);
  font-weight: 600;
}

.quran-ayah::before, .quran-ayah::after {
  content: ' ❖ ';
  color: var(--gold-pure);
  font-size: 0.95rem;
}

.ayah-ref {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-deep);
  margin-top: 6px;
  font-weight: 600;
}

.divider-gold-img {
  width: 100%;
  max-width: 320px;
  margin: 18px auto;
  display: block;
  opacity: 0.9;
}

/* ==========================================================================
   ROYAL MOTHERS & COUPLE NAMES (GENEROUS BREATHING SPACE)
   ========================================================================== */
.names-invitation-container {
  text-align: center;
  margin: 30px 0 35px;
}

.honor-welcome-phrase {
  font-family: var(--font-arabic-traditional);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--burgundy-royal);
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.couples-family-symmetry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.family-side-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  padding: 10px 15px;
}

.mother-honor-title {
  font-family: var(--font-arabic-traditional);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 20px; /* Generous breathing space! */
  letter-spacing: 0.6px;
}

.mother-name-divider {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
  margin-bottom: 18px; /* Clean visual space */
}

.calligraphy-groom-name,
.calligraphy-bride-name {
  font-family: 'Amiri', 'Aref Ruqaa', 'Traditional Arabic', serif;
  font-size: clamp(2.7rem, 6.8vw, 4rem);
  font-weight: 700;
  color: #4A0817; /* Solid velvet burgundy for 100% crisp legibility */
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 12px rgba(74, 8, 23, 0.25);
}

.wedding-connector-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-ampersand {
  font-family: var(--font-cinzel-dec);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #C59B27;
  text-shadow: 0 2px 10px rgba(197, 155, 39, 0.45);
  margin: 0 10px;
}

.honor-invitation-conclusion {
  font-family: var(--font-arabic-traditional);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--burgundy-royal);
  margin-top: 25px;
  letter-spacing: 0.5px;
}

.invitation-body-text {
  text-align: center;
  font-family: var(--font-arabic-traditional);
  font-size: 1.25rem;
  line-height: 2.2;
  color: var(--text-dark);
  max-width: 650px;
  margin: 0 auto 30px;
  padding: 0 10px;
}

.scroll-indicator-wrap {
  text-align: center;
  margin: 25px auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--gold-deep);
  transition: transform 0.3s ease;
}

.scroll-indicator-wrap:hover {
  transform: translateY(3px);
  color: var(--gold-pure);
}

.scroll-arrow-pearl {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: arrowBounce 2s infinite ease-in-out;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   DYNAMIC COUNTDOWN SECTION
   ========================================================================== */
.countdown-section-card {
  position: relative;
  background: linear-gradient(135deg, rgba(58, 8, 19, 0.92) 0%, rgba(35, 4, 10, 0.96) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 18px;
  padding: 35px 25px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-lux);
  text-align: center;
}

.countdown-title {
  font-family: var(--font-arabic-traditional);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.countdown-sub {
  font-size: 0.95rem;
  color: var(--blush-rose);
  margin-bottom: 25px;
}

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

.countdown-unit-box {
  background: rgba(22, 2, 6, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 18px 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.countdown-num {
  font-family: var(--font-cinzel);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-highlight);
  background: var(--gold-foil);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-label {
  font-family: var(--font-arabic-traditional);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blush-pale);
  margin-top: 6px;
}

/* ==========================================================================
   EVENT DETAILS SECTION (FACING TALA TOWERS)
   ========================================================================== */
.event-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 35px;
}

@media (max-width: 768px) {
  .event-details-grid {
    grid-template-columns: 1fr;
  }
}

.luxury-info-card {
  background: var(--card-ivory);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  padding: 35px 25px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-icon-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A0E18, #26040A);
  border: 1.5px solid var(--gold-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.card-title {
  font-family: var(--font-arabic-calligraphy);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--burgundy-royal);
  margin-bottom: 12px;
}

.card-highlight-date {
  font-family: var(--font-cinzel);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 6px 0;
}

.card-subtext {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.venue-badge-arabic {
  font-family: var(--font-arabic-traditional);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--burgundy-vivid);
  margin-bottom: 4px;
}

.venue-badge-en {
  font-family: var(--font-cinzel);
  font-size: 1rem;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.venue-address {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-luxury-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #5A1221 0%, #3B0610 100%);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-pure);
  padding: 12px 22px;
  border-radius: 30px;
  font-family: var(--font-arabic-traditional);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(59, 6, 16, 0.35);
  transition: all 0.3s;
}

.btn-luxury-primary:hover {
  background: linear-gradient(135deg, #72162B 0%, #4A0E18 100%);
  transform: translateY(-2px);
  color: #FFF;
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--burgundy-royal);
  border: 1.2px solid rgba(90, 18, 33, 0.35);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-luxury-outline:hover {
  background: rgba(90, 18, 33, 0.08);
  border-color: var(--burgundy-royal);
}

/* ==========================================================================
   INTERACTIVE MAP (WITH RE-CENTER CONTROL)
   ========================================================================== */
.map-embed-wrapper {
  background: var(--card-ivory);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-card);
}

.map-header {
  text-align: center;
  margin-bottom: 18px;
}

.map-header h3 {
  font-family: var(--font-arabic-calligraphy);
  font-size: 1.6rem;
  color: var(--burgundy-royal);
}

.map-interactive-container {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.map-interactive-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map Re-Center Button */
.map-recenter-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(36, 4, 10, 0.92);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-pure);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.25s ease;
}

.map-recenter-btn:hover {
  background: var(--burgundy-royal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.map-directions-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  background: #FFFDF8;
  color: var(--burgundy-royal);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.chip-btn:hover {
  background: var(--burgundy-royal);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   SIMPLIFIED RSVP VIA WHATSAPP (NO 'RSVP' WORD)
   ========================================================================== */
.rsvp-section-card {
  background: var(--card-ivory);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  padding: 50px 35px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-lux);
}

@media (max-width: 600px) {
  .rsvp-section-card {
    padding: 35px 20px;
  }
}

.rsvp-header-wrap {
  text-align: center;
  margin-bottom: 25px;
}

.rsvp-main-title {
  font-family: var(--font-arabic-calligraphy);
  font-size: 2.3rem;
  color: var(--burgundy-royal);
  margin-bottom: 8px;
}

/* Critical Capacity Reminder */
.rsvp-capacity-reminder-box {
  background: linear-gradient(135deg, rgba(74, 14, 24, 0.06) 0%, rgba(212, 175, 55, 0.12) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-right: 4px solid var(--burgundy-royal);
  border-radius: 14px;
  padding: 22px 25px;
  margin-bottom: 30px;
}

.reminder-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--burgundy-royal);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.reminder-text-body {
  font-size: 1.08rem;
  line-height: 2;
  color: var(--text-dark);
  text-align: justify;
}

.reminder-text-body strong {
  color: var(--burgundy-royal);
}

.rsvp-form-group {
  margin-bottom: 24px;
}

.rsvp-form-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--burgundy-royal);
  margin-bottom: 8px;
}

.rsvp-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(90, 18, 33, 0.25);
  background: #FFFDFB;
  font-family: var(--font-arabic-traditional);
  font-size: 1.05rem;
  color: var(--text-dark);
  outline: none;
  transition: all 0.25s ease;
}

.rsvp-input:focus {
  border-color: var(--gold-pure);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
  background: #FFF;
}

.attendance-pills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 520px) {
  .attendance-pills-row {
    grid-template-columns: 1fr;
  }
}

.attendance-pill-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(90, 18, 33, 0.25);
  background: #FFFDF9;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

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

.attendance-pill-custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(90, 18, 33, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attendance-pill-custom-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--burgundy-royal);
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.attendance-pill-label:hover {
  border-color: var(--gold-pure);
}

.attendance-pill-label.active {
  border-color: var(--burgundy-royal);
  background: rgba(90, 18, 33, 0.06);
  box-shadow: 0 6px 18px rgba(90, 18, 33, 0.12);
}

.attendance-pill-label.active .attendance-pill-custom-radio::after {
  opacity: 1;
  transform: scale(1);
}

.pill-text-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--burgundy-royal);
}

.pill-text-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* WhatsApp Submit Button */
.btn-whatsapp-rsvp {
  width: 100%;
  padding: 16px 28px;
  border-radius: 35px;
  background: linear-gradient(135deg, #1E7E34 0%, #155D27 100%);
  color: #FFFFFF;
  border: 2px solid var(--gold-light);
  font-family: var(--font-arabic-traditional);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(21, 93, 39, 0.4), 0 0 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-whatsapp-rsvp:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #28A745 0%, #1E7E34 100%);
  box-shadow: 0 15px 40px rgba(40, 167, 69, 0.5), 0 0 30px rgba(212, 175, 55, 0.5);
}

.whatsapp-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   HOUSE RULES & FOOTER
   ========================================================================== */
.house-rules-card {
  background: linear-gradient(135deg, rgba(42, 5, 12, 0.95) 0%, rgba(22, 2, 6, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  padding: 35px 25px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-lux);
  text-align: center;
  color: var(--blush-pale);
}

.rules-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.rule-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rule-svg-box {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.4));
}

.rule-icon-caption {
  font-size: 0.88rem;
  color: var(--gold-light);
  font-weight: 600;
}

.house-rules-main-text {
  font-family: var(--font-arabic-traditional);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 2;
  margin-bottom: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.house-rules-subtext {
  font-size: 1.05rem;
  color: var(--blush-rose);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.site-footer {
  text-align: center;
  padding: 30px 15px 10px;
  color: rgba(251, 244, 245, 0.7);
  font-size: 0.95rem;
}

.footer-monogram-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 15px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.85)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.footer-couple-names {
  font-family: var(--font-arabic-calligraphy);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.footer-blessing {
  font-size: 1.05rem;
  color: var(--blush-rose);
  margin-bottom: 12px;
}

/* Toast Notifications */
#toast-notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10000;
  background: linear-gradient(135deg, #4A0E18, #26040A);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-pure);
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 650px) {
  .royal-invitation-card { padding: 40px 18px; border-radius: 16px; }
  .couples-family-symmetry { gap: 15px; }
  .calligraphy-groom-name, .calligraphy-bride-name { font-size: 2.3rem; }
  .floating-actions-bar { top: 12px; left: 12px; }
  .envelope-3d-box { height: 280px; }
  .envelope-sliding-card { height: 250px; top: 10px; left: 12px; right: 12px; }
  .envelope-fold-bottom { padding-bottom: 16px; }
  .calligraphy-names { font-size: 1.15rem; }
  .wax-seal-container { top: 110px; }
  .wax-seal-stamp-img { width: 102px; height: 102px; }
  .card-floral-header { max-width: 360px; margin: -25px auto 18px; }
  .card-floral-header img { max-width: 300px; }
  .card-floral-footer { max-width: 320px; }
  .card-floral-footer img { max-width: 260px; }
}
