/* ==========================================================================
   LUXURY ISLAMIC WEDDING INVITATION STYLESHEET
   Inspired by Royal Gold-Embossed Ivory Stationery
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-creme-main: #fbf8f3;
  --bg-creme-light: #fffdfa;
  --bg-creme-card: #f8f3ec;
  --bg-card-shadow: rgba(84, 62, 33, 0.12);

  --gold-primary: #c59b27;
  --gold-light: #fbe28e;
  --gold-bright: #dfb743;
  --gold-dark: #8c6716;
  --gold-deep: #5e4309;
  
  --gold-gradient: linear-gradient(135deg, #c59b27 0%, #fae69e 40%, #c59b27 70%, #8c6716 100%);
  --gold-foil: linear-gradient(90deg, #996515 0%, #D4AF37 25%, #FFF0AA 50%, #D4AF37 75%, #805300 100%);
  --gold-border: 1px solid rgba(197, 155, 39, 0.45);
  --gold-border-double: 3px double rgba(197, 155, 39, 0.6);

  --text-main: #2b2520;
  --text-secondary: #5e5347;
  --text-muted: #887a6c;
  --text-arabic: #7e5c14;

  --emerald-accent: #19432f;
  --emerald-dark: #0f2b1e;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Cinzel', serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-creme-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(223, 183, 67, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(223, 183, 67, 0.05) 0%, transparent 20%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='%23c59b27' fill-opacity='0.02'/%3E%3C/svg%3E");
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   FLOATING AUDIO CONTROLLER (TOP RIGHT)
   ========================================================================== */
.floating-audio-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 155, 39, 0.5);
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.floating-audio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.25);
  border-color: var(--gold-primary);
}

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

.audio-wave span {
  display: inline-block;
  width: 3px;
  height: 4px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.floating-audio-btn.playing .audio-wave span:nth-child(1) {
  animation: soundBars 0.8s infinite ease-in-out alternate;
}
.floating-audio-btn.playing .audio-wave span:nth-child(2) {
  animation: soundBars 0.8s infinite ease-in-out alternate 0.2s;
}
.floating-audio-btn.playing .audio-wave span:nth-child(3) {
  animation: soundBars 0.8s infinite ease-in-out alternate 0.4s;
}
.floating-audio-btn.playing .audio-wave span:nth-child(4) {
  animation: soundBars 0.8s infinite ease-in-out alternate 0.1s;
}

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

.audio-label {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   COVER & TAP-TO-OPEN ENVELOPE OVERLAY
   Inspired directly by the physical card photo
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background: radial-gradient(circle at center, #272018 0%, #110e0c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth), visibility 1s;
}

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

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* The Envelope Wrapper */
.envelope-card-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  perspective: 1200px;
}

/* Card Cover Container (matches photo dimensions & aesthetic) */
.card-cover-container {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #FAF6EE 0%, #F5ECE0 50%, #FAF5EE 100%);
  border-radius: 12px;
  padding: 36px 24px 32px 30px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 10px 25px rgba(197, 155, 39, 0.2),
    inset 0 0 40px rgba(230, 204, 153, 0.3);
  border: 2px solid rgba(212, 175, 55, 0.7);
  overflow: hidden;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-spring);
}

/* Ornate Border Frame */
.cover-border-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 155, 39, 0.5);
  border-radius: 8px;
  pointer-events: none;
}

.cover-border-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(197, 155, 39, 0.35);
  border-radius: 6px;
}

/* Corner Filigrees */
.corner-filigree {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold-primary);
  border-style: solid;
  opacity: 0.85;
}

.corner-filigree.top-left {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.corner-filigree.top-right {
  top: 4px;
  right: 4px;
  border-width: 2px 2px 0 0;
}

.corner-filigree.bottom-left {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 2px 2px;
}

.corner-filigree.bottom-right {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}

/* Left Satin Ribbon & Diamond Brooch (Just like the user's photo!) */
.cover-satin-ribbon {
  position: absolute;
  top: 14px;
  left: 20px;
  width: 44px;
  height: 100px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ribbon-strip {
  width: 32px;
  height: 70px;
  background: linear-gradient(90deg, #eae2d5 0%, #ffffff 50%, #d8cec0 100%);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(212, 175, 55, 0.4);
  border-right: 1px solid rgba(212, 175, 55, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.crystal-brooch {
  width: 38px;
  height: 38px;
  margin-top: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 30%, #e6e6e6 70%, #d4af37 100%);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 0 10px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brooch-svg {
  width: 34px;
  height: 34px;
  animation: diamondShimmer 4s infinite linear;
}

@keyframes diamondShimmer {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg); }
}

/* Cover Content */
.cover-body {
  position: relative;
  z-index: 4;
}

.cover-sub-label {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cover-couple-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #3b2f21;
  line-height: 1.25;
  margin-bottom: 20px;
}

.cover-couple-names span {
  display: block;
}

.cover-couple-names .cover-ampersand {
  font-family: var(--font-script);
  font-size: 2.2rem;
  line-height: 0.9;
  background: var(--gold-foil);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2px 0;
}

/* Central Gold Medallion */
.central-medallion {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medallion-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.medallion-ring.outer {
  inset: 0;
  border: 2px dashed var(--gold-primary);
  animation: rotateSlow 40s infinite linear;
}

.medallion-ring.inner {
  inset: 8px;
  border: 1px solid rgba(197, 155, 39, 0.5);
  box-shadow: inset 0 0 15px rgba(197, 155, 39, 0.2);
}

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

.medallion-content {
  background: radial-gradient(circle, #fffbf4 0%, #f7eee2 80%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 155, 39, 0.4);
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.15);
  padding: 8px;
}

.arabic-subtext {
  font-family: var(--font-arabic);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.45;
  text-align: center;
  direction: rtl;
  padding: 6px;
}

/* Guest Invitation Box */
.guest-invitation-box {
  margin-bottom: 24px;
  padding: 0 10px;
}

.guest-salutation {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: #423528;
  font-weight: 600;
}

.guest-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Tap to Open (Royal Wax Seal Button) */
.open-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wax-seal-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: transform 0.3s var(--ease-spring);
}

.wax-seal-btn:hover {
  transform: scale(1.06);
}

.wax-seal-btn:active {
  transform: scale(0.95);
}

.wax-seal-inner {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e5c158 0%, #c59b27 50%, #7d590e 100%);
  box-shadow: 
    0 8px 25px rgba(197, 155, 39, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -3px 5px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.wax-seal-icon {
  width: 32px;
  height: 32px;
}

.seal-text {
  font-family: var(--font-cinzel);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-top: 2px;
}

.wax-seal-ripple {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  opacity: 0.6;
  animation: sealPulse 2s infinite ease-out;
}

@keyframes sealPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.tap-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 10px;
  text-transform: uppercase;
}


/* ==========================================================================
   MAIN INVITATION CONTAINER (REVEALED CONTENT)
   ========================================================================== */
.main-invitation-container {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 16px 80px 16px;
  opacity: 1;
  transition: opacity 1.2s var(--ease-smooth);
}

.main-invitation-container.is-hidden {
  display: none;
  opacity: 0;
}

.content-wrapper {
  position: relative;
  z-index: 10;
}

/* Subtle corner background arabesque flourishes */
.bg-ornament {
  position: fixed;
  width: 300px;
  height: 300px;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Scroll Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-ornament-top-left {
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 Q50,0 50,50 Q50,100 100,100' stroke='%23000' fill='none' stroke-width='2'/%3E%3C/svg%3E");
}

.bg-ornament-top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 Q50,0 50,50 Q50,100 100,100' stroke='%23000' fill='none' stroke-width='2'/%3E%3C/svg%3E");
}

/* Common Section Layout */
.section {
  margin-bottom: 56px;
  text-align: center;
}

.section-header {
  margin-bottom: 28px;
}

.sub-header-tag {
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.section-main-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #33271c;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 6px auto 0 auto;
}

.ornament-leaf {
  width: 60px;
  height: 12px;
  margin: 10px auto 0 auto;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 60 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,6 Q15,0 30,6 Q45,12 60,6 Q45,0 30,6 Q15,12 0,6 Z' fill='%23c59b27' opacity='0.7'/%3E%3C/svg%3E") no-repeat center;
}

/* ==========================================================================
   SECTION 1: BISMILLAH & SACRED QURANIC BLESSING
   ========================================================================== */
.bismillah-section {
  padding-top: 20px;
}

.islamic-arch-frame {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EE 100%);
  border: 1px solid rgba(197, 155, 39, 0.4);
  border-radius: 120px 120px 16px 16px;
  padding: 50px 24px 40px 24px;
  box-shadow: 0 15px 40px var(--bg-card-shadow);
  overflow: hidden;
}

.islamic-arch-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(197, 155, 39, 0.3);
  border-radius: 114px 114px 10px 10px;
  pointer-events: none;
}

/* Vector Arabic Bismillah */
.bismillah-svg-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 14px auto;
}

.bismillah-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.bismillah-text-svg {
  font-family: var(--font-arabic);
  font-size: 52px;
  font-weight: 700;
  fill: url(#goldTextGrad);
  letter-spacing: 2px;
}

.bismillah-translation {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
}

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

.divider-knot {
  color: var(--gold-primary);
  font-size: 1rem;
}

/* Quran Verse Card */
.quran-verse-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border-left: 3px solid var(--gold-primary);
  border-right: 3px solid var(--gold-primary);
}

.quran-arabic {
  font-family: var(--font-arabic);
  font-size: 1.45rem;
  line-height: 2.1;
  color: #3b2c1b;
  margin-bottom: 12px;
  direction: rtl;
  text-align: center;
}

.quran-english {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 8px;
}

.quran-ref {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ==========================================================================
   SECTION 2: INVITATION LETTER
   ========================================================================== */
.invitation-letter-box {
  padding: 24px 16px;
  max-width: 680px;
  margin: 0 auto;
}

.islamic-crest-icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 10px;
}

.letter-intro {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3a3028;
}

/* ==========================================================================
   SECTION 3: COUPLE & PARENTS
   ========================================================================== */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.person-card {
  background: linear-gradient(145deg, #ffffff 0%, #faf5ec 100%);
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 10px 30px var(--bg-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.person-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(197, 155, 39, 0.2);
}

.person-role-tag {
  display: inline-block;
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-primary);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.person-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #2b221a;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.parents-block {
  border-top: 1px dashed rgba(197, 155, 39, 0.3);
  padding-top: 14px;
}

.relation-label {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.parent-names {
  font-size: 0.95rem;
  color: #3b2f24;
  line-height: 1.5;
}

.parent-names strong {
  color: #241d16;
  font-weight: 600;
}

.family-residence {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Connector between Groom & Bride */
.couple-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.connector-line {
  width: 1px;
  height: 45px;
  background: linear-gradient(180deg, transparent, var(--gold-primary), transparent);
}

.connector-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: radial-gradient(circle, #FAF4E8 0%, #F0E4D0 100%);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.connector-text {
  font-family: var(--font-script);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-dark);
}

.connector-sub {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 2px;
}

/* ==========================================================================
   SECTION 4: COUNTDOWN TIMER & CALENDAR
   ========================================================================== */
.countdown-card {
  background: linear-gradient(145deg, #231b14 0%, #15100c 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  padding: 38px 24px;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  pointer-events: none;
}

.section-gold-title {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 8px;
}

.wedding-target-date {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #e5dac9;
  margin-bottom: 26px;
}

.timer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.timer-digit-wrapper {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.timer-number {
  font-family: var(--font-cinzel);
  font-size: 1.8rem;
  font-weight: 700;
  color: #f7e19e;
  line-height: 1;
}

.timer-unit {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: #c9bdae;
  margin-top: 8px;
  font-weight: 600;
}

.timer-separator {
  font-family: var(--font-cinzel);
  font-size: 1.8rem;
  color: var(--gold-bright);
  align-self: flex-start;
  margin-top: 14px;
  font-weight: 700;
}

.calendar-actions {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   BUTTONS (LUXURY STYLES)
   ========================================================================== */
.luxury-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 30px;
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  border: none;
  text-transform: uppercase;
}

.luxury-btn.primary-gold {
  background: var(--gold-gradient);
  color: #2b1f05;
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

.luxury-btn.primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 155, 39, 0.5);
  filter: brightness(1.05);
}

.luxury-btn.secondary-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold-primary);
}

.luxury-btn.secondary-outline:hover {
  background: rgba(197, 155, 39, 0.1);
  transform: translateY(-2px);
}

.luxury-btn.whatsapp-action-btn {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.luxury-btn.whatsapp-action-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   SECTION 5: EVENT PROGRAM CARDS
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.event-card {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px var(--bg-card-shadow);
  position: relative;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.event-card.highlight-card {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FCF8F2 100%);
}

.event-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold-primary);
  color: #ffffff;
  font-family: var(--font-cinzel);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.event-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(197, 155, 39, 0.3);
  padding-bottom: 16px;
}

.event-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197, 155, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

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

.event-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #2b2118;
  font-weight: 700;
}

.event-hijri {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  align-items: baseline;
  font-size: 0.92rem;
}

.detail-label {
  font-weight: 600;
  color: var(--gold-dark);
  width: 90px;
  flex-shrink: 0;
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.detail-value {
  color: var(--text-main);
  font-weight: 500;
}

.event-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 8px;
  border-top: 1px dotted rgba(0,0,0,0.06);
  padding-top: 8px;
}

/* ==========================================================================
   SECTION 6: VENUE & GOOGLE MAPS
   ========================================================================== */
.venue-card {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.4);
  border-radius: 20px;
  padding: 36px 24px 28px 24px;
  box-shadow: 0 15px 40px var(--bg-card-shadow);
  text-align: center;
}

.venue-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #3b2805;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.3);
}

.venue-pin-icon {
  width: 28px;
  height: 28px;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #2b2219;
  font-weight: 700;
  margin-bottom: 8px;
}

.venue-address {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 4px auto;
}

.venue-landmark {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

.venue-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.map-embed-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(197, 155, 39, 0.3);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(33, 27, 21, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 7: CONTACT PERSONS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px var(--bg-card-shadow);
  text-align: center;
  position: relative;
}

.contact-side-badge {
  display: inline-block;
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
  padding: 3px 10px;
  background: rgba(197, 155, 39, 0.1);
  border-radius: 20px;
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #2e241c;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-btn svg {
  width: 14px;
  height: 14px;
}

.contact-btn.call-btn {
  background: #f4eee2;
  color: #4b3917;
  border: 1px solid rgba(197, 155, 39, 0.4);
}

.contact-btn.call-btn:hover {
  background: var(--gold-primary);
  color: #ffffff;
}

.contact-btn.wa-btn {
  background: #25d366;
  color: #ffffff;
}

.contact-btn.wa-btn:hover {
  background: #1eb956;
}

.contact-sub-header {
  text-align: center;
  margin-bottom: 14px;
}

.contact-group-pill {
  display: inline-block;
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid rgba(197, 155, 39, 0.35);
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
}

.events-single-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

.wedding-main-card {
  text-align: left;
}

/* ==========================================================================
   SECTION 9: SHARE & VIRAL INVITATION
   ========================================================================== */
.share-box {
  background: linear-gradient(135deg, #FAF4E8 0%, #F5ECE0 100%);
  border: 1px dashed var(--gold-primary);
  border-radius: 18px;
  padding: 28px 20px;
  max-width: 580px;
  margin: 0 auto;
}

.share-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #3b2e21;
  font-weight: 700;
  margin-bottom: 4px;
}

.share-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.share-btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.share-pill-btn.wa {
  background: #25d366;
  color: #ffffff;
}

.share-pill-btn.copy {
  background: #3b2f23;
  color: #f7e4b2;
}

.share-pill-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ==========================================================================
   FOOTER & CLOSING DUA
   ========================================================================== */
.wedding-footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(197, 155, 39, 0.3);
  margin-top: 40px;
}

.footer-arabic {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--gold-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.footer-gratitude {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #3f3328;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-couples-sign {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #2b221a;
  margin-bottom: 24px;
}

.footer-watermark {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   TOAST MESSAGE
   ========================================================================== */
.toast-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(36, 28, 20, 0.95);
  backdrop-filter: blur(8px);
  color: #fce7a8;
  border: 1px solid var(--gold-primary);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: none;
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST OPTIMIZATION)
   ========================================================================== */
@media (max-width: 768px) {
  .cover-couple-names {
    font-size: 1.55rem;
  }
  
  .couple-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .couple-connector {
    margin: 8px 0;
  }

  .connector-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  }

  .timer-grid {
    gap: 8px;
  }

  .timer-box {
    min-width: 52px;
  }

  .timer-digit-wrapper {
    width: 52px;
    height: 52px;
  }

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

  .timer-separator {
    font-size: 1.45rem;
    margin-top: 10px;
  }

  .bismillah-text-svg {
    font-size: 44px;
  }

  .islamic-arch-frame {
    border-radius: 80px 80px 14px 14px;
    padding: 36px 16px 28px 16px;
  }

  .quran-arabic {
    font-size: 1.25rem;
    line-height: 1.9;
  }

  .venue-actions {
    flex-direction: column;
    width: 100%;
  }

  .luxury-btn {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}
