/* =============================================================
   BioHubs — الصفحة الرئيسية (تصميم خريطة المترو)
   الخطوط: Reem Kufi للعناوين · Readex Pro للنص · JetBrains Mono للروابط والأرقام
   ============================================================= */

:root {
  --bg: #06211A; --bg-2: #0A2B22; --deep: #031510; --line: #1D5443;
  --text: #E8F6EF; --muted: #9BBFAF;
  --green: #3DDC84; --red: #FF5A5F; --amber: #FFB84D; --pink: #FF6FB5;
  --blue: #5CB8FF; --ice: #E8F6EF; --violet: #B78CFF;
  --display: "Reem Kufi", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --sans: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark; box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body.home {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.home a { color: inherit; text-decoration: none; }
.home button { font: inherit; color: inherit; cursor: pointer; }
.home p { margin: 0; }
.home h1, .home h2, .home h3 { margin: 0; font-family: var(--display); font-weight: 700; text-wrap: balance; }
.home :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px; background: var(--ice); color: var(--bg) !important;
  font-weight: 600; border: 0; white-space: nowrap; transition: transform .15s, background .15s, opacity .15s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn.sm { padding: 8px 20px; font-size: 15px; }
.btn.is-off { opacity: .5; }
.btn.is-off:hover { transform: none; }

/* ---------- الهيدر ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(6,33,26,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hbar { display: flex; align-items: center; gap: 14px; height: 66px; }
.logo { display: flex; align-items: center; }
.logo img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.plain { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .15s; }
.plain:hover { color: var(--text); }
@media (max-width: 560px) { .hide-s { display: none; } .plain { padding: 8px 10px; } }

/* ---------- الهيرو ---------- */
.hero { padding: 56px 0 20px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero-top > * { min-width: 0; }
.hero h1 { font-size: clamp(32px, 4.9vw, 62px); line-height: 1.3; }
.lead { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); margin-top: 16px; max-width: 30em; }
@media (max-width: 900px) { .hero-top { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* حقل الحجز — LTR من جوه */
.claim {
  direction: ltr; display: flex; align-items: stretch; width: 100%;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.claim:focus-within { border-color: var(--green); box-shadow: 0 0 0 5px rgba(61,220,132,.15); }
.claim .pre { display: flex; align-items: center; padding-inline-start: 18px; font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.claim input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--green);
  font-family: var(--mono); font-size: 16px; font-weight: 700; padding: 12px 4px; text-align: left;
}
.claim input::placeholder { color: #4C7A68; }
.claim .btn { padding: 11px 24px; }

.st { min-height: 1.75em; margin-top: 10px; font-size: 14.5px; color: var(--green); }
.st[data-s="taken"], .st[data-s="invalid"], .st[data-s="reserved"], .st[data-s="error"] { color: #FF9A9D; }
.st[data-s="empty"], .st[data-s="checking"], .st[data-s="short"] { color: var(--muted); }
.st[data-s="showcase"] { color: var(--amber); }

.trust { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 420px) {
  .claim .pre { padding-inline-start: 12px; font-size: 12.5px; }
  .claim input { font-size: 15px; }
  .claim .btn { padding: 10px 16px; }
}

/* ---------- خريطة المترو ---------- */
.mapbox { position: relative; width: 100%; margin-top: 44px; aspect-ratio: 1000 / 480; direction: ltr; }
.mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rt { transition: opacity .25s; }
.rt path {
  fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; animation: draw 1.1s cubic-bezier(.3,.7,.2,1) backwards; animation-delay: var(--d);
}
.rt circle { fill: var(--bg); stroke: var(--c); stroke-width: 4; animation: fade .5s backwards; animation-delay: calc(var(--d) + .7s); }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
.mapbox[data-a] .rt:not(.on) { opacity: .22; }
.pill {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px;
  background: var(--bg); border: 3px solid var(--c); color: var(--text);
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: opacity .25s, background .2s, color .2s;
  animation: fade .5s backwards; animation-delay: calc(var(--d) + .6s);
}
.pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.pill:hover, .pill.on { background: var(--c); color: var(--bg); }
.pill:hover i, .pill.on i { background: var(--bg); }
.mapbox[data-a] .pill:not(.on) { opacity: .5; }
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 2px; max-width: 60%; padding: 14px 26px; border-radius: 999px;
  background: var(--deep); border: 4px solid var(--ice);
  font-family: var(--mono); font-weight: 700; font-size: clamp(14px, 2.1vw, 22px);
  z-index: 2; animation: fade .5s backwards;
}
.hub .pre { color: var(--muted); }
.hub .hv { color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hub .hv::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--green); margin-inline-start: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ticket { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; text-align: center; min-height: 42px; }
.badge { padding: 3px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--bg); background: var(--c, var(--green)); }
#ttext { color: var(--text); font-size: 17px; }
@media (max-width: 640px) {
  .mapbox { aspect-ratio: 400 / 520; }
  .pill { font-size: 12.5px; padding: 7px 12px; gap: 6px; border-width: 2.5px; }
  .pill i { width: 8px; height: 8px; }
  .rt path { stroke-width: 7; }
  .hub { flex-direction: column; align-items: center; gap: 0; padding: 10px 16px; border-radius: 24px; border-width: 3px; max-width: 46%; font-size: 12.5px; }
  .hub .hv { max-width: 100%; }
  #ttext { font-size: 15.5px; }
}
@media (max-width: 420px) {
  .pill { font-size: 11px; padding: 5px 10px; gap: 5px; }
  .pill i { width: 6px; height: 6px; }
  .hub { font-size: 11px; padding: 7px 10px; max-width: 36%; }
  .hub .pre { font-size: 9px; }
}

/* ---------- المقدمة والمحطات ---------- */
.intro { text-align: center; max-width: 720px; margin: 90px auto 20px; padding-inline: 20px; }
.intro h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.3; }
.intro p { color: var(--muted); font-size: 18px; margin-top: 12px; }

.spine { --lx: -52px; position: relative; width: min(1040px, 100% - 40px); margin-inline: auto; padding-inline-start: 84px; }
.stop { position: relative; padding-block: 60px 72px; min-width: 0; }
.stop::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: var(--lx); width: 8px; background: var(--c); }
.stop::after {
  content: ""; position: absolute; top: 70px; inset-inline-start: calc(var(--lx) - 9px);
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 6px solid var(--c);
}
.stop:first-child::before { inset-block-start: 83px; }
.stop:last-child::before { inset-block-end: auto; height: 83px; }
.stop h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; }
.stop .sub { color: var(--muted); font-size: 18px; margin-top: 8px; max-width: 34em; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; margin-top: 30px; }
.cols > * { min-width: 0; max-width: 100%; }
.panel { border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); padding: 26px; min-width: 0; }
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .cols > div:first-child { justify-self: stretch; }
}
@media (max-width: 640px) {
  .spine { --lx: -28px; padding-inline-start: 42px; width: min(1040px, 100% - 28px); }
  .stop { padding-block: 44px 54px; }
  .stop::after { top: 54px; }
  .stop:first-child::before { inset-block-start: 67px; }
  .stop:last-child::before { height: 67px; }
  .stop .sub { font-size: 16px; }
  .panel { padding: 18px; }
}

/* ---------- غلاف الموبايل ---------- */
.dev {
  width: 290px; max-width: 100%; flex: none; height: 580px; border-radius: 42px; padding: 10px;
  background: #02130E; border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0,0,0,.5), 0 0 0 6px rgba(29,84,67,.2);
  position: relative;
}
.dev.auto { height: auto; width: 280px; }
.screen { height: 100%; border-radius: 34px; overflow: hidden; position: relative; }

/* موبايل المحرر (المحطة الأولى) */
.b-screen {
  --p-bg: #0B2A21; --p-card: #123D30; --p-text: #E8F6EF; --p-accent: #3DDC84; --p-r: 14px;
  min-height: 500px; background: var(--p-bg); color: var(--p-text);
  padding: 30px 18px 18px; display: flex; flex-direction: column; align-items: center;
}
.b-screen .av {
  width: 64px; height: 64px; border-radius: 50%; background: var(--p-accent); color: var(--p-bg);
  display: grid; place-items: center; font-weight: 700; font-size: 26px; font-family: var(--mono); margin-bottom: 10px;
}
.b-screen .nm { font-weight: 600; font-size: 17px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.b-screen .bio { font-size: 12.5px; opacity: .7; margin-bottom: 16px; }
.b-screen .lks { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.b-screen .lk {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px;
  font-size: 13.5px; font-weight: 500; background: var(--p-card);
  border: 1px solid rgba(61,220,132,.4); border-radius: var(--p-r);
}
.b-screen .lk i { width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); flex: none; }
.b-screen .foot { margin-top: auto; padding-top: 14px; font-size: 10.5px; opacity: .5; font-family: var(--mono); direction: ltr; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blks { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.blks:empty { display: none; }
.blks > * { animation: pin .35s ease-out; }
@keyframes pin { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.b-wa .wa { background: #1FA855; color: #fff; border-radius: var(--p-r); padding: 10px; text-align: center; font-weight: 500; font-size: 13px; }
.b-wa small { display: block; text-align: center; font-size: 10px; opacity: .6; margin-top: 3px; }
.b-yt { aspect-ratio: 16 / 9; border-radius: var(--p-r); background: linear-gradient(135deg, #1a1a1a, #3a0f0f); display: grid; place-items: center; }
.b-yt::after { content: ""; border-inline-start: 16px solid #fff; border-block: 10px solid transparent; margin-inline-start: -3px; }
[dir="rtl"] .b-yt::after { border-inline-start: 0; border-inline-end: 16px solid #fff; margin-inline-start: 0; margin-inline-end: -3px; }
.b-ic { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.b-ic span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--p-accent); display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--p-accent); }
.b-hd { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; }
.b-hd::before, .b-hd::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.b-map { height: 58px; border-radius: var(--p-r); background: radial-gradient(circle at 60% 45%, var(--p-accent) 0 5px, transparent 6px), repeating-linear-gradient(35deg, var(--p-card) 0 8px, #0f3529 8px 16px); }

.tg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tg-l { font-size: 14px; color: var(--muted); margin-bottom: 12px !important; }
.tgb {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--line); background: none; font-size: 15px; transition: background .2s, border-color .2s;
}
.tgb::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.tgb[aria-pressed="true"] { border-color: var(--green); background: rgba(61,220,132,.12); }
.tgb[aria-pressed="true"]::before { background: var(--green); border-color: var(--green); }

/* ---------- الإحصائيات (تجريبية) ---------- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin-bottom: 10px; }
.day { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; background: none; border: 0; padding: 0; }
.col { width: 100%; max-width: 40px; border-radius: 9px 9px 4px 4px; background: var(--line); position: relative; transition: background .2s, height .5s; }
.col i { position: absolute; inset-inline: 0; bottom: 0; border-radius: inherit; background: var(--amber); opacity: .95; }
.day[aria-pressed="false"] .col i { opacity: .35; }
.day:hover .col { background: #2a6b57; }
.day span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.day[aria-pressed="true"] span { color: var(--text); font-weight: 600; }
.read { display: flex; gap: 28px; align-items: baseline; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 16px; }
.read b { font-family: var(--mono); font-size: 28px; font-weight: 700; }
.read span { font-size: 13px; color: var(--muted); margin-inline-start: 8px; }
.toplist { display: grid; gap: 10px; font-size: 14px; }
.toplist div { display: grid; grid-template-columns: 84px minmax(0, 1fr) 42px; gap: 10px; align-items: center; }
.toplist em { height: 7px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; font-style: normal; }
.toplist em::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--k); border-radius: 4px; }
.toplist b { font-size: 13px; font-weight: 500; color: var(--muted); text-align: end; font-family: var(--mono); }
.tag { display: inline-block; font-size: 12.5px; color: var(--amber); border: 1px solid rgba(255,184,77,.4); padding: 1px 14px; border-radius: 999px; margin-top: 18px; }
@media (max-width: 420px) { .chart { gap: 5px; } .day span { font-size: 10.5px; } }

/* ---------- QR ---------- */
.qr-wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.qr { width: 180px; height: 180px; border-radius: 20px; background: #fff; padding: 12px; border: 0; flex: none; }
.qr svg { display: block; width: 100%; height: 100%; }
.sw { display: flex; gap: 10px; flex-wrap: wrap; }
.sw button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--line); outline-offset: 2px; padding: 0; }
.sw button[aria-pressed="true"] { border-color: var(--text); }
.qr-note { font-size: 13.5px; color: var(--muted); margin-top: 14px !important; }

/* ---------- الثيمات ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: none; border: 1px solid var(--line); font-size: 14px; }
.chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); flex: none; }
.chip[aria-pressed="true"] { background: var(--pink); color: var(--bg); border-color: var(--pink); font-weight: 600; }
.count { margin: 14px 0 18px !important; color: var(--muted); font-size: 14px; }
.try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.try button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; direction: ltr; font-family: var(--mono); font-size: 13px; transition: background .15s, color .15s; }
.try button:hover, .try button.on { background: var(--ice); color: var(--bg); border-color: var(--ice); }
.cu { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 18px; }
.cu h3 { font-size: 19px; }
.lbl { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.home input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; max-width: 300px; height: 6px; border-radius: 3px; background: var(--line); outline: 0; direction: ltr; }
.home input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--pink); cursor: grab; }
.home input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--pink); border: 4px solid var(--bg); cursor: grab; }

.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }

/* موبايل الثيمات — القيم الافتراضية = ثيم مينيمال الحقيقي */
.tp {
  --pbg: #ffffff; --pi: #1a1a1a; --pname: #1a1a1a; --plt: var(--pi);
  --pc: #f4f4f6; --pb: 1px solid #e5e5e5; --pr: 12px; --ps: none;
  --pcv: #d9ded9; --pav: #0D3A2C; --pavt: #F2C14E; --pring: #ffffff;
}
.tp .screen { background: var(--pbg); transition: background .4s; }
/* ألوان مطابقة لملفات الثيمات الحقيقية في assets/css/themes */
.tp[data-t="diamond"] {
  --pbg: radial-gradient(ellipse at 50% -10%, #141210 0%, #0b0a08 55%);
  --pi: #efe8d8; --pname: #f0c766;
  --pc: rgba(240,199,102,.045); --pb: 1px solid rgba(201,154,61,.28); --pr: 2px; --ps: 0 0 14px rgba(201,154,61,.12);
  --pcv: linear-gradient(135deg, #1a1612, #0b0a08 60%, #a9791f); --pav: #0b0a08; --pavt: #f0c766; --pring: #0b0a08;
}
.tp[data-t="aurora"] {
  --pbg: linear-gradient(125deg, #1a1035, #0d1f3d 55%, #0a2e2a);
  --pi: #f2f0ff; --pname: #f2f0ff;
  --pc: rgba(255,255,255,.08); --pb: 1px solid rgba(255,255,255,.18); --pr: 16px;
  --pcv: linear-gradient(120deg, #7b5cff, #3ddad7); --pav: #1a1035; --pavt: #bda9ff; --pring: #1a1035;
}
.tp[data-t="kawaii"] {
  --pbg: #fff0f6; --pi: #4a2438; --pname: #6b3550;
  --pc: #ffb3d9; --pb: 0; --pr: 30px; --ps: 0 4px 10px rgba(255,111,176,.18);
  --pcv: linear-gradient(120deg, #ffb3d9, #d6b3ff); --pav: #ffb3d9; --pavt: #6b3550; --pring: #fff0f6;
}
.tp[data-t="mosaic"] {
  --pbg: linear-gradient(160deg, #f4ede0, #ede2cf); --pi: #2a2116; --pname: #0a4a3d;
  --pc: rgba(255,255,255,.55); --pb: 1px solid rgba(15,110,92,.25); --pr: 10px;
  --pcv: repeating-linear-gradient(45deg, #0f6e5c 0 6px, #0a4a3d 6px 12px); --pav: #0f6e5c; --pavt: #f4ede0; --pring: #f4ede0;
}
.tp[data-t="navy"] {
  --pbg: #0b1f3a; --pi: #ffffff; --pname: #ffffff;
  --pc: rgba(255,255,255,.04); --pb: 1px solid rgba(125,155,193,.3); --pr: 2px;
  --pcv: linear-gradient(90deg, #0b1f3a, #1c3a5e 50%, #c9a35c); --pav: #0b1f3a; --pavt: #c9a35c; --pring: #0b1f3a;
}
.tp[data-t="brutalist"] {
  --pbg: #f5f5f0; --pi: #111111; --pname: #111111;
  --pc: #f5f5f0; --pb: 2.5px solid #111; --pr: 0; --ps: 4px 4px 0 #111;
  --pcv: #111111; --pav: #e8ff00; --pavt: #111; --pring: #f5f5f0;
}

.url {
  height: 34px; display: flex; align-items: center; justify-content: center; direction: ltr;
  font-family: var(--mono); font-size: 11px; color: var(--pi); opacity: .75;
  border-bottom: 1px solid rgba(128,128,128,.2); white-space: nowrap; overflow: hidden; padding: 0 12px;
}
.mock, .real { position: absolute; inset: 34px 0 0 0; overflow: hidden; }
.mock { overflow-y: auto; scrollbar-width: none; }
.mock::-webkit-scrollbar { display: none; }
.mock[hidden], .real[hidden] { display: none !important; }
.cover { height: 84px; background: var(--pcv); overflow: hidden; }
.cover img, .pav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pav {
  width: 68px; height: 68px; border-radius: 50%; margin: -34px auto 0; position: relative; overflow: hidden;
  background: var(--pav); color: var(--pavt); border: 4px solid var(--pring);
  display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; font-family: var(--mono);
}
.pn { text-align: center; font-weight: 600; font-size: 1.02rem; color: var(--pname); margin-top: 4px; padding: 0 14px; line-height: 1.4; }
.pn .vf { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-inline-start: 4px; }
.pb { text-align: center; font-size: .74rem; color: var(--pi); opacity: .8; padding: 0 18px; margin-top: 2px; line-height: 1.6; }
.pf { text-align: center; font-size: .72rem; color: var(--pi); margin-top: 8px; font-weight: 600; }
.plks { display: grid; gap: 8px; padding: 12px 16px 0; }
.plk {
  display: block; width: 100%; text-align: center; padding: 10px;
  background: var(--pc); border: var(--pb); border-radius: var(--pr); box-shadow: var(--ps);
  color: var(--plt); font-size: .84rem; font-weight: 500;
  opacity: 0; animation: up .5s forwards; transition: transform .12s, border-radius .3s, background .3s;
}
.plk:active { transform: scale(.96); }
.pc { text-align: center; font-size: .7rem; color: var(--pi); opacity: .65; margin: 12px 0 16px; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.real { background: #fff; }
.real iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .35s; }
.real.is-ready iframe { opacity: 1; }
.real-load {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-size: .78rem; color: #6b7d74; background: #f4f6f3; z-index: 1; transition: opacity .3s;
}
.real.is-ready .real-load { opacity: 0; pointer-events: none; }
.real-load span { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(13,58,44,.15); border-top-color: #0D3A2C; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.real-note { font-size: 13px; color: var(--muted); text-align: center; max-width: 290px; }
.real-note[hidden] { display: none !important; }

.pop {
  position: absolute; top: 96px; inset-inline-end: -10px; z-index: 3;
  background: var(--amber); color: var(--bg); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  pointer-events: none; opacity: 0;
}
.pop.go { animation: pop 1.2s ease-out; }
@keyframes pop {
  0% { opacity: 0; transform: translateY(14px) rotate(-6deg); }
  15% { opacity: 1; transform: translateY(0) rotate(-6deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) rotate(-6deg); }
}

/* ---------- لوحة الأرقام ---------- */
.board { background: var(--deep); border: 1px solid var(--line); border-radius: 20px; padding: 6px 26px; max-width: 680px; margin-top: 30px; }
.brow { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.brow:last-child { border-bottom: 0; }
.brow span { font-size: 18px; }
.brow b { font-family: var(--mono); font-size: clamp(26px, 5vw, 44px); font-weight: 700; color: var(--amber); direction: ltr; line-height: 1.1; }
@media (max-width: 420px) { .board { padding: 4px 16px; } .brow span { font-size: 15px; } }

/* ---------- الأسئلة ---------- */
.faq { margin-top: 20px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 500; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 24px; color: var(--violet); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 22px; color: var(--muted); max-width: 60ch; }
@media (max-width: 640px) { .faq summary { font-size: 16px; } }

/* ---------- أقسام الأدمن ---------- */
.adm { display: grid; gap: 40px; margin-block: 20px 60px; }
.adm h2 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.35; }
.adm-banner { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.adm-banner img { width: 100%; display: block; max-height: 380px; object-fit: cover; }
.adm-banner-in {
  position: absolute; inset: 0; background: rgba(3,21,16,.6); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px;
}
.adm-section { text-align: center; padding: 8px 0; }
.adm-section img { max-width: 100%; border-radius: 16px; margin-bottom: 18px; }
.adm-section p, .adm-banner p { color: var(--muted); max-width: 34em; margin: 8px auto 0; }
.adm-banner p { color: #d7e6de; }
.adm .btn { margin-top: 16px; }

/* ---------- الدعوة ---------- */
.cta { padding: 30px 0 90px; }
.cta-box { background: var(--ice); color: var(--bg); border-radius: 44px; padding: 76px 24px; text-align: center; }
.cta-box h2 { font-size: clamp(30px, 5vw, 58px); line-height: 1.25; }
.cta-box .lead { color: #3F6556; margin: 14px auto 30px; }
.cta-box .claim { max-width: 540px; margin-inline: auto; background: #fff; border-color: #B5D3C5; }
.cta-box .claim:focus-within { border-color: var(--bg); box-shadow: 0 0 0 5px rgba(6,33,26,.15); }
.cta-box .claim .pre { color: #5E8576; }
.cta-box .claim input { color: #0B6B4C; }
.cta-box .claim input::placeholder { color: #9DBBAD; }
.cta-box .btn { background: var(--bg); color: var(--ice) !important; }
.cta-box .btn:hover { background: #0B3A2C; }
.cta-box :focus-visible { outline-color: var(--bg); }
.cta-box .st { max-width: 540px; margin-inline: auto; color: #0B6B4C; }
.cta-box .st[data-s="taken"], .cta-box .st[data-s="invalid"], .cta-box .st[data-s="reserved"], .cta-box .st[data-s="error"] { color: #B3261E; }
.cta-box .st[data-s="empty"], .cta-box .st[data-s="checking"], .cta-box .st[data-s="short"] { color: #5E8576; }
.cta-box .st[data-s="showcase"] { color: #8A5A00; }
@media (max-width: 640px) { .cta-box { border-radius: 30px; padding: 52px 16px; } }
@media (max-width: 420px) {
  .cta-box .claim { flex-wrap: wrap; border-radius: 22px; }
  .cta-box .claim input { flex-basis: 0; }
  .cta-box .claim .btn { flex-basis: 100%; margin-top: 6px; }
}

/* ---------- التذييل ---------- */
.foot-site { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
.foot-site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-site nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-site a:hover { color: var(--text); }

/* إنجليزي: النص اللاتيني محتاج سطور أقصر شوية */
html[lang="en"] .hero h1 { line-height: 1.15; letter-spacing: -.01em; }
html[lang="en"] body.home { line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .plk { opacity: 1; }
}
