/* ════════════════════════════════════════════════════════════════════
   YALLA NOOR · DESERT NIGHT MIHRAB
   A premium Gulf editorial aesthetic — emerald & aged gold,
   mihrab arches, eight-pointed stars, parchment surfaces.
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Tajawal:wght@300;400;500;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ════════════════════════════════════════════════════════════════════
   1 · DESIGN TOKENS
   ────────────────────────────────────────────────────────────────────
   Stable brand scaffold (ink, gold, sand) is country-invariant.
   The country switcher only retints --clr-primary / --clr-secondary
   for accent ribbons; the editorial palette stays cohesive.
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* Brand scaffold — DOES NOT change per country */
  --ink:               #06321F;   /* near-black emerald, deep sections   */
  --ink-soft:          #0A4128;   /* secondary dark                       */
  --emerald:           #0B5D3B;   /* primary emerald                      */
  --emerald-deep:      #074729;   /* emerald hover/pressed                */
  --emerald-tint:      #E6EFE8;   /* faintest emerald wash                */

  --gold:              #C9A24B;   /* aged gold                            */
  --gold-bright:       #E5C36A;   /* polished highlight                   */
  --gold-dim:          #8C6F2C;   /* shadowed gold leaf                   */
  --gold-foil:         linear-gradient(135deg, #E5C36A 0%, #C9A24B 35%, #8C6F2C 70%, #C9A24B 100%);
  --gold-glow:         0 0 0 1px rgba(201,162,75,.35), 0 12px 32px -8px rgba(201,162,75,.4);

  --sand:              #E8D9B5;   /* desert sand                          */
  --sand-soft:         #F3E9CF;   /* lighter dune                         */
  --parchment:         #F5EDDC;   /* page background                      */
  --parchment-warm:    #EFE4CC;
  --cream:             #FAF6EC;   /* card surface                         */
  --bone:              #FFFCF3;   /* lightest surface                     */
  --ash:               #2C3A30;   /* body text                            */
  --ash-soft:          #5C6B61;   /* muted text                           */

  /* Country-bound tokens (overridden by [data-country=...] below) */
  --clr-primary:        var(--emerald);
  --clr-primary-dark:   var(--emerald-deep);
  --clr-primary-light:  var(--emerald-tint);
  --clr-secondary:      var(--gold);
  --clr-secondary-lt:   var(--sand-soft);
  --clr-accent:         var(--gold-bright);
  --clr-bg:             var(--parchment);
  --clr-surface:        var(--cream);
  --clr-text:           var(--ash);
  --clr-muted:          var(--ash-soft);
  --clr-border:         rgba(11, 93, 59, .14);
  --clr-pattern:        rgba(201, 162, 75, .08);

  /* Typography — distinctive choices */
  --font-display: 'Amiri', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Tajawal', 'Amiri', 'Iowan Old Style', Georgia, serif;
  --font-ui:      'Tajawal', system-ui, -apple-system, sans-serif;
  --font-numeral: 'Cormorant Garamond', 'Amiri', serif;

  /* Geometry */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --radius-arch: 28px 28px 4px 4px;  /* gentle ogee  */

  /* Elevation — soft, layered, never harsh */
  --shadow-sm:   0 1px 0 rgba(11,93,59,.04), 0 2px 6px rgba(7,71,41,.06);
  --shadow-md:   0 1px 0 rgba(11,93,59,.05), 0 8px 24px rgba(7,71,41,.08), 0 2px 6px rgba(7,71,41,.04);
  --shadow-lg:   0 1px 0 rgba(201,162,75,.18), 0 24px 60px -16px rgba(7,71,41,.28), 0 8px 20px rgba(7,71,41,.10);
  --shadow-press: inset 0 1px 0 rgba(255,252,243,.5), inset 0 -1px 0 rgba(11,93,59,.12);

  --nav-height:  76px;
  --max-w:       1200px;
  --gap:         clamp(1rem, 3vw, 2rem);

  /* ── Decorative SVGs (used as background-image data URIs) ── */

  /* 8-pointed Khatim Sulayman star — repeats as tile */
  --svg-khatim: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C9A24B' stroke-width='.7' opacity='.7'%3E%3Cpath d='M40 6 L52 28 L74 40 L52 52 L40 74 L28 52 L6 40 L28 28 Z'/%3E%3Cpath d='M40 14 L46 30 L62 36 L52 50 L52 66 L40 56 L28 66 L28 50 L18 36 L34 30 Z'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");

  /* Arabesque divider — single horizontal flourish */
  --svg-arabesque: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' fill='none'%3E%3Cpath d='M2 14 H92' stroke='%23C9A24B' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M148 14 H238' stroke='%23C9A24B' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M120 4 L130 14 L120 24 L110 14 Z' fill='%23C9A24B'/%3E%3Cpath d='M120 8 L126 14 L120 20 L114 14 Z' fill='%23F5EDDC'/%3E%3Ccircle cx='95' cy='14' r='2.5' fill='%23C9A24B'/%3E%3Ccircle cx='145' cy='14' r='2.5' fill='%23C9A24B'/%3E%3Cpath d='M99 14 Q104 6 109 14 Q104 22 99 14' fill='none' stroke='%23C9A24B' stroke-width='1'/%3E%3Cpath d='M131 14 Q136 6 141 14 Q136 22 131 14' fill='none' stroke='%23C9A24B' stroke-width='1'/%3E%3C/svg%3E");

  /* Corner ornament — for card flourishes */
  --svg-corner: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M2 16 Q2 2 16 2' stroke='%23C9A24B' stroke-width='.8' opacity='.7'/%3E%3Cpath d='M6 16 Q6 6 16 6' stroke='%23C9A24B' stroke-width='.6' opacity='.5'/%3E%3Ccircle cx='10' cy='10' r='1.4' fill='%23C9A24B' opacity='.8'/%3E%3C/svg%3E");

  /* Tiny rhombus — repeating dot grid */
  --svg-rhombus: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 2 L12 7 L7 12 L2 7 Z' fill='%23C9A24B' opacity='.18'/%3E%3C/svg%3E");
}

/* ── Country overrides: tint primary, gold stays universal ── */
[data-country="SA"] {
  --clr-primary:        #0B5D3B;   /* deep palm-emerald                  */
  --clr-primary-dark:   #074729;
  --clr-primary-light:  rgba(11, 93, 59, .08);
  --clr-border:         rgba(11, 93, 59, .16);
}
[data-country="UAE"] {
  --clr-primary:        #173E4A;   /* deep teal — pearl diver waters     */
  --clr-primary-dark:   #0E2A33;
  --clr-primary-light:  rgba(23, 62, 74, .08);
  --clr-border:         rgba(23, 62, 74, .16);
}
[data-country="QA"] {
  --clr-primary:        #6B1428;   /* aged Persian carpet maroon         */
  --clr-primary-dark:   #491020;
  --clr-primary-light:  rgba(107, 20, 40, .07);
  --clr-border:         rgba(107, 20, 40, .15);
}
[data-country="EG"] {
  --clr-primary:        #1A2E5C;   /* midnight Nile blue                 */
  --clr-primary-dark:   #101F3F;
  --clr-primary-light:  rgba(26, 46, 92, .07);
  --clr-border:         rgba(26, 46, 92, .15);
}

/* ════════════════════════════════════════════════════════════════════
   2 · RESET & BASE
   ════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(11,93,59,.06), transparent 70%),
    var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.85;
  min-height: 100vh;
  transition: background .5s ease, color .35s ease;
  font-weight: 400;
  letter-spacing: -.002em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* Latin numerals in a refined italic serif — for prices, stats */
.font-numeral, .pricing-amount, .hero-stat-num {
  font-family: var(--font-numeral);
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-style: italic;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════════
   3 · DECORATIVE BACKGROUND PATTERNS
   ────────────────────────────────────────────────────────────────────
   .pattern-bg is reused on hero & cta-banner — gives them the
   eight-point star tile drifting beneath everything.
   ════════════════════════════════════════════════════════════════════ */
.pattern-bg {
  background-image: var(--svg-khatim);
  background-size: 80px 80px;
  background-position: top right;
  background-repeat: repeat;
  position: relative;
}

[data-country="UAE"] .pattern-bg { background-size: 90px 90px; background-position: top left; }
[data-country="QA"]  .pattern-bg { background-size: 70px 70px; background-position: center; }
[data-country="EG"]  .pattern-bg { background-size: 100px 100px; background-position: top right; }

/* ════════════════════════════════════════════════════════════════════
   4 · LAYOUT HELPERS
   ════════════════════════════════════════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* ════════════════════════════════════════════════════════════════════
   5 · TYPOGRAPHY
   ════════════════════════════════════════════════════════════════════ */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
}
.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -.005em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.t-body    { font-size: 1.02rem; line-height: 1.9; }
.t-sm      { font-size: .9rem;  line-height: 1.7; }
.t-xs      { font-size: .78rem; line-height: 1.55; }
.t-primary { color: var(--clr-primary); }
.t-muted   { color: var(--clr-muted); }
.t-accent  { color: var(--gold-dim); }
.font-ui   { font-family: var(--font-ui); }

/* Section label — small caps eyebrow in gold */
.section-label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(to left, var(--gold), transparent);
}
.section-label::after {
  background: linear-gradient(to right, var(--gold), transparent);
}

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 1rem auto 0; }
.section-sub {
  max-width: 600px;
  color: var(--clr-muted);
  font-size: 1.02rem;
  margin-top: 1rem;
  line-height: 1.85;
}

/* ════════════════════════════════════════════════════════════════════
   6 · BUTTONS — gold filigree, emerald authority
   ════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: all .35s cubic-bezier(.4,.6,.2,1);
  white-space: nowrap;
  letter-spacing: .015em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Primary — emerald with gold hairline & subtle gradient */
.btn-primary {
  background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: var(--bone);
  border-color: rgba(201,162,75,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,252,243,.12),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 6px 18px -8px rgba(7,71,41,.5);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-foil);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.btn-primary:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--gold-glow), inset 0 1px 0 rgba(255,252,243,.4);
}
.btn-primary:hover::before { opacity: 1; }

/* Outline — parchment-on-emerald hairline */
.btn-outline {
  background: transparent;
  border-color: rgba(11,93,59,.3);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(201,162,75,.0);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dim);
  box-shadow: inset 0 0 0 1px rgba(201,162,75,.25);
}

/* Gold — the marquee CTA, polished foil with deep glow */
.btn-gold {
  background: var(--gold-foil);
  color: var(--ink);
  border-color: rgba(140,111,44,.6);
  box-shadow:
    inset 0 1px 0 rgba(255,252,243,.5),
    inset 0 -1px 0 rgba(140,111,44,.4),
    0 8px 24px -10px rgba(201,162,75,.5);
  text-shadow: 0 1px 0 rgba(255,252,243,.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,252,243,.6),
    inset 0 -1px 0 rgba(140,111,44,.5),
    0 18px 40px -12px rgba(201,162,75,.6),
    0 0 0 1px rgba(229,195,106,.3);
}
.btn-gold:active { transform: translateY(0); }

.btn-sm { padding: .6rem 1.4rem; font-size: .85rem; }
.btn-lg { padding: 1.15rem 2.6rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ════════════════════════════════════════════════════════════════════
   7 · BADGES
   ════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .9rem;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-basic {
  background: rgba(11,93,59,.06);
  color: var(--emerald);
  border-color: rgba(11,93,59,.15);
}
.badge-premium {
  background: linear-gradient(135deg, rgba(229,195,106,.18), rgba(201,162,75,.08));
  color: var(--gold-dim);
  border-color: rgba(201,162,75,.4);
}
.badge-tag {
  background: var(--bone);
  color: var(--clr-muted);
  border-color: rgba(11,93,59,.12);
  text-transform: none;
  letter-spacing: .04em;
  font-size: .72rem;
}
.badge-new {
  background: var(--ink);
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* ════════════════════════════════════════════════════════════════════
   8 · NAVIGATION
   ════════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(245,237,220,.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(201,162,75,.22);
  position: relative;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav-logo { display: flex; align-items: center; gap: .8rem; }
.nav-logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(160deg, var(--emerald) 0%, var(--ink) 100%);
  border: 1px solid var(--gold);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(229,195,106,.2),
    0 4px 12px -4px rgba(7,71,41,.4);
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201,162,75,.3);
  border-radius: 7px;
  pointer-events: none;
}
.nav-logo-mark svg { width: 20px; height: 20px; color: var(--gold-bright); }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.01em;
}
.nav-logo-sub {
  font-family: var(--font-ui);
  font-size: .62rem;
  color: var(--gold-dim);
  letter-spacing: .22em;
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ash);
  transition: color .25s;
  padding: .4rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all .3s ease;
  transform: translateX(-50%);
}
.nav-links a:hover,
.nav-links a.active { color: var(--emerald); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Country switcher — refined gold-ring active state */
.country-switcher {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  background: rgba(11,93,59,.06);
  border: 1px solid rgba(11,93,59,.1);
  border-radius: 100px;
}
.cs-btn {
  padding: .35rem .8rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ash-soft);
  background: transparent;
  border: 1px solid transparent;
  transition: all .25s ease;
  letter-spacing: .1em;
}
.cs-btn:hover { color: var(--ink); }
.cs-btn.active {
  background: var(--bone);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(201,162,75,.25), 0 2px 6px rgba(11,93,59,.1);
}

.nav-mobile-toggle { display: none; background: none; border: none; padding: .5rem; color: var(--ink); }
.nav-mobile-menu { display: none; }

/* ════════════════════════════════════════════════════════════════════
   9 · MIHRAB ARCH — reusable decorative scaffold
   ────────────────────────────────────────────────────────────────────
   Apply .mihrab-frame to a section to get the arched top silhouette.
   ════════════════════════════════════════════════════════════════════ */
.mihrab-frame {
  position: relative;
}
.mihrab-frame::before {
  /* Inner mihrab silhouette — appears as faint frame in upper area */
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, 90%);
  height: 75%;
  transform: translateX(-50%);
  background: var(--svg-khatim);
  background-size: 90px 90px;
  background-position: top center;
  opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
          mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════════════════════════════════
   10 · HERO — the threshold of the library
   ════════════════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(201,162,75,.12), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(11,93,59,.08), transparent 70%);
}
.hero::before {
  /* Faint Khatim star drift */
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--svg-khatim);
  background-size: 100px 100px;
  opacity: .35;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {
  /* Mihrab arch silhouette behind hero content, top-right */
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: 520px;
  height: 720px;
  background:
    radial-gradient(ellipse 240px 360px at 50% 70%, rgba(11,93,59,.10), transparent 70%);
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' fill='%23000'%3E%3Cpath d='M20 280 L20 130 Q20 20 100 20 Q180 20 180 130 L180 280 Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' fill='%23000'%3E%3Cpath d='M20 280 L20 130 Q20 20 100 20 Q180 20 180 130 L180 280 Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  opacity: .9;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 760px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold-dim);
  background: var(--bone);
  border: 1px solid rgba(201,162,75,.45);
  padding: .5rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px -4px rgba(201,162,75,.2);
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,162,75,.2);
  animation: gentle-pulse 2.6s ease-in-out infinite;
}
@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,162,75,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(201,162,75,.0); }
}

.hero-title {
  margin-bottom: 1.5rem;
  position: relative;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ash);
  opacity: .85;
  max-width: 600px;
  margin-bottom: 1rem;
  line-height: 1.85;
  font-weight: 400;
}

/* Arabesque divider beneath hero subtitle */
.hero-content > .hero-sub::after,
.hero-divider-ornament {
  content: '';
  display: block;
  width: 220px;
  height: 18px;
  margin: 2rem 0;
  background-image: var(--svg-arabesque);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: .85;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: rgba(255,252,243,.65);
  border: 1px solid rgba(201,162,75,.3);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  max-width: fit-content;
  position: relative;
}
.hero-stats::before,
.hero-stats::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: var(--svg-corner);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .8;
}
.hero-stats::before { top: -1px; right: -1px; transform: rotate(0deg); }
.hero-stats::after  { top: -1px; left: -1px;  transform: scaleX(-1); }
.hero-stat-num {
  font-family: var(--font-numeral);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--emerald);
  line-height: 1;
  font-style: italic;
}
.hero-stat-label {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--ash-soft);
  margin-top: .4rem;
  letter-spacing: .04em;
}
.hero-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(201,162,75,.5), transparent);
}

/* Legacy decoration hook — keep but redirect */
.hero-geo {
  position: absolute;
  left: -8%;
  top: 8%;
  width: 460px;
  height: 460px;
  opacity: .04;
  color: var(--emerald);
  pointer-events: none;
  z-index: 1;
}

/* Topics pills under hero */
.topics { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.topic-pill {
  padding: .45rem 1.1rem;
  background: var(--bone);
  border: 1px solid rgba(11,93,59,.14);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--ash);
  transition: all .25s ease;
  position: relative;
}
.topic-pill::before {
  content: '◆';
  font-size: .55em;
  color: var(--gold);
  margin-left: .5rem;
  transition: color .25s;
}
.topic-pill:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--cream);
  transform: translateY(-1px);
}
.topic-pill:hover::before { color: var(--gold-bright); }

/* ════════════════════════════════════════════════════════════════════
   11 · FEATURES — illuminated manuscript cards
   ════════════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background:
    linear-gradient(180deg, var(--bone), var(--cream));
  border: 1px solid rgba(11,93,59,.12);
  border-radius: var(--radius-arch);
  padding: 2.5rem 1.75rem 2rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  /* Geometric watermark behind content */
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 160px;
  height: 160px;
  background-image: var(--svg-khatim);
  background-size: 80px 80px;
  opacity: .25;
  pointer-events: none;
  transition: transform .8s ease, opacity .35s;
}
.feature-card::after {
  /* Top hairline gold rule */
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,75,.5);
  box-shadow: 0 24px 50px -20px rgba(7,71,41,.25), 0 0 0 1px rgba(201,162,75,.15);
}
.feature-card:hover::before {
  transform: rotate(18deg) scale(1.1);
  opacity: .4;
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold) 60%, var(--gold-dim) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--ink);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,252,243,.5),
    inset 0 -1px 0 rgba(140,111,44,.5),
    0 6px 16px -6px rgba(201,162,75,.5);
}
.feature-icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(201,162,75,.35);
  border-radius: 50%;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.feature-desc {
  font-size: .94rem;
  color: var(--ash);
  opacity: .82;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════════════════════
   12 · ARTICLE CARDS — newspaper of the desert
   ════════════════════════════════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.article-card {
  background: var(--bone);
  border: 1px solid rgba(11,93,59,.12);
  border-radius: 16px;
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  position: relative;
  overflow: hidden;
}
.article-card::before {
  /* Gold accent hairline along right edge (RTL = leading edge) */
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  right: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .35s, right .35s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,162,75,.4);
  box-shadow: 0 20px 44px -18px rgba(7,71,41,.22);
}
.article-card:hover::before { opacity: 1; right: 4px; }
.article-card.locked { background: linear-gradient(180deg, var(--bone), var(--sand-soft)); }

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: .85rem;
  line-height: 1.45;
  color: var(--ink);
}
.article-excerpt {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ash);
  opacity: .82;
  line-height: 1.85;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--ash-soft);
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(11,93,59,.15);
}
.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 1.1rem;
  transition: gap .25s, color .2s;
}
.article-read-btn:hover { gap: .8rem; color: var(--gold-dim); }
.article-read-btn svg { transition: transform .3s; }
.article-read-btn:hover svg { transform: scaleX(-1) translateX(2px); }

/* Locked overlay */
.lock-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.85rem;
  background: linear-gradient(to top, var(--bone) 50%, rgba(245,237,220,.7) 80%, transparent);
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  border-radius: 0 0 16px 16px;
}

/* ════════════════════════════════════════════════════════════════════
   13 · PRICING
   ════════════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: var(--bone);
  border: 1px solid rgba(11,93,59,.14);
  border-radius: var(--radius-arch);
  padding: 2.75rem 2.25rem;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .5;
}
.pricing-card.featured {
  background:
    linear-gradient(180deg, var(--bone) 0%, var(--cream) 100%);
  border: 1.5px solid var(--gold);
  box-shadow:
    0 1px 0 var(--gold-bright),
    0 30px 70px -20px rgba(201,162,75,.4),
    inset 0 0 0 1px rgba(255,252,243,.5);
}
.pricing-card.featured::before {
  height: 5px;
  background: var(--gold-foil);
  opacity: 1;
}
.pricing-card.featured::after {
  /* Gold corner ornaments */
  content: '';
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  background-image: var(--svg-corner);
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  opacity: .65;
}

.pricing-badge-top {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--gold-foil);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  padding: .45rem 1.4rem;
  border-radius: 4px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  box-shadow:
    inset 0 1px 0 rgba(255,252,243,.5),
    0 4px 10px -3px rgba(201,162,75,.5);
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-dim);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(201,162,75,.4);
}
.pricing-amount {
  font-family: var(--font-numeral);
  font-size: 3.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}
.pricing-currency {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-dim);
  font-weight: 700;
}
.pricing-period {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--ash-soft);
}
.pricing-features { margin-bottom: 2rem; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .65rem 0;
  font-family: var(--font-body);
  font-size: .94rem;
  color: var(--ash);
  border-bottom: 1px solid rgba(11,93,59,.06);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-check {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(140,111,44,.4);
}
.pricing-check svg { width: 11px; height: 11px; stroke-width: 3.5; }

/* ════════════════════════════════════════════════════════════════════
   14 · ORNAMENTAL DIVIDER
   ════════════════════════════════════════════════════════════════════ */
.ornamental-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 480px;
}
.ornamental-divider::before,
.ornamental-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--gold) 50%, transparent);
}
.ornamental-glyph {
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
  display: inline-block;
  transform: rotate(45deg);
}

/* ════════════════════════════════════════════════════════════════════
   15 · CTA BANNER — the mihrab call
   ════════════════════════════════════════════════════════════════════ */
.cta-banner {
  background:
    radial-gradient(ellipse at top, var(--ink-soft), var(--ink) 70%);
  border-radius: var(--radius-arch);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  box-shadow:
    0 30px 80px -20px rgba(7,71,41,.5),
    inset 0 1px 0 rgba(229,195,106,.18);
  text-align: center;
}
.cta-banner::before {
  /* Khatim star pattern overlay */
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--svg-khatim);
  background-size: 90px 90px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.cta-banner::after {
  /* Top gold filigree */
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 18px;
  background-image: var(--svg-arabesque);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .8;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner-title {
  color: var(--bone);
  margin-bottom: 1rem;
  margin-top: 1.25rem;
}
.cta-banner-sub {
  color: rgba(250,246,236,.7);
  margin-bottom: 2.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
}
.cta-banner .btn-gold {
  font-size: 1.05rem;
  padding: 1.1rem 2.75rem;
}

/* ════════════════════════════════════════════════════════════════════
   16 · FOOTER — the colophon
   ════════════════════════════════════════════════════════════════════ */
.footer {
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(11,93,59,.25), transparent 70%),
    var(--ink);
  color: rgba(250,246,236,.8);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
  position: relative;
  border-top: 1px solid var(--gold-dim);
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--svg-khatim);
  background-size: 100px 100px;
  opacity: .08;
  pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo-mark {
  background: linear-gradient(160deg, var(--ink-soft), var(--ink));
  border-color: var(--gold);
}
.footer-brand .nav-logo-text { color: var(--bone); font-family: var(--font-display); }
.footer-brand .nav-logo-sub { color: rgba(229,195,106,.65); }
.footer-tagline {
  font-family: var(--font-body);
  font-size: .94rem;
  color: rgba(250,246,236,.6);
  margin-top: 1rem;
  line-height: 1.85;
  max-width: 380px;
}
.footer-col-title {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .65rem;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a {
  font-family: var(--font-body);
  font-size: .92rem;
  color: rgba(250,246,236,.65);
  transition: color .25s, padding .25s;
  position: relative;
  padding-right: 0;
}
.footer-links a:hover {
  color: var(--gold-bright);
  padding-right: 14px;
}
.footer-links a::before {
  content: '◆';
  position: absolute;
  right: 0;
  opacity: 0;
  font-size: .6em;
  color: var(--gold);
  transition: opacity .25s;
  top: 50%;
  transform: translateY(-50%);
}
.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(201,162,75,.18);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: rgba(250,246,236,.45);
}
.footer-bottom a { color: rgba(250,246,236,.6); transition: color .2s; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ════════════════════════════════════════════════════════════════════
   17 · COOKIE BANNER
   ════════════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--ink-soft), var(--ink));
  color: var(--bone);
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  padding: 1.6rem 1.85rem;
  box-shadow: 0 30px 60px -20px rgba(7,71,41,.5);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(calc(100% + 2rem));
  transition: transform .45s cubic-bezier(.34,1.4,.64,1);
}
.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-actions { display: flex; gap: .75rem; justify-content: flex-end; }
.cookie-accept {
  background: var(--gold-foil);
  color: var(--ink);
  border: 1px solid var(--gold-dim);
  padding: .6rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .04em;
}
.cookie-accept:hover { box-shadow: 0 6px 16px -4px rgba(201,162,75,.5); transform: translateY(-1px); }
.cookie-reject {
  background: transparent;
  color: rgba(250,246,236,.65);
  border: 1px solid rgba(201,162,75,.3);
  padding: .6rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: .82rem;
  cursor: pointer;
  transition: all .25s;
}
.cookie-reject:hover { border-color: var(--gold); color: var(--bone); }

/* ════════════════════════════════════════════════════════════════════
   18 · MODAL
   ════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,50,31,.55);
  backdrop-filter: blur(6px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius-arch);
  padding: 2.75rem 2.5rem 2.25rem;
  max-width: 480px;
  width: 100%;
  transform: scale(.95) translateY(20px);
  transition: transform .3s cubic-bezier(.34,1.3,.64,1);
  position: relative;
  box-shadow:
    0 40px 100px -20px rgba(7,71,41,.5),
    inset 0 1px 0 rgba(255,252,243,.6);
}
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%; right: 25%;
  height: 3px;
  background: var(--gold-foil);
  border-radius: 0 0 6px 6px;
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid rgba(11,93,59,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash-soft);
  font-size: 1rem;
  transition: all .25s;
}
.modal-close:hover { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }
.modal-icon {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,252,243,.5),
    inset 0 -1px 0 rgba(140,111,44,.5),
    0 8px 20px -6px rgba(201,162,75,.5);
}
.modal-icon::before {
  content: '';
  position: absolute;
  width: 86px; height: 86px;
  border: 1px solid rgba(201,162,75,.3);
  border-radius: 50%;
}
.modal-icon svg { width: 32px; height: 32px; }
.modal-title {
  text-align: center;
  margin-bottom: .85rem;
  font-family: var(--font-display);
}
.modal-body {
  text-align: center;
  color: var(--ash);
  font-size: .98rem;
  line-height: 1.85;
  font-family: var(--font-body);
}
.modal-note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  background: var(--sand-soft);
  border: 1px solid rgba(201,162,75,.3);
  border-radius: 10px;
  font-size: .85rem;
  color: var(--ash);
  text-align: center;
  font-family: var(--font-body);
}
.modal-note strong { color: var(--gold-dim); }
.modal-actions { margin-top: 2rem; }

/* ════════════════════════════════════════════════════════════════════
   19 · FORMS
   ════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .5rem;
  letter-spacing: .04em;
}
.form-input {
  width: 100%;
  padding: .95rem 1.15rem;
  border: 1px solid rgba(11,93,59,.18);
  border-radius: 10px;
  background: var(--bone);
  color: var(--ink);
  font-size: .98rem;
  font-family: var(--font-ui);
  transition: border-color .25s, box-shadow .25s, background .25s;
  direction: rtl;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(201,162,75,.15);
}
.form-input.error { border-color: #B91C1C; background: rgba(185,28,28,.04); }
.form-error {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: #B91C1C;
  margin-top: .4rem;
}
.form-hint {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--ash-soft);
  margin-top: .4rem;
}

/* ════════════════════════════════════════════════════════════════════
   20 · AUTH PAGE — login / register
   ════════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(1000px 600px at 50% -20%, rgba(11,93,59,.5), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(201,162,75,.15), transparent 60%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--svg-khatim);
  background-size: 110px 110px;
  opacity: .12;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.auth-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius-arch);
  padding: 3rem clamp(1.75rem, 4vw, 3rem) 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,252,243,.7);
  position: relative;
  z-index: 1;
}
.auth-card::before {
  /* Gold rule at top */
  content: '';
  position: absolute;
  top: 0;
  left: 28%; right: 28%;
  height: 3px;
  background: var(--gold-foil);
  border-radius: 0 0 4px 4px;
}
.auth-card::after {
  /* Arabesque flourish under logo */
  content: '';
  display: block;
  width: 180px;
  height: 14px;
  margin: -1rem auto 1.5rem;
  background-image: var(--svg-arabesque);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .8;
  position: absolute;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.auth-logo { text-align: center; margin-bottom: 3.25rem; position: relative; z-index: 2; }
.auth-logo .nav-logo-text { font-size: 1.7rem; }
.auth-logo .nav-logo-sub { font-size: .65rem; letter-spacing: .22em; }
.auth-tabs {
  display: flex;
  background: rgba(11,93,59,.06);
  border: 1px solid rgba(11,93,59,.12);
  border-radius: 100px;
  padding: .3rem;
  margin-bottom: 2rem;
  overflow: hidden;
}
.auth-tab {
  flex: 1;
  padding: .8rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ash-soft);
  transition: all .3s;
}
.auth-tab.active {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 2px 6px rgba(11,93,59,.1);
}
.auth-switch {
  text-align: center;
  margin-top: 1.75rem;
  font-size: .9rem;
  color: var(--ash-soft);
  font-family: var(--font-body);
}
.auth-switch a {
  color: var(--gold-dim);
  font-weight: 700;
  border-bottom: 1px solid rgba(201,162,75,.4);
  transition: color .25s, border-color .25s;
}
.auth-switch a:hover { color: var(--emerald); border-color: var(--emerald); }
.auth-divider {
  text-align: center;
  font-size: .78rem;
  color: var(--ash-soft);
  margin: 1.75rem 0;
  position: relative;
  font-family: var(--font-ui);
  letter-spacing: .08em;
}
.auth-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,.4), transparent);
}
.auth-divider span { position: relative; background: var(--cream); padding: 0 1.25rem; }

/* ════════════════════════════════════════════════════════════════════
   21 · CABINET / DASHBOARD
   ════════════════════════════════════════════════════════════════════ */
.cabinet-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.25rem;
  min-height: calc(100vh - var(--nav-height));
  padding: 2.75rem 0;
}
.cabinet-sidebar {
  background: var(--cream);
  border: 1px solid rgba(201,162,75,.25);
  border-radius: var(--radius-arch);
  padding: 2rem 1.5rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  box-shadow: var(--shadow-sm);
}
.cabinet-sidebar::before {
  content: '';
  display: block;
  height: 3px;
  margin: -2rem -1.5rem 2rem;
  background: var(--gold-foil);
  border-radius: var(--radius-arch) var(--radius-arch) 0 0;
}
.cabinet-avatar {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255,252,243,.5), 0 6px 14px -4px rgba(201,162,75,.5);
}
.cabinet-user-name {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.cabinet-user-email {
  text-align: center;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--ash-soft);
  margin-top: .35rem;
  direction: ltr;
}
.cabinet-plan-badge { text-align: center; margin-top: 1rem; }
.sidebar-nav {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(201,162,75,.25);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1rem;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ash);
  transition: all .25s;
  position: relative;
}
.sidebar-nav a:hover {
  background: rgba(11,93,59,.05);
  color: var(--ink);
}
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(201,162,75,.18), rgba(11,93,59,.06));
  color: var(--ink);
  font-weight: 700;
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 25%; bottom: 25%;
  width: 3px;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}
.sidebar-nav svg { width: 17px; height: 17px; flex-shrink: 0; }

.cabinet-main { }
.cabinet-header { margin-bottom: 2.25rem; }
.cabinet-greeting {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
}
.cabinet-sub {
  color: var(--ash-soft);
  font-size: .95rem;
  margin-top: .4rem;
  font-family: var(--font-body);
}

.upgrade-banner {
  background:
    radial-gradient(ellipse at top right, rgba(201,162,75,.15), transparent 60%),
    linear-gradient(135deg, var(--ink-soft), var(--ink));
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--bone);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -16px rgba(7,71,41,.4);
}
.upgrade-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--svg-khatim);
  background-size: 80px 80px;
  opacity: .15;
  pointer-events: none;
}
.upgrade-banner > * { position: relative; z-index: 1; }
.upgrade-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--bone);
}
.upgrade-text p {
  font-family: var(--font-body);
  font-size: .9rem;
  color: rgba(250,246,236,.75);
}

/* ════════════════════════════════════════════════════════════════════
   22 · LEGAL PAGES
   ════════════════════════════════════════════════════════════════════ */
.legal-page { padding: clamp(3rem, 8vw, 5rem) 0; }
.legal-header {
  background:
    radial-gradient(ellipse 800px 300px at 50% 100%, rgba(201,162,75,.1), transparent 70%),
    var(--cream);
  border-bottom: 1px solid rgba(201,162,75,.3);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  margin-bottom: 3rem;
  position: relative;
}
.legal-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 30%; right: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.legal-header .badge { margin-bottom: 1.1rem; }
.legal-header h1 {
  font-family: var(--font-display);
  color: var(--ink);
}
.legal-meta {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--ash-soft);
  margin-top: 1rem;
  letter-spacing: .04em;
}
.legal-country-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed rgba(201,162,75,.3);
}
.legal-tab {
  padding: .55rem 1.35rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid rgba(11,93,59,.18);
  background: var(--bone);
  color: var(--ash);
  cursor: pointer;
  transition: all .25s;
}
.legal-tab:hover { border-color: var(--gold); color: var(--ink); }
.legal-tab.active {
  background: var(--ink);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.legal-content {
  max-width: 820px;
  font-family: var(--font-body);
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 3rem 0 1.25rem;
  padding-bottom: .75rem;
  position: relative;
}
.legal-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 64px;
  height: 2px;
  background: var(--gold);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: var(--ash);
  line-height: 1.95;
  margin-bottom: 1.15rem;
  font-size: .98rem;
}
.legal-content ul {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--ash);
  font-size: .98rem;
}
.legal-content ul li {
  margin-bottom: .55rem;
  line-height: 1.85;
  position: relative;
  padding-right: 1rem;
}
.legal-content ul li::before {
  content: '◆';
  position: absolute;
  right: -.5rem;
  color: var(--gold);
  font-size: .55em;
  top: .55em;
}
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content a { color: var(--gold-dim); border-bottom: 1px solid rgba(201,162,75,.4); transition: color .2s; }
.legal-content a:hover { color: var(--emerald); }
.legal-content code {
  background: rgba(11,93,59,.06);
  border: 1px solid rgba(11,93,59,.12);
  padding: .15rem .45rem;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: .85em;
  color: var(--emerald);
  direction: ltr;
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════
   23 · ORACLE (internal QA)
   ════════════════════════════════════════════════════════════════════ */
.oracle-page { padding: 3rem 0; }
.oracle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.oracle-card {
  background: var(--cream);
  border: 1px solid rgba(201,162,75,.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.oracle-card-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--emerald), var(--ink));
  color: var(--bone);
  border-bottom: 1px solid var(--gold-dim);
}
.oracle-card-header h2 { font-family: var(--font-display); color: var(--bone); }
.oracle-card-body { padding: 1.75rem; }
.check-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .85rem;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: .87rem;
  margin-bottom: .35rem;
  transition: background .15s;
}
.check-item.pass { background: #ECFDF5; color: #065F46; }
.check-item.fail { background: #FEF2F2; color: #991B1B; }
.check-item.warn { background: #FFFBEB; color: #92400E; }
.check-item.pending { background: rgba(11,93,59,.04); color: var(--ash-soft); }
.check-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.check-dot.pass { background: #10B981; }
.check-dot.fail { background: #EF4444; }
.check-dot.warn { background: #F59E0B; }
.check-dot.pending { background: rgba(11,93,59,.2); }

/* ════════════════════════════════════════════════════════════════════
   24 · ALERTS
   ════════════════════════════════════════════════════════════════════ */
.alert {
  padding: 1rem 1.35rem;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: .9rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-error   { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.alert-info    { background: var(--cream); border-color: rgba(201,162,75,.3); color: var(--ink); }

/* ════════════════════════════════════════════════════════════════════
   25 · REVEAL ANIMATIONS — staggered, restrained
   ════════════════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Initial page load: stagger hero internals */
.hero-content > .hero-eyebrow { animation: fadeUp .8s .05s both ease-out; }
.hero-content > .hero-title   { animation: fadeUp .9s .15s both ease-out; }
.hero-content > .hero-sub     { animation: fadeUp .9s .25s both ease-out; }
.hero-content > .hero-cta     { animation: fadeUp .9s .35s both ease-out; }
.hero-content > .topics       { animation: fadeUp .9s .45s both ease-out; }
.hero-content > .hero-stats   { animation: fadeUp .9s .55s both ease-out; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01s !important;
    transition-duration: .01s !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   26 · UTILS
   ════════════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,.4), transparent);
  margin: 2rem 0;
}

/* Section disclaimer (used on pricing) */
.section-disclaimer {
  font-size: .78rem;
  color: var(--ash-soft);
  margin-top: .75rem;
  opacity: .85;
  font-style: italic;
  font-family: var(--font-body);
}

/* ════════════════════════════════════════════════════════════════════
   27 · RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-mobile-menu {
    position: fixed;
    top: var(--nav-height);
    inset-inline: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gold);
    padding: 1.25rem;
    z-index: 99;
    flex-direction: column;
    gap: .35rem;
    box-shadow: 0 12px 30px -10px rgba(7,71,41,.2);
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    font-family: var(--font-ui);
    font-size: .95rem;
    padding: .85rem 1rem;
    border-radius: 8px;
    color: var(--ink);
    display: block;
    border-bottom: 1px dashed rgba(201,162,75,.2);
  }
  .nav-mobile-menu a:last-child { border-bottom: none; }
  .nav-mobile-menu a:hover { background: rgba(201,162,75,.08); }
  .country-switcher { gap: .15rem; padding: .2rem; }
  .cs-btn { padding: .25rem .55rem; font-size: .7rem; letter-spacing: .06em; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .cabinet-layout { grid-template-columns: 1fr; }
  .cabinet-sidebar { position: static; }
  .oracle-grid { grid-template-columns: 1fr; }
  .hero-stats { padding: 1.25rem 1.5rem; gap: 1.5rem; }
  .hero-stat-num { font-size: 2rem; }
}

@media (max-width: 600px) {
  :root { --nav-height: 64px; }
  .hero { padding-top: 3.5rem; padding-bottom: 3rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-divider { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner::after { width: 180px; }
  .upgrade-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .cookie-banner { right: 1rem; left: 1rem; padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-logo-sub { display: none; }
  .nav-logo-mark { width: 38px; height: 38px; }
  .nav-logo-text { font-size: 1.35rem; }
  .legal-content h2 { font-size: 1.2rem; }
  .modal { padding: 2rem 1.5rem; }
}

@media print {
  .navbar, .cookie-banner, .modal-backdrop, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ════════════════════════════════════════════════════════════════════
   28 · SCROLLBAR — restrained gold accent
   ════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--parchment-warm); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border: 3px solid var(--parchment-warm);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::selection { background: rgba(201,162,75,.35); color: var(--ink); }
