/* ==========================================================================
   MIRAMIR — LUXURY CASUAL & STREETWEAR COMING SOON
   Deep Emerald Forest Green & Brushed Metallic Champagne Gold
   Built with @ui-ux-pro-max (Dark Luxury & Liquid Glass Architecture)
   ========================================================================== */

/* Self-hosted Arabic display font (Hail Elastic Light) */
@font-face {
  font-family: 'Hail Elastic';
  src: url('assets/fonts/hail-elastic-light.woff2') format('woff2'),
       url('assets/fonts/hail-elastic-light-fixed.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- 1. BRAND COLORS (EMERALD GREEN & METALLIC GOLD) --- */
  --color-emerald-base: #07130D;       /* Deepest OLED pine */
  --color-emerald-surface: #0D1C15;    /* Rich forest surface */
  --color-emerald-elevated: #142B20;   /* Elevated card fill */
  --color-emerald-glass: rgba(13, 28, 21, 0.76); /* Frosted liquid emerald */
  --color-emerald-border: rgba(68, 128, 97, 0.22);
  --color-emerald-highlight: #2A543E;

  /* Brushed Metallic Champagne Gold (Extracted from official logo) */
  --color-gold-light: #FDEECE;
  --color-gold-primary: #D8B26E;
  --color-gold-dark: #9B7838;
  --color-gold-glow: rgba(216, 178, 110, 0.28);
  --color-gold-hairline: rgba(216, 178, 110, 0.32);
  --color-gold-gradient: linear-gradient(135deg, #FDEECE 0%, #D8B26E 48%, #9B7838 100%);
  --color-gold-gradient-subtle: linear-gradient(135deg, rgba(253, 238, 206, 0.12) 0%, rgba(216, 178, 110, 0.08) 100%);

  /* Text & Contrast Tokens */
  --color-text-chalk: #F8F6F0;
  --color-text-secondary: #D4D0C5;
  --color-text-muted: #8E9F94;
  --color-card-bg: rgba(13, 28, 21, 0.72);

  /* --- 2. TYPOGRAPHY TOKENS --- */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Hail Elastic', 'Cairo', 'Traditional Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  /* --- 3. MOTION & TIMING --- */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--color-emerald-base);
  color: var(--color-text-chalk);
  font-family: var(--font-body);
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-height: 600px) {
  body {
    overflow-y: hidden; /* One single page with zero scrolling on desktop/laptop */
  }
}

/* Background Atmosphere Video */
.video-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05) saturate(1.0);
}

/* Translucent Emerald Atmosphere Overlay (Clear background video visibility) */
.video-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(13, 28, 21, 0.25) 0%, rgba(7, 19, 13, 0.6) 100%),
    linear-gradient(to bottom, rgba(7, 19, 13, 0.35) 0%, rgba(13, 28, 21, 0.1) 45%, rgba(7, 19, 13, 0.55) 100%);
}

/* ==========================================================================
   TOP HEADER
   ========================================================================== */
.top-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 51px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(216, 178, 110, 0.25));
  transition: transform var(--transition);
}

.brand-logo:hover {
  transform: scale(1.04);
}

/* --- Header Actions (Ambient Audio + Instagram) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Luxury Toggle Switch Button */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 28, 21, 0.72);
  border: 1px solid var(--color-gold-hairline);
  color: var(--color-text-secondary);
  padding: 7px 12px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.sound-toggle-btn:hover {
  background: rgba(20, 43, 32, 0.9);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  transform: translateY(-1px);
}

.sound-toggle-btn .sound-icon {
  stroke: var(--color-text-muted);
  transition: stroke var(--transition);
}

.sound-toggle-btn:hover .sound-icon {
  stroke: var(--color-gold-light);
}

.sound-toggle-btn .sound-wave-1,
.sound-toggle-btn .sound-wave-2 {
  opacity: 0.25;
  transition: opacity var(--transition);
}

/* Sliding Toggle Track & Thumb */
.toggle-track {
  display: inline-flex;
  align-items: center;
  width: 28px;
  height: 16px;
  background: rgba(7, 19, 13, 0.9);
  border: 1px solid rgba(216, 178, 110, 0.35);
  border-radius: 9999px;
  padding: 2px;
  position: relative;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.toggle-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7E9085;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease;
}

/* ACTIVE STATE FOR TOGGLE */
.sound-toggle-btn.is-active {
  border-color: var(--color-gold-primary);
  background: rgba(20, 43, 32, 0.85);
  color: var(--color-gold-light);
  box-shadow: 0 0 16px var(--color-gold-glow);
}

.sound-toggle-btn.is-active .sound-icon {
  stroke: var(--color-gold-primary);
}

.sound-toggle-btn.is-active .sound-wave-1 {
  opacity: 1;
  animation: wavePulse 1s ease-in-out infinite alternate;
}

.sound-toggle-btn.is-active .sound-wave-2 {
  opacity: 1;
  animation: wavePulse 1s ease-in-out infinite alternate 0.3s;
}

@keyframes wavePulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.sound-toggle-btn.is-active .toggle-track {
  background: rgba(20, 43, 32, 0.95);
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 8px rgba(216, 178, 110, 0.3);
}

.sound-toggle-btn.is-active .toggle-thumb {
  transform: translateX(12px);
  background: var(--color-gold-gradient);
  box-shadow: 0 0 8px var(--color-gold-primary);
}

/* Language Toggle Switch Button (Moroccan Darija ⟷ English) */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(13, 28, 21, 0.76);
  border: 1px solid var(--color-gold-hairline);
  color: var(--color-gold-light);
  padding: 8px 18px;
  min-width: 116px;
  border-radius: 9999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition);
}

.lang-toggle-btn .lang-label {
  font-family: var(--font-arabic);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--color-gold-light);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.lang-toggle-btn:hover {
  background: rgba(20, 43, 32, 0.9);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  box-shadow: 0 0 14px var(--color-gold-glow);
  transform: translateY(-1px);
}

.lang-toggle-btn .lang-icon {
  stroke: var(--color-gold-primary);
  transition: stroke var(--transition), transform 0.3s ease;
}

.lang-toggle-btn:hover .lang-icon {
  stroke: var(--color-gold-light);
  transform: rotate(25deg);
}

.lang-toggle-btn.is-darija {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.lang-toggle-btn.is-darija .lang-label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Instagram Button Directly Below Countdown Timer */
.instagram-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: rgba(13, 28, 21, 0.72);
  border: 1px solid var(--color-gold-hairline);
  color: var(--color-text-secondary);
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(216, 178, 110, 0.08);
  transition: all var(--transition);
}

.instagram-timer-btn:hover {
  background: rgba(20, 43, 32, 0.92);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 18px var(--color-gold-glow);
  transform: translateY(-2px);
}

.instagram-timer-btn .ig-icon {
  stroke: var(--color-gold-primary);
  transition: stroke var(--transition), transform var(--transition);
}

.instagram-timer-btn:hover .ig-icon {
  stroke: var(--color-gold-light);
  transform: scale(1.1);
}

/* ==========================================================================
   MAIN HERO & CONTENT
   ========================================================================== */
/* ==========================================================================
   MAIN HERO & CONTENT (SINGLE PAGE COMPACT LAYOUT)
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
}

.content-box {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Slow Glowing Headline */
.classy-headline {
  margin-bottom: 8px;
}

.classy-headline .highlight {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.15;
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 2px 0 6px;
  animation: slowGoldGlow 4s ease-in-out infinite alternate;
}

@keyframes slowGoldGlow {
  0% {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85))
            drop-shadow(0 0 10px rgba(216, 178, 110, 0.25));
  }
  50% {
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 24px rgba(253, 238, 206, 0.6))
            drop-shadow(0 0 42px rgba(216, 178, 110, 0.45));
  }
  100% {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85))
            drop-shadow(0 0 10px rgba(216, 178, 110, 0.25));
  }
}

/* 30% Off Promo Message */
.promo-text {
  font-size: clamp(0.92rem, 1.8vw, 1.06rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin-bottom: 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
}

.mobile-break {
  display: none;
}

.discount-badge {
  display: inline-block;
  color: #07130D;
  background: var(--color-gold-gradient);
  padding: 3px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-body);
  margin: 0 4px;
  box-shadow: 0 2px 14px var(--color-gold-glow);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   PHONE SIGNUP FORM
   ========================================================================== */
.signup-form {
  width: 100%;
  max-width: 500px;
  margin-bottom: 22px;
}

.hp-trap {
  display: none !important;
  visibility: hidden;
  height: 0;
  width: 0;
}

.signup-form {
  width: 100%;
  max-width: 480px;
  margin-bottom: 14px;
}

.hp-trap {
  display: none !important;
  visibility: hidden;
  height: 0;
  width: 0;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 28, 21, 0.85);
  border: 1px solid rgba(216, 178, 110, 0.38);
  border-radius: 9999px;
  padding: 5px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(216, 178, 110, 0.12),
    inset 0 1px 1px rgba(253, 238, 206, 0.12);
  transition: border-color var(--transition), box-shadow var(--transition);
  animation: ambientInputPulse 4.5s ease-in-out infinite alternate;
}

@keyframes ambientInputPulse {
  0% {
    border-color: rgba(216, 178, 110, 0.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 14px rgba(216, 178, 110, 0.08);
  }
  100% {
    border-color: rgba(216, 178, 110, 0.65);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 24px rgba(216, 178, 110, 0.25);
  }
}

.form-row:focus-within {
  border-color: var(--color-gold-light);
  box-shadow: 
    0 12px 34px rgba(0, 0, 0, 0.7),
    0 0 30px var(--color-gold-glow),
    inset 0 1px 2px rgba(253, 238, 206, 0.2);
  animation: none;
}

.phone-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 14px;
}

.phone-prefix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold-primary);
  user-select: none;
  flex-shrink: 0;
}

.phone-badge-icon {
  stroke: var(--color-gold-primary);
  opacity: 0.9;
}

.prefix-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold-light);
  letter-spacing: 0.05em;
}

.prefix-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(216, 178, 110, 0.4);
  margin: 0 6px 0 4px;
}

.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 8px;
  color: var(--color-text-chalk);
  font-size: 0.98rem;
  font-family: var(--font-mono);
  outline: none;
  direction: ltr;
  min-width: 0;
}

.phone-input::placeholder {
  color: #E2DFD2 !important;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s ease;
}

.submit-btn {
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 9999px;
  color: #07130D;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 24px;
  min-height: 44px;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(216, 178, 110, 0.35);
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(216, 178, 110, 0.55);
}

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

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(7, 19, 13, 0.3);
  border-top-color: #07130D;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.privacy-note {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 400;
  color: #C8D6CD;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.85);
}

.form-feedback {
  min-height: 24px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
}

.form-feedback.success {
  color: var(--color-gold-light);
  text-shadow: 0 0 14px var(--color-gold-glow), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.form-feedback.error {
  color: #FCA5A5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   LIVE PULSE COUNTER & COUNTDOWN
   ========================================================================== */
.counter-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 28, 21, 0.7);
  border: 1px solid var(--color-emerald-border);
  padding: 8px 20px;
  border-radius: 9999px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold-primary);
  box-shadow: 0 0 12px var(--color-gold-primary);
  animation: pulseDot 2.2s infinite ease-in-out;
}

.counter-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.count-number {
  color: var(--color-gold-light);
  font-weight: 700;
  margin: 0 4px;
  font-family: var(--font-mono);
}

/* 25-Day Countdown Timer (Compact Single-Page Fit) */
.timer-container {
  direction: ltr !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(13, 28, 21, 0.78);
  border: 1px solid var(--color-gold-hairline);
  padding: 10px 22px;
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(216, 178, 110, 0.12);
  margin-bottom: 2px;
}

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

.timer-num {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.timer-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.timer-separator {
  color: var(--color-gold-primary);
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 8px;
}

/* ==========================================================================
   CAPSULE TEASER PREVIEW (NEW FEATURE)
   ========================================================================== */
.capsule-teaser {
  width: 100%;
  max-width: 680px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--color-emerald-border);
}

.teaser-title {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.capsule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.capsule-card {
  background: rgba(13, 28, 21, 0.65);
  border: 1px solid var(--color-emerald-border);
  border-radius: 12px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.capsule-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold-hairline);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(216, 178, 110, 0.2);
}

.capsule-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.capsule-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-chalk);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.capsule-badge {
  font-size: 0.62rem;
  color: var(--color-gold-primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ==========================================================================
   MINIMAL FOOTER (SINGLE PAGE FIT)
   ========================================================================== */
.minimal-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-top: 1px solid rgba(68, 128, 97, 0.15);
  flex-shrink: 0;
}

.footer-text {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.footer-contact {
  font-size: 0.75rem;
  color: var(--color-gold-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

/* ==========================================================================
   VIP CONFIRMATION MODAL
   ========================================================================== */
.vip-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 480px;
  width: 90%;
  margin: auto;
}

.vip-modal::backdrop {
  background: rgba(4, 11, 7, 0.85);
  backdrop-filter: blur(8px);
}

.modal-box {
  background: rgba(13, 28, 21, 0.94);
  border: 1px solid var(--color-gold-primary);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 35px var(--color-gold-glow);
  color: var(--color-text-chalk);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--color-gold-primary);
}

.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-gold-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.modal-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 22px;
}

.gold-seal-icon {
  filter: drop-shadow(0 4px 14px rgba(216, 178, 110, 0.4));
  animation: subtleSealGlow 3s ease-in-out infinite alternate;
}

@keyframes subtleSealGlow {
  0% { filter: drop-shadow(0 2px 8px rgba(216, 178, 110, 0.3)); }
  100% { filter: drop-shadow(0 4px 18px rgba(253, 238, 206, 0.6)); }
}

.modal-action-btn {
  display: inline-block;
  min-width: 170px;
  padding: 13px 36px;
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 9999px;
  color: #07130D;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-gold-glow);
  transition: all var(--transition);
}

.modal-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55), 0 0 30px var(--color-gold-glow);
  filter: brightness(1.08);
}

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

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

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

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */
@media (max-width: 680px) {
  .top-header {
    padding: 18px 20px 0;
  }

  .brand-logo {
    height: 44px;
    max-width: 52px;
  }

  .header-actions {
    gap: 8px;
  }

  .sound-toggle-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .lang-toggle-btn {
    padding: 7px 14px;
    min-width: 96px;
    gap: 8px;
  }

  .lang-toggle-btn .lang-label {
    font-size: 0.9rem;
  }

  .instagram-timer-btn {
    margin-top: 10px;
    padding: 5px 14px;
    font-size: 0.72rem;
  }

  .main-wrapper {
    padding: 24px 16px 36px;
  }

  .mobile-break {
    display: inline;
  }

  .form-row {
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
  }

  .phone-input-wrap {
    width: 100%;
    padding-left: 6px;
  }

  .phone-input {
    padding: 12px 10px;
    text-align: left;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
  }

  .timer-container {
    gap: 8px;
    padding: 12px 16px;
  }

  .timer-card {
    min-width: 44px;
  }

  .capsule-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .capsule-card:nth-child(4),
  .capsule-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 420px) {
  .capsule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capsule-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   MOROCCAN DARIJA & RTL ADAPTATION
   ========================================================================== */
html[lang="ar"],
body.lang-darija {
  direction: rtl;
}

html[lang="ar"] .top-header,
body.lang-darija .top-header {
  direction: rtl;
}

html[lang="ar"] .header-actions,
body.lang-darija .header-actions {
  direction: ltr; /* Keeps sound and language toggle buttons symmetrically ordered */
}

html[lang="ar"] .promo-text,
body.lang-darija .promo-text {
  font-family: var(--font-arabic), -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.02rem, 2.3vw, 1.25rem);
  line-height: 1.8;
  letter-spacing: 0;
}

html[lang="ar"] .promo-text .discount-badge,
body.lang-darija .promo-text .discount-badge {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  display: inline-block;
}

html[lang="ar"] .phone-input,
body.lang-darija .phone-input {
  direction: ltr;
  text-align: center;
  font-family: var(--font-mono);
}

html[lang="ar"] .phone-input::placeholder,
body.lang-darija .phone-input::placeholder {
  font-family: var(--font-arabic), sans-serif;
  direction: rtl;
  text-align: center;
  letter-spacing: 0;
}

html[lang="ar"] .submit-btn,
body.lang-darija .submit-btn {
  font-family: var(--font-arabic), sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

html[lang="ar"] .privacy-note,
body.lang-darija .privacy-note {
  font-family: var(--font-arabic), sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0;
}

html[lang="ar"] .form-feedback,
body.lang-darija .form-feedback {
  font-family: var(--font-arabic), sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .timer-label,
body.lang-darija .timer-label {
  font-family: var(--font-arabic), sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0;
}

html[lang="ar"] .modal-heading,
body.lang-darija .modal-heading {
  font-family: var(--font-arabic), sans-serif;
  letter-spacing: 0;
  font-size: 1.55rem;
}

html[lang="ar"] .modal-text,
body.lang-darija .modal-text {
  font-family: var(--font-arabic), sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}

html[lang="ar"] .modal-action-btn,
body.lang-darija .modal-action-btn {
  font-family: var(--font-arabic), sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

html[lang="ar"] .sound-label,
body.lang-darija .sound-label {
  font-family: var(--font-arabic), sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .footer-text,
body.lang-darija .footer-text {
  font-family: var(--font-arabic), sans-serif;
  letter-spacing: 0.04em;
}

html[lang="ar"] .phone-input-wrap,
body.lang-darija .phone-input-wrap {
  direction: ltr;
}
