/* ============================================================
   دليل الفوركس — Dalil al Forex
   Design system: RTL-first, Arabic financial media
   Fonts: Cairo (headings) + Tajawal (body), self-hosted
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/fonts/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/tajawal-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/tajawal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/tajawal-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/tajawal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/tajawal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/tajawal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #07182B;
  --navy-900: #0A1F33;
  --navy-800: #0E2A47;
  --navy-700: #14345C;
  --navy-600: #1B4273;
  --teal-700: #0B5F5A;
  --teal-600: #0F766E;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --amber-600: #B45309;
  --amber-500: #D97706;
  --amber-400: #F59E0B;
  --red-600: #DC2626;
  --slate-50: #F7F9FB;
  --slate-100: #EEF2F5;
  --slate-200: #E2E8EF;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --bg: #F7F9FB;
  --surface: #FFFFFF;
  --border: #E2E8EF;
  --text: #1E293B;
  --muted: #5B6B7C;
  --font-head: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-body: 'Tajawal', 'Cairo', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 51, .06);
  --shadow-md: 0 4px 14px rgba(10, 31, 51, .08);
  --shadow-lg: 0 12px 32px rgba(10, 31, 51, .12);
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.35;
  color: var(--navy-900);
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(20, 184, 166, .25); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000;
  background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--slate-300); }
.btn-outline:hover { border-color: var(--teal-600); color: var(--teal-700); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: transparent; }
.btn-ghost:hover { background: var(--slate-100); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 14.5px; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(-3px); } /* RTL: forward = left */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin-inline: auto; padding-inline: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; display: block; }
.logo-text { display: flex; align-items: baseline; gap: 8px; line-height: 1.15; }
.logo-ar { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--navy-900); white-space: nowrap; }
.logo-en { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 13px; border-radius: 8px;
  color: var(--slate-700); font-weight: 500; font-size: 15.5px; text-decoration: none;
}
.main-nav a:hover { background: var(--slate-100); color: var(--navy-900); }
.main-nav a[aria-current="page"] { color: var(--teal-700); font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy-900); }

/* mobile drawer (opens from the start side = right in RTL) */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(10, 31, 51, .45); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(330px, 86vw);
  background: #fff; z-index: 210; padding: 20px;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .drawer { transform: translateX(100%); } /* off-screen to the left */
.drawer.open { transform: translateX(0); }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-close {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.drawer-close svg { width: 20px; height: 20px; stroke: var(--navy-900); }
.drawer-nav a {
  display: block; padding: 12px 8px; border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800); font-weight: 600; font-size: 16.5px; text-decoration: none;
}
.drawer-nav a[aria-current="page"] { color: var(--teal-700); }
.drawer-cta { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #0C2B42 100%);
  color: #E7EEF5; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset-inline-end: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 166, .18), transparent 65%);
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset-inline-start: -120px; bottom: -180px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(27, 66, 115, .5), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: 64px 56px; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20, 184, 166, .12); color: var(--teal-400);
  border: 1px solid rgba(20, 184, 166, .3);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 .accent { color: var(--teal-400); }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #C4D2E0; max-width: 46em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat span { font-size: 13.5px; color: #9FB3C8; }
.hero .btn-primary { background: var(--teal-500); color: var(--navy-950); }
.hero .btn-primary:hover { background: var(--teal-400); }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-outline:hover { border-color: var(--teal-400); color: var(--teal-400); }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section-tight { padding-block: 40px; }
.section-head { max-width: 780px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-more { text-align: center; margin-top: 32px; }

/* ---------- Cards: generic ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }

/* ---------- Broker cards ---------- */
.broker-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .broker-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .broker-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .broker-grid.cols-2-lg { grid-template-columns: repeat(2, 1fr); } }

.broker-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s;
  position: relative; min-width: 0;
}
.broker-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.broker-top { display: flex; align-items: center; gap: 14px; }
.broker-logo {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 7px; overflow: hidden;
}
.broker-logo img { width: 100%; height: 100%; object-fit: contain; }
.broker-logo--dark { background: var(--navy-900); }
.broker-logo--dark img { filter: brightness(0) invert(1); }
.broker-name { font-family: var(--font-head); font-weight: 800; font-size: 17.5px; color: var(--navy-900); line-height: 1.3; }
.broker-meta { font-size: 13px; color: var(--muted); }
.broker-tagline { font-size: 14.5px; color: var(--slate-600); line-height: 1.7; margin: 0; flex-grow: 0; }
.broker-bestfor { font-size: 13.5px; color: var(--teal-700); line-height: 1.65; margin: 6px 0 0; }
.broker-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--slate-200); padding-top: 12px; }
.broker-specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; margin: 0; }
.broker-specs .k { color: var(--muted); flex-shrink: 0; }
.broker-specs .v { font-weight: 600; color: var(--slate-800); text-align: end; }
.broker-specs .v .ltr { font-weight: 600; }
.broker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.broker-actions .btn { flex: 1; }
.broker-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--slate-600);
  background: var(--slate-100); border: 1px solid var(--slate-200);
  padding: 3px 10px; border-radius: 999px; line-height: 1.5;
}
.badge-teal { color: var(--teal-700); background: rgba(20, 184, 166, .1); border-color: rgba(20, 184, 166, .25); }
.badge-amber { color: var(--amber-600); background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); }
.badge-navy { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }

/* pick / rank number */
.rank-chip {
  position: absolute; top: 14px; inset-inline-end: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  color: var(--navy-700); background: var(--slate-100); border: 1px solid var(--slate-200);
  border-radius: 999px; padding: 2px 10px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; font-size: 14.5px; border-collapse: collapse; min-width: 640px; }
.data-table th {
  background: var(--navy-900); color: #fff; text-align: start;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  padding: 12px 14px; white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-top: 1px solid var(--slate-100); vertical-align: middle; }
.data-table tbody tr:nth-child(even) { background: var(--slate-50); }
.data-table tbody tr:hover { background: rgba(20, 184, 166, .05); }
.data-table .td-logo { display: flex; align-items: center; gap: 10px; }
.data-table .td-logo img { width: 36px; height: 36px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; padding: 4px; background: #fff; }
.data-table .td-logo .nm { font-weight: 700; color: var(--slate-800); white-space: nowrap; }
.data-table .num { text-align: end; }
.data-table td .btn { min-height: 36px; padding: 4px 14px; font-size: 13.5px; }
.data-table .reg { font-size: 13px; color: var(--muted); }
.aff-tag { font-size: 11px; color: var(--amber-600); background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }

/* mobile table → card fallback */
@media (max-width: 639px) {
  .table-wrap.mobile-cards { border: none; background: none; overflow: visible; }
  .table-wrap.mobile-cards .data-table { min-width: 0; display: block; }
  .table-wrap.mobile-cards thead { display: none; }
  .table-wrap.mobile-cards tbody { display: grid; gap: 14px; }
  .table-wrap.mobile-cards tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px;
  }
  .table-wrap.mobile-cards td { border: none; padding: 0; }
  .table-wrap.mobile-cards td[data-th]::before {
    content: attr(data-th); display: block; font-size: 11.5px; color: var(--muted);
    margin-bottom: 2px;
  }
  .table-wrap.mobile-cards td:first-child { grid-column: 1 / -1; border-bottom: 1px dashed var(--slate-200); padding-bottom: 10px; margin-bottom: 4px; }
  .table-wrap.mobile-cards .td-logo { justify-content: space-between; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); padding-block: 16px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.breadcrumbs .sep { color: var(--slate-300); }
.breadcrumbs [aria-current="page"] { color: var(--slate-700); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-head { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #E7EEF5; }
.page-head-inner { max-width: var(--container); margin-inline: auto; padding-inline: 20px; padding-block: 44px 40px; }
.page-head h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.page-head p { color: #C4D2E0; max-width: 44em; margin: 0; font-size: 16.5px; }
.page-head .breadcrumbs { color: #9FB3C8; padding-bottom: 0; }
.page-head .breadcrumbs a { color: #9FB3C8; }
.page-head .breadcrumbs a:hover { color: var(--teal-400); }
.page-head .breadcrumbs .sep { color: #5B7085; }
.page-head .breadcrumbs [aria-current="page"] { color: #E7EEF5; }

/* ---------- Content / prose ---------- */
.prose { font-size: 17px; line-height: 1.95; }
.prose h2 { margin-top: 1.9em; padding-top: .4em; border-top: 1px solid var(--slate-200); }
.prose h3 { margin-top: 1.6em; }
.prose p { margin-bottom: 1.15em; }
.prose ul li, .prose ol li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.5em 0; padding: 14px 20px; border-inline-start: 4px solid var(--teal-500);
  background: var(--slate-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--slate-700);
}
.prose table { font-size: 15px; margin: 1.4em 0; }

/* callouts */
.note, .warn, .tip, .danger {
  margin: 1.2em 0; padding: 0; background: none; border: none; border-radius: 0;
  color: inherit; line-height: 1.85; font-size: 1em;
}
.note .ttl, .warn .ttl, .tip .ttl, .danger .ttl {
  font-weight: 700; font-family: var(--font-head); display: inline; margin: 0;
}
.note .ttl::after, .warn .ttl::after, .tip .ttl::after, .danger .ttl::after { content: ": "; }

/* pros/cons */
.proscons { display: grid; gap: 18px; margin: 1.6em 0; }
@media (min-width: 768px) { .proscons { grid-template-columns: 1fr 1fr; } }
.pc-box { border-radius: var(--radius); padding: 18px 20px; border: 1px solid; }
.pc-box.pros { background: #EFF8F6; border-color: #C4E6DF; }
.pc-box.cons { background: #FDF7EC; border-color: #F0DFB8; }
.pc-box h4 { margin-bottom: 10px; font-size: 15.5px; }
.pc-box.pros h4 { color: var(--teal-700); }
.pc-box.cons h4 { color: var(--amber-600); }
.pc-box ul { margin: 0; padding-inline-start: 1.2em; font-size: 15px; }
.pc-box li { margin-bottom: .5em; }

/* FAQ accordion */
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 1.4em 0; }
.faq details { border-bottom: 1px solid var(--slate-100); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 16px;
  font-family: var(--font-head); color: var(--slate-800); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-inline-start: 2px solid var(--slate-400); border-bottom: 2px solid var(--slate-400);
  transform: rotate(-45deg); transition: transform .2s; margin-inline-end: 6px;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details[open] summary { color: var(--teal-700); }
.faq .faq-a { padding: 0 20px 18px; font-size: 15.5px; color: var(--slate-600); }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2em; font-size: 15px; }
.toc h3 { font-size: 15.5px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-inline-start: 1.3em; }
.toc li { margin-bottom: .4em; }
.toc a { color: var(--slate-700); text-decoration: none; }
.toc a:hover { color: var(--teal-700); text-decoration: underline; }

/* ---------- Guides hub ---------- */
.guide-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-card .gc-cat { font-size: 12.5px; font-weight: 700; color: var(--teal-700); text-transform: none; }
.guide-card h3 { font-size: 16.5px; margin: 0; color: var(--navy-900); line-height: 1.5; }
.guide-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
.guide-card .gc-foot { margin-top: auto; font-size: 13px; color: var(--slate-400); display: flex; align-items: center; gap: 6px; }
.guide-section { margin-top: 2.2em; }
.guide-section > h2 { font-size: 1.25rem; margin: 0 0 14px; padding-inline-start: 12px; border-inline-start: 3px solid var(--teal-600); }
.learning-path { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 8px; }
.learning-path h2 { color: #fff; }
.path-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: path; }
@media (min-width: 768px) { .path-list { grid-template-columns: repeat(4, 1fr); } }
.path-list li { counter-increment: path; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.path-list li::before { content: counter(path); width: 26px; height: 26px; border-radius: 50%; background: var(--teal-500); color: #062b33; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.path-list a { color: #fff; font-weight: 700; text-decoration: none; }
.path-list a:hover { color: var(--teal-300); }
.path-list span { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6; }
.learning-path a:hover { color: var(--teal-300); }
.learning-path span { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6; }

/* ---------- Trading sessions grid ---------- */
.sess-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .sess-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sess-grid { grid-template-columns: repeat(4, 1fr); } }
.sess-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.sess-item.active { border-color: var(--teal-500); background: #f0faf9; }
.sess-icon { font-size: 22px; line-height: 1; }
.sess-name { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.sess-time { font-size: 13px; color: var(--muted); direction: ltr; unicode-bidi: isolate; text-align: start; }
.sess-state { font-size: 12.5px; font-weight: 600; color: var(--slate-500); }
.sess-item.active .sess-state { color: var(--teal-700); }

/* ---------- Feature tiles (platforms/regulation) ---------- */
.tile-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.tile .t-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(20, 184, 166, .1); display: flex; align-items: center; justify-content: center; }
.tile .t-icon svg { width: 24px; height: 24px; stroke: var(--teal-700); }
.tile h3 { font-size: 16.5px; margin: 0; }
.tile p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.75; flex-grow: 1; }
.tile a.more { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------- Tools ---------- */
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.tool-form { display: grid; gap: 16px; }
@media (min-width: 640px) { .tool-form.cols-2 { grid-template-columns: 1fr 1fr; } .tool-form.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--slate-700); }
.field input, .field select {
  height: 46px; padding: 8px 14px; border: 1px solid var(--slate-300); border-radius: 10px;
  font-family: var(--font-body); font-size: 16px; color: var(--slate-800); background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--teal-600); outline: 3px solid rgba(20,184,166,.18); outline-offset: 0; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.tool-result { margin-top: 20px; border-top: 1px dashed var(--slate-200); padding-top: 18px; display: none; }
.tool-result.show { display: block; }
.tool-result .tr-value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy-900); direction: ltr; unicode-bidi: isolate; text-align: start; }
.tool-result .tr-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tool-example { margin-top: 26px; background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14.5px; }
.tool-example h4 { font-size: 14px; margin-bottom: 6px; }

/* ---------- Forms (contact) ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-grid textarea { border: 1px solid var(--slate-300); border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); font-size: 16px; min-height: 140px; }
.form-grid textarea:focus { border-color: var(--teal-600); outline: 3px solid rgba(20,184,166,.18); }

/* ---------- Author/date row ---------- */
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.meta-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-300); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--slate-700); text-decoration: none;
}
.pagination a:hover { border-color: var(--teal-600); color: var(--teal-700); }
.pagination .current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Review page ---------- */
.review-header {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.rh-top { display: flex; align-items: center; gap: 16px; }
.rh-logo { width: 72px; height: 72px; padding: 8px; }
.rh-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.review-facts { margin-bottom: 26px; }
.facts-table { min-width: 0; }
.facts-table th { background: var(--slate-50); color: var(--slate-600); font-weight: 600; width: 34%; text-align: start; font-size: 14px; white-space: normal; }
.facts-table th, .facts-table td { padding: 11px 14px; }
.facts-table td { font-size: 14.5px; color: var(--slate-800); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); border-radius: 18px; padding: 40px; text-align: center; color: #E7EEF5; margin-block: 48px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #C4D2E0; max-width: 40em; margin-inline: auto; margin-bottom: 22px; }
.cta-band .btn-primary { background: var(--teal-500); color: var(--navy-950); }
.cta-band .btn-primary:hover { background: var(--teal-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #A9BCCF; margin-top: 72px; }
.footer-inner { max-width: var(--container); margin-inline: auto; padding-inline: 20px; padding-block: 48px 0; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .logo-ar { color: #fff; }
.footer-brand .logo-en { color: #6E8398; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 14px; color: #8FA3B8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 700; white-space: nowrap; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #A9BCCF; font-size: 14.5px; text-decoration: none; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: #6E8398; }
.footer-risk { font-size: 12.5px; line-height: 1.8; color: #7C90A5; border-top: 1px solid rgba(255,255,255,.08); padding-block: 16px; }

/* ---------- 404 ---------- */
.err-page { text-align: center; padding-block: 90px; }
.err-page .err-code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; color: var(--navy-800); line-height: 1; }
.err-page h1 { margin-top: 8px; }

/* ---------- Newsletter-ish? none. Risk strip ---------- */

/* ---------- Responsive header ---------- */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
}
@media (min-width: 1024px) {
  .drawer, .drawer-overlay { display: none; }
}
@media (max-width: 639px) {
  body { font-size: 16px; }
  .hero-inner { padding-block: 48px 40px; }
  .section { padding-block: 44px; }
  .broker-card { padding: 18px; }
  .card { padding: 18px; }
  .cta-band { padding: 28px 20px; }
  .logo-ar { font-size: 18px; }
  .logo img { width: 36px; height: 36px; }
  .hero-stats { gap: 20px; }
  .stat b { font-size: 1.25rem; }
  .prose { font-size: 16px; line-height: 1.9; }
  .data-table { font-size: 13.5px; }
}

/* ---------- News section ---------- */
.news-grid { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
.news-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card h3 { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--navy-900); font-family: var(--font-head); }
.news-card p { margin: 0; font-size: 14px; color: var(--slate-600); line-height: 1.75; flex: 1; }
.news-top { display: flex; align-items: center; gap: 12px; }
.news-logo { width: 44px; height: 44px; }
.news-logo img { width: 44px; height: 44px; object-fit: contain; }
.news-meta { display: flex; flex-direction: column; gap: 2px; }
.news-broker { font-weight: 800; color: var(--navy-900); font-size: 14.5px; }
.news-date { font-size: 12.5px; color: var(--muted); direction: ltr; unicode-bidi: isolate; text-align: start; }
.news-broker-box { display: flex; gap: 16px; align-items: flex-start; background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-top: 12px; }
.news-broker-box p { margin: 4px 0 0; font-size: 14px; color: var(--slate-600); line-height: 1.7; }
@media (max-width: 639px) { .news-broker-box { flex-direction: column; } }
.news-mini-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .news-mini-grid { grid-template-columns: repeat(3, 1fr); } }
.news-mini { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; transition: box-shadow .15s ease; }
.news-mini:hover { box-shadow: var(--shadow-md); }
.news-mini-brand { font-weight: 800; font-size: 13.5px; color: var(--navy-900); }
.news-mini-title { font-size: 13.5px; color: var(--slate-700); line-height: 1.6; margin-top: 2px; }
.news-mini-date { font-size: 12px; color: var(--muted); margin-top: 4px; direction: ltr; unicode-bidi: isolate; text-align: start; }
