/* ═══════════════════════════════════════════════
   HIDAYAH, GLOBAL DESIGN SYSTEM
   هِدَايَة
═══════════════════════════════════════════════ */

/* ─── TOKENS ───────────────────────────────────
   Unique identity: emerald-black canvas · copper CTA ·
   jade + turquoise interactive accents. (Not gold/navy.)
─────────────────────────────────────────────── */
:root {
  /* raw brand */
  --ih-jade:        #15B391;   /* primary brand teal-jade */
  --ih-jade-2:      #2FD8B0;   /* bright turquoise, interactive/dynamic */
  --ih-jade-deep:   #0C7A64;
  --ih-copper:      #D89B5E;   /* warm accent, calligraphy, CTAs, ayaat */
  --ih-copper-2:    #EFC489;
  --ih-copper-3:    #F6DCB4;

  /* canvas */
  --ih-bg:          #061915;
  --ih-surface:     #0B2A24;
  --ih-surface-2:   #103730;
  --ih-surface-3:   #18473E;
  --ih-white:       #EAF4F0;
  --ih-text:        #D6E6E0;
  --ih-muted:       #82A89D;
  --ih-muted-2:     #587a70;
  --ih-border:      rgba(216,155,94,0.16);
  --ih-border-2:    rgba(47,216,176,0.10);
  --ih-red:         #C0392B;

  /* legacy aliases (so all existing rules recolor automatically) */
  --ih-green:       var(--ih-jade);
  --ih-green-2:     var(--ih-jade-deep);
  --ih-green-3:     var(--ih-jade-2);
  --ih-gold:        var(--ih-copper);
  --ih-gold-2:      var(--ih-copper-2);
  --ih-gold-3:      var(--ih-copper-3);

  --shadow-sm:      0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:      0 10px 50px rgba(0,0,0,0.6);
  --shadow-gold:    0 6px 30px rgba(216,155,94,0.30);
  --shadow-jade:    0 6px 30px rgba(21,179,145,0.30);
  --r-sm:  4px; --r-md: 10px; --r-lg: 18px; --r-xl: 28px; --r-full: 9999px;
  --ease:  cubic-bezier(0.16,1,0.3,1);
  --dur:   280ms; --dur-s: 600ms;
  --font-quran:    'Amiri', 'Noto Naskh Arabic', serif;
  --font-ar:       'Cairo', 'Tajawal', 'Noto Naskh Arabic', sans-serif;
  --font-ar-disp:  'Aref Ruqaa', 'Reem Kufi', 'Tajawal', serif;
  --font-ar-brand: 'Aref Ruqaa', 'Amiri', serif;
  --font-heading:  'Fraunces', 'Lora', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
}

[data-theme="light"] {
  --ih-bg:        #F1F5F2;
  --ih-surface:   #FFFFFF;
  --ih-surface-2: #EAF1ED;
  --ih-surface-3: #DCE8E2;
  --ih-white:     #07261F;
  --ih-text:      #143229;
  --ih-muted:     #4A6A60;
  --ih-muted-2:   #7C968C;
  --ih-border:    rgba(12,122,100,0.18);
  --ih-border-2:  rgba(12,122,100,0.10);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 10px 50px rgba(0,0,0,0.12);
}

/* ─── LANGUAGE SWITCH SYSTEM ────────────────────
   Default = Arabic. Toggle sets <html lang> + dir.
   .ih-en shows only in English · .ih-ar only in Arabic.
   Quranic ayaat (.ih-aya) ALWAYS show in both.
─────────────────────────────────────────────── */
html[lang="en"] .ih-ar { display: none !important; }
html[lang="ar"] .ih-en { display: none !important; }
.ih-en, .ih-ar { display: inline; }
.ih-en.ih-block, .ih-ar.ih-block { display: block; }
html[lang="en"] .ih-ar.ih-block,
html[lang="ar"] .ih-en.ih-block { display: none !important; }
/* Arabic typography when active */
html[lang="ar"] body { font-family: var(--font-ar); }
/* All Arabic titles and headings share the same elegant calligraphic font. */
html[lang="ar"] .ih-section-title,
html[lang="ar"] .ih-hero__h1,
html[lang="ar"] .ih-page-hero__title,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-ar-brand); font-weight: 700; letter-spacing: 0; }
/* Arabic names / labels that act as titles (Quran and dua text keep Amiri). */
.ih-scholar-card__ar, .ih-book-card__ar, .ih-manner-card__ar,
.ih-empire-card__ar, .ih-empire-entry__ar, .ih-country-card__ar,
.ih-prophet-card__ar, .ih-prophet__card-ar, .ih-page-hero__ar {
  font-family: var(--font-ar-brand);
}
.ih-aya { font-family: var(--font-quran); }

/* ─── RESET & BASE ───────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ih-bg);
  color: var(--ih-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--dur), color var(--dur);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* Arabic language overrides */
[lang="ar"], [dir="rtl"] {
  font-family: var(--font-ar);
  line-height: 1.9;
}
.ih-quran-text, .ih-quran-daily__ar, .ih-hadith-day__ar,
.ih-dua-card__ar, .ih-prophet__quote blockquote {
  font-family: var(--font-quran);
}

/* ─── LAYOUT ─────────────────────────────────── */
.ih-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .ih-container { padding: 0 40px; } }
@media (min-width: 1200px) { .ih-container { padding: 0 60px; } }

.ih-section {
  padding: 96px 0;
  position: relative;
}
@media (max-width: 768px) { .ih-section { padding: 64px 0; } }

.ih-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .ih-two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ─── TYPOGRAPHY ─────────────────────────────── */
.ih-section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ih-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ih-section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ih-gold);
  flex-shrink: 0;
}
.ih-section-label--c { justify-content: center; }
.ih-section-label--c::before { display: none; }

.ih-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ih-white);
  margin-bottom: 16px;
}
.ih-section-sub {
  font-family: var(--font-ar);
  font-size: 1.5rem;
  color: var(--ih-gold);
  margin-bottom: 12px;
  opacity: 0.85;
}
.ih-section-desc {
  font-size: 1.0625rem;
  color: var(--ih-muted);
  max-width: 660px;
  margin-bottom: 48px;
  line-height: 1.8;
}
.ih-gold { color: var(--ih-gold); }
.ih-section-cta { text-align: center; margin-top: 48px; }

/* ─── REVEAL ANIMATIONS ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 80ms; }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; }

/* ─── BUTTONS ────────────────────────────────── */
.ih-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.ih-btn--gold {
  background: var(--ih-gold);
  color: #0B1622;
}
.ih-btn--gold:hover {
  background: var(--ih-gold-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.ih-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.ih-btn--ghost:hover { border-color: var(--ih-gold); color: var(--ih-gold); }
.ih-btn--ghost-green {
  background: transparent;
  color: var(--ih-green-3);
  border: 1.5px solid var(--ih-green-2);
}
.ih-btn--ghost-green:hover { background: var(--ih-green); border-color: var(--ih-green-3); }
.ih-btn--lg { padding: 18px 40px; font-size: 1.0625rem; }

.ih-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ih-gold);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--dur) var(--ease);
  margin-top: 24px;
}
.ih-link-arrow:hover { gap: 14px; }

/* ─── BADGES ─────────────────────────────────── */
.ih-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--ih-surface-2);
  color: var(--ih-muted);
  border: 1px solid var(--ih-border-2);
  display: inline-block;
}
.ih-badge--gold { background: rgba(201,168,76,0.15); color: var(--ih-gold); border-color: var(--ih-border); }
.ih-badge--sm { font-size: 0.625rem; padding: 3px 8px; }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.ih-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 24px 0;
  transition: background var(--dur), padding var(--dur), box-shadow var(--dur);
}
.ih-nav.scrolled {
  background: rgba(11,22,34,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--ih-border);
}
[data-theme="light"] .ih-nav.scrolled { background: rgba(245,240,232,0.95); }

.ih-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ih-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Brand medallion (real logo image), mobile-first */
.ih-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4efe6;
  border: 1.5px solid rgba(216,155,94,0.55);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: box-shadow var(--dur), transform var(--dur);
}
.ih-nav__logo:hover .ih-logo-img {
  box-shadow: 0 0 0 2px rgba(216,155,94,0.4), 0 0 18px rgba(45,212,176,0.30);
  transform: scale(1.04);
}
.ih-logo-img--footer {
  width: 76px; height: 76px;
  border-color: rgba(216,155,94,0.4);
}
@media (min-width: 768px) { .ih-logo-img { width: 64px; height: 64px; } }
.ih-logo-text { display: flex; flex-direction: column; gap: 1px; }
.ih-logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ih-white);
  line-height: 1.2;
  white-space: nowrap;
}
[data-theme="light"] .ih-logo-name { color: var(--ih-jade-deep); }
.ih-logo-ar {
  font-family: var(--font-ar);
  font-size: 0.6875rem;
  color: var(--ih-gold);
  direction: rtl;
}

.ih-nav__links {
  display: none;
  gap: 4px;
}
@media (min-width: 1024px) { .ih-nav__links { display: flex; } }

.ih-nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ih-muted);
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: color var(--dur), background var(--dur);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ih-nav__link:hover, .ih-nav__link--drop:hover { color: var(--ih-white); background: var(--ih-surface); }

/* Dropdown */
.has-dropdown { position: relative; }
.ih-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease);
  z-index: 10;
}
.has-dropdown:hover .ih-dropdown,
.has-dropdown:focus-within .ih-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ih-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--ih-muted);
  border-radius: var(--r-md);
  transition: all var(--dur);
}
.ih-dropdown a:hover { color: var(--ih-white); background: var(--ih-surface-3); }

/* Right controls */
.ih-nav__right { display: flex; align-items: center; gap: 10px; }
.ih-nav__cta { display: none; }
@media (min-width: 640px) { .ih-nav__cta { display: inline-flex; } }

.ih-lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-full);
  padding: 3px;
}
.ih-lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-full);
  color: var(--ih-muted);
  transition: all var(--dur);
}
.ih-lang-btn.active { background: var(--ih-gold); color: #0B1622; }

.ih-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-muted);
  transition: all var(--dur);
}
.ih-theme-btn:hover { border-color: var(--ih-gold); color: var(--ih-gold); }

.ih-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}
@media (min-width: 1024px) { .ih-burger { display: none; } }
.ih-burger span {
  display: block;
  height: 2px;
  background: var(--ih-text);
  border-radius: 2px;
  transition: all var(--dur);
}

/* Mobile nav */
.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ih-bg);
  z-index: 950;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
}
.mob-nav.open { display: flex; }
.mob-nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-muted);
  border-radius: var(--r-full);
  border: 1px solid var(--ih-border);
  transition: all var(--dur);
}
.mob-nav__close:hover { color: var(--ih-white); border-color: var(--ih-gold); }
.mob-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.mob-nav__links { width: 100%; max-width: 320px; }
.mob-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ih-muted);
  border-radius: var(--r-lg);
  transition: all var(--dur);
  width: 100%;
}
.mob-nav__link:hover { color: var(--ih-white); background: var(--ih-surface); }
.mob-nav__link.cta-link { color: var(--ih-gold); }
.mob-nav__ar { font-family: var(--font-ar); font-size: 0.9rem; color: var(--ih-gold); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.ih-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ih-bg);
}
/* Aurora mesh, animated flowing gradient */
.ih-hero__aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38% 44% at 18% 28%, rgba(21,179,145,0.40) 0%, transparent 60%),
    radial-gradient(34% 40% at 82% 22%, rgba(47,216,176,0.28) 0%, transparent 60%),
    radial-gradient(46% 50% at 70% 78%, rgba(216,155,94,0.26) 0%, transparent 62%),
    radial-gradient(40% 46% at 28% 82%, rgba(12,122,100,0.40) 0%, transparent 60%);
  filter: blur(40px) saturate(1.15);
  background-size: 200% 200%;
  animation: ihAurora 16s ease-in-out infinite;
}
@keyframes ihAurora {
  0%,100% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
  50%     { background-position: 30% 20%, 70% 30%, 60% 70%, 40% 80%; }
}
.ih-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 1;
}
.ih-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 85% at 50% 45%, transparent 32%, var(--ih-bg) 92%),
    linear-gradient(180deg, rgba(6,25,21,0.4) 0%, transparent 30%, var(--ih-bg) 100%);
  pointer-events: none;
  z-index: 2;
}
.ih-hero__content { z-index: 3; }
[data-theme="light"] .ih-hero__aurora { opacity: 0.5; }
/* Light-mode hero text contrast fixes */
[data-theme="light"] .ih-hero__sub { color: var(--ih-text); opacity: 1; }
[data-theme="light"] .ih-hero__bismillah { color: var(--ih-jade-deep); text-shadow: none; }
[data-theme="light"] .ih-btn--ghost { color: var(--ih-text); border-color: var(--ih-border); }
[data-theme="light"] .ih-btn--ghost:hover { color: var(--ih-jade-deep); border-color: var(--ih-jade); background: rgba(12,122,100,0.06); }
[data-theme="light"] .ih-hero__scroll { color: var(--ih-muted); }
[data-theme="light"] .ih-hero__h1-ar { color: var(--ih-jade-deep); }
[data-theme="light"] .ih-hero__vignette {
  background:
    radial-gradient(ellipse 90% 85% at 50% 45%, transparent 30%, var(--ih-bg) 90%),
    linear-gradient(180deg, transparent 40%, var(--ih-bg) 100%);
}
.ih-hero__content {
  position: relative;
  z-index: 3;
  padding-top: 156px;
  padding-bottom: 80px;
}
.ih-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ih-gold);
  font-family: var(--font-quran);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(216,155,94,0.25);
}
.ih-hero__eyebrow > span[aria-hidden] { color: var(--ih-gold); opacity: 0.6; font-size: 0.7em; }
.ih-hero__inner { max-width: 820px; }

/* Hero two-column layout (text + interactive map) */
.ih-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
.ih-hero__grid .ih-hero__inner { max-width: none; }
.ih-hero__map { position: relative; }
.ih-hero__map-frame {
  height: clamp(320px, 48vh, 470px);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(45,212,176,0.30);
  box-shadow: 0 0 0 1px rgba(216,155,94,0.14), 0 22px 60px rgba(0,0,0,0.5), 0 0 80px rgba(45,212,176,0.12);
  background: var(--ih-surface-2);
  position: relative;
}
.ih-hero__map-frame::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 60px rgba(6,25,21,0.6);
}
.ih-hero__map-cap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; color: var(--ih-muted); font-size: 0.85rem; text-align: center;
}
.ih-hero__map-cap #ihMapCount { color: var(--ih-gold); font-weight: 700; font-family: var(--font-heading); font-size: 1.05rem; }
@media (max-width: 1024px) {
  /* Collapse to one column at the same breakpoint the nav becomes a burger,
     and top-align so the tall stacked hero never slides under the header logo. */
  .ih-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .ih-hero { min-height: auto; align-items: flex-start; }
  .ih-hero__content { padding-top: 128px; padding-bottom: 56px; }
  /* On phones/tablets the brand medallion already carries the name, so hide the
     giant hero title to remove the duplication/overlap with the header. */
  .ih-hero__h1 { display: none; }
}

.ih-hero__bismillah {
  font-family: var(--font-quran);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ih-gold);
  direction: rtl;
  margin-bottom: 32px;
  opacity: 0.9;
  text-shadow: 0 0 40px rgba(201,168,76,0.3);
}

.ih-hero__h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.ih-hero__h1-ar {
  font-family: var(--font-ar-brand);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 700;
  color: var(--ih-white);
  line-height: 1.25;
  direction: rtl;
}
.ih-hero__h1-en {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(100deg, var(--ih-jade-2) 0%, var(--ih-copper-2) 50%, var(--ih-jade-2) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: ihShimmer 6s linear infinite;
}
@keyframes ihShimmer { to { background-position: 220% center; } }

.ih-hero__sub {
  font-size: 1.0625rem;
  color: var(--ih-text);
  opacity: 0.88;
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.ih-hero__sub--ar {
  font-family: var(--font-ar);
  font-size: 1rem;
  direction: rtl;
  color: rgba(201,168,76,0.7);
  margin-bottom: 36px;
}

.ih-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.ih-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 540px;
  align-items: start;
}
.ih-hero__stat { text-align: center; }
.ih-hero__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ih-gold);
  line-height: 1;
}
.ih-hero__stat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--ih-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.ih-hero__stat-divider { display: none; }
.ih-hero__stat-lbl { line-height: 1.35; }

.ih-hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ih-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ih-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ih-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.15)} }

/* ══════════════════════════════════════════════
   PRAYER TIMES BAR
══════════════════════════════════════════════ */
.ih-prayer-bar {
  background: var(--ih-surface);
  border-top: 1px solid var(--ih-border);
  border-bottom: 1px solid var(--ih-border);
  padding: 16px 0;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.ih-prayer-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ih-prayer-bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ih-gold);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ih-prayer-bar__times {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.ih-prayer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-md);
  min-width: 80px;
  transition: background var(--dur);
  flex-shrink: 0;
}
.ih-prayer.active { background: rgba(201,168,76,0.12); }
.ih-prayer__name {
  font-size: 0.75rem;
  color: var(--ih-muted);
  text-align: center;
  line-height: 1.4;
}
.ih-prayer__name small { font-family: var(--font-ar); font-size: 0.8125rem; display: block; color: var(--ih-text); }
.ih-prayer.active .ih-prayer__name small { color: var(--ih-gold); }
.ih-prayer__time { font-size: 1rem; font-weight: 700; color: var(--ih-text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ih-prayer.active .ih-prayer__time { color: var(--ih-gold); }

.ih-prayer-bar__next { margin-left: auto; text-align: right; flex-shrink: 0; }
.ih-prayer-bar__next-lbl { font-size: 0.6875rem; color: var(--ih-muted); display: block; }
.ih-prayer-bar__countdown {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ih-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   QURAN DAILY VERSE
══════════════════════════════════════════════ */
.ih-quran-daily { background: var(--ih-surface); }
.ih-quran-daily__card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  border: 1px solid var(--ih-border);
  border-radius: var(--r-xl);
  background: var(--ih-surface-2);
  position: relative;
}
.ih-quran-daily__ornament {
  font-size: 1.5rem;
  color: var(--ih-gold);
  opacity: 0.5;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ih-quran-daily__ornament.top { top: 20px; }
.ih-quran-daily__ornament.bottom { bottom: 20px; }

.ih-quran-daily__ar {
  font-family: var(--font-quran);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ih-white);
  line-height: 2;
  margin-bottom: 24px;
  direction: rtl;
}
.ih-quran-daily__translation {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ih-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ih-quran-daily__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ih-quran-daily__audio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--r-full);
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--ih-border);
  color: var(--ih-gold);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--dur);
}
.ih-quran-daily__audio:hover { background: rgba(201,168,76,0.2); }
.ih-quran-daily__footer { text-align: center; margin-top: 32px; }

/* ══════════════════════════════════════════════
   PROPHET MUHAMMAD
══════════════════════════════════════════════ */
.ih-prophet { background: linear-gradient(180deg, var(--ih-bg) 0%, var(--ih-surface) 100%); }

.ih-prophet__quote {
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-left: 4px solid var(--ih-gold);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  margin-bottom: 48px;
  max-width: 720px;
}
[dir="rtl"] .ih-prophet__quote { border-left: none; border-right: 4px solid var(--ih-gold); }
.ih-prophet__quote blockquote {
  font-family: var(--font-quran);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--ih-white);
  direction: rtl;
  line-height: 1.9;
  margin-bottom: 12px;
}
.ih-prophet__quote cite { font-size: 0.875rem; color: var(--ih-muted); font-style: normal; }

.ih-prophet__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.ih-prophet__card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-prophet__card:hover {
  border-color: var(--ih-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ih-prophet__card-icon { font-size: 2rem; margin-bottom: 10px; }
.ih-prophet__card-ar {
  font-family: var(--font-ar);
  font-size: 1rem;
  color: var(--ih-gold);
  margin-bottom: 6px;
  direction: rtl;
}
.ih-prophet__card-title { font-weight: 700; color: var(--ih-white); margin-bottom: 8px; font-size: 0.9375rem; }
.ih-prophet__card-desc { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   ISLAMIC EMPIRES SCROLL
══════════════════════════════════════════════ */
.ih-empires-preview { overflow: hidden; }
.ih-empires-preview .ih-section-desc { max-width: 580px; }

.ih-empires-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 60px 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ih-border) transparent;
  -webkit-overflow-scrolling: touch;
}
.ih-empires-scroll::-webkit-scrollbar { height: 4px; }
.ih-empires-scroll::-webkit-scrollbar-thumb { background: var(--ih-border); border-radius: 2px; }

.ih-empire-card {
  flex: 0 0 280px;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  scroll-snap-align: start;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.ih-empire-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: var(--empire-color, var(--ih-gold));
}
.ih-empire-card__banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}
.ih-empire-card__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ih-empire-card__years { font-size: 0.6875rem; font-weight: 600; color: var(--ih-muted); letter-spacing: 0.06em; }
.ih-empire-card__body { padding: 16px 18px 12px; flex: 1; }
.ih-empire-card__ar { font-family: var(--font-ar); font-size: 0.9375rem; color: var(--ih-gold); direction: rtl; margin-bottom: 4px; }
.ih-empire-card__name { font-weight: 700; color: var(--ih-white); font-size: 1rem; margin-bottom: 10px; }
.ih-empire-card__ruler, .ih-empire-card__region {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ih-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.ih-empire-card__key {
  font-size: 0.8125rem;
  color: var(--ih-muted);
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ih-border-2);
}
.ih-empire-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--empire-color, var(--ih-gold));
  border-top: 1px solid var(--ih-border-2);
  transition: all var(--dur);
}
.ih-empire-card__link:hover { background: rgba(255,255,255,0.03); }

/* ══════════════════════════════════════════════
   HADITH SECTION
══════════════════════════════════════════════ */
.ih-hadith-day { background: var(--ih-surface); }

.ih-hadith-day__card {
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  margin: 24px 0 28px;
}
.ih-hadith-day__ar {
  font-family: var(--font-quran);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--ih-white);
  direction: rtl;
  line-height: 2;
  margin-bottom: 20px;
}
.ih-hadith-day__en {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ih-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ih-hadith-day__source {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ih-hadith-day__narrator { font-size: 0.8125rem; color: var(--ih-muted-2); }

.ih-hadith-day__books { display: flex; flex-direction: column; gap: 12px; }
.ih-hadith-day__books h3 { font-size: 1rem; font-weight: 700; color: var(--ih-white); margin-bottom: 4px; }
.ih-book-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-lg);
  transition: all var(--dur);
}
.ih-book-card:hover { border-color: var(--ih-border); background: var(--ih-surface-3); }
.ih-book-card__name { font-weight: 600; font-size: 0.9375rem; color: var(--ih-text); display: block; }
.ih-book-card__ar { font-family: var(--font-ar); font-size: 0.8125rem; color: var(--ih-gold); direction: rtl; }

/* ══════════════════════════════════════════════
   SCHOLARS / SCIENCE
══════════════════════════════════════════════ */
.ih-science { background: linear-gradient(180deg, var(--ih-surface) 0%, var(--ih-bg) 100%); }

.ih-scholars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ih-scholar-card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-scholar-card:hover {
  transform: translateY(-6px);
  border-color: var(--scholar-color, var(--ih-gold));
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.ih-scholar-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.ih-scholar-card__field { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.ih-scholar-card__ar { font-family: var(--font-ar); font-size: 1rem; color: var(--ih-gold); direction: rtl; margin-bottom: 4px; }
.ih-scholar-card__name { font-weight: 700; color: var(--ih-white); font-size: 1rem; margin-bottom: 4px; }
.ih-scholar-card__years { font-size: 0.75rem; color: var(--ih-muted-2); display: block; margin-bottom: 12px; }
.ih-scholar-card__contrib { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   MANNERS
══════════════════════════════════════════════ */
.ih-manners { background: var(--ih-bg); }

.ih-manners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ih-manner-card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  border-top: 3px solid var(--ih-green-2);
  transition: all var(--dur) var(--ease);
}
.ih-manner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--ih-gold); }
.ih-manner-card__ar { font-family: var(--font-ar); font-size: 1.375rem; color: var(--ih-gold); font-weight: 700; direction: rtl; margin-bottom: 6px; }
.ih-manner-card__en { font-weight: 700; color: var(--ih-white); font-size: 1rem; margin-bottom: 10px; }
.ih-manner-card__desc { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; margin-bottom: 14px; }
.ih-manner-card__verse { font-family: var(--font-quran); font-size: 0.9375rem; color: rgba(201,168,76,0.7); direction: rtl; line-height: 1.8; }

/* ══════════════════════════════════════════════
   DUAS
══════════════════════════════════════════════ */
.ih-duas-preview { background: var(--ih-surface); }

.ih-duas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.ih-dua-card {
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-dua-card:hover { border-color: var(--ih-border); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ih-dua-card__occasion { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ih-green-3); margin-bottom: 14px; }
.ih-dua-card__ar { font-family: var(--font-quran); font-size: 1.1875rem; color: var(--ih-white); direction: rtl; line-height: 1.9; margin-bottom: 12px; }
.ih-dua-card__trans { font-size: 0.8125rem; color: var(--ih-gold); opacity: 0.8; line-height: 1.6; margin-bottom: 10px; }
.ih-dua-card__meaning { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; margin-bottom: 14px; }

/* ══════════════════════════════════════════════
   BECOME MUSLIM CTA
══════════════════════════════════════════════ */
.ih-become {
  background: linear-gradient(135deg, var(--ih-green) 0%, var(--ih-bg) 60%);
  border-top: 1px solid var(--ih-border);
  border-bottom: 1px solid var(--ih-border);
}
.ih-become__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}
.ih-become__ornament { margin-bottom: 24px; display: flex; justify-content: center; }
.ih-become__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ih-white);
  line-height: 1.3;
  margin-bottom: 20px;
}
.ih-become__desc { font-size: 1.0625rem; color: var(--ih-muted); max-width: 540px; margin: 0 auto 36px; line-height: 1.8; }
.ih-become__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ih-become__step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-full);
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--ih-text);
}
.ih-become__step-num {
  width: 24px;
  height: 24px;
  background: var(--ih-gold);
  color: #0B1622;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.ih-become__step-arrow { color: var(--ih-muted); font-size: 1.25rem; }

/* ══════════════════════════════════════════════
   MODERN ISLAMIC WORLD
══════════════════════════════════════════════ */
.ih-modern { background: var(--ih-bg); }

.ih-modern__countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.ih-country-card {
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: all var(--dur) var(--ease);
}
.ih-country-card:hover { transform: translateY(-4px); border-color: var(--ih-border); box-shadow: var(--shadow-md); }
.ih-country-card__flag { font-size: 2.5rem; margin-bottom: 10px; }
.ih-country-card__ar { font-family: var(--font-ar); font-size: 0.9375rem; color: var(--ih-gold); direction: rtl; margin-bottom: 4px; }
.ih-country-card__name { font-weight: 700; color: var(--ih-white); font-size: 1.125rem; margin-bottom: 10px; }
.ih-country-card__stats { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--ih-muted); }
.ih-country-card__desc { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; }

.ih-modern__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  border-radius: var(--r-xl);
  text-align: center;
}
@media (max-width: 768px) { .ih-modern__stats { grid-template-columns: repeat(2, 1fr); } }
.ih-modern__stat .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ih-gold);
}
.ih-modern__stat .lbl { font-size: 0.8125rem; color: var(--ih-muted); margin-top: 4px; display: block; }

/* ══════════════════════════════════════════════
   AI ASSISTANT WIDGET
══════════════════════════════════════════════ */
.ih-assistant__launch {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ih-green);
  border: 2px solid var(--ih-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-gold);
  box-shadow: 0 6px 28px rgba(27,77,62,0.5);
  transition: all var(--dur) var(--ease);
}
.ih-assistant__launch:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 36px rgba(201,168,76,0.3); }
.ih-assistant__launch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--ih-gold);
  opacity: 0.4;
  animation: assistantPulse 2.5s ease-out infinite;
}
@keyframes assistantPulse { 0%{transform:scale(1);opacity:.4} 70%{transform:scale(1.4);opacity:0} 100%{opacity:0} }

.ih-assistant__greet {
  position: fixed;
  bottom: 38px;
  right: 100px;
  z-index: 800;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border);
  color: var(--ih-text);
  font-size: 0.8125rem;
  padding: 10px 16px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  max-width: 220px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--dur) var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.ih-assistant__greet.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ih-assistant__greet strong { color: var(--ih-gold); display: block; margin-bottom: 2px; }

.ih-assistant__panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 801;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 56px);
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.ih-assistant__panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ih-assistant__head {
  background: linear-gradient(135deg, var(--ih-green) 0%, #0d2a1f 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ih-assistant__ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1.5px solid var(--ih-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ih-assistant__info { flex: 1; }
.ih-assistant__name { font-weight: 700; font-size: 0.9375rem; color: #fff; }
.ih-assistant__status { font-size: 0.6875rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ih-assistant__status .dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 6px rgba(46,204,113,0.7); }
.ih-assistant__close { color: rgba(255,255,255,0.6); font-size: 1.1rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all var(--dur); }
.ih-assistant__close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.ih-assistant__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ih-surface-2);
  scroll-behavior: smooth;
}
.ih-assistant__body::-webkit-scrollbar { width: 4px; }
.ih-assistant__body::-webkit-scrollbar-thumb { background: var(--ih-border); border-radius: 2px; }

.ih-msg {
  max-width: 85%;
  padding: 11px 15px;
  font-size: 0.875rem;
  line-height: 1.6;
  border-radius: 16px;
  animation: msgIn 0.3s var(--ease);
}
@keyframes msgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.ih-msg--bot { background: var(--ih-surface-3); color: var(--ih-text); margin-right: auto; border-bottom-left-radius: 4px; }
.ih-msg--user { background: var(--ih-gold); color: #0B1622; margin-left: auto; border-bottom-right-radius: 4px; font-weight: 500; }

.ih-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ih-chip { padding: 6px 14px; border-radius: var(--r-full); background: var(--ih-surface); border: 1px solid var(--ih-border); color: var(--ih-gold); font-size: 0.8125rem; font-weight: 600; transition: all var(--dur); }
.ih-chip:hover { background: rgba(201,168,76,0.1); }

.ih-assistant__footer {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--ih-border-2);
  background: var(--ih-surface);
  flex-shrink: 0;
}
.ih-assistant__input {
  flex: 1;
  background: var(--ih-surface-2);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-full);
  padding: 10px 18px;
  color: var(--ih-text);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur);
}
.ih-assistant__input:focus { border-color: var(--ih-gold); }
.ih-assistant__input::placeholder { color: var(--ih-muted-2); }
.ih-assistant__send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ih-gold);
  color: #0B1622;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur);
}
.ih-assistant__send:hover { background: var(--ih-gold-2); transform: scale(1.05); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.ih-footer {
  background: var(--ih-surface);
  border-top: 1px solid var(--ih-border);
  padding: 72px 0 0;
}
.ih-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ih-border-2);
}
@media (max-width: 960px) { .ih-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) { .ih-footer__grid { grid-template-columns: 1fr; } }

.ih-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.ih-footer__brand-text { display: flex; flex-direction: column; gap: 2px; }
.ih-footer__brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--ih-white); }
.ih-footer__brand-ar { font-family: var(--font-ar); font-size: 0.875rem; color: var(--ih-gold); direction: rtl; }
.ih-footer__tagline { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.7; max-width: 280px; }
.ih-footer__tagline-ar { font-family: var(--font-ar); font-size: 0.9375rem; color: var(--ih-muted); direction: rtl; }

.ih-footer__col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ih-gold); margin-bottom: 16px; }
.ih-footer__links { display: flex; flex-direction: column; gap: 10px; }
.ih-footer__links a { font-size: 0.875rem; color: var(--ih-muted); transition: color var(--dur); }
.ih-footer__links a:hover { color: var(--ih-white); }

.ih-footer__verse { }
.ih-footer__verse-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ih-green-3); margin-bottom: 16px; }
.ih-footer__verse-ar { font-family: var(--font-quran); font-size: 1.5rem; color: var(--ih-white); direction: rtl; line-height: 1.9; margin-bottom: 10px; }
.ih-footer__verse-en { font-family: var(--font-heading); font-style: italic; font-size: 0.9375rem; color: var(--ih-muted); line-height: 1.6; }

.ih-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.ih-footer__copy { font-size: 0.8125rem; color: var(--ih-muted-2); }
.ih-footer__bottom-links { display: flex; gap: 20px; }
.ih-footer__bottom-links a { font-size: 0.8125rem; color: var(--ih-muted-2); transition: color var(--dur); }
.ih-footer__bottom-links a:hover { color: var(--ih-gold); }

/* ══════════════════════════════════════════════
   PAGE INNER LAYOUT (non-homepage pages)
══════════════════════════════════════════════ */
.ih-page-hero {
  padding: 140px 0 64px;
  background: linear-gradient(180deg, var(--ih-surface) 0%, var(--ih-bg) 100%);
  border-bottom: 1px solid var(--ih-border);
  text-align: center;
}
.ih-page-hero__ar { font-family: var(--font-ar); font-size: 2rem; color: var(--ih-gold); direction: rtl; display: block; margin-bottom: 8px; }
.ih-page-hero__title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--ih-white); margin-bottom: 16px; }
.ih-page-hero__desc { font-size: 1.0625rem; color: var(--ih-muted); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* ══════════════════════════════════════════════
   WUDU / SALAH STEP CARDS
══════════════════════════════════════════════ */
.ih-wudu-steps { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.ih-wudu-step {
  display: grid;
  grid-template-columns: 44px 56px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  transition: all var(--dur) var(--ease);
}
.ih-wudu-step__illus {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: rgba(216,155,94,0.08);
  border: 1px solid var(--ih-border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ih-wudu-step:hover { border-color: var(--ih-border); box-shadow: var(--shadow-sm); }
/* Real prayer-posture photos (silhouettes) shown in a clean white frame */
.ih-wudu-step__illus--photo { background: #fff; border-color: rgba(216,155,94,0.45); padding: 3px; }
.ih-salah-pose { max-height: 52px; max-width: 52px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 768px) { .ih-salah-pose { max-height: 42px; max-width: 42px; } }
.ih-wudu-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 2px solid var(--ih-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ih-gold);
  flex-shrink: 0;
}
.ih-wudu-step__content h3 { font-weight: 700; color: var(--ih-white); margin-bottom: 4px; }
.ih-wudu-step__content p { font-size: 0.875rem; color: var(--ih-muted); line-height: 1.6; }
.ih-wudu-step__ar { font-family: var(--font-ar); font-size: 1rem; color: var(--ih-gold); direction: rtl; text-align: right; }
.ih-wudu-step__img {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid var(--ih-border-2);
  background: var(--ih-surface-2);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   EMPIRE MAP PAGE
══════════════════════════════════════════════ */
.ih-empire-hero {
  height: 480px;
  background: var(--ih-surface-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ih-border);
}
#empireMap { height: 100%; width: 100%; }

.ih-empire-timeline { position: relative; padding-left: 32px; }
.ih-empire-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ih-gold), transparent);
}
.ih-empire-entry {
  position: relative;
  margin-bottom: 56px;
  padding-left: 24px;
}
.ih-empire-entry::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--empire-color, var(--ih-gold));
  border: 3px solid var(--ih-bg);
  box-shadow: 0 0 0 2px var(--empire-color, var(--ih-gold));
}
.ih-empire-entry__year { font-size: 0.75rem; font-weight: 700; color: var(--empire-color, var(--ih-gold)); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.ih-empire-entry__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--ih-white); margin-bottom: 4px; }
.ih-empire-entry__ar { font-family: var(--font-ar); font-size: 1rem; color: var(--ih-gold); direction: rtl; margin-bottom: 12px; }
.ih-empire-entry__body { font-size: 0.9375rem; color: var(--ih-muted); line-height: 1.8; max-width: 660px; }
.ih-empire-entry__achievements { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ih-empire-entry__grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .ih-empire-entry__grid { grid-template-columns: 1fr; } }
.ih-empire-entry__mapwrap { position: sticky; top: 90px; }
@media (max-width: 860px) { .ih-empire-entry__mapwrap { position: static; } }
.ih-empire-minimap {
  width: 100%; height: 200px;
  border-radius: var(--r-lg);
  border: 1px solid var(--empire-color, var(--ih-border));
  overflow: hidden; background: var(--ih-surface-2);
}
.ih-empire-minimap__cap { display: block; text-align: center; font-size: 0.6875rem; color: var(--ih-muted-2); margin-top: 8px; letter-spacing: 0.04em; }
.ih-empire-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ih-border-2); }
.ih-empire-fact { font-size: 0.8125rem; color: var(--ih-muted); }
.ih-empire-fact strong { color: var(--empire-color, var(--ih-gold)); font-weight: 600; }

/* Clickable cue on the big overview map regions */
.ih-empire-rect { cursor: pointer; transition: fill-opacity .2s ease; }
#empireMap { cursor: default; }

/* List page: minimap is a link to the dedicated page */
.ih-empire-minimap-link { display: block; position: relative; }
.ih-empire-minimap-link::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 0 var(--empire-color, var(--ih-gold));
  transition: box-shadow .2s ease;
  pointer-events: none;
}
.ih-empire-minimap-link:hover::after { box-shadow: inset 0 0 0 2px var(--empire-color, var(--ih-gold)); }
.ih-empire-entry__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem;
  color: var(--empire-color, var(--ih-gold));
  text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-full);
  border: 1px solid var(--empire-color, var(--ih-border-2));
  background: color-mix(in srgb, var(--empire-color, #C9A84C) 8%, transparent);
  transition: background .2s ease, transform .2s ease;
}
.ih-empire-entry__more:hover { background: color-mix(in srgb, var(--empire-color, #C9A84C) 18%, transparent); transform: translateX(2px); }
.ih-empire-entry__more svg { transition: transform .2s ease; }
html[dir="rtl"] .ih-empire-entry__more svg { transform: scaleX(-1); }

/* ── SINGLE-EMPIRE PAGE ── */
.ih-empire-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  color: var(--ih-muted); text-decoration: none; margin-bottom: 18px;
  transition: color .2s ease;
}
.ih-empire-back:hover { color: var(--empire-color, var(--ih-gold)); }
html[dir="rtl"] .ih-empire-back svg { transform: scaleX(-1); }
.ih-empire-single { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .ih-empire-single { grid-template-columns: 1fr; gap: 28px; } }
.ih-empire-single__map { position: sticky; top: 96px; }
@media (max-width: 900px) { .ih-empire-single__map { position: static; } }
#empireSoloMap {
  width: 100%; height: 420px;
  border-radius: var(--r-xl);
  border: 1px solid var(--empire-color, var(--ih-border));
  overflow: hidden; background: var(--ih-surface-2);
}
@media (max-width: 640px) { #empireSoloMap { height: 320px; } }
.ih-empire-single__body { font-size: 1rem; color: var(--ih-muted); line-height: 1.9; }
.ih-empire-single__body p { margin-bottom: 16px; }

.ih-empire-othernav { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--ih-border-2); }
.ih-empire-othernav__title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--ih-white); margin-bottom: 18px; text-align: center; }
.ih-empire-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ih-empire-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; min-width: 150px;
  border-radius: var(--r-lg);
  border: 1px solid var(--ih-border-2);
  border-top: 3px solid var(--empire-color, var(--ih-gold));
  background: var(--ih-surface);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ih-empire-chip:hover { transform: translateY(-3px); border-color: var(--empire-color, var(--ih-gold)); box-shadow: var(--shadow-sm); }
.ih-empire-chip__ar { font-family: var(--font-ar-brand); font-size: 1.15rem; color: var(--ih-white); }
.ih-empire-chip__en { font-family: var(--font-heading); font-size: 0.8125rem; color: var(--empire-color, var(--ih-gold)); }

.leaflet-container { background: var(--ih-surface-2); font-family: var(--font-body); }

/* ══════════════════════════════════════════════
   PAGE BACKGROUND, faint Islamic geometric pattern
   Applied to pages tagged with body.ih-geo-bg (see ih_body_classes).
   Sits behind all content at low opacity so text stays crisp.
══════════════════════════════════════════════ */
.ih-geo-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--ih-bg);
  background-image: url('../images/pattern-geo.svg');
  background-size: 90px 90px;
  background-repeat: repeat;
  opacity: 0.16;
  /* softly fade the pattern toward the centre so it never fights the reading column */
  -webkit-mask-image: radial-gradient(120% 90% at 50% 12%, #000 0%, #000 38%, rgba(0,0,0,0.45) 100%);
          mask-image: radial-gradient(120% 90% at 50% 12%, #000 0%, #000 38%, rgba(0,0,0,0.45) 100%);
}
/* Light theme: same pattern reads better a touch stronger */
html[data-theme="light"] .ih-geo-bg::before { opacity: 0.10; }
@media (max-width: 640px) { .ih-geo-bg::before { background-size: 72px 72px; opacity: 0.12; } }

/* ══════════════════════════════════════════════
   DUA HERO, dynamic "cupped hands receiving light" scene
══════════════════════════════════════════════ */
.ih-page-hero--dua { position: relative; overflow: hidden; min-height: 560px; }
.ih-page-hero--dua .ih-container { position: relative; z-index: 2; }
.ih-dua-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ih-dhb__glow {
  position: absolute; left: 50%; top: 6%; width: min(900px, 92%); height: 58%;
  background: radial-gradient(ellipse at center, rgba(239,196,137,0.18) 0%, rgba(47,216,176,0.09) 35%, transparent 70%);
  filter: blur(8px);
  animation: ih-dhb-breathe 6s ease-in-out infinite;
}
.ih-dhb__rays {
  position: absolute; left: 50%; top: -12%; width: 1200px; height: 900px; transform-origin: 50% 0;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(239,196,137,0.06) 6deg, transparent 12deg, transparent 18deg, rgba(47,216,176,0.045) 24deg, transparent 30deg);
  mix-blend-mode: screen; opacity: 0.6;
  animation: ih-dhb-spin 70s linear infinite;
}
/* soft pool of light the hands rest on (replaces the green field of the source image) */
.ih-dhb__pool {
  position: absolute; left: 50%; bottom: 0; width: clamp(420px, 56vw, 640px); height: 72%;
  background: radial-gradient(ellipse 60% 60% at 50% 80%, rgba(47,216,176,0.22) 0%, rgba(21,179,145,0.12) 38%, transparent 70%);
  animation: ih-dhb-breathe 6.5s ease-in-out infinite;
}
.ih-dhb__orb {
  position: absolute; left: 50%; bottom: 300px; width: 78px; height: 78px;
  background: radial-gradient(circle, rgba(255,244,224,0.82) 0%, rgba(239,196,137,0.44) 32%, rgba(47,216,176,0.13) 58%, transparent 74%);
  border-radius: 50%;
  animation: ih-dhb-orb 4.5s ease-in-out infinite;
}
.ih-dhb__hands {
  position: absolute; left: 50%; bottom: -4px; width: clamp(210px, 30vw, 320px); height: auto;
  filter: drop-shadow(0 0 22px rgba(47,216,176,0.45)) drop-shadow(0 0 40px rgba(239,196,137,0.2));
  animation: ih-dhb-lift 7s ease-in-out infinite;
}
.ih-dhb__p {
  position: absolute; bottom: 150px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, var(--ih-copper-2), rgba(239,196,137,0));
  opacity: 0; animation: ih-dhb-rise 5.5s ease-in infinite;
}
@keyframes ih-dhb-breathe { 0%,100% { opacity: .7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
.ih-dhb__glow { transform: translateX(-50%); }
@keyframes ih-dhb-spin { from { transform: translateX(-50%) rotate(0); } to { transform: translateX(-50%) rotate(360deg); } }
.ih-dhb__rays { transform: translateX(-50%); }
@keyframes ih-dhb-orb { 0%,100% { opacity: .55; transform: translateX(-50%) scale(.92); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.ih-dhb__orb { transform: translateX(-50%); }
@keyframes ih-dhb-lift { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-9px); } }
.ih-dhb__hands { transform: translateX(-50%); }
.ih-dhb__pool { transform: translateX(-50%); }
@keyframes ih-dhb-rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 70% { opacity: .7; } 100% { opacity: 0; transform: translateY(-210px) scale(1.1); } }
@media (max-width: 640px) {
  .ih-page-hero--dua { min-height: 480px; }
  .ih-dhb__orb { bottom: 250px; }
  .ih-dhb__p { bottom: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-dhb__glow, .ih-dhb__rays, .ih-dhb__pool, .ih-dhb__orb, .ih-dhb__hands, .ih-dhb__p { animation: none !important; }
  .ih-dhb__p { opacity: .5; }
}

/* ══════════════════════════════════════════════
   EMPIRES HERO, cinematic shield + crossed swords
══════════════════════════════════════════════ */
.ih-page-hero--empires {
  position: relative; overflow: hidden; min-height: 600px;
  background: radial-gradient(ellipse at 50% 30%, #0d3a30 0%, var(--ih-bg) 70%);
}
.ih-page-hero--empires .ih-container { position: relative; z-index: 2; }
.ih-page-hero--empires .ih-page-hero__ar { color: var(--ih-copper-2); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.ih-page-hero--empires .ih-page-hero__title { text-shadow: 0 3px 22px rgba(0,0,0,.85), 0 0 40px rgba(0,0,0,.55); }
.ih-page-hero--empires .ih-page-hero__desc { color: #cfe0da; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.ih-emp-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ih-emp__glow {
  position: absolute; left: 50%; top: 14%; width: min(820px, 92%); height: 360px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(180,200,210,.10) 0%, rgba(47,216,176,.05) 40%, transparent 72%);
  filter: blur(8px);
}
.ih-emp__shield {
  position: absolute; top: 50%; width: clamp(260px, 33vw, 430px); height: auto; opacity: .6;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.45));
}
.ih-emp__shield--l { left: 4%; animation: ih-emp-sway-l 7.5s ease-in-out infinite; }
.ih-emp__shield--r { right: 4%; animation: ih-emp-sway-r 7.5s ease-in-out infinite; }
.ih-emp__sheen { animation: ih-emp-sheen 5s ease-in-out infinite; }
.ih-emp__ember {
  position: absolute; bottom: 60px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #cfd6da, rgba(207,214,218,0));
  opacity: 0; animation: ih-emp-ember 7s ease-in infinite;
}
@keyframes ih-emp-sway-l { 0%,100% { transform: translateY(-50%) rotate(-8deg); } 50% { transform: translateY(-54%) rotate(-6.5deg); } }
@keyframes ih-emp-sway-r { 0%,100% { transform: translateY(-50%) rotate(8deg); } 50% { transform: translateY(-54%) rotate(6.5deg); } }
.ih-emp__shield--l { transform: translateY(-50%) rotate(-8deg); }
.ih-emp__shield--r { transform: translateY(-50%) rotate(8deg); }
@keyframes ih-emp-sheen { 0% { transform: translateX(-160px) skewX(-16deg); } 60% { transform: translateX(160px) skewX(-16deg); } 100% { transform: translateX(160px) skewX(-16deg); } }
@keyframes ih-emp-ember { 0% { opacity: 0; transform: translateY(0) scale(.6); } 12% { opacity: .9; } 75% { opacity: .6; } 100% { opacity: 0; transform: translateY(-280px) scale(1.15); } }
@media (max-width: 760px) {
  .ih-page-hero--empires { min-height: 460px; }
  .ih-emp__shield { width: 210px; opacity: .4; }
  .ih-emp__shield--l { left: -7%; } .ih-emp__shield--r { right: -7%; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-emp__shield--l, .ih-emp__shield--r, .ih-emp__sheen, .ih-emp__ember { animation: none !important; }
}

/* Islamic World Map (homepage) */
.ih-worldmap-sec { background: linear-gradient(180deg, var(--ih-bg) 0%, var(--ih-surface) 100%); }
.ih-worldmap {
  height: 520px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--ih-border);
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--ih-surface-2);
}
#ihWorldMap { height: 100%; width: 100%; }
.ih-worldmap__legend { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.ih-worldmap__stat { font-family: var(--font-heading); font-size: 1.05rem; color: var(--ih-muted); font-weight: 600; }
.ih-worldmap__stat span { font-size: 1.7rem; color: var(--ih-gold); font-weight: 700; }
.ih-worldmap__legend .ih-link-arrow { margin-top: 0; }
.ih-map-pop .leaflet-popup-content-wrapper { background: var(--ih-surface-2); color: var(--ih-text); border: 1px solid var(--ih-border); border-radius: 12px; box-shadow: var(--shadow-md); }
.ih-map-pop .leaflet-popup-content { font-size: 0.85rem; line-height: 1.5; margin: 12px 16px; }
.ih-map-pop .leaflet-popup-tip { background: var(--ih-surface-2); border: 1px solid var(--ih-border); }
.leaflet-popup-close-button { color: var(--ih-muted) !important; }
@media (max-width: 640px) { .ih-worldmap { height: 380px; } }
.ih-empire-entry__ach {
  padding: 6px 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--ih-border-2);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  color: var(--ih-text);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .ih-hero__btns { flex-direction: column; }
  .ih-hero__stats { gap: 16px; }
  .ih-hero__stat-divider { display: none; }
  .ih-prayer-bar__next { display: none; }
  .ih-wudu-step { grid-template-columns: 38px 46px 1fr; gap: 12px; padding: 16px; }
  .ih-wudu-step__illus { width: 46px; height: 46px; }
  .ih-wudu-step__illus svg { width: 30px; height: 30px; }
  .ih-empires-scroll { padding: 12px 24px 24px; }
  .ih-become__steps { flex-direction: column; }
  .ih-become__step-arrow { transform: rotate(90deg); }
}

/* ══════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════ */
@media print {
  .ih-nav, .ih-assistant, .ih-prayer-bar { display: none; }
  body { background: white; color: black; }
  .ih-section-title, .ih-hero__h1-en { color: black; }
}

/* ══════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--ih-gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ih-hero__aurora, .ih-hero__h1-en { animation: none; }
}

/* ══════════════════════════════════════════════
   LOGO SUB + PRAYER NAME ORDER
══════════════════════════════════════════════ */
.ih-logo-sub {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ih-copper);
}
html[lang="ar"] .ih-logo-sub { font-family: var(--font-ar); letter-spacing: 0; }
.ih-prayer__name small { margin-bottom: 2px; }

/* ══════════════════════════════════════════════
   RTL ADJUSTMENTS
══════════════════════════════════════════════ */
html[dir="rtl"] .ih-section-label { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .ih-section-label--c { justify-content: center; }
html[dir="rtl"] .ih-link-arrow svg,
html[dir="rtl"] .ih-btn svg.arrow,
html[dir="rtl"] .ih-empire-card__link svg { transform: scaleX(-1); }
html[dir="rtl"] .ih-prophet__quote { border-right: none; border-left: 4px solid var(--ih-copper); }
html[dir="rtl"] .ih-become__step-arrow { transform: scaleX(-1); }
html[dir="rtl"] .ih-hero__stat { text-align: right; }

/* ══════════════════════════════════════════════
   MOBILE-FIRST REFINEMENTS
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ih-prayer-bar { top: 56px; }
}
@media (max-width: 768px) {
  .ih-section { padding: 56px 0; }
  .ih-hero { min-height: auto; align-items: flex-start; }
  .ih-hero__content { padding-top: 124px; padding-bottom: 64px; }
  .ih-hero__bismillah { font-size: 1.35rem; margin-bottom: 20px; }
  .ih-section-title { font-size: 1.75rem; }
  .ih-prayer-bar__inner { gap: 12px; }
  .ih-prayer-bar__label { width: 100%; justify-content: center; font-size: 0.75rem; }
  .ih-prayer { min-width: 64px; padding: 6px 10px; }
  .ih-prayer__time { font-size: 0.875rem; }
  .ih-quran-daily__card { padding: 36px 22px; }
  .ih-quran-daily__ar { font-size: 1.375rem; }
  .ih-prophet__quote { padding: 24px; }
  .ih-footer { padding-top: 48px; }
  .ih-footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .ih-container { padding: 0 18px; }
  .ih-hero__btns { flex-direction: column; align-items: stretch; }
  .ih-hero__btns .ih-btn { justify-content: center; }
  .ih-hero__stats { gap: 14px; justify-content: space-between; width: 100%; }
  .ih-hero__stat-divider { display: none; }
  .ih-hero__stat-num { font-size: 1.375rem; }
  .ih-hero__stat-lbl { font-size: 0.6875rem; }
  .ih-prayer-bar__next { display: none; }
  .ih-prayer-bar__times { justify-content: flex-start; }
  .ih-section-label { font-size: 0.625rem; }
  .ih-assistant__launch { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .ih-assistant__panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .ih-assistant__greet { display: none; }
  .ih-become__steps { flex-direction: column; align-items: stretch; }
  .ih-become__step { justify-content: center; }
  .ih-mod__stats, .ih-modern__stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .mob-nav__link { font-size: 1.05rem; }
}
@media (max-width: 380px) {
  .ih-hero__h1-ar { font-size: 2.25rem; }
  .ih-hero__stats { flex-wrap: wrap; }
}

/* Touch targets ≥ 44px */
.ih-nav__link, .ih-lang-btn, .ih-chip, .ih-footer__links a { min-height: 40px; display: inline-flex; align-items: center; }
@media (hover: none) {
  .ih-empire-card:hover, .ih-scholar-card:hover, .ih-prophet__card:hover { transform: none; }
}
