/* =========================================================
   Mohammed Elamin — Education India
   Art direction: "Atlas & Seal" (Cairo + Fraunces) — ورق عاجي، حبر كحلي، دهبي اللوجو،
   أختام رسمية وخريطة. حركة هادية ومقصودة، مش استعراض.
   ========================================================= */

:root,
[data-palette="navy"] {
  --bg: #F5F1E8;
  --bg-2: #EEE8DB;
  --surface: #FFFDF8;
  --ink: #0F2147;
  --ink-2: #3B4865;
  --muted: #6D7690;
  --line: rgba(15, 33, 71, .12);
  --line-2: rgba(15, 33, 71, .22);
  --brand: #0F2147;
  --brand-2: #1B3468;
  --on-brand: #F5F1E8;
  --on-brand-2: rgba(245, 241, 232, .7);
  --gold: #C29433;
  --gold-2: #D9AE52;
  --gold-ink: #8A6418;
  --hi: #F2B53A;
  --ok: #1E7A4C;
  --ok-soft: #DCEEE2;
  --bad: #B3261E;
  --bad-soft: #F6E1DD;
  --warn-soft: #F7EBCB;
  --shadow: 0 1px 1px rgba(15, 33, 71, .04), 0 18px 40px -22px rgba(15, 33, 71, .35);
  --shadow-lg: 0 40px 80px -36px rgba(15, 33, 71, .45);
  --map: #0F2147;
  --map-line: rgba(15, 33, 71, .14);
  --logo: url("../assets/logo-navy.jpeg");
  --logo-blend: normal;
  --grain-op: .05;
  color-scheme: light;
}
[data-palette="green"] {
  --bg: #F4F2EA;
  --bg-2: #ECE9DE;
  --surface: #FFFEF9;
  --ink: #10301F;
  --ink-2: #3D5246;
  --muted: #6D7D73;
  --line: rgba(16, 48, 31, .12);
  --line-2: rgba(16, 48, 31, .22);
  --brand: #0F3D2A;
  --brand-2: #17553A;
  --map: #0F3D2A;
  --map-line: rgba(16, 48, 31, .14);
  --logo: url("../assets/logo-white.jpeg");
  --logo-blend: multiply;
}
[data-palette="dark"] {
  --bg: #0A1430;
  --bg-2: #0E1A3B;
  --surface: #111F42;
  --ink: #F3EEE3;
  --ink-2: #C3C9D8;
  --muted: #8C96AF;
  --line: rgba(243, 238, 227, .1);
  --line-2: rgba(243, 238, 227, .2);
  --brand: #E0B44F;
  --brand-2: #EDC56A;
  --on-brand: #0A1430;
  --on-brand-2: rgba(10, 20, 48, .7);
  --gold: #E0B44F;
  --gold-2: #EDC56A;
  --gold-ink: #E0B44F;
  --ok: #57C98A;
  --ok-soft: rgba(87, 201, 138, .12);
  --bad: #FF8A80;
  --bad-soft: rgba(255, 138, 128, .12);
  --warn-soft: rgba(224, 180, 79, .12);
  --shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 18px 40px -22px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .8);
  --map: #E0B44F;
  --map-line: rgba(243, 238, 227, .12);
  --grain-op: .07;
  color-scheme: dark;
}

:root {
  --f-display: "Cairo", system-ui, sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-body: "Cairo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", var(--f-body);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 22px;
  --hdr: 76px;
}
[lang="en"] { --f-display: "Fraunces", Georgia, serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.85 var(--f-body);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
body::after { /* grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; color: var(--ink); }
[lang="en"] h1, [lang="en"] h2 { font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold-2); color: #0F2147; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
[dir="ltr"] .flip { transform: scaleX(-1); }
[dir="rtl"] .back { transform: scaleX(-1); }
.serif { font-family: var(--f-serif); font-variation-settings: "opsz" 144; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 760px) { .wrap { padding-inline: 18px; } }
.sec { padding-block: 128px; position: relative; }
.sec.tight { padding-block: 88px; }
@media (max-width: 760px) { .sec { padding-block: 80px; } .sec.tight { padding-block: 56px; } }

.ribbon { background: var(--ink); color: var(--bg); font-size: 12.5px; text-align: center; padding: 7px 16px; position: relative; z-index: 61; }
[data-palette="dark"] .ribbon { background: #000; color: #E0B44F; }

/* ---------- section index (بدل الـ eyebrow pills) ---------- */
.idx { display: flex; align-items: center; gap: 14px; font: 500 12.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 28px; }
.idx b { font-weight: 500; color: var(--muted); }
.idx::after { content: ""; flex: 1; height: 1px; background: var(--line-2); transform-origin: var(--origin, right); }
[dir="ltr"] .idx::after { --origin: left; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 64px); }
.sec-head p { color: var(--ink-2); font-size: 17px; max-width: 420px; }
.sec-head .side { display: grid; gap: 22px; justify-items: start; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; } }
.gold { color: var(--gold); }
.u-mark { position: relative; white-space: nowrap; }
.u-mark svg { position: absolute; inset-inline: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; }
.u-mark path { fill: none; stroke: var(--gold-2); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-in .u-mark path, .u-mark.is-in path { animation: draw 1.2s .6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- buttons & links ---------- */
.btn {
  --bg-b: var(--brand); --fg-b: var(--on-brand);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding-inline: 26px; border-radius: 999px; background: var(--bg-b); color: var(--fg-b);
  font: 600 15.5px/1 var(--f-body); white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: translateY(101%); transition: transform .45s var(--ease-out); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn:hover { color: #0F2147; }
[data-palette="dark"] .btn:hover { color: #0A1430; }
[data-palette="dark"] .btn::before { background: var(--ink); }
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .arr { transform: translateX(4px); }
.btn.line { --bg-b: transparent; --fg-b: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.line .arr { background: var(--bg-2); }
.btn.gold-b { --bg-b: var(--gold); --fg-b: #0F2147; }
.btn.gold-b::before { background: var(--ink); }
.btn.gold-b:hover { color: var(--bg); }
.btn.wa { --bg-b: #1E9E55; --fg-b: #fff; }
.btn.wa::before { background: #157A40; }
.btn.wa:hover { color: #fff; }
.btn.sm { height: 42px; padding-inline: 18px; font-size: 14px; }
.btn.xs { height: 36px; padding-inline: 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease-out); }
[dir="rtl"] .link { background-position: 100% 100%; }
.link:hover { background-size: 100% 1.5px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: 6px; border: 1px solid var(--line-2); font: 500 12px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.tag.ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.tag.gold { border-color: transparent; background: var(--gold); color: #0F2147; }
.tag.glass { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(10, 20, 48, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip { height: 42px; padding-inline: 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: all .25s var(--ease); background: transparent; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font: 500 11.5px/1 var(--f-mono); opacity: .55; }
.chip.special[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #0F2147; }

/* =========================================================
   HEADER — بسيط، ومنيو واحدة بتتشكّل بين العناوين
   ========================================================= */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); view-transition-name: hdr; transition: transform .45s var(--ease-out), background-color .3s, box-shadow .3s; }
.hdr.solid { background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.hide { transform: translateY(-100%); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.mark { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--logo) -10px -3px / 64px 64px no-repeat; mix-blend-mode: var(--logo-blend); }
.brand-t { min-width: 0; line-height: 1.15; }
.brand-t b { display: block; font: 700 15.5px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-t small { display: block; font: 500 9.5px/1.4 var(--f-mono); letter-spacing: .16em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; position: relative; }
.nav > a, .nav > button {
  position: relative; height: 40px; padding-inline: 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s;
}
.nav > a:hover, .nav > button:hover, .nav > button[aria-expanded="true"] { color: var(--ink); }
.nav > a[aria-current="page"], .nav > button.current { color: var(--ink); }
.nav > a[aria-current="page"]::after, .nav > button.current::after { content: ""; position: absolute; bottom: 4px; inset-inline: 14px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav .chev { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.nav > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-pill { position: absolute; z-index: -1; height: 40px; top: 0; left: 0; right: auto; border-radius: 999px; background: var(--bg-2); opacity: 0; transition: transform .35s var(--ease-out), width .35s var(--ease-out), opacity .2s; pointer-events: none; }
[data-palette="dark"] .nav-pill { background: var(--surface); }
.hdr-end { display: flex; align-items: center; gap: 8px; }
.lang { height: 40px; min-width: 40px; padding-inline: 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 13px/1 var(--f-mono); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.lang:hover { border-color: var(--ink); }
.hdr .btn.wa { height: 42px; padding-inline: 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1080px) { .nav { display: none; } .burger { display: inline-block; } .hdr-end { margin-inline-start: auto; } }
@media (max-width: 560px) { .hdr .btn.wa .lbl, .brand-t small { display: none; } .hdr .btn.wa { width: 44px; padding: 0; } .hdr .wrap { gap: 12px; } }

/* morphing mega panel */
.mega { position: absolute; top: calc(var(--hdr) - 8px); inset-inline: 0; height: 0; pointer-events: none; z-index: 59; }
.mega-box {
  position: absolute; top: 0; left: 0; transform-origin: top center; overflow: hidden; visibility: hidden;
  opacity: 0; transform: translateY(-6px) rotateX(-12deg) scale(.98); perspective: 1200px;
  transition: opacity .25s, transform .35s var(--ease-out), left .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out), visibility 0s .35s;
}
.mega.open .mega-box { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
@media (max-width: 1080px) { .mega { display: none; } }
.mega-bg { position: absolute; inset: 8px 0 0 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.mega-caret { position: absolute; top: 2px; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); border-radius: 3px 0 0 0; box-shadow: -1px -1px 0 var(--line); transition: left .45s var(--ease-out); }
.mega-sec { position: absolute; top: 8px; inset-inline-start: 0; padding: 22px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .45s var(--ease-out); transform: translateX(var(--from, 0)); }
.mega-sec.on { opacity: 1; transform: none; pointer-events: auto; }
.mm-unis { width: 640px; }
.mm-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.mm-head b { font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mm-uni { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; transition: background .2s; }
.mm-uni:hover { background: var(--bg-2); }
.mm-uni img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; transition: transform .4s var(--ease-out); }
.mm-uni:hover img { transform: scale(1.06) rotate(-2deg); }
.mm-uni b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.mm-uni small { color: var(--muted); font-size: 12.5px; }
.mm-foot { display: flex; gap: 18px; padding: 14px 6px 2px; margin-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.mm-road { width: 620px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.mm-list { display: grid; gap: 2px; }
.mm-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; transition: background .2s; }
.mm-item:hover { background: var(--bg-2); }
.mm-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--gold-ink); flex: none; transition: background .25s, color .25s, transform .35s var(--ease-out); }
.mm-item:hover .ic { background: var(--ink); color: var(--bg); transform: rotate(-6deg); }
.mm-item b { display: block; font-weight: 600; font-size: 15px; }
.mm-item small { color: var(--muted); font-size: 13px; line-height: 1.45; display: block; }
.mm-feature { border-radius: 16px; padding: 18px; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; position: relative; overflow: hidden; }
[data-palette="dark"] .mm-feature { background: var(--gold); color: #0A1430; }
.mm-feature b { font: 700 18px/1.3 var(--f-display); color: inherit; }
.mm-feature p { font-size: 13.5px; opacity: .78; }
.mm-feature .mini-map { position: absolute; inset-inline-end: -30px; bottom: -40px; width: 140px; opacity: .12; }
.mm-feature .link { color: var(--gold-2); }
[data-palette="dark"] .mm-feature .link { color: #0A1430; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 58; background: var(--bg); padding: calc(var(--hdr) + 16px) 22px 24px; display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0 at var(--cx, 90%) var(--cy, 38px)); visibility: hidden; transition: clip-path .7s var(--ease-out), visibility 0s .7s; }
.menu-open .mnav { clip-path: circle(150% at var(--cx, 90%) var(--cy, 38px)); visibility: visible; transition: clip-path .8s var(--ease-out); }
.mnav-list { display: grid; }
.mnav-list > * { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 120ms); }
.menu-open .mnav-list > * { opacity: 1; transform: none; }
.mnav a.big, .mnav summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--line); font: 700 26px/1.2 var(--f-display); list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary .i { transition: transform .35s var(--ease-out); }
.mnav details[open] summary .i { transform: rotate(45deg); }
.mnav .sub { display: grid; gap: 2px; padding: 8px 0 14px; }
.mnav .sub a { padding: 10px 12px; border-radius: 12px; font-weight: 500; font-size: 16px; display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.mnav .sub a:active { background: var(--bg-2); }
.mnav-foot { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; }
.mnav-foot .btn { flex: 1; }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero { position: relative; padding-top: 40px; padding-bottom: 40px; min-height: calc(100svh - var(--hdr) - 30px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-2); }
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(32px, 5vw, 74px); line-height: 1.1; margin-top: 26px; font-weight: 700; }
[lang="en"] .hero h1 { font-weight: 600; line-height: 1; }
.hero h1 .ln { display: block; overflow: hidden; padding-block: .16em .34em; margin-block: -.16em -.34em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 110ms + 100ms); }
.hero.is-in h1 .ln > span { transform: none; }
.hero .lead { font-size: 18.5px; color: var(--ink-2); max-width: 520px; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.live-check {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); font-size: 14px; max-width: 100%;
}
[dir="rtl"] .live-check { padding: 10px 10px 10px 14px; }
.live-check .lc-k { font: 500 11px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.live-check .lc-url { font: 500 14px/1 var(--f-mono); direction: ltr; color: var(--ink); min-width: 0; overflow: hidden; white-space: nowrap; }
.live-check .lc-url .caret { display: inline-block; width: 1.5px; height: 1em; background: var(--gold); vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
.live-check .lc-ok { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-inline: 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 12.5px; opacity: 0; transform: scale(.8); transition: all .3s var(--ease-out); white-space: nowrap; }
.live-check .lc-ok.on { opacity: 1; transform: none; }
.live-check .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; color: var(--gold-ink); flex: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-map { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
}

/* map */
.hero-map { position: relative; }
.map-svg { width: 100%; height: auto; overflow: visible; display: block; }
.map-svg .land { fill: var(--map); }
.map-svg .grid line { stroke: var(--map-line); stroke-width: 1; }
.map-svg .route-base { fill: none; stroke: var(--line-2); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; }
.map-svg .route { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.map-svg .city { fill: var(--ink); }
.map-svg .city-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .35; }
.map-svg .lbl { font: 700 44px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 10px; stroke-linejoin: round; }
.map-svg .lbl-s { font: 500 32px var(--f-mono); fill: var(--muted); paint-order: stroke; stroke: var(--bg); stroke-width: 8px; stroke-linejoin: round; }
.map-svg .plane { fill: var(--gold); }
.pin { cursor: pointer; }
.pin .pulse { fill: var(--gold); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease-out) infinite; }
.pin .core { fill: var(--gold); stroke: var(--bg); stroke-width: 5; transition: r .3s var(--ease-out); }
.pin:hover .core, .pin.hot .core { r: 24; }
[data-palette="dark"] .map-svg .land { fill: #1A2C57; }
[data-palette="dark"] .pin .core { stroke: #1A2C57; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
.map-tip {
  position: absolute; z-index: 5; width: 250px; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.94);
  transition: opacity .2s, transform .3s var(--ease-out); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden;
}
.map-tip.on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); pointer-events: auto; }
.map-tip .tip-uni { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; }
.map-tip .tip-uni:hover { background: var(--bg-2); }
.map-tip img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.map-tip b { display: block; font-size: 13.5px; line-height: 1.3; }
.map-tip small { color: var(--muted); font-size: 12px; }
.map-tip .tip-h { padding: 10px 14px 6px; font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.map-tip .tip-list { padding: 4px 6px 6px; }
.map-hint { position: absolute; bottom: 4%; inset-inline-end: 6%; font: 500 12px/1 var(--f-mono); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.map-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1.6s infinite; }

/* ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--bg); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
[dir="rtl"] .ticker-track { animation-name: marquee-rtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; padding-inline: 26px; font: 500 15px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; direction: ltr; }
.ticker-item b { color: var(--ink); font-weight: 500; }
.ticker-item .sep { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* =========================================================
   PROMISES — مستندات بأختام
   ========================================================= */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .docs { grid-template-columns: 1fr; max-width: 520px; } }
.doc {
  position: relative; background: var(--surface); border-radius: 6px; padding: 30px 28px 34px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform: rotate(var(--rot, 0deg)); transition: transform .5s var(--ease-out), box-shadow .3s;
}
.doc:nth-child(1) { --rot: -1.2deg; }
.doc:nth-child(2) { --rot: .8deg; margin-top: 34px; }
.doc:nth-child(3) { --rot: -.6deg; }
@media (max-width: 980px) { .doc:nth-child(2) { margin-top: 0; } }
.doc:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.doc::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 26px); opacity: .7; border-radius: 6px 6px 0 0; }
.doc-top { display: flex; justify-content: space-between; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .1em; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.doc h3 { font-size: 30px; margin-top: 26px; }
.doc p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.doc-lines { margin-top: 22px; display: grid; gap: 9px; }
.doc-lines i { display: block; height: 6px; border-radius: 3px; background: var(--bg-2); }
.doc-lines i:nth-child(2) { width: 82%; }
.doc-lines i:nth-child(3) { width: 58%; }
.doc-sign { margin-top: 22px; display: flex; justify-content: space-between; align-items: end; font: 500 11px/1 var(--f-mono); color: var(--muted); }
.doc-sign svg { width: 110px; height: 34px; }
.doc-sign path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.doc.is-in .doc-sign path { animation: draw 1.6s 1s var(--ease-out) forwards; }
.seal { position: absolute; width: 112px; height: 112px; bottom: 46px; inset-inline-end: 22px; color: var(--seal, var(--gold)); opacity: 0; transform: scale(1.8) rotate(-40deg); }
.doc.is-in .seal { animation: stamp .55s calc(var(--d, 0ms) + 500ms) cubic-bezier(.3, 1.6, .5, 1) forwards; }
.doc:nth-child(2) .seal { --seal: var(--ok); }
.doc:nth-child(3) .seal { --seal: var(--brand-2); }
[data-palette="dark"] .doc:nth-child(3) .seal { --seal: #8FB1FF; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal text { font: 600 10.5px var(--f-mono); letter-spacing: .22em; fill: currentColor; }
.seal .center { font: 700 15px var(--f-display); letter-spacing: 0; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-40deg); } 60% { opacity: .95; } 100% { opacity: .9; transform: scale(1) rotate(-14deg); } }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.stat { padding: 34px 26px 6px 0; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
[dir="rtl"] .stat { padding: 34px 0 6px 26px; }
.stat:not(:first-child) { padding-inline-start: 26px; }
.stat b { display: block; font: 400 clamp(48px, 6vw, 84px)/1 var(--f-serif); font-variation-settings: "opsz" 144; letter-spacing: -.03em; color: var(--ink); direction: ltr; text-align: start; }
[dir="rtl"] .stat b { text-align: right; }
.stat b sup { font-size: .45em; color: var(--gold); vertical-align: .9em; margin-inline-start: 2px; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 24px 0 18px !important; padding-inline-start: 0 !important; border-inline-end: 0; border-bottom: 1px solid var(--line); } .stat:nth-child(odd) { padding-inline-end: 14px !important; } }

/* =========================================================
   UNIVERSITY CARDS
   ========================================================= */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; margin-inline: -32px; padding-inline: 32px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging a { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { margin-inline: -18px; padding-inline: 18px; grid-auto-columns: 82%; } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.rail-nav button:hover { background: var(--ink); color: var(--bg); }

.ucard { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s, transform .5s var(--ease-out); isolation: isolate; }
.ucard:hover { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); transform: translateY(-4px); }
.ucard .media { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.ucard .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out), filter .6s; }
.ucard:hover .media img { transform: scale(1.12); }
.ucard .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 38, .05) 30%, rgba(8, 16, 38, .82) 100%); }
.ucard .tags { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.ucard .num-tag { position: absolute; top: 14px; inset-inline-end: 16px; z-index: 2; font: 400 15px/1 var(--f-serif); color: rgba(255,255,255,.75); }
.ucard .over { position: absolute; inset-inline: 20px; bottom: 20px; z-index: 2; color: #fff; }
.ucard .over h3 { color: #fff; font-size: 26px; }
.ucard .over small { display: block; margin-top: 6px; opacity: .8; font-size: 13.5px; }
.ucard .go { position: absolute; z-index: 2; bottom: 20px; inset-inline-end: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #0F2147; display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease-out); }
.ucard:hover .go { transform: scale(1) rotate(0); }
.ucard .info { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ucard .info div { padding: 14px 16px; border-inline-end: 1px solid var(--line); }
.ucard .info div:last-child { border-inline-end: 0; }
.ucard .info b { display: block; font: 400 24px/1 var(--f-serif); direction: ltr; text-align: start; }
[dir="rtl"] .ucard .info b { text-align: right; }
.ucard .info span { font-size: 12px; color: var(--muted); }
.ucard .cmp { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.cmp-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--ink-2); position: relative; z-index: 3; }
.cmp-check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin: 0; transition: all .2s; cursor: pointer; }
.cmp-check input:checked { background: var(--ink); border-color: var(--ink); }
.cmp-check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--bg); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1020px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .grid3 { grid-template-columns: 1fr; } }
.grid3 > *, .rail > * { min-width: 0; }

/* =========================================================
   STORIES
   ========================================================= */
.story { display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .35s, transform .5s var(--ease-out); }
.story:hover { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); transform: translateY(-4px); }
.story .vid { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.story .vid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.story:hover .vid img { transform: scale(1.06); }
.story .vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 16, 38, .7)); }
.story .play { position: absolute; z-index: 2; inset-inline-start: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; color: #fff; font: 500 13px/1 var(--f-mono); }
.story .play span:first-child { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #0F2147; display: grid; place-items: center; transition: transform .35s var(--ease-out); }
.story .vid:hover .play span:first-child { transform: scale(1.12); }
.story .ptag { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px; }
.story .body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.story blockquote { margin: 0; font: 600 19px/1.5 var(--f-display); position: relative; padding-top: 22px; }
[lang="en"] .story blockquote { font-weight: 500; font-style: italic; }
.story blockquote::before { content: "“"; position: absolute; top: -18px; inset-inline-start: -4px; font: 400 72px/1 var(--f-serif); color: var(--gold); }
.story .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.mono-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--f-display); color: #fff; flex: none; }
.story .who b { display: block; font-size: 15px; }
.story .who small { color: var(--muted); font-size: 13px; }
.story .who .tag { margin-inline-start: auto; }
.story .pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.story .pts li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.story .pts li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; background: var(--gold); transform: rotate(45deg); flex: none; }
.story .acts { display: grid; gap: 8px; }
.story .acts small { text-align: center; color: var(--muted); font-size: 12px; }

/* filter bar (stories) */
.fbar { position: sticky; top: calc(var(--hdr) + 10px); z-index: 20; background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 16px 18px; display: grid; gap: 12px; margin-bottom: 36px; transition: top .45s var(--ease-out); }
.hdr-hidden .fbar { top: 10px; }
.frow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.frow .fl { font: 500 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 92px; }
.frow .fc { display: flex; gap: 6px; flex-wrap: wrap; }
.frow.sp { border-top: 1px dashed var(--line-2); padding-top: 12px; }
.fmeta { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.fmeta button { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .fbar { position: static; } .frow .fl { min-width: 100%; } }

/* =========================================================
   BOARDING PASS (journey teaser)
   ========================================================= */
.bpass { display: grid; grid-template-columns: 1fr 240px; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.bpass::before, .bpass::after { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); inset-inline-end: 222px; }
.bpass::before { top: -18px; }
.bpass::after { bottom: -18px; }
.bp-main { padding: 34px 38px; border-inline-end: 2px dashed var(--line-2); }
.bp-top { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.bp-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-top: 30px; direction: ltr; }
.bp-route .code { font: 400 clamp(54px, 7vw, 88px)/1 var(--f-serif); letter-spacing: -.03em; color: var(--ink); }
.bp-route .city { display: block; font: 500 13px/1 var(--f-body); color: var(--muted); margin-top: 8px; }
.bp-route .line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.bp-route .line .plane { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); color: var(--gold); transition: left 2s var(--ease-out); }
.bpass.is-in .bp-route .line .plane { left: 100%; }
.bp-route .line .prog { position: absolute; inset-block: 0; left: 0; width: 0; background: var(--gold); transition: width 2s var(--ease-out); }
.bpass.is-in .bp-route .line .prog { width: 100%; }
.bp-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.bp-fields small { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.bp-fields b { display: block; margin-top: 8px; font-size: 17px; }
.bp-stops { display: flex; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.bp-stops span { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); display: inline-flex; gap: 6px; }
.bp-stops span b { font-family: var(--f-mono); font-weight: 500; color: var(--gold-ink); }
.bp-stub { padding: 30px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.bp-stub .bar { height: 64px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px); opacity: .85; border-radius: 2px; }
@media (max-width: 860px) {
  .bpass { grid-template-columns: 1fr; }
  .bpass::before, .bpass::after { display: none; }
  .bp-main { border-inline-end: 0; border-bottom: 2px dashed var(--line-2); padding: 26px 22px; }
  .bp-fields { grid-template-columns: 1fr 1fr; }
  .bp-stub { padding: 22px; }
}

/* =========================================================
   VERIFY (scanner)
   ========================================================= */
.dark-band { background: var(--brand); color: var(--on-brand); border-radius: 36px; margin-inline: 16px; overflow: hidden; position: relative; }
[data-palette="dark"] .dark-band { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.dark-band h2, .dark-band h3 { color: inherit; }
.dark-band .idx { color: var(--gold-2); }
.dark-band .idx::after { background: rgba(245, 241, 232, .2); }
.dark-band .idx b { color: var(--on-brand-2); }
[data-palette="dark"] .dark-band .idx b { color: var(--muted); }
.dark-band .sec-head p { color: var(--on-brand-2); }
[data-palette="dark"] .dark-band .sec-head p { color: var(--ink-2); }
@media (max-width: 760px) { .dark-band { margin-inline: 8px; border-radius: 26px; } }
.scanner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 26px; align-items: stretch; }
@media (max-width: 900px) { .scanner { grid-template-columns: 1fr; } }
.scan-box { border-radius: 24px; padding: 26px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.on-light .scan-box { background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
[data-palette="dark"] .scan-box { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.scan-form { display: flex; gap: 10px; position: relative; }
.scan-field { position: relative; flex: 1; min-width: 0; }
.scan-field input {
  width: 100%; height: 62px; border-radius: 16px; border: 0; padding-inline: 20px; font: 500 17px var(--f-mono); direction: ltr; text-align: left;
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s;
}
.scan-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.scan-field .beam { position: absolute; inset-block: 6px; width: 70px; left: 0; border-radius: 12px; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--gold) 45%, transparent), transparent); }
.scanning .scan-field .beam { opacity: 1; animation: beam .9s var(--ease) 1; }
@keyframes beam { from { left: 0; } to { left: calc(100% - 70px); } }
.scan-form .btn { height: 62px; }
.scan-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; opacity: .8; }
.scan-ex button { font: 500 12.5px/1 var(--f-mono); padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); direction: ltr; transition: background .2s; }
.on-light .scan-ex button, [data-palette="dark"] .scan-ex button { background: var(--bg-2); }
.scan-ex button:hover { background: rgba(255, 255, 255, .16); }
.verdict { border-radius: 24px; padding: 26px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; min-height: 250px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.on-light .verdict { background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
[data-palette="dark"] .verdict { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.verdict .v-idle { font: 500 13px/1.6 var(--f-mono); opacity: .6; }
.verdict .vseal { width: 132px; height: 132px; color: var(--vc); animation: stamp2 .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.verdict .vseal svg { width: 100%; height: 100%; overflow: visible; }
.verdict .vseal text { font: 600 10px var(--f-mono); letter-spacing: .2em; fill: currentColor; }
.verdict b { font: 700 20px/1.3 var(--f-display); }
.verdict p { font-size: 14px; opacity: .8; max-width: 320px; }
.verdict code { font: 500 13px/1 var(--f-mono); opacity: .6; direction: ltr; }
.verdict.ok { --vc: #57C98A; }
.verdict.bad { --vc: #FF8A80; }
.verdict.unk { --vc: var(--gold-2); }
.on-light .verdict.ok { --vc: var(--ok); }
.on-light .verdict.bad { --vc: var(--bad); }
@keyframes stamp2 { 0% { opacity: 0; transform: scale(1.9) rotate(-30deg); } 100% { opacity: 1; transform: scale(1) rotate(-10deg); } }

/* =========================================================
   MATCHER CTA (home) + FAQ + END
   ========================================================= */
.majors { display: flex; flex-wrap: wrap; gap: 12px; }
.major {
  display: inline-flex; align-items: center; gap: 14px; height: 68px; padding-inline: 14px 24px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 18px/1 var(--f-display); transition: all .35s var(--ease-out); background: var(--surface);
}
[dir="rtl"] .major { padding-inline: 14px 24px; }
.major .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--gold-ink); transition: all .35s var(--ease-out); }
.major:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.major:hover .ic { background: var(--gold); color: #0F2147; transform: rotate(-12deg); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }
.faq-side { position: sticky; top: calc(var(--hdr) + 30px); display: grid; gap: 22px; justify-items: start; }
.faq-side h2 { font-size: clamp(34px, 4.4vw, 56px); }
.faq-side p { color: var(--ink-2); }
.qa { border-top: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; font: 600 19px/1.45 var(--f-display); }
[lang="en"] .qa summary { font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .45s var(--ease-out), background .3s, color .3s; }
.qa[open] summary .pm { transform: rotate(135deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qa .ans { overflow: hidden; }
.qa .ans p { padding-bottom: 24px; color: var(--ink-2); max-width: 640px; }

.end { text-align: center; padding-block: 150px 120px; position: relative; overflow: hidden; }
.end h2 { font-size: clamp(44px, 8.4vw, 128px); line-height: 1.08; font-weight: 700; }
[lang="en"] .end h2 { font-weight: 600; }
.end p { margin-top: 24px; color: var(--ink-2); font-size: 18px; }
.end .btn { margin-top: 36px; }
.end .orbit { position: absolute; inset: 50% auto auto 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; opacity: .5; }
.end .orbit circle { fill: none; stroke: var(--line); }
.end .orbit .sat { fill: var(--gold); }
.spin { transform-origin: center; transform-box: view-box; animation: spin 40s linear infinite; }
.spin.r { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   POSTS
   ========================================================= */
.posts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.posts .side { display: grid; gap: 26px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
.post { display: grid; gap: 16px; align-content: start; group: post; }
.post .pimg { overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; }
.post.big .pimg { aspect-ratio: 16 / 11; }
.post .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post:hover .pimg img { transform: scale(1.06); }
.post .meta { display: flex; gap: 12px; align-items: center; font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.post .meta .cat { color: var(--c); display: inline-flex; align-items: center; gap: 6px; }
.post .meta .cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.post h3 { font-size: 22px; line-height: 1.35; transition: color .2s; }
.post.big h3 { font-size: clamp(26px, 2.6vw, 34px); }
.post:hover h3 { color: var(--gold-ink); }
.post p { color: var(--ink-2); font-size: 15px; }
.post.row { grid-template-columns: 180px 1fr; align-items: center; }
.post.row .pimg { aspect-ratio: 1; }
@media (max-width: 520px) { .post.row { grid-template-columns: 120px 1fr; } .post.row h3 { font-size: 17px; } .post.row p { display: none; } }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { background: var(--brand); color: var(--on-brand); padding-top: 90px; overflow: hidden; position: relative; margin-top: 40px; }
[data-palette="dark"] .ftr { background: #050B1C; color: var(--ink); }
.ftr h4 { font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr-top { grid-template-columns: 1fr; } }
.ftr a.fl { display: block; padding: 6px 0; opacity: .78; transition: opacity .2s, transform .3s var(--ease-out); }
.ftr a.fl:hover { opacity: 1; transform: translateX(-4px); }
[dir="ltr"] .ftr a.fl:hover { transform: translateX(4px); }
.ftr .flogo { width: 92px; height: 92px; border-radius: 22px; background: url("../assets/logo-navy.jpeg") center / cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
[data-palette="green"] .ftr .flogo { background-image: url("../assets/logo-white.jpeg"); }
.ftr .fabout { margin-top: 18px; opacity: .75; font-size: 14.5px; max-width: 340px; }
.ftr-word { margin-top: 70px; font: 400 clamp(64px, 15vw, 230px)/.82 var(--f-serif); letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(245, 241, 232, .22); direction: ltr; text-align: center; user-select: none; }
[data-palette="dark"] .ftr-word { -webkit-text-stroke-color: rgba(224, 180, 79, .25); }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(245, 241, 232, .14); font-size: 13px; opacity: .7; }

/* =========================================================
   INNER PAGES
   ========================================================= */
.phero { padding-top: 70px; padding-bottom: 60px; }
.crumbs { display: flex; gap: 10px; align-items: center; font: 500 12.5px/1 var(--f-mono); color: var(--muted); margin-bottom: 30px; }
.crumbs a:hover { color: var(--ink); }
.phero h1 { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.1; font-weight: 700; }
[lang="en"] .phero h1 { font-weight: 600; }
.phero .lead { margin-top: 24px; font-size: 18.5px; color: var(--ink-2); max-width: 620px; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 50px; align-items: center; }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.toolbar .count { font: 500 13px/1 var(--f-mono); color: var(--muted); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.seg button { height: 38px; padding-inline: 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .25s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.select { height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; padding-inline: 16px; font: inherit; font-size: 14px; color: var(--ink); }

/* university detail */
.uhero { position: relative; margin-inline: 16px; border-radius: 36px; overflow: hidden; min-height: min(78svh, 720px); display: flex; align-items: flex-end; color: #fff; }
.uhero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 38, .2) 0%, rgba(8, 16, 38, .15) 40%, rgba(8, 16, 38, .88) 100%); }
.uhero .wrap { position: relative; z-index: 2; padding-bottom: 48px; }
.uhero .crumbs { color: rgba(255,255,255,.75); }
.uhero h1 { color: #fff; font-size: clamp(42px, 7vw, 100px); }
.uhero .sub { margin-top: 14px; font-size: 18px; opacity: .85; }
.uhero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.uhero .photo-note { position: absolute; z-index: 2; top: 22px; inset-inline-end: 22px; }
@media (max-width: 760px) { .uhero { margin-inline: 8px; border-radius: 26px; min-height: 64svh; } }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.facts div { padding: 30px 22px; border-inline-end: 1px solid var(--line); }
.facts div:last-child { border-inline-end: 0; }
.facts b { display: block; font: 400 clamp(32px, 3.6vw, 50px)/1 var(--f-serif); letter-spacing: -.02em; direction: ltr; text-align: start; }
[dir="rtl"] .facts b { text-align: right; }
.facts span { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts div { border-bottom: 1px solid var(--line); } }
.ulay { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; align-items: start; }
@media (max-width: 980px) { .ulay { grid-template-columns: 1fr; } }
.ublock + .ublock { margin-top: 64px; }
.ublock h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 22px; }
.why { display: grid; gap: 0; }
.why div { display: grid; grid-template-columns: 56px 1fr; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font: 600 20px/1.4 var(--f-display); }
.why div:first-child { border-top: 1px solid var(--line); }
.why span { font: 400 26px/1 var(--f-serif); color: var(--gold); }
.domain { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.domain .ok-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.domain .dtx { flex: 1; min-width: 0; }
.domain b { display: block; font-size: 14px; }
.domain code { display: block; font: 500 15px/1.4 var(--f-mono); direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .domain code { text-align: right; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); flex: none; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.gal { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 520px; }
.gal button { position: relative; overflow: hidden; border-radius: 18px; }
.gal button:first-child { grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gal button:hover img { transform: scale(1.06); }
.gal .gl { position: absolute; bottom: 12px; inset-inline-start: 12px; }
.gal3 { grid-template-columns: 1.4fr 1fr 1fr; }
.gal3 button:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 760px) { .gal { height: 420px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr 1fr; } .gal button:first-child { grid-column: span 2; grid-row: auto; } .gal3 button:nth-child(4) { grid-column: auto; } }
.aside-card { position: sticky; top: calc(var(--hdr) + 24px); border-radius: 26px; padding: 26px; background: var(--brand); color: var(--on-brand); display: grid; gap: 16px; transition: top .45s var(--ease-out); }
[data-palette="dark"] .aside-card { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.hdr-hidden .aside-card { top: 24px; }
.aside-card h3 { color: inherit; font-size: 24px; }
.aside-card p { opacity: .75; font-size: 14.5px; }
.aside-card .cmp-check { color: inherit; }
.aside-card .cmp-check input { border-color: rgba(255,255,255,.4); }
.aside-card .sep { height: 1px; background: rgba(255,255,255,.14); }
[data-palette="dark"] .aside-card .sep { background: var(--line); }

/* coupons */
.coupon { display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; transition: box-shadow .35s, transform .5s var(--ease-out);
  -webkit-mask: radial-gradient(circle 14px at var(--cut) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at var(--cut) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at var(--cut) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at var(--cut) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.coupon { --cut: calc(100% - 150px); }
[dir="ltr"] .coupon { --cut: 150px; }
.coupon:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.coupon .stub { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 18px; border-inline-end: 2px dashed rgba(255,255,255,.5); }
.coupon .stub img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.coupon .stub::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 16, 38, .3), rgba(8, 16, 38, .85)); }
.coupon .stub { isolation: isolate; }
.coupon .stub b { font: 700 19px/1.2 var(--f-display); color: #fff; }
.coupon .stub small { font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; opacity: .85; }
.coupon .cbody { padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
.coupon h3 { font-size: 22px; }
.coupon .kind { color: var(--ink-2); font-size: 14.5px; }
.coupon details summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.coupon details summary::-webkit-details-marker { display: none; }
.coupon details summary .i { transition: transform .3s var(--ease-out); }
.coupon details[open] summary .i { transform: rotate(180deg); }
.coupon details ul { margin: 10px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.coupon .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon .warn { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; }
@media (max-width: 560px) { .coupon { grid-template-columns: 1fr; -webkit-mask: none; mask: none; } .coupon .stub { min-height: 130px; border-inline-end: 0; border-bottom: 2px dashed rgba(255,255,255,.5); } }

/* compare */
.ctable-wrap { overflow-x: auto; border-radius: 24px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
table.ct { width: 100%; border-collapse: collapse; min-width: 900px; }
table.ct th, table.ct td { padding: 18px 20px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
table.ct thead th { font: 500 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
table.ct thead th button { display: inline-flex; gap: 4px; align-items: center; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
table.ct thead th button[aria-sort] { color: var(--ink); }
table.ct tbody tr { transition: background .2s; }
table.ct tbody tr:hover { background: color-mix(in oklab, var(--bg-2) 60%, transparent); }
table.ct tbody tr.picked { background: color-mix(in oklab, var(--gold) 12%, transparent); }
table.ct tbody tr:last-child td { border-bottom: 0; }
.tu { display: flex; align-items: center; gap: 14px; }
.tu img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.tu b { display: block; font-size: 15.5px; }
.tu small { color: var(--muted); font-size: 12.5px; }
.nbar { display: flex; align-items: center; gap: 10px; }
.nbar b { font: 400 22px/1 var(--f-serif); min-width: 44px; }
.nbar i { flex: 1; max-width: 120px; height: 4px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden; }
.nbar i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--gold); border-radius: inherit; }
.mono-link { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--f-mono); direction: ltr; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); transition: background .2s, color .2s; }
.mono-link:hover { background: var(--ink); color: var(--bg); }
.board { margin-top: 40px; display: grid; gap: 18px; }
.board-empty { padding: 50px 20px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: 24px; color: var(--muted); }
.board-grid { display: grid; grid-template-columns: 170px repeat(var(--n), minmax(0, 1fr)); border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.board-grid > div { padding: 16px 18px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); font-size: 14.5px; animation: rise .5s var(--ease-out) both; }
.board-grid > .rl { border-inline-start: 0; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.board-grid > .hd { padding: 0; }
.board-grid > .hd img { width: 100%; height: 120px; object-fit: cover; }
.board-grid > .hd b { display: block; padding: 12px 16px; font: 700 16px/1.3 var(--f-display); }
.board-grid .best { background: color-mix(in oklab, var(--ok) 10%, transparent); color: var(--ok); font-weight: 600; }
.board-grid .best::after { content: " ★"; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 700px) { .board-grid { grid-template-columns: 100px repeat(var(--n), minmax(0, 1fr)); } .board-grid > div { padding: 12px 10px; font-size: 13px; } }

/* tray */
.tray { position: fixed; z-index: 55; bottom: 18px; left: 50%; width: min(720px, calc(100vw - 24px)); transform: translate(-50%, 150%); visibility: hidden;
  background: var(--ink); color: var(--bg); border-radius: 20px; padding: 10px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease-out), visibility 0s .5s; }
[data-palette="dark"] .tray { background: var(--gold); color: #0A1430; }
.tray.show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }
.tray .ti { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; padding-inline-start: 6px; }
.tray .tc { display: inline-flex; align-items: center; gap: 8px; padding: 5px 5px 5px 5px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tray .tc img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.tray .tc button { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.tray .btn { --bg-b: var(--gold); --fg-b: #0F2147; height: 46px; }
[data-palette="dark"] .tray .btn { --bg-b: #0A1430; --fg-b: #E0B44F; }

/* journey page */
.jline { position: relative; display: grid; gap: 0; }
.jline .rail-l { position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 2px; background: var(--line-2); transform: translateX(50%); }
[dir="ltr"] .jline .rail-l { transform: translateX(-50%); }
.jline .rail-l i { position: absolute; top: 0; inset-inline: 0; height: var(--p, 0%); background: var(--gold); }
.jline .jplane { position: absolute; inset-inline-start: 50%; top: var(--p, 0%); width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: var(--gold); color: #0F2147; display: grid; place-items: center; transform: translateX(50%); box-shadow: 0 0 0 8px var(--bg); z-index: 3; }
[dir="ltr"] .jline .jplane { transform: translateX(-50%); }
.jline .jplane svg { transform: rotate(90deg); }
[dir="rtl"] .jline .jplane svg { transform: rotate(90deg) scaleY(-1); }
.jstep { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 50px; position: relative; }
.jstep .jcard { grid-column: 1; }
.jstep:nth-child(odd of .jstep) .jcard { grid-column: 2; }
.jstep .jdot { position: absolute; top: 74px; inset-inline-start: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transform: translateX(50%); z-index: 2; transition: all .4s var(--ease-out); }
[dir="ltr"] .jstep .jdot { transform: translateX(-50%); }
.jstep.lit .jdot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px color-mix(in oklab, var(--gold) 25%, transparent); }
.jcard { background: var(--surface); border-radius: 24px; padding: 30px; box-shadow: 0 0 0 1px var(--line); opacity: .45; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease-out), box-shadow .5s; }
.jstep.lit .jcard { opacity: 1; transform: none; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.jcard .jn { display: flex; justify-content: space-between; align-items: baseline; }
.jcard .jn b { font: 400 64px/1 var(--f-serif); color: var(--c); letter-spacing: -.03em; }
.jcard .jn small { font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.jcard h3 { font-size: 28px; margin-top: 14px; }
.jcard > p { color: var(--ink-2); margin-top: 10px; }
.jwho { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.jwho div { padding: 12px; border-radius: 14px; background: var(--bg-2); font-size: 13.5px; }
.jwho small { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.jneed { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.jneed li { display: flex; gap: 10px; font-size: 14.5px; }
.jneed li .i { color: var(--ok); margin-top: 4px; }
.jwarn { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--gold-ink); font-size: 14px; font-weight: 600; display: flex; gap: 8px; }
@media (max-width: 860px) {
  .jline .rail-l, .jline .jplane { inset-inline-start: 18px; }
  .jstep { grid-template-columns: 1fr; gap: 0; padding-inline-start: 50px; padding-block: 24px; }
  .jstep .jcard, .jstep:nth-child(odd of .jstep) .jcard { grid-column: 1; }
  .jstep .jdot { inset-inline-start: 18px; top: 50px; }
  .jwho { grid-template-columns: 1fr; }
}

/* checklist */
.cl-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: start; }
@media (max-width: 700px) { .cl-wrap { grid-template-columns: 1fr; } }
.ring { position: relative; width: 170px; height: 170px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .tr { stroke: var(--line-2); }
.ring .vl { stroke: var(--ok); stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease-out); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 400 44px/1 var(--f-serif); }
.ring span small { display: block; font: 500 11px/1 var(--f-mono); color: var(--muted); margin-top: 4px; letter-spacing: .08em; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clist label { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .25s, background .25s; font-size: 15px; }
.clist label:hover { box-shadow: 0 0 0 1px var(--line-2); }
.clist input { appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); margin: 0; flex: none; display: grid; place-items: center; transition: all .25s var(--ease-out); cursor: pointer; }
.clist input:checked { background: var(--ok); border-color: var(--ok); transform: scale(1.08); }
.clist input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.clist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ok); }
.cl-done { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); font-weight: 600; display: none; }
.cl-done.show { display: block; animation: rise .5s var(--ease-out); }
.steps60 { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .steps60 { grid-template-columns: 1fr 1fr; } }
.steps60 div { counter-increment: s; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.steps60 div::before { content: "0" counter(s); display: block; font: 400 36px/1 var(--f-serif); color: var(--gold); margin-bottom: 14px; }
.domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 700px) { .domains { grid-template-columns: 1fr; } }

/* matcher page */
.mx { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 30px; align-items: start; }
@media (max-width: 960px) { .mx { grid-template-columns: 1fr; } }
.mx-main { background: var(--surface); border-radius: 30px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 36px; min-height: 560px; display: flex; flex-direction: column; }
@media (max-width: 600px) { .mx-main { padding: 24px 20px; min-height: 0; } }
.mx-prog { display: flex; gap: 6px; }
.mx-prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden; }
.mx-prog i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--s, 0)); transform-origin: var(--o, right); transition: transform .6s var(--ease-out); }
[dir="ltr"] .mx-prog i::after { --o: left; }
.mx-step { font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; margin-top: 26px; text-transform: uppercase; }
.mx-q { font-size: clamp(30px, 3.6vw, 46px); margin-top: 12px; }
.mx-h { color: var(--ink-2); margin-top: 8px; }
.mx-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
@media (max-width: 560px) { .mx-opts { grid-template-columns: 1fr; } }
.mx-opt { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; text-align: start; box-shadow: 0 0 0 1.5px var(--line); transition: all .3s var(--ease-out); animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
.mx-opt:hover { box-shadow: 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.mx-opt .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); color: var(--gold-ink); flex: none; transition: all .3s var(--ease-out); }
.mx-opt b { display: block; font: 600 17px/1.3 var(--f-display); }
.mx-opt small { color: var(--muted); font-size: 13px; }
.mx-opt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold); background: color-mix(in oklab, var(--gold) 8%, transparent); }
.mx-opt[aria-pressed="true"] .ic { background: var(--gold); color: #0F2147; transform: rotate(-8deg); }
.mx-nav { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.mx-side { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 14px; transition: top .45s var(--ease-out); }
.hdr-hidden .mx-side { top: 24px; }
.mx-side h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.mx-side h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
.live { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.live img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.live .lt { flex: 1; min-width: 0; }
.live b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live .m { height: 4px; border-radius: 4px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.live .m i { display: block; height: 100%; border-radius: inherit; background: var(--gold); width: 0; transition: width .7s var(--ease-out); }
.live .pc { font: 400 22px/1 var(--f-serif); min-width: 54px; text-align: end; }
.live.top { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.res { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i) * 120ms); }
.res img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; flex: none; }
.res.best { box-shadow: 0 0 0 2px var(--gold); background: color-mix(in oklab, var(--gold) 7%, transparent); }
.res .rt { flex: 1; min-width: 0; }
.res .rt b { font: 700 19px/1.3 var(--f-display); }
.res .why2 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.res .sc { text-align: center; }
.res .sc b { display: block; font: 400 38px/1 var(--f-serif); color: var(--gold-ink); }
.res .sc small { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .res { flex-wrap: wrap; } .res img { width: 64px; height: 64px; } }

/* article */
.read-prog { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; background: transparent; }
.read-prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--gold); }
.art-hero img { width: 100%; height: min(62svh, 560px); object-fit: cover; border-radius: 30px; }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 70px; align-items: start; }
@media (max-width: 960px) { .art { grid-template-columns: 1fr; } .art .toc { display: none; } }
.art-body { max-width: 720px; font-size: 18px; line-height: 1.95; }
.art-body h2 { font-size: 30px; margin: 46px 0 14px; scroll-margin-top: 100px; }
.art-body p { color: var(--ink-2); margin: 0 0 18px; }
.art-body ul { padding-inline-start: 22px; color: var(--ink-2); display: grid; gap: 8px; margin: 0 0 18px; }
.art-body blockquote { margin: 34px 0; padding: 6px 26px; border-inline-start: 3px solid var(--gold); font: 600 24px/1.55 var(--f-display); color: var(--ink); }
.toc { position: sticky; top: calc(var(--hdr) + 30px); display: grid; gap: 4px; }
.toc b { font: 500 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { padding: 8px 14px; border-inline-start: 2px solid var(--line); color: var(--muted); font-size: 14.5px; transition: all .25s; }
.toc a.on { border-color: var(--gold); color: var(--ink); font-weight: 600; }

/* dialog / lightbox */
dialog.dlg { border: 0; padding: 0; background: transparent; max-width: min(1000px, calc(100vw - 24px)); width: 100%; color: var(--ink); overflow: visible; }
dialog.dlg::backdrop { background: rgba(5, 10, 26, .82); backdrop-filter: blur(6px); }
dialog.dlg[open] { animation: rise .45s var(--ease-out); }
.dlg-x { position: absolute; top: -52px; inset-inline-end: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.dlg-in { border-radius: 26px; overflow: hidden; background: var(--surface); }
.lb img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.vstage { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; }
.vstage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.vstage div { position: relative; max-width: 460px; padding: 20px; }
.vstage b { display: block; font: 700 22px/1.3 var(--f-display); margin-top: 16px; }
.vstage p { opacity: .8; margin-top: 8px; font-size: 14.5px; }

/* toast + review */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 100px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; transition: all .35s var(--ease-out); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.review { position: fixed; z-index: 80; bottom: 18px; inset-inline-start: 18px; display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 999px; background: #111827; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.review button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid transparent; }
.review button[aria-pressed="true"] { border-color: #F2B53A; }
.review .sw { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--a) 0 50%, var(--b) 0); box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
@media (max-width: 760px) { .review { bottom: 12px; inset-inline-start: 12px; padding: 4px; gap: 2px; opacity: .85; } .review button { width: 28px; height: 28px; } }

/* =========================================================
   MOTION — reveal system
   ========================================================= */
[data-r] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-r="fade"] { transform: none; }
[data-r="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-r="clip"] img { transform: scale(1.25); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-r="scale"] { transform: scale(.94); }
[data-r].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--r)); }
[data-r="clip"].is-in img { transform: scale(1); }
.idx[data-r]::after { transform: scaleX(0); transition: transform 1.2s .2s var(--ease-out); }
.idx[data-r].is-in::after { transform: scaleX(1); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .04em .36em; margin: -.2em -.04em -.36em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 45ms + var(--d, 0ms)); }
.split.is-in .w > span { transform: none; }
.flip-move { transition: transform .6s var(--ease-out), opacity .4s; }

/* page transitions (MPA) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  [data-r], .split .w > span, .hero h1 .ln > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .ticker-track { animation: none; }
}

/* route draw + smooth scroll lib */
.map-svg .route { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out) .3s; }
.hero-map.is-in .map-svg .route { stroke-dashoffset: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
main, .ftr { overflow-x: clip; }
.domains > *, .ulay > *, .mx > *, .art > *, .faq-wrap > *, .phero-grid > *, .scanner > *, .posts > *, .posts .side > * { min-width: 0; }

/* review screenshots */
.shot .hero { min-height: 0; }
.shot .review, .shot .ribbon { display: none; }
.shot .hdr { position: relative; }

/* Arabic never gets letter-spacing (بيكسر وصل الحروف) */
[lang="ar"] :is(.idx, .hero-kicker, .lc-k, .map-hint, .frow .fl, .mx-step, .toc b, .ftr h4, .jcard .jn small, .jwho small, .bp-fields small, .bp-top, .doc-top, .crumbs, .tag, .count, .mm-head b, .tip-h, .mx-side h4, .post .meta, .stat span, .story .play, .coupon .stub small, .scan-ex, .verdict .v-idle, .ring span small) { letter-spacing: 0; }
[lang="ar"] .scan-field input::placeholder { font-family: var(--f-body); }
[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; }

.verdict .v-wait { width: 120px; height: 120px; color: var(--muted); opacity: .5; animation: spin 24s linear infinite; }
.verdict .v-wait svg { width: 100%; height: 100%; }
.verdict .v-wait text { font: 500 9.5px var(--f-mono); letter-spacing: .2em; fill: currentColor; }
.dark-band .verdict .v-wait { color: rgba(245,241,232,.6); }

/* Cairo: line-height مريح للعناوين العربي، وأوزان أهدى */
[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.3; }
[lang="ar"] .hero h1, [lang="ar"] .phero h1, [lang="ar"] .uhero h1 { line-height: 1.18; }
[lang="ar"] .sec-head h2, [lang="ar"] .faq-side h2 { font-weight: 700; }
strong, b { font-weight: 600; }

