/* ==========================================================
   ROYAL DIGITAL WEDDING INVITATION - MASTER STYLESHEET
   THEME: SWAN & BLUSH ROSE GOLD (البجعة والورد الزهري والروز قولد - W3)
   MOBILE-FIRST ARCHITECTURE (MATCHING W1 PROPORTIONS & RESPONSIVENESS)
   ========================================================== */

@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:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&family=Pinyon+Script&family=Reem+Kufi:wght@400;500;600;700&display=swap');

/* خط المشرف نسخ الأصلي الفاخر (AMoshrf-Naskh) */
@font-face {
  font-family: 'AMoshrf-Naskh';
  src: url('amoshref-naskh.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/gh/mokhtarbsaid/rare-arabic-fonts/amoshref-naskh/amoshref-naskh.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'amoshref-naskh';
  src: url('amoshref-naskh.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/gh/mokhtarbsaid/rare-arabic-fonts/amoshref-naskh/amoshref-naskh.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Page & Card Backgrounds */
  --bg-page: #fbf2f1;
  --bg-page-soft: #f8e5e4;
  --bg-card: #fde4e3;
  --card-white: #ffffff;

  /* Swan Rose-Gold & Champagne Metallics */
  --gold-primary: #be8455;
  --gold-secondary: #c99365;
  --gold-light: #f5dfcb;
  --gold-lighter: #fdf2e8;
  --gold-dark: #8c5836;
  --gold-accent: #a3663e;
  --gold-border: #dcb394;
  --gold-border-light: #edd3bf;
  --gold-glow: rgba(190, 132, 85, 0.25);

  /* Blush Pink & Rose Accents */
  --rose-primary: #cf7e93;
  --rose-deep: #b35970;
  --rose-soft: #f4bac7;
  --rose-petal: #fce4eb;
  --rose-light: #fdf0f4;
  --swan-white: #ffffff;
  --swan-cream: #faf5f0;

  /* Typography Colors */
  --text-main: #2b141a;
  --text-dark: #1e0b12;
  --text-muted: #6e444e;
  --text-sub: #855b65;
  --text-gold: #965c35;

  /* Fonts */
  --font-arabic-heading: 'AMoshrf-Naskh', 'amoshref-naskh', 'Amiri', serif;
  --font-arabic-sub: 'Amiri', 'Reem Kufi', sans-serif;
  --font-arabic-body: 'Amiri', serif;
  --font-calligraphy: 'Great Vibes', 'Pinyon Script', cursive;
  --font-serif-en: 'Cormorant Garamond', 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(115, 60, 70, 0.08);
  --shadow-card: 0 16px 48px rgba(125, 65, 80, 0.14);
  --shadow-button: 0 8px 22px rgba(190, 132, 85, 0.32);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--bg-page);
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}


body {
  font-family: var(--font-arabic-body);
  background: radial-gradient(circle at 50% 15%, #fff9f8 0%, #faeceb 45%, #f2dcda 100%);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Floating Fullscreen Background Petals/Sparkles Canvas */
#globalPetalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================
   APP MAIN WRAPPER (Fluid & Seamless - Matching W1)
   ========================================================== */
.app-container {
  width: 100%;
  max-width: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* ==========================================================
   SECTION 1: HERO SECTION (Continuous Video & Overlay - Matching W1)
   ========================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(254, 238, 238, 0.08) 0%, rgba(45, 18, 25, 0.38) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-overlay-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--bg-page) 0%, rgba(251, 242, 241, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin-top: clamp(65px, 11vh, 100px);
  animation: fadeInHero 1.8s ease-out;
}

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

.hero-names-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-monogram-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  direction: ltr;
}

.hero-name {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.6rem, 7.5vw, 3.6rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.18;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 255, 255, 0.4);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.75));
}

.hero-heart-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  animation: pulseHeart 2.2s infinite ease-in-out;
}

.hero-heart-svg {
  width: 100%;
  height: 100%;
  fill: #cf7e93;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(207, 126, 147, 0.6));
}

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

.hero-separator {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.2rem, 6.5vw, 2.9rem);
  color: #ffffff;
  margin: -8px 0;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-date {
  font-family: var(--font-serif-en);
  font-size: clamp(1.45rem, 4.2vw, 1.8rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 2.5px;
  margin-top: 8px;
  direction: ltr;
  unicode-bidi: isolate;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  animation: bounceSoft 2.2s infinite ease-in-out;
}

.hero-scroll-text {
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  font-weight: 600;
  color: #693318;
}

.hero-scroll-icon {
  width: 20px;
  height: 20px;
  fill: #693318;
}

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

/* ==========================================================
   SECTION 2: ROYAL SWAN ARCH INVITATION CARD (FLUID RESPONSIVE)
   ========================================================== */
.card-section {
  width: 100%;
  padding: 28px 8px 45px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* تبديل لغة بطاقة الدعوة (Tabs) */
.card-lang-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 179, 148, 0.55);
  border-radius: 30px;
  padding: 4px 6px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(125, 65, 80, 0.08);
  z-index: 5;
}

.card-lang-btn {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: 20px;
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lang-btn i {
  font-size: 0.82rem;
  color: var(--gold-primary);
  transition: color 0.3s ease;
}

.card-lang-btn.active {
  background: linear-gradient(135deg, #be8455 0%, #9a5833 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(154, 88, 51, 0.32);
}

.card-lang-btn.active i {
  color: #ffffff;
}

/* البطاقة الملكية الفاخرة وإطار البجعة (swan-frame.png) */
.royal-invitation-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  background: transparent;
  filter: drop-shadow(0 16px 36px rgba(125, 65, 80, 0.16));
}

/* صورة الإطار الكاملة خلف محتوى الدعوة */
.card-frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
  display: block;
}

/* المحتوى الداخلي للبطاقة بارتفاع مرن وموضع دقيق أسفل بجعتي الإطار وداخل حدود الإطار */
.card-inner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 155px 28px 60px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* لوحات اللغات */
.card-lang-panel {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  animation: fadeInPanel 0.4s ease-out;
}

.card-lang-panel.active {
  display: flex;
}

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

/* ==================== محتوى البطاقة العربية (AMoshrf-Naskh) ==================== */
.card-lang-panel.panel-ar {
  direction: rtl;
  text-align: center;
}

/* ترويسة أفراح آل السقا */
.card-family-header {
  margin-top: 6px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-family-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 14px;
  border-top: 1px solid rgba(190, 132, 85, 0.4);
  border-bottom: 1px solid rgba(190, 132, 85, 0.4);
}

.family-header-wing {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}

.family-header-wing.right {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.card-family-title {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #723c1c;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* 1. الترويسة القرآنية الشريفة مع الفاصل المذهب */
.card-header-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-basmalah {
  font-family: 'Amiri', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e0b12;
  line-height: 1.45;
  margin-bottom: 8px;
}

.card-ayah-container {
  width: 100%;
  max-width: 100%;
}

.card-ayah-text {
  font-family: 'Amiri', serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.75;
  color: #2a131b;
  direction: rtl;
  margin: 2px auto;
}

.card-surah-info {
  font-family: var(--font-arabic-sub);
  font-size: 0.95rem;
  color: #7d4d58;
  line-height: 1.4;
  margin-top: 4px;
  display: block;
}

/* فاصل ملكي ناعم وفخم */
.card-royal-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  max-width: 140px;
  margin: 12px auto 14px auto;
  opacity: 0.85;
}

.royal-ornament-svg {
  width: 100%;
  height: 9px;
  display: block;
}

/* 2. صلب الدعوة وأسماء العرسان الكرام */
.card-couple-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.card-invite-lead {
  font-family: var(--font-arabic-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #44202a;
  line-height: 1.6;
}

.card-groom-row,
.card-bride-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.card-title-prefix {
  font-family: var(--font-arabic-heading);
  font-size: 1.30rem;
  font-weight: 600;
  color: #4e2530;
}

/* اسم العريس والعروس الملكي - خط واضح غير مقطوع إطلاقاً */
.card-name-highlight {
  font-family: var(--font-arabic-heading);
  font-size: 2.45rem;
  font-weight: 700;
  color: #6a2a10;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  display: inline-block;
  padding: 0 4px;
  white-space: nowrap;
  overflow: visible;
}

.card-invite-mid {
  font-family: var(--font-arabic-heading);
  font-size: 1.38rem;
  font-weight: 700;
  color: #44202a;
  line-height: 1.6;
  margin: 2px 0;
}

/* 3. تفاصيل الموعد والمكان والعبارة الختامية */
.card-details-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.card-date-line {
  font-family: var(--font-arabic-heading);
  font-size: 1.38rem;
  font-weight: 600;
  color: #2b141b;
  line-height: 1.65;
}

.card-date-strong {
  color: #6a2a10;
  font-weight: 700;
  display: inline-block;
}

.card-venue-line {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #2b141b;
  line-height: 1.6;
}

.card-hall-name {
  color: #6a2a10;
  font-weight: 700;
}

.card-closing-wish {
  font-family: var(--font-arabic-sub);
  font-size: 1.05rem;
  font-weight: 700;
  color: #72381e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 179, 148, 0.6);
  border-radius: 20px;
  padding: 6px 18px;
  box-shadow: 0 2px 8px rgba(135, 70, 85, 0.06);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* ==================== محتوى البطاقة الإنجليزية ==================== */
.panel-en {
  direction: ltr;
  text-align: center;
  font-family: var(--font-serif-en);
}

.card-header-block-en {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-basmalah-en {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b1f26;
  line-height: 1.35;
  margin-bottom: 4px;
}

.card-ayah-container-en {
  width: 95%;
  margin-top: 2px;
}

.card-ayah-en {
  font-size: 0.9rem;
  font-style: italic;
  color: #4a2830;
  line-height: 1.5;
}

.card-surah-info-en {
  font-size: 0.8rem;
  font-style: italic;
  color: #7d525c;
  display: block;
  margin-top: 2px;
}

.card-couple-block-en {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}

.card-invite-lead-en {
  font-size: 0.95rem;
  color: #5a303a;
  letter-spacing: 0.5px;
}

.card-groom-row-en,
.card-bride-row-en {
  width: 100%;
}

.card-name-highlight-en {
  font-size: 1.85rem;
  font-weight: 700;
  color: #6a2a10;
  letter-spacing: 0.8px;
}

.card-invite-mid-en {
  font-size: 1.25rem;
  font-family: var(--font-calligraphy);
  color: #965c35;
  line-height: 1;
}

.card-invite-sub-en {
  font-size: 0.92rem;
  color: #4a2830;
  margin-top: 3px;
}

.card-details-block-en {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.card-date-line-en {
  font-size: 0.95rem;
  font-weight: 600;
  color: #241117;
}

.card-venue-line-en {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6a2a10;
}

.card-closing-wish-en {
  font-size: 0.85rem;
  font-style: italic;
  color: #72381e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 179, 148, 0.6);
  border-radius: 18px;
  padding: 5px 14px;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* ==========================================================
   SECTION 3: WEDDING COUNTDOWN TIMER (عداد الأيام المتبقية - W1)
   ========================================================== */
.countdown-section {
  padding-bottom: 30px;
}

.countdown-card {
  width: 100%;
  max-width: 380px;
  background: #fffdfd;
  border-radius: 20px;
  padding: 24px 18px 22px 18px;
  box-shadow: 0 12px 35px rgba(135, 70, 85, 0.08);
  border: 1px solid rgba(220, 179, 148, 0.45);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-ornament-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

.countdown-ornament-svg {
  width: 140px;
  height: 18px;
  fill: var(--gold-primary);
}

.countdown-header-group {
  margin-bottom: 18px;
}

.countdown-main-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #331a22;
  margin-bottom: 3px;
}

.countdown-subtitle {
  font-family: var(--font-arabic-sub);
  font-size: 0.9rem;
  color: #784d57;
}

/* 4 Units Grid */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  direction: rtl;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number-box {
  position: relative;
  width: 100%;
  height: 64px;
  background: linear-gradient(145deg, #ffffff 0%, #faeceb 100%);
  border: 1.2px solid rgba(201, 147, 101, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(130, 65, 80, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.countdown-number-box:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
}

.countdown-number {
  font-family: var(--font-serif-en);
  font-size: 1.85rem;
  font-weight: 700;
  color: #703816;
  background: linear-gradient(180deg, #874921 0%, #4f260e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  z-index: 2;
}

.countdown-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.countdown-label {
  font-family: var(--font-arabic-sub);
  font-size: 0.84rem;
  font-weight: 600;
  color: #784d57;
  margin-top: 6px;
}

/* Highlight Banner */
.countdown-highlight-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(201, 147, 101, 0.12);
  border: 1px solid rgba(201, 147, 101, 0.35);
  border-radius: 20px;
  padding: 7px 16px;
  width: 100%;
}

.countdown-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 0 0 rgba(190, 132, 85, 0.7);
  animation: pulseRoseGoldDot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseRoseGoldDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(190, 132, 85, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(190, 132, 85, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(190, 132, 85, 0); }
}

.countdown-highlight-text {
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  font-weight: 600;
  color: #633318;
  line-height: 1.4;
}

/* ==========================================================
   SECTION 4: SAVE THE DATE / CALENDAR (MATCHING W1)
   ========================================================== */
.section-wrapper {
  width: 100%;
  padding: 20px 18px 45px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.classical-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 22px;
}

.classical-section-header .header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c99365, #c99365, transparent);
  opacity: 0.7;
}

.classical-section-header .header-title {
  font-family: var(--font-serif-en);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 4px;
  color: #9e6439;
  text-transform: uppercase;
  white-space: nowrap;
}

/* بطاقة حفظ التاريخ بإطار البجعتين الفاخر */
.calendar-display-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.calendar-image-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 14px 36px rgba(125, 65, 80, 0.16));
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.calendar-image-frame-wrapper:hover {
  transform: translateY(-4px) scale(1.015);
  filter: drop-shadow(0 22px 50px rgba(125, 65, 80, 0.24));
}

.calendar-image-frame-wrapper:active {
  transform: translateY(-1px) scale(0.99);
}

.save-the-date-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  border-radius: 20px;
}

.calendar-shimmer-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 68% 50%, rgba(255, 230, 235, 0.35) 0%, transparent 45%);
}

.calendar-sub-date-ar {
  font-family: 'Amiri', 'AMoshrf-Naskh', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #562734;
  margin: 18px auto 10px auto;
  direction: ltr !important;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 20px;
  height: 44px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 179, 148, 0.55);
  border-radius: 25px;
  box-shadow: 0 4px 16px rgba(135, 70, 85, 0.08);
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.calendar-sub-date-ar:hover {
  transform: translateY(-2px);
  border-color: #be8455;
  box-shadow: 0 6px 20px rgba(135, 70, 85, 0.16);
  background: #ffffff;
}

.calendar-sub-date-ar:active {
  transform: scale(0.97);
}

.calendar-sub-date-ar span {
  font-family: 'Amiri', 'AMoshrf-Naskh', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #562734;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.calendar-heart-icon {
  font-size: 0.82rem;
  color: #cf7e93;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  animation: pulseSubtle 2.5s infinite ease-in-out;
}

@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.18); opacity: 1; }
}

.calendar-actions-row {
  display: flex;
  width: 100%;
  max-width: 360px;
  margin-top: 16px;
}

.btn-gold-sm {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: #faede3;
  color: #824b2b;
  border: 1.5px solid #dcb394;
  border-radius: 12px;
  font-family: var(--font-arabic-sub);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(135, 70, 85, 0.08);
  transition: all 0.25s ease;
}

.btn-gold-sm .btn-fa-icon {
  font-size: 1.1rem;
  color: #9a5833;
  margin-left: 2px;
}

.btn-gold-sm:hover {
  background: #f5dfcb;
  border-color: #be8455;
  transform: translateY(-1px);
}

/* ==========================================================
   SECTION 5: RSVP SECTION (MATCHING W1)
   ========================================================== */
.rsvp-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 12px;
}

.rsvp-section-header .header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c99365, #c99365, transparent);
  opacity: 0.7;
}

.rsvp-section-header .header-title {
  font-family: var(--font-serif-en);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 3px;
  color: #9e6439;
}

.rsvp-main-title {
  font-family: var(--font-arabic-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #2b141a;
  margin-bottom: 6px;
  direction: rtl;
  text-align: center;
}

.rsvp-description {
  font-family: var(--font-arabic-body);
  font-size: 0.95rem;
  color: #6e444e;
  margin-bottom: 22px;
  direction: rtl;
  text-align: center;
  max-width: 360px;
  line-height: 1.5;
}

.rsvp-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 20px 24px 20px;
  box-shadow: 0 12px 35px rgba(135, 70, 85, 0.08);
  border: 1px solid rgba(220, 179, 148, 0.45);
  direction: rtl;
  text-align: right;
}

.rsvp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.rsvp-form-label {
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  color: #724b55;
}

.rsvp-input,
.rsvp-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ebd3c2;
  background-color: #fdfaf8;
  font-family: var(--font-arabic-body);
  font-size: 1rem;
  color: #2b141a;
  outline: none;
  transition: all 0.3s ease;
}

.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: #a88d95;
  font-size: 0.92rem;
}

.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: #be8455;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(190, 132, 85, 0.18);
}

.rsvp-textarea {
  min-height: 85px;
  resize: vertical;
}

.btn-brass-submit {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #c98f96 0%, #b0707b 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-arabic-sub);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(176, 112, 123, 0.30);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.btn-brass-submit i,
.btn-brass-submit svg {
  color: #ffffff;
  fill: #ffffff;
  font-size: 1.05rem;
}

.btn-brass-submit:hover,
.btn-brass-submit:active {
  background: #a5636f;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(165, 99, 111, 0.38);
}

/* ==========================================================
   FOOTER (MATCHING W1)
   ========================================================== */
.invitation-footer {
  width: 100%;
  padding: 40px 20px 75px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-monogram {
  font-family: var(--font-calligraphy);
  font-size: 2.8rem;
  color: #965c35;
  line-height: 1;
}

.footer-family-header {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #723c1c;
  margin-top: -4px;
}

.footer-message {
  font-family: var(--font-arabic-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b141a;
  direction: rtl;
}

.footer-sub {
  font-size: 0.9rem;
  color: #7d525c;
}

/* Designer Instagram Credit Badge */
.designer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(201, 147, 101, 0.35);
  border-radius: 20px;
  text-decoration: none;
  color: #824b2b;
  font-family: var(--font-arabic-sub);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(135, 70, 85, 0.05);
}

.designer-badge:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(190, 132, 85, 0.22);
}

.instagram-icon {
  width: 16px;
  height: 16px;
  fill: #be8455;
  transition: transform 0.3s ease;
}

.designer-badge:hover .instagram-icon {
  transform: scale(1.15);
}

.designer-text strong {
  font-weight: 700;
  color: #633318;
}

/* ==========================================================
   FLOATING AUTO-SCROLL CONTROLLER
   ========================================================== */
.autoscroll-control-container {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 100;
}

.autoscroll-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: rgba(45, 20, 26, 0.88);
  backdrop-filter: blur(8px);
  border: 1.2px solid rgba(220, 179, 148, 0.7);
  border-radius: 25px;
  color: #fcebe9;
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  direction: rtl;
}

.autoscroll-toggle-btn:hover {
  background: rgba(55, 25, 33, 0.95);
  border-color: var(--gold-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.autoscroll-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 28px;
  border: 1.5px solid var(--gold-primary);
  opacity: 0;
  pointer-events: none;
}

.autoscroll-toggle-btn.active .autoscroll-pulse-ring {
  animation: pulseButtonRing 2.5s infinite;
}

@keyframes pulseButtonRing {
  0% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(0.98); opacity: 0; }
}

.autoscroll-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.autoscroll-svg-icon {
  width: 18px;
  height: 18px;
  fill: #f5dfcb;
  transition: transform 0.2s ease;
}

.autoscroll-toggle-btn.active .icon-pause {
  display: block;
}
.autoscroll-toggle-btn.active .icon-play {
  display: none;
}

.autoscroll-toggle-btn:not(.active) .icon-pause {
  display: none;
}
.autoscroll-toggle-btn:not(.active) .icon-play {
  display: block;
}

.autoscroll-toggle-btn:not(.active) {
  opacity: 0.75;
  background: rgba(45, 20, 26, 0.75);
  border-color: rgba(220, 179, 148, 0.35);
}

/* Toast Alert */
.toast-alert {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #2b141a;
  color: #fcebe9;
  border: 1px solid var(--gold-primary);
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  direction: rtl;
  pointer-events: none;
}

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

/* ==========================================================
   ADVANCED MOBILE-FIRST RESPONSIVE MEDIA QUERIES (EXACT MATCH OF W1)
   ========================================================== */

/* للهواتف المتوسطة والذكية (شاشات الهواتف حتى 480px) */
@media screen and (max-width: 480px) {
  .hero-content {
    margin-top: clamp(60px, 9.5vh, 85px);
  }

  .card-section {
    padding: 20px 6px 54px 6px;
  }

  .royal-invitation-card {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .card-inner-content {
    padding: 135px 20px 65px 20px;
  }

  .card-family-title {
    font-size: 1.55rem;
  }

  .card-basmalah {
    font-size: 1.48rem;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  .card-ayah-text {
    font-size: 1.04rem;
    line-height: 1.75;
    padding: 0 2px;
  }

  .card-surah-info {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .card-invite-lead,
  .card-invite-mid {
    font-size: 1.24rem;
    line-height: 1.6;
    padding: 0 4px;
  }

  .card-name-highlight {
    font-size: 2.15rem;
    line-height: 1.35;
  }

  .card-date-line,
  .card-venue-line {
    font-size: 1.18rem;
    line-height: 1.65;
  }

  .card-closing-wish {
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 6px 14px;
    max-width: 90%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .countdown-card,
  .calendar-display-card,
  .rsvp-card {
    padding: 20px 14px;
  }

  .countdown-number-box {
    height: 56px;
  }

  .countdown-number {
    font-size: 1.55rem;
  }

  .countdown-label {
    font-size: 0.78rem;
  }

  .calendar-sub-date-ar {
    font-size: 1.2rem;
    height: 40px;
    padding: 5px 16px;
    gap: 10px;
  }

  .calendar-sub-date-ar span {
    font-size: 1.2rem;
  }

  .calendar-heart-icon {
    font-size: 0.75rem;
  }

  .btn-gold-sm {
    padding: 11px 16px;
    font-size: 0.95rem;
  }

  .rsvp-main-title {
    font-size: 1.75rem;
  }

  .autoscroll-control-container {
    bottom: 16px;
    right: 14px;
  }

  .autoscroll-toggle-btn {
    padding: 8px 13px;
    font-size: 0.82rem;
  }
}

/* للهواتف الصغيرة جداً (أقل من 360px مثل iPhone SE) */
@media screen and (max-width: 360px) {
  .hero-content {
    margin-top: clamp(50px, 8.5vh, 75px);
  }

  .card-section {
    padding: 16px 4px 30px 4px;
  }

  .royal-invitation-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-name {
    font-size: 2.1rem;
  }

  .hero-separator {
    font-size: 1.8rem;
  }

  .hero-heart-symbol {
    width: 22px;
    height: 22px;
  }

  .hero-date {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }

  .card-inner-content {
    padding: 120px 14px 50px 14px;
  }

  .card-family-title {
    font-size: 1.38rem;
  }

  .card-basmalah {
    font-size: 1.32rem;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  .card-ayah-text {
    font-size: 0.98rem;
    line-height: 1.65;
    padding: 0 2px;
  }

  .card-surah-info {
    font-size: 0.80rem;
    line-height: 1.3;
  }

  .card-invite-lead,
  .card-invite-mid {
    font-size: 1.12rem;
    line-height: 1.55;
  }

  .card-name-highlight {
    font-size: 1.88rem;
    line-height: 1.3;
  }

  .card-date-line,
  .card-venue-line {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .card-closing-wish {
    font-size: 0.84rem;
    line-height: 1.45;
    padding: 5px 10px;
    max-width: 92%;
  }

  .countdown-number-box {
    height: 50px;
  }

  .countdown-number {
    font-size: 1.35rem;
  }

  .countdown-label {
    font-size: 0.72rem;
  }

  .calendar-sub-date-ar {
    font-size: 1.05rem;
    height: 38px;
    padding: 4px 14px;
    gap: 8px;
  }

  .calendar-sub-date-ar span {
    font-size: 1.05rem;
  }

  .calendar-heart-icon {
    font-size: 0.7rem;
  }

  .btn-gold-sm {
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  .rsvp-main-title {
    font-size: 1.55rem;
  }

  .designer-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* ==========================================================
   LUXURY CALENDAR MODAL (SWAN ROYAL STYLE)
   ========================================================== */
.calendar-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 14, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.calendar-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.calendar-modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(165deg, #ffffff 0%, #fffaf7 45%, #fbf1ea 100%);
  border: 1.5px solid rgba(220, 179, 148, 0.75);
  border-radius: 24px;
  padding: 24px 20px 20px 20px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 25px 60px rgba(86, 39, 52, 0.32),
              0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  text-align: center;
}

.calendar-modal-backdrop.active .calendar-modal-card {
  transform: scale(1) translateY(0);
}

.calendar-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(135, 70, 85, 0.08);
  border: 1px solid rgba(220, 179, 148, 0.3);
  color: #723b49;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  z-index: 2;
}

.calendar-modal-close:hover {
  background: #faede3;
  color: #9e6439;
  transform: rotate(90deg) scale(1.05);
}

.calendar-modal-header {
  margin-top: 4px;
  margin-bottom: 14px;
}

.calendar-modal-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #faede3 0%, #f7dfce 100%);
  border: 1px solid rgba(220, 179, 148, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a5833;
  font-size: 1.45rem;
  box-shadow: 0 4px 14px rgba(154, 88, 51, 0.15);
}

.calendar-modal-title {
  font-family: 'Amiri', 'AMoshrf-Naskh', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #4e222e;
  margin: 0 0 4px 0;
  letter-spacing: 0.3px;
}

.calendar-modal-subtitle {
  font-size: 0.9rem;
  color: #9e6439;
  margin: 0;
  font-weight: 600;
}

.calendar-modal-event-details {
  background: rgba(250, 237, 227, 0.7);
  border: 1px solid rgba(220, 179, 148, 0.45);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 14px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.event-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #5c2f3b;
  font-weight: 500;
}

.event-detail-item i {
  color: #b77651;
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.calendar-modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid rgba(220, 179, 148, 0.45);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(135, 70, 85, 0.05);
  transition: all 0.22s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.calendar-option-btn:hover {
  transform: translateY(-2px);
  border-color: #be8455;
  box-shadow: 0 8px 22px rgba(135, 70, 85, 0.12);
  background: #fffdfb;
}

.calendar-option-btn:active {
  transform: scale(0.98);
}

.cal-opt-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.calendar-option-btn.google-cal .cal-opt-icon {
  background: rgba(234, 67, 53, 0.1);
  color: #ea4335;
}

.calendar-option-btn.apple-cal .cal-opt-icon {
  background: rgba(28, 28, 30, 0.08);
  color: #1c1c1e;
}

.calendar-option-btn.outlook-cal .cal-opt-icon {
  background: rgba(0, 120, 212, 0.1);
  color: #0078d4;
}

.calendar-option-btn.ics-cal .cal-opt-icon {
  background: rgba(183, 118, 81, 0.12);
  color: #9a5833;
}

.cal-opt-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: right;
}

.cal-opt-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4e222e;
}

.cal-opt-desc {
  font-size: 0.77rem;
  color: #875c68;
  margin-top: 2px;
}

.cal-opt-arrow {
  color: #c99365;
  font-size: 0.8rem;
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.calendar-option-btn:hover .cal-opt-arrow {
  transform: translateX(-3px);
  color: #9a5833;
}

.calendar-modal-footer {
  margin-top: 14px;
  font-size: 0.84rem;
  color: #9e6439;
  font-family: 'Amiri', serif;
  font-weight: 600;
}
