/* ==========================================================
   ROYAL LUXURY DIGITAL WEDDING INVITATION - STYLESHEET
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Alexandria:wght@400;600;700&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=El+Messiri:wght@500;600;700&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&family=Pinyon+Script&family=Reem+Kufi:wght@400;500;600;700&display=swap');

:root {
  --bg-page: #fbf5eb;
  --bg-page-soft: #f5ebd9;
  --bg-card: #fdfaf3;
  --card-white: #ffffff;
  
  --gold-primary: #c59b48;
  --gold-light: #f3dfaa;
  --gold-dark: #8b6b29;
  --gold-accent: #9a7837;
  --gold-border: #d4b267;
  --gold-border-light: #e8d7ae;
  
  --text-main: #2a221b;
  --text-muted: #736455;
  --text-sub: #8c7d6d;
  
  --font-calligraphy: 'Great Vibes', 'Pinyon Script', cursive;
  --font-arabic-heading: 'Amiri', 'Aref Ruqaa', serif;
  --font-arabic-sub: 'Reem Kufi', 'Amiri', sans-serif;
  --font-arabic-body: 'Amiri', serif;
  --font-serif-en: 'Cormorant Garamond', 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  --shadow-soft: 0 10px 30px rgba(100, 75, 45, 0.07);
  --shadow-card: 0 15px 40px rgba(90, 68, 38, 0.1);
  --shadow-button: 0 6px 18px rgba(160, 125, 60, 0.3);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
}

html.autoscrolling {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-arabic-body);
  background: radial-gradient(circle at 50% 20%, #fffbf5 0%, #f6ebdc 60%, #efe2ce 100%);
  color: var(--text-main);
  min-height: 100vh;
  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)
   ========================================================== */
.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)
   ========================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  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(250, 240, 220, 0.08) 0%, rgba(30, 22, 14, 0.28) 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, 245, 235, 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: -6vh;
  animation: fadeInHero 1.8s ease-out;
}

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


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

.hero-name {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.6rem, 7.5vw, 3.6rem);
  font-weight: 400;
  color: #63471c;
  background: linear-gradient(180deg, #815e27 0%, #523a13 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.18;
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.6));
}

.hero-separator {
  font-family: var(--font-calligraphy);
  font-size: clamp(2.2rem, 6.5vw, 2.9rem);
  color: #725220;
  background: linear-gradient(180deg, #8e682d 0%, #5d4217 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: -8px 0;
  line-height: 1;
}

.hero-date {
  font-family: var(--font-serif-en);
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  font-weight: 600;
  color: #5c411a;
  background: linear-gradient(180deg, #7e5621 0%, #4a3412 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3.5px;
  white-space: nowrap;
  margin: 0;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.9));
}

.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.85rem;
  color: #6d4f20;
}

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

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

/* ==========================================================
   SECTION 2: ROYAL ARCH INVITATION CARD
   ========================================================== */
.card-section {
  width: 100%;
  padding: 30px 18px 45px 18px;
  display: flex;
  justify-content: center;
}

.royal-invitation-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: 190px 190px 24px 24px;
  padding: 44px 22px 36px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(212, 175, 85, 0.35);
  text-align: center;
  overflow: hidden;
}

.card-border-arch-outer {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1.5px solid var(--gold-border);
  border-radius: 182px 182px 18px 18px;
  pointer-events: none;
}

.card-border-arch-inner {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 0.75px solid var(--gold-border-light);
  border-radius: 178px 178px 14px 14px;
  pointer-events: none;
}

.top-crest-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 10px;
}

.top-crest-svg {
  width: 72px;
  height: 48px;
  fill: var(--gold-primary);
}

/* النجفة الكريستالية الملكية الفاخرة */
.card-chandelier-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  transform-origin: top center;
  animation: gentleChandelierSway 6.5s infinite ease-in-out;
}

.card-chandelier-img {
  width: 185px;
  max-width: 54%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(185, 142, 60, 0.28));
}

@keyframes gentleChandelierSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(0.7deg);
  }
  75% {
    transform: rotate(-0.7deg);
  }
}

/* ترويسة أفراح آل المدهون */
.card-family-header {
  margin-bottom: 16px;
  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(197, 155, 72, 0.35);
  border-bottom: 1px solid rgba(197, 155, 72, 0.35);
}

.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: 'El Messiri', 'Amiri', serif;
  font-size: clamp(1.85rem, 5vw, 2.3rem);
  font-weight: 700;
  color: #72501a;
  background: linear-gradient(180deg, #946d27 0%, #54370d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.35;
  letter-spacing: 0.5px;
}

.corner-flourish {
  position: absolute;
  width: 110px;
  height: auto;
  pointer-events: none;
  opacity: 0.92;
  z-index: 1;
}

.corner-flourish.bottom-left {
  bottom: 10px;
  left: 8px;
}

.corner-flourish.bottom-right {
  bottom: 10px;
  right: 8px;
  transform: scaleX(-1);
}

.card-inner-content {
  position: relative;
  z-index: 2;
  padding: 0 4px;
}

.card-basmalah {
  font-family: var(--font-arabic-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #1f1a15;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-ayah-container {
  margin-bottom: 22px;
}

.card-ayah-text {
  font-family: var(--font-arabic-heading);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.75;
  color: #231c15;
  direction: rtl;
}

.card-surah-info {
  font-family: var(--font-arabic-body);
  font-size: 0.92rem;
  color: #695743;
  margin-top: 4px;
  display: block;
}

.card-arabic-body {
  direction: rtl;
  margin-bottom: 22px;
}

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

.card-invitation-sublead {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #231c15;
  line-height: 1.6;
}

.card-bride-name {
  font-family: var(--font-arabic-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #1c1712;
  line-height: 1.6;
  margin-bottom: 6px;
}

.card-event-date-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1712;
  line-height: 1.6;
}

.card-venue-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.32rem;
  font-weight: 700;
  color: #231c15;
  line-height: 1.5;
  margin-top: 4px;
}

.card-venue-hall-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1712;
}

.card-arrival-time-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1712;
  margin-top: 6px;
}

.card-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 20px auto;
  width: 80%;
}

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

.divider-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold-border);
  transform: rotate(45deg);
  margin: 0 10px;
}

.card-english-body {
  direction: ltr;
  text-align: center;
  font-family: var(--font-serif-en);
  padding: 0 6px;
}

.card-basmalah-en {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3f3327;
  line-height: 1.3;
  margin-bottom: 5px;
}

.card-ayah-en {
  font-size: 0.88rem;
  font-style: italic;
  color: #4a3e31;
  line-height: 1.45;
}

.card-surah-info-en {
  font-size: 0.8rem;
  font-style: italic;
  color: #7b6a55;
  margin-bottom: 12px;
  display: block;
}

.card-invitation-lead-en {
  font-size: 0.95rem;
  color: #2b221a;
  line-height: 1.45;
}

.card-arrival-time-en {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3b2f23;
  margin-top: 8px;
}

/* ==========================================================
   SECTION 3: WEDDING COUNTDOWN TIMER - LUXURY TIMELINE
   ========================================================== */
.countdown-section {
  padding-bottom: 28px;
}

.countdown-timeline-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EF 100%);
  border-radius: 18px;
  padding: 30px 22px 26px;
  border: 1px solid rgba(181, 148, 99, 0.35);
  box-shadow: 0 12px 35px rgba(118, 84, 58, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Header */
.countdown-minimal-header {
  margin-bottom: 22px;
  text-align: center;
}

.countdown-eyebrow {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 0.82rem;
  letter-spacing: 3px;
  color: #B59463;
  font-weight: 600;
  margin-bottom: 4px;
}

.countdown-arabic-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: #3B2E21;
  margin: 0 0 4px;
}

.countdown-arabic-subtitle {
  font-family: var(--font-arabic-sub);
  font-size: 0.92rem;
  color: #7F6E5B;
  margin: 0;
}

/* Digits Row */
.countdown-digits-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  direction: rtl;
  padding: 0 4px;
}

.countdown-digit-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.countdown-digit-val {
  font-family: var(--font-serif-en);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: #5C4118;
  background: linear-gradient(180deg, #8E6D38 0%, #46300D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.countdown-digit-lbl {
  font-family: var(--font-arabic-sub);
  font-size: 0.84rem;
  font-weight: 600;
  color: #76543A;
  margin-top: 6px;
}

.countdown-unit-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(181, 148, 99, 0.4), transparent);
  margin: 0 2px;
}

/* Horizontal Golden Timeline */
.countdown-timeline-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto 22px;
  width: 100%;
  direction: rtl;
}

.timeline-track-bar {
  position: relative;
  flex: 1;
  height: 2.5px;
  background: rgba(181, 148, 99, 0.22);
  border-radius: 3px;
}

.timeline-fill-bar {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(270deg, #E2CA9E 0%, #B59463 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.timeline-luminous-pointer {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FAF6EF;
  border: 2px solid #B59463;
  transition: right 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.pointer-glow-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B59463;
  box-shadow: 0 0 8px rgba(181, 148, 99, 0.9);
}

.pointer-pulse-halo {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(181, 148, 99, 0.6);
  animation: haloPulse 2.4s infinite ease-out;
}

@keyframes haloPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.timeline-destination-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.timeline-destination-badge:hover {
  transform: scale(1.08);
}

.timeline-rings-img {
  width: 46px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(181, 148, 99, 0.4));
  transition: transform 0.3s ease;
}

/* Bottom Romantic Highlight Text */
.countdown-bottom-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  color: #5A421A;
  font-weight: 600;
  padding: 8px 18px;
  background: rgba(181, 148, 99, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(181, 148, 99, 0.28);
  line-height: 1.4;
  width: 100%;
}

.countdown-sub-star {
  color: #B59463;
  font-size: 0.75rem;
}

.countdown-sub-text {
  text-align: center;
}

/* ==========================================================
   SECTION 4: SAVE THE DATE / CALENDAR
   ========================================================== */
.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, #c5a059, #c5a059, 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: #93733a;
  text-transform: uppercase;
  white-space: nowrap;
}

.calendar-card {
  width: 100%;
  max-width: 410px;
  background: #fdfbf7;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 12px 36px rgba(130, 100, 60, 0.12);
  border: 1.5px solid rgba(212, 175, 85, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.save-date-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 22px;
  transition: transform 0.4s ease;
}

.calendar-ornament-top,
.calendar-ornament-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.calendar-ornament-top {
  margin-bottom: 12px;
}

.calendar-ornament-bottom {
  margin-top: 14px;
}

.calendar-ornament-svg {
  width: 160px;
  height: 20px;
  fill: #bfa163;
}

.calendar-month-title {
  font-family: var(--font-serif-en);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: #43362a;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-serif-en);
  direction: ltr;
}

.calendar-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #7a6b5c;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.calendar-table td {
  font-size: 0.95rem;
  font-weight: 500;
  color: #524436;
  padding: 6px 0;
  text-align: center;
  width: 14.28%;
  height: 36px;
  vertical-align: middle;
  position: relative;
}

.calendar-table td.highlight-day {
  color: #2b1f13;
  font-weight: 700;
}

.highlight-ring-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-ring-svg {
  width: 100%;
  height: 100%;
  animation: pulseSubtle 3s infinite ease-in-out;
}

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

.calendar-sub-date-ar {
  font-family: var(--font-arabic-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #4a3c2e;
  margin-top: 16px;
  direction: rtl;
  text-align: center;
}

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

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

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

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

/* ==========================================================
   SECTION 5: ROYAL ENVELOPE RSVP SECTION
   ========================================================== */
.royal-rsvp-section-wrapper {
  width: 100%;
  padding: 25px 16px 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible;
}

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

.rsvp-section-header .header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #B59463, #B59463, 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: #B59463;
}

/* 3D Envelope Scene */
.royal-envelope-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 50px auto 0;
  perspective: 1200px;
}

.royal-envelope {
  position: relative;
  width: 100%;
  min-height: 280px;
  margin: 0 auto;
  background: transparent;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Envelope Back Layer */
.envelope-back {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 280px;
  background: linear-gradient(145deg, #FAF6EF 0%, #F2E7D8 100%);
  border-radius: 14px;
  border: none;
  box-shadow: 0 16px 38px rgba(118, 84, 58, 0.14);
  z-index: 1;
}

/* Top Flap */
.envelope-top-flap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 130px;
  background: linear-gradient(180deg, #F5EDE0 0%, #E7D8C4 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.3s;
  z-index: 5;
  filter: drop-shadow(0 4px 6px rgba(118, 84, 58, 0.14));
}

/* الحز البني المحيط بالمظروف بالكامل من جميع الجهات */
.envelope-border-rim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  border-radius: 14px;
  border: 2px solid #76543A;
  box-shadow: inset 0 0 0 1px rgba(181, 148, 99, 0.4), 0 12px 30px rgba(118, 84, 58, 0.12);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.royal-envelope-scene.is-opened .envelope-border-rim {
  opacity: 0;
  visibility: hidden;
}

/* Envelope Wings (Sides) */
.envelope-wing-left,
.envelope-wing-right {
  position: absolute;
  top: 70px;
  height: 210px;
  width: 50%;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.envelope-wing-left {
  right: 0;
  background: linear-gradient(to top left, #F2E7D8 0%, #FAF6EF 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 14px;
}

.envelope-wing-right {
  left: 0;
  background: linear-gradient(to top right, #EEE0CE 0%, #FAF6EF 100%);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  border-bottom-left-radius: 14px;
}

/* Front Pocket */
.envelope-pocket {
  position: absolute;
  top: 100px;
  right: 0;
  left: 0;
  height: 180px;
  background: linear-gradient(180deg, #F8F1E5 0%, #EBDDCB 100%);
  clip-path: polygon(50% 46%, 100% 100%, 0% 100%);
  border-radius: 0 0 14px 14px;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 -2px 10px rgba(118, 84, 58, 0.06);
  transition: opacity 0.6s ease;
}

/* Wax Seal Button in Center */
.royal-wax-seal {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  z-index: 7;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.4s ease;
  outline: none;
  border-radius: 50%;
}

.wax-seal-outer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D4AF77 0%, #B59463 60%, #87683C 100%);
  box-shadow: 0 6px 18px rgba(118, 84, 58, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  animation: pulseWaxSeal 3s infinite ease-in-out;
}

@keyframes pulseWaxSeal {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 8px 22px rgba(181, 148, 99, 0.5); }
}

.royal-wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.wax-seal-inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle, #B99867 0%, #9A7747 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFDF9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wax-seal-text {
  font-family: var(--font-serif-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.wax-seal-flourish {
  font-size: 10px;
  line-height: 1;
  color: #F8E8D0;
  margin-top: 1px;
}

.envelope-open-hint {
  margin-top: 14px;
  font-family: var(--font-arabic-sub);
  font-size: 0.9rem;
  color: #8C735E;
  text-align: center;
  transition: opacity 0.4s ease;
}

/* ==========================================================
   THE RSVP LETTER CARD
   ========================================================== */
.envelope-card {
  position: relative;
  width: 94%;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(118, 84, 58, 0.1);
  z-index: 2;
  transform: translateY(24px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(181, 148, 99, 0.3);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, box-shadow 0.6s ease;
  overflow: visible;
}

.card-inner-border {
  margin: 8px;
  padding: 26px 18px 22px;
  border: 1px solid rgba(181, 148, 99, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF8 100%);
  text-align: center;
}

.card-head-block {
  text-align: center;
  margin-bottom: 20px;
}

.card-royal-tag {
  display: inline-block;
  font-family: var(--font-serif-en);
  font-size: 0.8rem;
  font-weight: 700;
  color: #B59463;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.card-head-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #76543A;
  margin: 0 0 6px;
}

.card-head-subtitle {
  font-family: var(--font-arabic-body);
  font-size: 0.96rem;
  line-height: 1.6;
  color: #76543A;
  margin: 0 0 10px;
}

.card-head-subtitle .sub-highlight {
  font-weight: 600;
  color: #76543A;
}

.card-gold-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 16px;
}

.card-gold-separator .sep-line {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #B59463, transparent);
}

.card-gold-separator .sep-diamond {
  font-size: 10px;
  color: #B59463;
  font-style: normal;
}

/* Attendance Options Grid */
.attendance-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

.attendance-btn-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.attendance-btn-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.attendance-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: #FAF6EF;
  border: 1.5px solid rgba(181, 148, 99, 0.3);
  border-radius: 10px;
  transition: all 0.28s ease;
  height: 100%;
}

.attendance-btn-card:hover .attendance-btn-inner {
  border-color: #B59463;
  background: #FFFDF9;
  transform: translateY(-1px);
}

.attendance-icon-wrap {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B59463;
  transition: transform 0.25s ease;
}

.attendance-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.attendance-choice-title {
  font-family: var(--font-arabic-sub);
  font-size: 0.92rem;
  font-weight: 600;
  color: #76543A;
  line-height: 1.3;
}

.choice-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  margin-top: 6px;
  transition: all 0.25s ease;
}

.attendance-btn-card input[type="radio"]:checked + .attendance-btn-inner {
  background: #FFFFFF;
  border-color: #B59463;
  box-shadow: 0 4px 16px rgba(181, 148, 99, 0.25);
  transform: translateY(-2px);
}

.attendance-btn-card input[type="radio"]:checked + .attendance-btn-inner .attendance-icon-wrap {
  transform: scale(1.15);
  color: #9A7747;
}

.attendance-btn-card input[type="radio"]:checked + .attendance-btn-inner .choice-indicator {
  background: #B59463;
  box-shadow: 0 0 6px rgba(181, 148, 99, 0.7);
}

/* Collapsible Form Fields */
.rsvp-collapsible-fields {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease;
}

.rsvp-collapsible-fields.is-expanded {
  max-height: 520px;
  opacity: 1;
  overflow: visible;
  margin-top: 14px;
}

.rsvp-form-block {
  margin-bottom: 14px;
  text-align: right;
}

.royal-input-label {
  display: block;
  font-family: var(--font-arabic-sub);
  font-size: 0.88rem;
  font-weight: 600;
  color: #76543A;
  margin-bottom: 6px;
}

.royal-req-star {
  color: #B59463;
  margin-right: 2px;
}

.royal-opt-badge {
  font-size: 0.78rem;
  color: #9E8570;
  font-weight: normal;
}

.royal-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.royal-text-input,
.royal-textarea-input {
  width: 100%;
  background: #FAF6EF;
  border: 1px solid rgba(181, 148, 99, 0.35);
  border-radius: 8px;
  padding: 11px 36px 11px 12px;
  font-family: var(--font-arabic-body);
  font-size: 0.95rem;
  color: #76543A;
  outline: none;
  transition: all 0.25s ease;
}

.royal-textarea-input {
  padding-right: 12px;
  min-height: 75px;
  resize: vertical;
}

.royal-input-adornment {
  position: absolute;
  right: 10px;
  width: 18px;
  height: 18px;
  color: #B59463;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.royal-input-adornment svg {
  width: 18px;
  height: 18px;
}

.royal-text-input:focus,
.royal-textarea-input:focus {
  border-color: #B59463;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(181, 148, 99, 0.18);
}

.royal-text-input::placeholder,
.royal-textarea-input::placeholder {
  color: #B5A08C;
  font-size: 0.88rem;
}

.rsvp-error-text {
  display: none;
  color: #C24242;
  font-size: 0.82rem;
  margin-top: 5px;
  font-family: var(--font-arabic-sub);
}

.rsvp-error-text.is-visible {
  display: block;
}

.has-input-error .royal-text-input {
  border-color: #C24242 !important;
}

/* Submit Action Button */
.royal-submit-action-btn {
  width: 100%;
  background: linear-gradient(135deg, #B59463 0%, #8E6D38 100%);
  border: 1px solid #7D5D2B;
  color: #FFFFFF;
  padding: 13px 18px;
  font-family: var(--font-arabic-sub);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(118, 84, 58, 0.22);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 8px;
}

.royal-submit-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181, 148, 99, 0.35);
  background: linear-gradient(135deg, #C2A270 0%, #9C7840 100%);
}

.royal-submit-action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.royal-submit-action-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-spinner-icon {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spinLoader 0.8s linear infinite;
  margin-left: 8px;
}

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

.royal-submit-action-btn.is-loading .btn-spinner-icon {
  display: inline-block;
}

.royal-submit-action-btn.is-loading .btn-caption-text {
  opacity: 0.85;
}

/* ==========================================================
   OPENED STATE INTERACTIONS
   ========================================================== */
.royal-envelope-scene.is-opened .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1;
  filter: none;
}

.royal-envelope-scene.is-opened .royal-wax-seal {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -80px) scale(0.6);
}

.royal-envelope-scene.is-opened .envelope-card {
  transform: translateY(-30px) scale(1);
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  box-shadow: 0 20px 45px rgba(118, 84, 58, 0.18);
}

.royal-envelope-scene.is-opened .envelope-pocket,
.royal-envelope-scene.is-opened .envelope-wing-left,
.royal-envelope-scene.is-opened .envelope-wing-right {
  opacity: 0.35;
}

.royal-envelope-scene.is-opened .envelope-open-hint {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================
   SUCCESS STATE SCREEN
   ========================================================== */
.royal-rsvp-success {
  text-align: center;
  padding: 22px 10px 14px;
  animation: fadeInSuccessCard 0.6s ease forwards;
}

@keyframes fadeInSuccessCard {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-checkmark-box {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
}

.gold-checkmark-svg {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke: #B59463;
  stroke-miterlimit: 10;
  animation: fillSuccessRing 0.4s ease-in-out 0.4s forwards, scaleSuccessBounce 0.3s ease-in-out 0.8s both;
}

.checkmark-circle-ring {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke: #B59463;
  fill: rgba(242, 231, 216, 0.4);
  animation: drawSuccessCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-stem-path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #76543A;
  animation: drawSuccessCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes drawSuccessCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes drawSuccessCheck {
  100% { stroke-dashoffset: 0; }
}

.success-main-headline {
  font-family: var(--font-arabic-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #76543A;
  margin: 0 0 6px;
}

.success-sub-headline {
  font-family: var(--font-arabic-body);
  font-size: 1rem;
  color: #8C735E;
  margin: 0 0 18px;
}

.btn-edit-rsvp-choice {
  background: transparent;
  border: 1px solid rgba(181, 148, 99, 0.4);
  color: #B59463;
  padding: 7px 18px;
  border-radius: 20px;
  font-family: var(--font-arabic-sub);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-edit-rsvp-choice:hover {
  background: #F2E7D8;
  color: #76543A;
}

/* زر طي المظروف */
.fold-envelope-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.btn-fold-envelope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background-color: rgba(250, 246, 239, 0.85);
  border: 1px solid rgba(181, 148, 99, 0.35);
  color: #76543A;
  padding: 7px 18px;
  border-radius: 20px;
  font-family: var(--font-arabic-sub);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.btn-fold-envelope:hover {
  background-color: #F2E7D8;
  border-color: #B59463;
  color: #4A3323;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(181, 148, 99, 0.15);
}

.fold-envelope-icon {
  color: #B59463;
  transition: transform 0.25s ease;
}

.btn-fold-envelope:hover .fold-envelope-icon {
  transform: translateY(2px);
  color: #76543A;
}

.success-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-fold-envelope-success {
  background: transparent;
}

@media (max-width: 440px) {
  .attendance-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .attendance-btn-inner {
    flex-direction: row;
    justify-content: flex-start;
    padding: 11px 14px;
    gap: 10px;
  }
  
  .attendance-icon-wrap {
    margin-bottom: 0;
  }
  
  .choice-indicator {
    margin-top: 0;
    margin-right: auto;
  }

  .card-inner-border {
    padding: 20px 14px 18px;
  }

  .royal-envelope-scene.is-opened .envelope-card {
    transform: translateY(-20px) scale(1);
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.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: #93733a;
  line-height: 1;
}

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

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

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

/* 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.65);
  border: 1px solid rgba(197, 155, 72, 0.35);
  border-radius: 20px;
  text-decoration: none;
  color: #7b6238;
  font-family: var(--font-arabic-sub);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(100, 75, 45, 0.04);
}

.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(197, 155, 72, 0.2);
}

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

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

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

/* ==========================================================
   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(38, 29, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1.2px solid rgba(212, 175, 85, 0.7);
  border-radius: 25px;
  color: #f7eacc;
  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(48, 37, 25, 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: #e8c67c;
  transition: transform 0.2s ease;
}

/* Toggle icon display based on active state */
.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, 37, 30, 0.8);
  border-color: rgba(212, 175, 85, 0.35);
}

/* Toast Alert */
.toast-alert {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #251e18;
  color: #f7e8cb;
  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
   ========================================================== */

/* للهواتف المتوسطة والصغيرة (أقل من 420px) */
@media screen and (max-width: 420px) {
  .hero-name {
    font-size: 2.4rem;
  }

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

  .hero-date {
    font-size: 1.75rem;
    letter-spacing: 2.5px;
  }

  .royal-invitation-card {
    border-radius: 150px 150px 20px 20px;
    padding: 38px 16px 30px 16px;
  }

  .card-border-arch-outer {
    border-radius: 142px 142px 16px 16px;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .card-border-arch-inner {
    border-radius: 138px 138px 12px 12px;
    top: 11px;
    left: 11px;
    right: 11px;
    bottom: 11px;
  }

  .card-chandelier-img {
    width: 155px;
  }

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

  .card-basmalah {
    font-size: 1.45rem;
  }

  .card-ayah-text {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .card-invitation-lead,
  .card-bride-name {
    font-size: 1.3rem;
  }

  .card-invitation-sublead,
  .card-event-date-ar,
  .card-venue-hall-ar {
    font-size: 1.2rem;
  }

  .card-venue-ar,
  .card-arrival-time-ar {
    font-size: 1.15rem;
  }

  .corner-flourish {
    width: 85px;
  }

  .countdown-timeline-card {
    padding: 24px 14px 20px;
  }

  .countdown-digit-val {
    font-size: 1.85rem;
  }

  .countdown-arabic-title {
    font-size: 1.5rem;
  }

  .calendar-card {
    padding: 0;
  }

  .calendar-month-title {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }

  .calendar-table td {
    height: 32px;
    font-size: 0.88rem;
  }

  .highlight-ring-container {
    width: 30px;
    height: 30px;
  }

  .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-name {
    font-size: 2.1rem;
  }

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

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

  .royal-invitation-card {
    border-radius: 120px 120px 16px 16px;
    padding: 32px 12px 24px 12px;
  }

  .card-border-arch-outer {
    border-radius: 114px 114px 12px 12px;
  }

  .card-border-arch-inner {
    border-radius: 110px 110px 10px 10px;
  }

  .card-chandelier-img {
    width: 135px;
  }
  .card-family-title {
    font-size: 1.45rem;
  }

  .card-basmalah {
    font-size: 1.3rem;
  }

  .card-ayah-text {
    font-size: 0.98rem;
  }

  .card-invitation-lead,
  .card-bride-name {
    font-size: 1.18rem;
  }

  .corner-flourish {
    width: 70px;
  }

  .countdown-timeline-card {
    padding: 20px 10px 18px;
  }

  .countdown-digit-val {
    font-size: 1.6rem;
  }

  .countdown-bottom-message {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .calendar-month-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .calendar-table th {
    font-size: 0.68rem;
  }

  .calendar-table td {
    height: 28px;
    font-size: 0.82rem;
  }

  .highlight-ring-container {
    width: 26px;
    height: 26px;
  }

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

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