/* ==========================================================================
   EXCHANGE HUB — Design System
   --------------------------------------------------------------------------
   01  Tokens        متغيّرات النظام
   02  Base          التصفير والأساسيات
   03  Layout        الحاويات والإيقاع
   04  Typography    سلّم النصوص
   05  Controls      الأزرار والحقول والشارات
   06  States        التحميل والخطأ والفراغ
   07  Header        الهيدر والتنقّل
   08  Ticker        شريط الأسعار
   09  Hero          الواجهة
   10  Converter     الحاسبة
   11  Rates         لوحة الأسعار
   12  Services      الخدمات
   13  Trust         لماذا نحن
   14  Stats         المؤشّرات
   15  Accordion     الأسئلة
   16  Contact       التواصل وساعات العمل
   17  Footer        التذييل
   18  Overlays      الزر العائم والإشعار
   19  Legal         الصفحات القانونية
   20  Motion        الظهور التدريجي
   21  Responsive    الاستجابة
   ========================================================================== */


/* ==========================================================================
   01 · TOKENS
   ========================================================================== */
:root {
  /* ── سلّم الحبر ─────────────────────────────────────────────── */
  --ink-950: #06080f;
  --ink-900: #0a0e18;
  --ink-850: #0e1421;
  --ink-800: #131b2b;
  --ink-700: #1b2436;
  --ink-500: #38455f;
  --ink-400: #5a6a86;
  --ink-300: #8493ab;
  --ink-200: #b3bfd0;

  /* ── اللون المميّز: واحد فقط، يُستخدم بحساب ─────────────────── */
  --mint-400: #4ff3c0;
  --mint-500: #00e0a4;
  --mint-600: #00b784;

  /* ── ألوان الحالة ──────────────────────────────────────────── */
  --pos:  #23d18b;
  --neg:  #ff5f6d;
  --warn: #f6b352;

  /* ── دلالات المظهر الداكن ──────────────────────────────────── */
  --bg:           var(--ink-950);
  --bg-elev:      var(--ink-900);
  --surface:      var(--ink-850);
  --surface-hi:   var(--ink-800);
  --surface-sunk: #070a12;

  --border:        rgba(255, 255, 255, .07);
  --border-hi:     rgba(255, 255, 255, .14);
  --border-accent: rgba(0, 224, 164, .34);

  --fg:        #eef3fa;
  --fg-muted:  var(--ink-300);
  --fg-subtle: var(--ink-400);

  --accent:      var(--mint-500);
  --accent-hi:   var(--mint-400);
  --accent-fg:   #04140f;
  --accent-tint: rgba(0, 224, 164, .10);
  --accent-glow: rgba(0, 224, 164, .20);
  --ring:        rgba(0, 224, 164, .42);

  --skeleton: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%);

  /* ── المسافات (أساس 4px) ───────────────────────────────────── */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;  --s-10: 64px; --s-11: 80px; --s-12: 112px;

  /* ── الحواف: أربع قيم فقط ──────────────────────────────────── */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* ── الخطوط ────────────────────────────────────────────────── */
  --font-sans: 'Tajawal', system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, 'SF Mono', monospace;

  --fs-xs:   .8125rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   1.4375rem;
  --fs-2xl:  clamp(1.55rem, 1.2rem + 1.5vw, 2.05rem);
  --fs-3xl:  clamp(1.9rem, 1.35rem + 2.5vw, 2.9rem);
  --fs-4xl:  clamp(2.35rem, 1.5rem + 4vw, 4.1rem);

  /* ── الظلال: ثلاثة ─────────────────────────────────────────── */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 10px 28px -10px rgba(0, 0, 0, .6);
  --shadow-3: 0 36px 80px -28px rgba(0, 0, 0, .78);

  /* ── الحركة ────────────────────────────────────────────────── */
  --dur-1: 130ms;
  --dur-2: 230ms;
  --dur-3: 400ms;
  --ease:      cubic-bezier(.32, .72, .26, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);

  /* ── القياسات ──────────────────────────────────────────────── */
  --container: 1260px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 70px;
  --hairline: 1px solid var(--border);
}

/* ── المظهر الفاتح: ورقي، ليس عكساً آلياً ────────────────────── */
[data-theme="light"] {
  --bg:           #f6f8fa;
  --bg-elev:      #ffffff;
  --surface:      #ffffff;
  --surface-hi:   #f2f5f8;
  --surface-sunk: #eef1f5;

  --border:        rgba(12, 20, 35, .10);
  --border-hi:     rgba(12, 20, 35, .19);
  --border-accent: rgba(0, 150, 109, .36);

  --fg:        #0a1120;
  --fg-muted:  #4b5769;
  --fg-subtle: #7d8a9c;

  --accent:      #00966d;
  --accent-hi:   #00b283;
  --accent-fg:   #ffffff;
  --accent-tint: rgba(0, 150, 109, .09);
  --accent-glow: rgba(0, 150, 109, .15);
  --ring:        rgba(0, 150, 109, .38);

  --pos:  #0f9e63;
  --neg:  #d63a49;
  --warn: #ad700c;

  --skeleton: linear-gradient(90deg,
    rgba(12,20,35,.05) 25%, rgba(12,20,35,.10) 37%, rgba(12,20,35,.05) 63%);

  --shadow-1: 0 1px 2px rgba(12, 20, 35, .06);
  --shadow-2: 0 12px 30px -14px rgba(12, 20, 35, .20);
  --shadow-3: 0 36px 80px -32px rgba(12, 20, 35, .28);
}


/* ==========================================================================
   02 · BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-6));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur-3) var(--ease), color var(--dur-3) var(--ease);
}
body.has-nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.018em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

::selection { background: var(--accent); color: var(--accent-fg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

* { scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: var(--r-pill);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-inline-start: var(--s-4); top: -64px;
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--accent); color: var(--accent-fg);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: 0; }

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* كل رقم في الموقع يمرّ من هنا */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: -.015em;
}

.link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease);
}
.link:hover { border-bottom-color: currentColor; }


/* ==========================================================================
   03 · LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(var(--s-10), 8vw, var(--s-12)); }
.section--alt {
  background: var(--bg-elev);
  border-block: var(--hairline);
}


/* ==========================================================================
   04 · TYPOGRAPHY
   ========================================================================== */
.section__head { max-width: 64ch; margin-bottom: var(--s-9); }
.section__head--center {
  max-width: 56ch; margin-inline: auto; text-align: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.section__head--center .eyebrow::after {
  content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55;
}

.section__title { font-size: var(--fs-3xl); margin-bottom: var(--s-4); }
.section__lead { font-size: var(--fs-md); color: var(--fg-muted); max-width: 60ch; }
.section__head--center .section__lead { margin-inline: auto; }

.grad {
  background: linear-gradient(100deg, var(--accent-hi), var(--accent) 60%, var(--accent-hi));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}


/* ==========================================================================
   05 · CONTROLS
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 13px var(--s-6);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn .ic { font-size: 1.15em; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .ic { transform: translateX(-3px); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-fg);
}
.btn--primary:hover {
  --btn-bg: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -14px var(--accent);
}

.btn--ghost { --btn-bd: var(--border-hi); }
.btn--ghost:hover {
  --btn-bd: var(--border-accent);
  --btn-fg: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-1px);
}

.btn--sm    { padding: 8px var(--s-4); font-size: var(--fs-xs); }
.btn--lg    { padding: 16px var(--s-7); font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease);
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-tint);
}
.icon-btn .ic { width: 17px; height: 17px; }

/* ── الشارات ──────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 4px var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-hi);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--fg-subtle);
  white-space: nowrap;
}
.tag::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  flex: none;
}
.tag--live    { color: var(--pos);  border-color: color-mix(in srgb, var(--pos) 32%, transparent); }
.tag--stale   { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.tag--loading { color: var(--fg-subtle); }
.tag--loading::before { animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ── شارة التغيّر ─────────────────────────────────────────────── */
.chg {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: 3px var(--s-2);
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.chg i { font-style: normal; font-size: .72em; }
.chg--up   { color: var(--pos);  background: color-mix(in srgb, var(--pos) 12%, transparent); }
.chg--down { color: var(--neg);  background: color-mix(in srgb, var(--neg) 12%, transparent); }
.chg--flat,
.chg--none { color: var(--fg-subtle); background: var(--surface-hi); }

/* ── لوحة رمز العملة ─────────────────────────────────────────── */
.ctile {
  display: grid; place-items: center;
  width: 42px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface-hi);
  flex: none;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.ctile b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--fg-muted);
}

/* ── حقول الإدخال ────────────────────────────────────────────── */
.search {
  position: relative;
  display: flex; align-items: center;
  flex: 1 1 260px;
}
.search .ic {
  position: absolute; inset-inline-start: var(--s-4);
  width: 16px; height: 16px;
  color: var(--fg-subtle);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 11px var(--s-4) 11px 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.search input::placeholder { color: var(--fg-subtle); }
.search input:hover { border-color: var(--border-hi); }
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ── شرائح التصنيف ───────────────────────────────────────────── */
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip {
  padding: 8px var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-2) var(--ease);
}
.chip:hover { border-color: var(--border-hi); color: var(--fg); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
}

/* ── مبالغ سريعة ─────────────────────────────────────────────── */
.quick { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.qa {
  padding: 6px var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}
.qa:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-tint);
}


/* ==========================================================================
   06 · STATES
   ========================================================================== */
.skeleton {
  display: block;
  height: 12px;
  border-radius: var(--r-xs);
  background: var(--skeleton);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.is-skeleton td { padding: var(--s-5) var(--s-5) !important; }

.state {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.state__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  flex: none;
}
.state__icon svg { width: 19px; height: 19px; fill: currentColor; }
.state__body { flex: 1; min-width: 0; }
.state__body b { display: block; font-size: var(--fs-sm); }
.state__body p { font-size: var(--fs-xs); color: var(--fg-muted); }

.state--error {
  margin-bottom: var(--s-5);
  border-color: color-mix(in srgb, var(--warn) 34%, transparent);
  background: color-mix(in srgb, var(--warn) 7%, var(--surface));
}
.state--error .state__icon {
  background: color-mix(in srgb, var(--warn) 15%, transparent);
  color: var(--warn);
}
.state--empty {
  border: 0; background: transparent;
  justify-content: center; text-align: center;
  padding-block: var(--s-9);
}
.state--empty .state__icon { background: var(--surface-hi); color: var(--fg-subtle); }
.state--empty .state__body { flex: 0; }


/* ==========================================================================
   07 · HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}
.header.is-stuck {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: var(--s-3); flex: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-fg);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease);
}
.logo:hover .logo__mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 10px 26px -12px var(--accent);
}
.logo__mark svg { width: 20px; height: 20px; fill: currentColor; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: var(--fs-base); font-weight: 800; }
.logo__text small {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: .2em;
  color: var(--fg-subtle);
  direction: ltr;
}

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a {
  position: relative;
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--dur-2) var(--ease);
}
.nav a::after {
  content: '';
  position: absolute; inset-inline: var(--s-3); bottom: 3px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }

#themeToggle .ic--moon { display: none; }
[data-theme="light"] #themeToggle .ic--sun  { display: none; }
[data-theme="light"] #themeToggle .ic--moon { display: block; }

.burger { display: none; flex-direction: column; gap: 4px; }
.burger span {
  display: block; width: 17px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }


/* ==========================================================================
   08 · TICKER
   ========================================================================== */
.ticker {
  overflow: hidden;
  padding-block: var(--s-2);
  background: var(--bg-elev);
  border-bottom: var(--hairline);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker__track {
  display: flex; gap: var(--s-8);
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tick {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.tick__code {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .04em;
  direction: ltr;
}
.tick__price { color: var(--fg-muted); }
.tick__chg { font-family: var(--font-mono); font-weight: 600; direction: ltr; }
.tick__chg--up   { color: var(--pos); }
.tick__chg--down { color: var(--neg); }
.tick__chg--flat,
.tick__chg--none { color: var(--fg-subtle); }


/* ==========================================================================
   09 · HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(var(--s-9), 6vw, var(--s-11)) clamp(var(--s-10), 8vw, var(--s-12));
  overflow: hidden;
  border-bottom: var(--hairline);
}
.hero__glow {
  position: absolute;
  inset-inline-end: -12%; top: -30%;
  width: min(720px, 80vw); aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__mesh {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to left, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 88% 60% at 72% 0%, #000, transparent 74%);
          mask-image: radial-gradient(ellipse 88% 60% at 72% 0%, #000, transparent 74%);
  opacity: .75;
}

/* شبكة رموز العملات: منتظمة، ملوّنة، ومرئية — لكنها تخفت خلف النص وحده.
   القناع يمسح الرموز في العمود الذي يقرأ منه الزائر فقط، لا في الواجهة كلها. */
.hero__marks {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .72;
  /* الصفحة RTL: عمود النص على اليمين، فنمسح الرموز هناك ونُظهرها يساراً */
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 34%, rgba(0,0,0,.3) 58%, transparent 76%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image:
    linear-gradient(to right, #000 0%, #000 34%, rgba(0,0,0,.3) 58%, transparent 76%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
[data-theme="light"] .hero__marks { opacity: .55; }
.hero__marks .lattice { width: 100%; height: 100%; display: block; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(var(--s-8), 5vw, var(--s-11));
  align-items: center;
}

.hero__copy { min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px var(--s-4) 6px var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.pill__dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fg-subtle);
  flex: none;
}
.pill__dot--ready { background: var(--pos); }
.pill__dot--error { background: var(--warn); }
.pill__dot--loading { background: var(--fg-subtle); animation: blink 1.1s ease-in-out infinite; }
.pill__dot--ready::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { opacity: 0; }
}

.hero__title {
  margin-block: var(--s-6) var(--s-5);
  font-size: var(--fs-4xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.032em;
}
/* اسم الشركة فوق العنوان: يخدم القارئ ومحرّك البحث معاً */
.hero__name {
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--accent);
}

.hero__lead { max-width: 52ch; font-size: var(--fs-md); color: var(--fg-muted); }
.hero__lead strong { color: var(--fg); font-weight: 700; }

.hero__chips {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-6);
}
.hchip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 7px var(--s-4) 7px var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease);
}
.hchip:hover {
  border-color: var(--border-accent);
  color: var(--fg);
  transform: translateY(-2px);
}
.hchip__ic { display: grid; place-items: center; color: var(--accent); }
.hchip__ic svg { width: 15px; height: 15px; fill: currentColor; }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-8); }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--s-6);
  justify-content: start;
  margin: 0;
  padding-top: var(--s-6);
  border-top: var(--hairline);
}
.hero__meta dt {
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
  margin-bottom: 2px;
}
.hero__meta dd { margin: 0; font-size: var(--fs-sm); font-weight: 500; }


/* ==========================================================================
   10 · CONVERTER
   ========================================================================== */
.converter {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow-3);
}
/* حافة علوية مضيئة */
.converter::before {
  content: '';
  position: absolute; inset-inline: 15%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
}
.converter__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.converter__title { font-size: var(--fs-lg); }

/* ── تبويبا البطاقة: الزوج المميّز أولاً ─────────────────────── */
.ctabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-1);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: var(--hairline);
}
.ctab {
  position: relative;
  padding: var(--s-2) var(--s-3);
  border: 0;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--fg-subtle);
  cursor: pointer;
  transition: color var(--dur-2) var(--ease);
}
.ctab::after {
  content: '';
  position: absolute; inset-inline: var(--s-3); bottom: calc(var(--s-3) * -1 - 1px);
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--dur-3) var(--ease-out);
}
.ctab:hover { color: var(--fg-muted); }
.ctab.is-active { color: var(--accent); }
.ctab.is-active::after { transform: scaleX(1); }

.cpane { display: none; }
.cpane.is-active { display: block; animation: fade-up var(--dur-3) var(--ease-out); }
.cpane > .segmented { margin-bottom: var(--s-4); }

/* شارة السعر بين الحقلين */
.rate-chip {
  padding: 4px var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--fg-muted);
  white-space: nowrap;
  flex: none;
}

/* المفتاح المقسوم */
.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-sunk);
}
.segmented__thumb {
  position: absolute;
  inset-block: 4px;
  inset-inline-start: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-sm);
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-3) var(--ease-out);
}
.segmented[data-side="sell"] .segmented__thumb { transform: translateX(-100%); }
.seg {
  position: relative; z-index: 1;
  padding: 11px var(--s-3);
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--fg-subtle);
  cursor: pointer;
  transition: color var(--dur-2) var(--ease);
}
.seg:hover { color: var(--fg-muted); }
.seg.is-active { color: var(--accent); }

.money {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-sunk);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.money--out { background: var(--accent-tint); border-color: var(--border-accent); }
.money__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
  margin-bottom: 2px;
}
.money__row { display: flex; align-items: center; gap: var(--s-3); }
.money__row input {
  flex: 1; min-width: 0;
  padding: 0; border: 0; background: transparent;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.85rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  direction: ltr; text-align: start;
}
.money__row input:focus { outline: none; }
.money--out .money__row input { color: var(--accent); }

.money__select {
  flex: none;
  max-width: 46%;
  padding: 7px var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur-2) var(--ease);
}
.money__select:hover { border-color: var(--border-hi); }
.money__select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

.converter__bridge {
  display: flex; align-items: center; gap: var(--s-3);
  padding-block: var(--s-3);
}
.converter__line { flex: 1; height: 1px; background: var(--border); }
.swap {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  flex: none;
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.swap:hover { border-color: var(--border-accent); transform: rotate(180deg); }
.swap.is-spun { transform: rotate(360deg); }
.swap svg { width: 16px; height: 16px; fill: currentColor; }

.converter__facts {
  display: grid; gap: var(--s-1);
  margin: var(--s-5) 0;
  padding-block: var(--s-4);
  border-block: 1px dashed var(--border);
}
.converter__facts > div {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  font-size: var(--fs-sm);
}
.converter__facts dt { color: var(--fg-subtle); }
.converter__facts dd { margin: 0; font-weight: 700; }

.converter__note {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
  line-height: 1.7;
  text-align: center;
}


/* ==========================================================================
   11 · RATES
   ========================================================================== */
.rates__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.rates__head .section__lead { margin: 0; }
.rates__status {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
}
.rates__time { font-size: var(--fs-xs); color: var(--fg-subtle); }
.rates__time b { color: var(--fg-muted); font-weight: 700; }

.rates__toolbar {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.table { width: 100%; min-width: 660px; }
.table thead th {
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hairline);
  background: var(--surface-hi);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--fg-subtle);
  text-align: start;
  white-space: nowrap;
}
.table thead th:nth-child(2),
.table thead th:nth-child(3),
.table thead th:nth-child(4) { text-align: start; }
.table tbody td {
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--hairline);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur-2) var(--ease); }
.table tbody tr:hover { background: var(--surface-hi); }
.table tbody tr:hover .ctile { border-color: var(--border-accent); }
.table tbody tr:hover .ctile b { color: var(--accent); }
.th-cur { width: 34%; }
.td-action { text-align: end; white-space: nowrap; }

.cur { display: flex; align-items: center; gap: var(--s-3); }
.cur__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cur__text b { font-size: var(--fs-sm); font-weight: 700; }
.cur__text small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--fg-subtle);
  direction: ltr;
}

.price { font-size: var(--fs-md); font-weight: 700; }
.price--buy  { color: var(--fg); }
.price--sell { color: var(--accent); }

.note {
  display: flex; align-items: flex-start; gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid color-mix(in srgb, var(--warn) 26%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--warn) 6%, transparent);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  line-height: 1.75;
}
.note .ic { color: var(--warn); font-size: 1.25em; margin-top: 3px; }


/* ==========================================================================
   12 · SERVICES
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--hairline);
  border-inline-start: var(--hairline);
}
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s-7);
  border-inline-end: var(--hairline);
  border-bottom: var(--hairline);
  transition: background var(--dur-2) var(--ease);
}
.service:hover { background: var(--surface); }
/* خط علوي يتمدّد عند المرور */
.service::before {
  content: '';
  position: absolute; inset-inline-start: 0; top: -1px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--dur-3) var(--ease-out);
}
.service:hover::before { width: 100%; }

.service__num {
  position: absolute;
  inset-inline-end: var(--s-6); top: var(--s-6);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--fg-subtle);
  opacity: .5;
}
.service__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  color: var(--accent);
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2) var(--ease);
}
.service:hover .service__icon { transform: translateY(-3px); border-color: var(--border-accent); }
.service__icon svg { width: 20px; height: 20px; fill: currentColor; }

.service__title { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.service__text { font-size: var(--fs-sm); color: var(--fg-muted); }

.service__points { margin: var(--s-4) 0 var(--s-6); display: grid; gap: var(--s-2); }
.service__points li {
  position: relative;
  padding-inline-start: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.service__points li::before {
  content: '';
  position: absolute; inset-inline-start: 0; top: .62em;
  width: 11px; height: 6px;
  border-inline-start: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.service__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
}
.service__link svg { width: 15px; height: 15px; fill: currentColor; transition: transform var(--dur-2) var(--ease-out); }
.service__link:hover svg { transform: translateX(-4px); }


/* ==========================================================================
   12b · BRAND WALL — الشبكات والمحافظ والبنوك
   ========================================================================== */
.brandwall { display: grid; gap: var(--s-8); }

.bgroup { border-top: var(--hairline); padding-top: var(--s-6); }
.bgroup__head {
  display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.bgroup__head h3 { font-size: var(--fs-md); }
.bgroup__head p { font-size: var(--fs-xs); color: var(--fg-subtle); }

/* شبكة ثابتة الأعمدة — الترتيب هو المطلوب، لا التوزيع العشوائي */
.bgroup__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: var(--s-3);
}

.bt {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease);
}
.bt:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-2px);
}

/* الرمز الملوّن — يُحفر داخله بلون سطح البطاقة */
.bt__glyph {
  --brand-cutout: var(--surface);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  flex: none;
  transition: transform var(--dur-3) var(--ease-out);
}
.bt:hover .bt__glyph { transform: scale(1.08); }
.bt:hover .bt__glyph { --brand-cutout: var(--surface-hi); }

/* بطاقة الاسم للجهات التي نعرضها كاسم لا كشعار رسمي */
.bt__word {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--r-xs);
  background: var(--bw);
  color: #fff;
  box-shadow: 0 4px 14px -6px var(--bw);
  transition: transform var(--dur-3) var(--ease-out);
}
.bt:hover .bt__word { transform: scale(1.06); }
.bt__word b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.bt__logo {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  flex: none;
  padding: 5px;
  border-radius: var(--r-xs);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform var(--dur-3) var(--ease-out);
}
.bt:hover .bt__logo { transform: scale(1.06); }
.bt__logo img { width: 100%; height: 100%; object-fit: contain; }

.bt__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.bt__text b { font-size: var(--fs-sm); }
.bt__text small { font-size: var(--fs-xs); color: var(--fg-subtle); }


/* ==========================================================================
   13 · TRUST
   ========================================================================== */
.trust {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(var(--s-8), 5vw, var(--s-11));
  align-items: start;
}
.trust__intro { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.trust__intro .section__lead { margin-bottom: var(--s-6); }

.trust__list { border-top: var(--hairline); }
.trust__item {
  display: flex; align-items: flex-start; gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: var(--hairline);
  transition: padding-inline-start var(--dur-3) var(--ease-out);
}
.trust__item:hover { padding-inline-start: var(--s-3); }
.trust__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-muted);
  flex: none;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease);
}
.trust__item:hover .trust__icon {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-tint);
}
.trust__icon svg { width: 19px; height: 19px; fill: currentColor; }
.trust__item h3 { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.trust__item p { font-size: var(--fs-sm); color: var(--fg-muted); }


/* ==========================================================================
   14 · STATS
   ========================================================================== */
.stats-band { background: var(--bg-elev); border-block: var(--hairline); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: var(--s-8) var(--s-5);
  border-inline-start: var(--hairline);
  text-align: center;
}
.stat:first-child { border-inline-start: 0; }
.stat__value {
  display: block;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--accent);
}
.stat__label { font-size: var(--fs-sm); color: var(--fg-muted); }

/* قيمة نصّية بدل رقم — مثل «فوري» */
.stat__value--word {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--accent);
}


/* ==========================================================================
   15 · ACCORDION
   ========================================================================== */
.accordion { border-top: var(--hairline); }
.acc { border-bottom: var(--hairline); }
.acc summary {
  display: flex; align-items: center; gap: var(--s-4);
  padding-block: var(--s-5);
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-2) var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc summary::after {
  content: '';
  margin-inline-start: auto;
  width: 12px; height: 12px;
  flex: none;
  color: var(--fg-subtle);
  background:
    linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 12px no-repeat;
  transition: transform var(--dur-3) var(--ease-out), color var(--dur-2) var(--ease);
}
.acc summary:hover::after { color: var(--accent); }
.acc[open] summary { color: var(--accent); }
.acc[open] summary::after {
  transform: rotate(90deg);
  color: var(--accent);
  background: linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat;
}
.acc__body { padding-bottom: var(--s-5); animation: fade-up var(--dur-3) var(--ease-out); }
.acc__body p { font-size: var(--fs-sm); color: var(--fg-muted); max-width: 70ch; }
@keyframes fade-up { from { opacity: 0; transform: translateY(-6px); } }


/* ==========================================================================
   16 · CONTACT
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: var(--s-6);
  align-items: start;
}
.contact__channels { border-top: var(--hairline); }

.channel {
  display: flex; align-items: center; gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: var(--hairline);
  transition: padding-inline var(--dur-3) var(--ease-out), background var(--dur-2) var(--ease);
}
.channel:hover { padding-inline: var(--s-4); background: var(--surface); }
.channel__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-muted);
  flex: none;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease);
}
.channel:hover .channel__icon {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-tint);
}
.channel__icon--whats { color: #1fac54; }
.channel:hover .channel__icon--whats {
  color: #fff; background: #1fac54; border-color: #1fac54;
}
.channel__icon svg { width: 20px; height: 20px; fill: currentColor; }
.channel__text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; flex: 1; }
.channel__text b { font-size: var(--fs-sm); }
.channel__text small { font-size: var(--fs-xs); color: var(--fg-subtle); }
.channel__go {
  color: var(--fg-subtle);
  font-size: 1.1em;
  transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease);
}
.channel:hover .channel__go { color: var(--accent); transform: translateX(-4px); }

.hours {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.hours h3 { font-size: var(--fs-md); margin-bottom: var(--s-4); }
.hours__list { display: grid; gap: var(--s-1); }
.hours__list li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: var(--hairline);
  font-size: var(--fs-sm);
}
.hours__list li:last-child { border-bottom: 0; }
.hours__list span { color: var(--fg-muted); }
.hours__list b { font-family: var(--font-mono); font-size: var(--fs-xs); }
.hours__list .is-closed b { color: var(--fg-subtle); }

.hours__now {
  display: flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--surface-hi);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.hours__now small { color: var(--fg-subtle); font-weight: 400; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--open   { background: var(--pos); }
.dot--closed { background: var(--fg-subtle); }

.hours__note {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
  line-height: 1.7;
}


/* ==========================================================================
   17 · FOOTER
   ========================================================================== */
.footer { border-top: var(--hairline); background: var(--bg-elev); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: var(--s-8);
  padding-block: var(--s-10) var(--s-9);
}
.footer__brand > p {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  max-width: 38ch;
}
.footer__license {
  margin-top: var(--s-2) !important;
  font-size: var(--fs-xs) !important;
  color: var(--fg-subtle) !important;
}

.socials { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.social {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg-muted);
  transition: all var(--dur-2) var(--ease);
}
.social:hover {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social svg { width: 17px; height: 17px; fill: currentColor; }

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.footer__col h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--fg-subtle);
  margin-bottom: var(--s-1);
}
.footer__col a, .footer__col span { font-size: var(--fs-sm); color: var(--fg-muted); }
.footer__col a { position: relative; transition: color var(--dur-2) var(--ease); }
.footer__col a::after {
  content: '';
  position: absolute; inset-inline: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-2) var(--ease-out);
}
.footer__col a:hover { color: var(--accent); }
.footer__col a:hover::after { transform: scaleX(1); }

.footer__legal { padding-bottom: var(--s-6); }
.footer__legal p {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
  line-height: 1.8;
}

.footer__made a { transition: color var(--dur-2) var(--ease); }
.footer__made a:hover { color: var(--accent); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  padding-block: var(--s-5);
  border-top: var(--hairline);
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
}


/* ==========================================================================
   18 · OVERLAYS
   ========================================================================== */
.fab {
  position: fixed;
  inset-block-end: var(--s-6); inset-inline-start: var(--s-6);
  z-index: 90;
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 13px var(--s-5);
  border-radius: var(--r-pill);
  background: #1fac54; color: #fff;
  font-size: var(--fs-sm); font-weight: 700;
  box-shadow: 0 14px 34px -14px rgba(31, 172, 84, .9);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-2) var(--ease);
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -16px rgba(31, 172, 84, 1); }
.fab svg { width: 20px; height: 20px; fill: currentColor; }

.toast {
  position: fixed;
  inset-block-end: var(--s-6); inset-inline-end: var(--s-6);
  z-index: 200;
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: none; }


/* ==========================================================================
   19 · LEGAL PAGES
   ========================================================================== */
.legal-hero {
  padding-block: clamp(var(--s-9), 6vw, var(--s-11)) var(--s-8);
  border-bottom: var(--hairline);
}
.legal-hero .section__title { margin-bottom: var(--s-3); }
.legal-hero p { color: var(--fg-muted); max-width: 62ch; }
.legal-hero__updated {
  display: inline-block;
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
}

.legal { padding-block: var(--s-9) var(--s-11); }
.legal__body { max-width: 74ch; }
.legal__body section { margin-bottom: var(--s-8); scroll-margin-top: calc(var(--header-h) + var(--s-6)); }
.legal__body h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: var(--hairline);
}
.legal__body h3 { font-size: var(--fs-md); margin-block: var(--s-5) var(--s-2); }
.legal__body p { color: var(--fg-muted); margin-bottom: var(--s-4); }
.legal__body ul { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.legal__body ul li {
  position: relative;
  padding-inline-start: var(--s-5);
  color: var(--fg-muted);
  font-size: var(--fs-sm);
}
.legal__body ul li::before {
  content: '';
  position: absolute; inset-inline-start: 0; top: .72em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.legal__callout {
  padding: var(--s-5);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  font-size: var(--fs-sm);
}
.legal__callout p:last-child { margin-bottom: 0; }

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
  align-self: start;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.legal__toc h4 {
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  color: var(--fg-subtle);
  margin-bottom: var(--s-3);
}
.legal__toc a {
  display: block;
  padding-block: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  border-inline-start: 2px solid transparent;
  padding-inline-start: var(--s-3);
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.legal__toc a:hover { color: var(--accent); border-inline-start-color: var(--accent); }
.legal__toc a.is-active {
  color: var(--accent);
  font-weight: 700;
  border-inline-start-color: var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--s-9);
  align-items: start;
}

.breadcrumb {
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--fg-subtle);
}
.breadcrumb a:hover { color: var(--accent); }


/* ==========================================================================
   20 · MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ==========================================================================
   21 · RESPONSIVE
   ========================================================================== */

/* ── لابتوب صغير ─────────────────────────────────────────────── */
@media (max-width: 1140px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-9); }
  .converter { max-width: 540px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; gap: var(--s-8); }
  .trust__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { position: static; order: -1; }
}

/* ── تابلت ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(-n+2) { border-bottom: var(--hairline); }
  .rates__head { align-items: flex-start; }
}

/* ── موبايل ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --header-h: 60px; }

  /* التنقّل يصبح لوحة كاملة بدل قائمة مصغّرة */
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-6);
    background: var(--bg-elev);
    border-bottom: var(--hairline);
    box-shadow: var(--shadow-3);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; }
  .nav a {
    padding: var(--s-4) 0;
    font-size: var(--fs-md);
    border-bottom: var(--hairline);
  }
  .nav a::after { display: none; }

  /* الأزرار الأساسية بعرض كامل — أسهل للإبهام */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__meta { grid-template-columns: 1fr; gap: var(--s-4); }

  .services { grid-template-columns: 1fr; border-inline-start: 0; }
  .service { padding: var(--s-6) 0; border-inline-end: 0; }
  .service__num { inset-inline-end: 0; top: var(--s-5); }

  .rates__head { flex-direction: column; gap: var(--s-5); }
  .rates__status { width: 100%; justify-content: space-between; }
  .rates__toolbar { flex-direction: column; align-items: stretch; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--s-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }

  .converter { padding: var(--s-5); }
  .money__select { max-width: 42%; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--s-2); }

  .fab {
    inset-block-end: var(--s-4); inset-inline-start: var(--s-4);
    padding: 12px var(--s-4);
  }
  .fab__label { display: none; }
  .toast { inset-inline: var(--s-4); inset-block-end: var(--s-4); text-align: center; }
}

/* ── موبايل صغير ─────────────────────────────────────────────── */
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: var(--s-4);
    padding-inline: 0;
    text-align: start;
    border-inline-start: 0;
    border-bottom: var(--hairline);
  }
  .stat:last-child { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .table { min-width: 560px; }
  .money__row input { font-size: 1.35rem; }
}


/* ==========================================================================
   تفضيلات المستخدم
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media print {
  .header, .ticker, .fab, .toast, .hero__glow, .hero__mesh { display: none !important; }
  body { background: #fff; color: #000; }
  .table-wrap { overflow: visible; border: 0; }
}
