/* ═══════════════════════════════════════════════════════════════
   موقع زوار «مدارس عصفورة» — هوية المؤسسة الفخمة
   كحلي عميق + ذهبي شمبانيا + عاجي · عناوين كوفية هندسية (Reem Kufi) ونص هادئ (IBM Plex Sans Arabic)
   النسخة القديمة (السبّورة والدفتر) محفوظة في site-v1.css ← /v1
   ═══════════════════════════════════════════════════════════════ */
/* الخطوط: ثلاث تركيبات (العنوان + النص) — ?f=1 (الافتراضي) · ?f=2 · ?f=3 — كلها OFL ومحلية، والمتصفح لا ينزّل إلا المستعمل */
@font-face { font-family: 'Messiri'; src: url('/assets/fonts/messiri-ar.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; src: url('/assets/fonts/tajawal-ar-300.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; src: url('/assets/fonts/tajawal-ar-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; src: url('/assets/fonts/tajawal-ar-500.woff2') format('woff2'); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; src: url('/assets/fonts/tajawal-ar-700.woff2') format('woff2'); font-weight: 700 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Plex'; src: url('/assets/fonts/plex-ar-300.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Plex'; src: url('/assets/fonts/plex-ar-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Plex'; src: url('/assets/fonts/plex-ar-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Plex'; src: url('/assets/fonts/plex-ar-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Plex'; src: url('/assets/fonts/plex-ar-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Plex'; src: url('/assets/fonts/plex-lat-400.woff2') format('woff2'); font-weight: 300 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Plex'; src: url('/assets/fonts/plex-lat-600.woff2') format('woff2'); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }

:root {
  --ink: #0b1630; --ink2: #10204a; --ink3: #18306a;
  --ivory: #f6f2e9; --ivory2: #fbf9f4; --card: #ffffff;
  --gold: #c9a55c; --gold2: #e9d6a3; --gold3: #9a7738; --goldg: linear-gradient(135deg, #f6e7bd 0%, #d6b26c 52%, #a47d3c 100%);
  --text: #141a2e; --mut: #5b6278; --mut2: #8a90a3; --line: #e6ddcb; --hair: #c9a55c59;
  --ok: #2f8f4e; --bad: #b93a2f; --wa: #1f9a63;
  --fk: 'Messiri', 'Plex', serif; --fb: 'Tajawal', 'Plex', system-ui, sans-serif; --hs: 1.02; --hw: 700;
  --sh: 0 1px 2px #0b16300d, 0 12px 32px #0b16301a; --sh2: 0 30px 70px #0b163038;
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23c9a55c' stroke-width='.8'%3E%3Cpath d='M44 14l8.5 21.5L74 44l-21.5 8.5L44 74l-8.5-21.5L14 44l21.5-8.5z'/%3E%3Cpath d='M23 23h42v42H23z' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='6'/%3E%3Cpath d='M0 44h14M74 44h14M44 0v14M44 74v14'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--fb); color: var(--text); background: var(--ivory); line-height: 1.75; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--ink3); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.grow { flex: 1; }
.mut { color: var(--mut); } .sm { font-size: 14px; } .center { text-align: center; } .mt { margin-top: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.si { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ─── الأزرار ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; padding: 12px 22px; font: 600 15.5px/1.2 var(--fb); cursor: pointer; white-space: nowrap; text-decoration: none; background: var(--ink); color: #fff; transition: transform .18s ease, box-shadow .18s ease, background .18s, color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn .si { width: 19px; height: 19px; }
.btn.gold, .btn.sun { background: var(--goldg); color: #1b1305; box-shadow: 0 10px 26px #c9a55c47, inset 0 1px 0 #ffffff88; }
.btn.gold:hover, .btn.sun:hover { box-shadow: 0 14px 34px #c9a55c66, inset 0 1px 0 #ffffff88; }
.btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #ffffff4d; }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold2); }
.btn.ghost { background: var(--card); color: var(--ink2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px #0b163033; }
.btn.line-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #0b163059; }
.btn.lg { padding: 15px 26px; font-size: 16.5px; border-radius: 16px; }
.btn.sm { padding: 9px 15px; font-size: 14px; border-radius: 12px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link, .lnk { background: none; border: 0; color: var(--ink3); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }

/* ─── الرأس ─── */
.top { position: sticky; top: 0; z-index: 50; background: #0b1630f5; color: #fff; border-bottom: 1px solid #ffffff12; transition: box-shadow .25s; }
.top.scrolled { box-shadow: 0 10px 30px #0b163040; border-bottom-color: var(--hair); }
.top-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; flex: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { display: block; font: 700 calc(19px * var(--hs))/1.15 var(--fk); }
.brand small { display: block; font-size: 11.5px; color: #ffffffa6; line-height: 1.3; }
.top-nav { display: flex; gap: 4px; margin-inline-start: 22px; flex: 1; }
.top-nav a { color: #ffffffcc; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.top-nav a:hover { color: #fff; background: #ffffff10; }
.top-act { display: flex; gap: 10px; align-items: center; }
@media (max-width: 920px) { .top-nav { display: none; } .top-in { justify-content: space-between; } }
@media (max-width: 560px) {
  .top-in { height: 64px; gap: 10px; }
  .brand small { display: none; }
  .brand b { font-size: 17px; }
  .brand img { width: 36px; height: 36px; }
  .install-btn span { display: none; }
  .install-btn { padding: 9px; }
  .top-act .btn.sm { padding: 9px 12px; font-size: 13.5px; }
}

/* ─── عناوين الأقسام ─── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gold2); }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--goldg); border-radius: 2px; }
.eyebrow.dark { color: var(--gold3); }
.sec-h { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.sec-h .eyebrow { justify-content: center; }
.sec-h h2 { font: 700 calc(clamp(28px, 3.6vw, 44px) * var(--hs))/1.3 var(--fk); color: var(--ink); margin-top: 10px; }
.sec-sub { color: var(--mut); font-size: 16.5px; margin-top: 12px; }

/* ─── البطل ─── */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(70% 90% at 15% 20%, #18306a 0%, transparent 60%), radial-gradient(60% 70% at 95% 85%, #2a2312 0%, transparent 55%), var(--ink); padding: 72px 0 96px; }
.hero-bg { position: absolute; inset: 0; background-image: var(--pat); background-size: 88px; opacity: .07; -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: .6; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font: 700 calc(clamp(40px, 5.6vw, 72px) * var(--hs))/1.14 var(--fk); margin: 18px 0 22px; }
.hero h1 em { display: block; font-style: normal; background: var(--goldg); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); font-weight: 300; color: #ffffffc7; max-width: 560px; line-height: 1.9; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: #ffffffa8; }
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }

/* الأجهزة */
.hero-art { position: relative; min-height: 470px; }
.laptop { position: absolute; inset-inline-start: 0; top: 18px; width: 100%; max-width: 640px; }
.laptop .lid { position: relative; border-radius: 16px 16px 6px 6px; background: #05091a; padding: 12px 12px 14px; box-shadow: 0 0 0 1.5px #ffffff1f, 0 50px 90px #00000059; }
.laptop .lid i { position: absolute; top: 4.5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2a3350; }
.laptop .lid img { width: 100%; height: auto; aspect-ratio: 1600 / 960; object-fit: cover; object-position: top; border-radius: 6px; }
.laptop .base { position: relative; height: 16px; margin: 0 -5%; border-radius: 0 0 18px 18px; background: linear-gradient(#cfd3dc, #8c93a6); box-shadow: 0 16px 30px #00000059; }
.laptop .base::before { content: ""; position: absolute; top: 0; left: 42%; right: 42%; height: 5px; border-radius: 0 0 8px 8px; background: #a0a6b6; }
.devp { position: relative; border-radius: 34px; background: #05091a; padding: 9px; box-shadow: 0 0 0 1.5px #ffffff26, 0 30px 60px #00000066; }
.devp img { width: 100%; height: auto; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; border-radius: 26px; }
.devp .notch { position: absolute; top: 15px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 12px; background: #05091a; z-index: 2; }
.ph-hero { position: absolute; inset-inline-end: -8px; bottom: -40px; width: 190px; transform: rotate(-3deg); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: #fffffff2; color: var(--text); box-shadow: 0 18px 40px #00000040; font-size: 13px; line-height: 1.5; max-width: 280px; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 14px; }
.float small { color: var(--mut); font-size: 12px; }
.float .fi { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.fi.ok { background: var(--ok); } .fi.wa { background: var(--wa); }
.f1 { top: -6px; inset-inline-end: 4%; }
.f2 { bottom: 34px; inset-inline-start: -6px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 1000px) {
  .hero { padding: 48px 0 80px; }
  .hero-in { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { text-align: center; }
  .hero .eyebrow, .hero .cta, .trust { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-art { min-height: 0; aspect-ratio: 1.25; max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero h1 { margin: 14px 0 16px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .trust { font-size: 13px; gap: 6px 16px; }
  .ph-hero { width: 34%; bottom: -24px; inset-inline-end: -4px; }
  .float { padding: 9px 11px; gap: 9px; max-width: 220px; font-size: 11.5px; }
  .float b { font-size: 12.5px; } .float small { font-size: 11px; }
  .float .fi { width: 30px; height: 30px; border-radius: 10px; }
  .float .fi .si { width: 17px; height: 17px; }
  .f1 { top: -18px; } .f2 { bottom: 4px; }
}

/* ─── «النسخة الخاصة»: سطر بالواجهة + بطاقة تتراكب على حافة الواجهة ─── */
.hero-kh { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 18px 9px 14px; border-radius: 99px; background: #ffffff0d; box-shadow: inset 0 0 0 1px #c9a55c59; color: #ffffffd1; font-size: 14px; line-height: 1.5; text-decoration: none; transition: box-shadow .2s, background .2s; }
.hero-kh b { color: var(--gold2); font-weight: 700; }
.hero-kh .si { width: 18px; height: 18px; color: var(--gold); }
.hero-kh:hover { box-shadow: inset 0 0 0 1px var(--gold); background: #c9a55c14; }
.hero:has(+ .khassa) { padding-bottom: 150px; }
.khassa { position: relative; z-index: 2; margin-top: -86px; background: linear-gradient(transparent 86px, var(--ivory) 86px); scroll-margin-top: 10px; }
.khassa + .arkan { padding-top: 96px; }
.kh-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 50px 54px; border-radius: 30px; background: #fff; box-shadow: 0 40px 90px #0b163038, 0 0 0 1px #c9a55c47; overflow: hidden; }
.kh-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid #c9a55c40; border-radius: 22px; pointer-events: none; }
.kh-copy { position: relative; }
.kh-copy h2 { font: 700 calc(clamp(26px, 3vw, 40px) * var(--hs))/1.3 var(--fk); color: var(--ink); margin: 12px 0 12px; }
.kh-copy h2 em { display: block; font-style: normal; color: var(--gold3); }
.kh-copy > p { color: var(--mut); font-size: 16.5px; max-width: 480px; }
.kh-pts { list-style: none; display: grid; gap: 16px; margin: 24px 0 30px; }
.kh-pts li { display: flex; align-items: center; gap: 14px; }
.kh-pts .ki { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--gold2); box-shadow: inset 0 0 0 1px #c9a55c4d; }
.kh-pts .ki .si { width: 22px; height: 22px; }
.kh-pts b { display: block; font-size: 16.5px; color: var(--ink); }
.kh-pts small { display: block; color: var(--mut); font-size: 14.5px; line-height: 1.6; }
.kh-art { position: relative; min-height: 400px; border-radius: 22px; background: radial-gradient(70% 70% at 60% 40%, #f3ead6, transparent 70%), var(--ivory2); }
.kh-art::before { content: ""; position: absolute; inset: 0; background-image: var(--pat); background-size: 64px; opacity: .07; border-radius: inherit; }
.kh-web { position: absolute; top: 34px; right: 22px; width: 76%; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #0b16300f, 0 24px 50px #0b163029; overflow: hidden; }
.kh-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f3f1ec; border-bottom: 1px solid var(--line); }
.kh-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ddd5c4; }
.kh-bar span { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); direction: ltr; font: 700 12.5px/1.2 var(--fb); color: #13624a; }
.kh-bar span .si { width: 13px; height: 13px; color: #13624a; }
.kh-page { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 26px 26px; background: linear-gradient(#eef6f2, #fff 60%); }
.kh-page .crest { width: 56px; height: 56px; filter: drop-shadow(0 6px 10px #13624a40); }
.kh-page .crest svg, .kh-ic .tile svg { width: 100%; height: 100%; display: block; }
.kh-page b { font: 700 calc(20px * var(--hs))/1.3 var(--fk); color: #0d3f30; margin-top: 4px; }
.kh-page small { color: var(--mut2); font-size: 12px; }
.kh-in { align-self: stretch; margin-top: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid #d7e5de; background: #fff; color: #9aa7a1; font-size: 12px; direction: ltr; text-align: right; }
.kh-btn { align-self: stretch; padding: 9px; border-radius: 10px; background: #13624a; color: #fff; text-align: center; font-weight: 700; font-size: 13px; }
.kh-ph { position: absolute; left: 22px; bottom: -40px; width: 156px; padding: 6px; border-radius: 26px; }
.kh-ph .notch { top: 11px; height: 12px; }
.kh-ph .kh-scr { border-radius: 20px; padding: 30px 11px 11px; }
.kh-ph .kh-scr .clock { font-size: 24px; margin-bottom: 16px; }
.kh-ph .kh-scr .icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding: 0 4px; }
.kh-ph .kh-scr i { border-radius: 9px; }
.kh-ic .tile { display: block; width: 100%; aspect-ratio: 1; padding: 4px; border-radius: 10px; background: linear-gradient(150deg, #1d7a5c, #0c4434); box-shadow: 0 0 0 2px var(--gold), 0 8px 18px #00000080; animation: glow 2.6s ease-in-out infinite; }
.kh-ph .kh-ic small { font-size: 8px; }
.kh-seal { position: absolute; left: 30px; top: 18px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--goldg); color: #1b1305; box-shadow: 0 14px 30px #a47d3c59, inset 0 1px 0 #ffffffaa; transform: rotate(-10deg); z-index: 2; }
.kh-seal::before { content: ""; position: absolute; inset: 6px; border: 1px dashed #1b130566; border-radius: 50%; }
.kh-seal b { font: 800 24px/1 var(--fb); direction: ltr; }
.kh-seal small { font-size: 11.5px; font-weight: 700; margin-top: 3px; }
@media (max-width: 1000px) {
  .hero:has(+ .khassa) { padding-bottom: 90px; }
  .khassa { margin-top: -40px; background: linear-gradient(transparent 40px, var(--ivory) 40px); }
  .kh-card { grid-template-columns: 1fr; gap: 30px; padding: 40px 34px; }
  .kh-art { min-height: 380px; max-width: 560px; width: 100%; margin: 0 auto 30px; }
}
@media (max-width: 560px) {
  .hero-kh { font-size: 13px; padding: 9px 14px; margin-top: 20px; }
  .hero:has(+ .khassa) { padding-bottom: 70px; }
  .khassa { margin-top: -24px; background: linear-gradient(transparent 24px, var(--ivory) 24px); }
  .kh-card { padding: 32px 20px 26px; border-radius: 24px; }
  .kh-card::before { inset: 7px; border-radius: 18px; }
  .kh-copy .btn { width: 100%; }
  .kh-pts { gap: 14px; margin: 20px 0 24px; }
  .kh-pts .ki { width: 42px; height: 42px; border-radius: 12px; }
  .kh-art { min-height: 350px; margin-bottom: 40px; }
  .kh-web { width: 80%; right: 12px; top: 26px; }
  .kh-page { padding: 16px 16px 18px; }
  .kh-ph { width: 96px; left: 10px; bottom: -44px; padding: 4px; border-radius: 18px; } .kh-ph .notch { top: 7px; height: 8px; }
  .kh-ph .kh-scr { padding: 18px 6px 6px; border-radius: 14px; } .kh-ph .kh-scr .clock { font-size: 15px; margin-bottom: 10px; } .kh-ph .kh-scr .icons { gap: 7px 6px; padding: 0 2px; } .kh-ph .kh-scr i, .kh-ic .tile { border-radius: 6px; } .kh-ic .tile { padding: 2px; }
  .kh-ph .kh-ic small { font-size: 6.5px; }
  .kh-seal { width: 76px; height: 76px; left: 14px; top: 10px; } .kh-seal b { font-size: 20px; } .kh-seal small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .kh-ic .tile { animation: none; } }

/* ─── الأركان الستة ─── */
.arkan { padding: 110px 0 100px; background: var(--ivory); }
.ark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.ark { position: relative; padding: 38px 34px 40px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: var(--ivory2); transition: background .25s; }
.ark:hover { background: #fff; }
.ark .num { position: absolute; top: 26px; inset-inline-end: 30px; font: 600 calc(15px * var(--hs)) var(--fk); color: var(--gold3); opacity: .8; }
.ark-i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--gold2); margin-bottom: 22px; box-shadow: 0 10px 22px #0b163026; }
.ark-i .si { width: 27px; height: 27px; stroke-width: 1.6; }
.ark h3 { font: 700 calc(22px * var(--hs))/1.4 var(--fk); color: var(--ink); margin-bottom: 8px; }
.ark p { color: var(--mut); font-size: 15.5px; }
.more { margin-top: 56px; padding: 40px; border-radius: 26px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.more::before { content: ""; position: absolute; inset: 0; background-image: var(--pat); background-size: 70px; opacity: .05; }
.more-t { position: relative; font: 700 calc(24px * var(--hs)) var(--fk); margin-bottom: 26px; display: flex; align-items: center; gap: 14px; color: var(--gold2); }
.more-t::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--hair)); }
.more-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.mo { display: flex; gap: 14px; align-items: flex-start; }
.mo-i { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; border: 1px solid var(--hair); color: var(--gold2); background: #ffffff08; }
.mo b { display: block; font-size: 16.5px; font-weight: 600; margin-bottom: 3px; }
.mo p { color: #ffffffad; font-size: 14px; line-height: 1.75; }
@media (max-width: 960px) { .ark-grid, .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .arkan { padding: 72px 0 64px; }
  .ark-grid, .more-grid { grid-template-columns: 1fr; }
  .ark { padding: 28px 22px; }
  .more { padding: 28px 20px; border-radius: 20px; }
}

/* ─── «طريقان لكل أمر» (قسم داكن) ─── */
@property --p { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.two-sec { padding: 104px 0 110px; background: radial-gradient(60% 60% at 50% 0%, #18306a, transparent 70%), var(--ink2); color: #fff; }
.two-sec .sec-h h2 { color: #fff; }
.two-sec .sec-sub { color: #ffffffb3; }
.two-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -14px auto 34px; }
.tt { font: 600 14.5px var(--fb); padding: 9px 18px; border-radius: 99px; border: 1px solid #ffffff2e; background: transparent; color: #ffffffcc; cursor: pointer; transition: .2s; }
.tt:hover { border-color: var(--gold); color: #fff; }
.tt.on { background: var(--goldg); color: #1b1305; border-color: transparent; }
.two { display: grid; grid-template-columns: 280px minmax(240px, 1fr) minmax(0, 400px); gap: 26px; align-items: start; max-width: 1080px; margin: 0 auto; }
.lane { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lane-h { display: inline-flex; align-items: center; gap: 7px; padding: 5px 15px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.lane-h .si { width: 18px; height: 18px; }
.wa-l .lane-h { color: #b6f0cf; background: #1f9a6326; border: 1px solid #1f9a6359; }
.db-l .lane-h { color: var(--gold2); background: #c9a55c1f; border: 1px solid var(--hair); }
.two .phone { position: relative; width: 100%; max-width: 280px; background: #05091a; border-radius: 34px; padding: 10px; box-shadow: 0 0 0 1.5px #ffffff26, 0 30px 60px #00000066; }
.ph-top { display: flex; align-items: center; gap: 8px; background: #075e54; color: #fff; border-radius: 24px 24px 8px 8px; padding: 10px 12px; font-size: 13px; }
.ph-top i { width: 26px; height: 26px; border-radius: 50%; background: url(/assets/img/asf-icon-64.png) center/cover; }
.ph-top span { margin-inline-start: auto; font-size: 11px; opacity: .8; }
.chat { background: #efe7de; border-radius: 8px 8px 24px 24px; padding: 10px 8px 14px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; font-size: 13px; color: var(--text); overflow: hidden; }
.m { max-width: 88%; padding: 6px 10px; border-radius: 12px; line-height: 1.65; box-shadow: 0 1px 1px #0000001a; animation: pop .3s ease-out; }
.m.in { background: #fff; align-self: flex-start; border-start-start-radius: 3px; }
.m.out { background: #d9fdd3; align-self: flex-end; border-start-end-radius: 3px; }
.m.ok { background: #c3fae8; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.pdf { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--bad); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1.7; vertical-align: middle; }
.dash { width: 100%; overflow: hidden; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 0 0 1px #ffffff1f, 0 30px 60px #00000059; }
.dash-top { display: flex; align-items: center; gap: 5px; padding: 11px 13px; background: #0b1630; color: #fff; border-bottom: 1px solid var(--hair); }
.dash-top i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff38; flex: none; }
.dash-top b { margin-inline-start: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; }
.dash-b { display: flex; flex-direction: column; gap: 9px; min-height: 292px; padding: 13px; }
.dl { display: flex; flex-direction: column; gap: 7px; }
.dr, .dfl { border-radius: 11px; border: 1px solid #ebe5d8; background: #fff; }
.dr { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: 13.5px; font-weight: 600; transition: background .3s, border-color .3s; }
.dr em { padding: 1px 10px; border-radius: 99px; background: #e9f6ec; color: #2b7a44; font-size: 11.5px; font-style: normal; font-weight: 700; }
.dr.ab { background: #fdeeec; border-color: #f4c7c1; }
.dr.ab em { background: var(--bad); color: #fff; }
.dfl { padding: 6px 10px; }
.dfl small { display: block; color: var(--mut); font-size: 11px; }
.dfl b { font-size: 13.5px; font-weight: 600; }
.dsum { align-self: flex-start; padding: 3px 10px; border-radius: 8px; background: #eef1fa; color: var(--ink3); font-size: 12.5px; font-weight: 700; }
.dbtn { align-self: flex-start; padding: 8px 18px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; transition: transform .12s; }
.dbtn.press { transform: scale(.95); }
.dtoast { padding: 7px 10px; border-radius: 10px; border: 1px solid #bfe5cc; background: #e3f5ea; color: #1f6b3c; font-size: 13px; font-weight: 700; }
.two.play .dsum, .two.play .dtoast { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.two.play .dsum.in, .two.play .dtoast.in { opacity: 1; transform: none; }
.two.play .dfl b { clip-path: inset(0 0 0 100%); transition: clip-path .7s linear; }
.two.play .dfl.in b { clip-path: inset(0); }
.tap { position: relative; }
.tap::after { content: ""; position: absolute; inset: -4px; border-radius: 12px; border: 2px solid var(--gold); pointer-events: none; animation: tapr .6s ease-out forwards; }
@keyframes tapr { from { opacity: .9; transform: scale(.94); } to { opacity: 0; transform: scale(1.08); } }
.rails { padding-top: 56px; }
.rl { --p: 0%; position: relative; list-style: none; display: grid; gap: 30px; transition: --p .6s ease; }
.rl::before, .rl::after { content: ""; position: absolute; top: 14px; bottom: -36px; width: 2px; border-radius: 2px; }
.rl::before { right: calc(50% - 29px); background: linear-gradient(#3ad08a var(--p), #ffffff26 0); }
.rl::after { left: calc(50% - 29px); background: linear-gradient(var(--gold) var(--p), #ffffff26 0); }
.rl li { display: grid; grid-template-columns: 1fr 14px 30px 14px 1fr; gap: 0 6px; align-items: center; }
.rl .sa, .rl .sb { color: #ffffff8c; font-size: 13px; line-height: 1.5; transition: color .3s; }
.rl .sa { text-align: end; } .rl .sb { text-align: start; }
.rl .dg, .rl .db { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff40; background: var(--ink2); transition: .3s; }
.rl b { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #ffffff40; background: var(--ink2); color: #ffffffa6; font: 600 calc(14px * var(--hs))/1 var(--fk); transition: .3s; }
.rl li.on .sa, .rl li.on .sb, .two.all .rl .sa, .two.all .rl .sb { color: #fff; font-weight: 600; }
.rl li.on .dg, .rl li.done .dg, .two.all .dg { border-color: #3ad08a; background: #3ad08a; }
.rl li.on .db, .rl li.done .db, .two.all .db { border-color: var(--gold); background: var(--gold); }
.rl li.on .dg { box-shadow: 0 0 0 6px #3ad08a26; } .rl li.on .db { box-shadow: 0 0 0 6px #c9a55c33; }
.rl li.on b { border-color: #fff; color: #fff; }
.rl li.done b, .two.all .rl b { border-color: transparent; background: var(--goldg); color: #1b1305; }
.two.all .rl { --p: 100%; }
.res { position: relative; max-width: 310px; margin: 38px auto 0; padding: 14px 16px; text-align: center; border-radius: 16px; border: 1px dashed #ffffff40; background: #ffffff08; transition: .4s; }
.res b { display: block; font: 700 calc(19px * var(--hs))/1.4 var(--fk); color: #ffffffa6; }
.res span { display: block; color: #ffffff8c; font-size: 13.5px; line-height: 1.75; }
.res.in, .two.all .res { border-style: solid; border-color: var(--gold); background: #c9a55c14; box-shadow: 0 10px 30px #00000040; }
.res.in b, .two.all .res b { color: var(--gold2); }
.res.in span, .two.all .res span { color: #fff; }
@media (max-width: 860px) {
  .two-sec { padding: 72px 0 80px; }
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "wa db" "rl rl"; gap: 14px 10px; }
  .wa-l { grid-area: wa; } .db-l { grid-area: db; } .rails { grid-area: rl; padding-top: 8px; }
  .lane-h { font-size: 12.5px; padding: 3px 10px; }
  .two .phone { padding: 6px; border-radius: 24px; }
  .two .ph-top { padding: 7px 8px; border-radius: 18px 18px 6px 6px; font-size: 11px; }
  .two .ph-top i { width: 20px; height: 20px; }
  .two .ph-top span { display: none; }
  .two .chat { min-height: 262px; padding: 8px 6px 10px; gap: 5px; font-size: 11px; }
  .two .m { padding: 5px 7px; max-width: 94%; }
  .dash { border-radius: 14px; }
  .dash-top { padding: 8px; } .dash-top i { width: 6px; height: 6px; } .dash-top b { font-size: 11px; margin-inline-start: 3px; }
  .dash-b { padding: 8px; gap: 6px; min-height: 262px; }
  .dr { font-size: 11.5px; padding: 5px 7px; } .dr em { font-size: 10px; padding: 0 6px; }
  .dfl b { font-size: 11.5px; } .dsum, .dtoast { font-size: 11px; } .dbtn { font-size: 12px; padding: 6px 12px; }
}

/* ─── جولة داخل الحساب ─── */
.jawla { padding: 110px 0 100px; background: linear-gradient(var(--ivory), #efe9dc); }
.tour { max-width: 1060px; margin: 0 auto; }
.tour-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tour-tabs .tt { color: var(--ink2); border-color: var(--line); background: #fff; }
.tour-tabs .tt:hover { border-color: var(--gold); color: var(--ink); }
.tour-tabs .tt.on { background: var(--ink); color: #fff; }
.browser { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #0b16300f, var(--sh2); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f3f1ec; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ddd5c4; }
.browser .bar span { margin-inline-start: 14px; padding: 4px 14px; border-radius: 9px; background: #fff; font-size: 12.5px; color: var(--mut2); direction: ltr; border: 1px solid var(--line); }
.views { display: grid; }
.view { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.view.on { opacity: 1; visibility: visible; }
.view img { width: 100%; height: auto; aspect-ratio: 1600 / 960; object-fit: cover; object-position: top; }
.view figcaption { padding: 16px 22px 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--mut); }
.view figcaption b { color: var(--ink); font: 700 calc(17px * var(--hs)) var(--fk); margin-inline-end: 10px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 46px; margin-top: 72px; }
.pf .devp { box-shadow: 0 0 0 1px #0b16301f, 0 30px 60px #0b163038; }
.pf figcaption { text-align: center; margin-top: 18px; }
.pf figcaption b { display: block; font: 700 calc(19px * var(--hs)) var(--fk); color: var(--ink); }
.pf figcaption span { color: var(--mut); font-size: 14.5px; }
.pf:nth-child(2) { margin-top: -28px; }
@media (max-width: 760px) {
  .jawla { padding: 72px 0 64px; }
  .browser .bar span { display: none; }
  .view figcaption { padding: 12px 14px 14px; font-size: 13.5px; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
  .pf .devp { border-radius: 20px; padding: 5px; }
  .pf .devp img { border-radius: 16px; }
  .pf .devp .notch { top: 8px; height: 9px; }
  .pf:nth-child(2) { margin-top: 0; }
  .pf figcaption b { font-size: 14px; } .pf figcaption span { font-size: 11.5px; line-height: 1.5; display: block; }
}

/* ─── الوثائق ─── */
.docs-sec { padding: 110px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.docs-sec::before { content: ""; position: absolute; inset: 0; background-image: var(--pat); background-size: 88px; opacity: .05; }
.docs-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.docs-copy h2 { font: 700 calc(clamp(28px, 3.4vw, 42px) * var(--hs))/1.3 var(--fk); margin: 12px 0 16px; }
.docs-copy p { color: #ffffffbf; font-size: 16.5px; font-weight: 300; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 4px #c9a55c26; }
.fan { position: relative; height: 520px; }
.dsheet { position: absolute; width: 46%; top: 50%; left: 50%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.dsheet img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 60px #00000073, 0 0 0 1px #0000000d; background: #fff; }
.dsheet figcaption { display: none; }
.dsheet.s1 { transform: translate(-50%, -50%) translateX(40%) translateY(-14%) rotate(8deg); z-index: 1; }
.dsheet.s2 { transform: translate(-50%, -50%) translateX(12%) rotate(2deg); z-index: 2; }
.dsheet.s3 { transform: translate(-50%, -50%) translateX(-12%) rotate(-3deg); z-index: 3; }
.dsheet.s4 { transform: translate(-50%, -50%) translateX(-34%) translateY(8%) rotate(-6deg); z-index: 4; }
.fan:hover .dsheet.s1 { transform: translate(-50%, -50%) translateX(54%) rotate(9deg); }
.fan:hover .dsheet.s4 { transform: translate(-50%, -50%) translateX(-48%) translateY(8%) rotate(-8deg); }
@media (max-width: 900px) {
  .docs-sec { padding: 72px 0 90px; }
  .docs-in { grid-template-columns: 1fr; gap: 30px; }
  .fan { height: 0; padding-bottom: 92%; }
}

/* ─── جرّب بدور ─── */
.roles-sec { padding: 110px 0; background: var(--ivory); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto; }
.role { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: start; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; font-family: var(--fb); color: var(--text); }
.role:hover { border-color: var(--gold); box-shadow: var(--sh); transform: translateY(-3px); }
.role .ri { grid-row: span 2; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--gold2); }
.role .ri .si { width: 26px; height: 26px; stroke-width: 1.6; }
.role b { font: 700 calc(19px * var(--hs))/1.3 var(--fk); color: var(--ink); }
.role small { color: var(--mut); font-size: 13.5px; line-height: 1.5; grid-column: 2; }
.role .go { grid-row: span 2; grid-column: 3; grid-row-start: 1; color: var(--gold3); opacity: .5; transition: opacity .2s, transform .2s; }
.role:hover .go { opacity: 1; transform: translateX(-4px); }
.role.busy { opacity: .6; pointer-events: none; }
.role.sel { border-color: var(--gold); box-shadow: 0 0 0 3px #c9a55c33; }
@media (max-width: 860px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .roles-sec { padding: 72px 0; } .role-grid { grid-template-columns: 1fr; gap: 10px; } .role { padding: 16px; } .role .ri { width: 46px; height: 46px; } }

/* ─── التطبيق ─── */
.app-sec { padding: 110px 0 100px; background: radial-gradient(60% 80% at 80% 30%, #18306a, transparent 65%), var(--ink2); color: #fff; overflow: hidden; }
.app-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 60px; align-items: center; }
.app-copy h2 { font: 700 calc(clamp(28px, 3.4vw, 42px) * var(--hs))/1.3 var(--fk); margin: 12px 0 16px; }
.app-copy p { color: #ffffffc2; font-size: 17px; font-weight: 300; max-width: 540px; }
.app-copy .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.app-note { font-size: 13.5px; color: #ffffff80; margin-top: 16px; }
.app-note a { color: var(--gold2); }
.app-art { display: grid; place-items: center; }
.ph-app { width: 260px; }
.home-scr { aspect-ratio: 780 / 1600; border-radius: 26px; overflow: hidden; padding: 46px 18px 18px; background: radial-gradient(120% 80% at 20% 0%, #2c4a8a, transparent 60%), radial-gradient(100% 70% at 100% 100%, #6b4f22, transparent 60%), #10204a; }
.home-scr .clock { text-align: center; font: 600 38px/1 var(--fb); color: #fff; margin-bottom: 30px; direction: ltr; }
.home-scr .icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
.home-scr i { aspect-ratio: 1; border-radius: 13px; background: #ffffff1f; }
.app-ic { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app-ic img { width: 100%; aspect-ratio: 1; border-radius: 13px; box-shadow: 0 0 0 2px var(--gold), 0 10px 24px #00000080; animation: glow 2.6s ease-in-out infinite; }
.app-ic { min-width: 0; }
.app-ic small { font-size: 8.5px; color: #fff; white-space: nowrap; max-width: 140%; overflow: visible; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 24px #c9a55c99; } }
@media (max-width: 860px) { .app-in { grid-template-columns: 1fr; text-align: center; } .app-copy p { margin-inline: auto; } .app-copy .cta { justify-content: center; } .app-sec { padding: 72px 0; } .ph-app { width: 210px; } }

/* ─── الختام ─── */
.final { padding: 80px 0; background: var(--goldg); color: #1b1305; }
.final-in { text-align: center; }
.final h2 { font: 700 calc(clamp(26px, 3.2vw, 38px) * var(--hs))/1.3 var(--fk); }
.final p { font-size: 17px; margin: 10px auto 26px; max-width: 560px; color: #2a1e08; }
.final .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ─── التذييل ─── */
.foot { background: #070e22; color: #ffffffb3; padding: 64px 0 0; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #ffffff14; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { max-width: 380px; line-height: 1.9; }
.foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.foot-nav b { color: var(--gold2); font-weight: 600; margin-bottom: 4px; }
.foot-nav a, .foot-nav .lnk { color: #ffffffb3; text-decoration: none; font-weight: 400; text-align: start; }
.foot-nav a:hover, .foot-nav .lnk:hover { color: #fff; }
.foot-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 0 26px; font-size: 13px; color: #ffffff73; }
.foot-end a { color: var(--gold2); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ─── الظهور عند التمرير (CSS فقط — بلا سكربت وبلا وميض) ─── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes rv { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) { .float, .app-ic img { animation: none; } html { scroll-behavior: auto; } }

/* ═══ الصفحات الداخلية: الدخول، التجربة، الطلب، التحقق، رابط الدخول، لوحة المنصة ═══ */
.auth { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; padding: 46px 16px 70px; background: radial-gradient(70% 50% at 50% 0%, #e9dfc7, transparent 70%); }
.auth::before { content: ""; position: absolute; inset: 0; background-image: var(--pat); background-size: 88px; opacity: .06; pointer-events: none; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.card { position: relative; background: var(--card); border-radius: 24px; box-shadow: 0 0 0 1px #0b16300d, var(--sh2); padding: 34px 30px; width: 100%; max-width: 460px; }
.auth.wide .card { max-width: 820px; }
.page-note::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--goldg); }
.card h1 { font: 700 calc(30px * var(--hs))/1.3 var(--fk); color: var(--ink); margin-bottom: 6px; }
.card > p, .step > p { margin-bottom: 16px; }
.fld { display: block; margin-bottom: 14px; border: 0; }
.fld > span { display: block; font-size: 13.5px; color: var(--mut); margin-bottom: 6px; font-weight: 500; }
.fld input, .fld select, .fld textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 15px; font: 500 16px var(--fb); background: var(--ivory2); color: var(--text); outline: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
.fld textarea { line-height: 1.75; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px #c9a55c26; background: #fff; }
.fld .fe { display: block; color: var(--bad); font-size: 13px; margin-top: 5px; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 8px; }
.otp { display: flex; gap: 8px; justify-content: center; margin: 8px 0 16px; }
.otp input { width: 48px; height: 58px; text-align: center; font: 600 24px var(--fb); border: 1.5px solid var(--line); border-radius: 13px; background: var(--ivory2); outline: 0; }
.otp input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px #c9a55c26; background: #fff; }
.ctxs { display: grid; gap: 10px; }
.ctx { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: start; transition: border-color .15s, box-shadow .15s; }
.ctx:hover { border-color: var(--gold); box-shadow: var(--sh); }
.ctx img, .ctx .lg { width: 48px; height: 48px; border-radius: 13px; object-fit: contain; background: var(--ivory); color: var(--ink); display: grid; place-items: center; flex: none; }
.ctx b { display: block; font-weight: 600; }
.ctx small { color: var(--mut); }
.pw { position: relative; display: block; }
.pw input { padding-inline-end: 50px !important; }
.pw .eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; border-radius: 11px; color: var(--mut); cursor: pointer; display: grid; place-items: center; }
.pw .eye.on { color: var(--ink3); background: #eef1fa; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; border: 0; padding: 0; }
.link-hint { display: flex; gap: 9px; align-items: flex-start; background: #ecf8f1; border: 1px solid #bfe5cf; border-radius: 13px; padding: 11px 13px; font-size: 13.5px; color: #1d5a3c; margin: 6px 0 14px; }
.link-hint .si { color: var(--wa); }
.uname { background: var(--ivory); border-radius: 13px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; }
.btn.ghost.mb8 { margin-bottom: 8px; }
.ldl, .verify dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; background: var(--ivory); border-radius: 14px; padding: 14px 16px; margin: 6px 0 18px; font-size: 14.5px; text-align: start; }
.ldl dt, .verify dt { color: var(--mut); } .ldl dd, .verify dd { font-weight: 600; }
.verify { text-align: center; }
.vmark { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 38px; color: #fff; background: var(--ok); box-shadow: 0 0 0 7px #e9f6ec; }
.verify.bad .vmark { background: var(--bad); box-shadow: 0 0 0 7px #fdeeec; }
.adm-mark { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 12px; background: var(--ink); color: var(--gold2); }
.adm-mark .si { width: 28px; height: 28px; }
.talab { max-width: 580px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.fld .pick input { position: absolute; inset: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 15px; font-weight: 600; font-size: 14px; color: var(--mut); background: var(--ivory2); transition: .15s; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick input:focus-visible + span { box-shadow: 0 0 0 4px #c9a55c33; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: start; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .card { padding: 28px 20px; border-radius: 20px; } .card h1 { font-size: 26px; } .otp input { width: 42px; height: 52px; } }
/* /demo: اختيار الدور ثم الشخص */
.auth .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.auth .role { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 8px; padding: 18px 10px; }
.auth .role .ri { grid-row: auto; width: 50px; height: 50px; }
.auth .role b { font-size: 16px; }
.auth .role small, .auth .role .go { display: none; }
@media (max-width: 540px) { .auth .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.person { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: start; transition: border-color .15s; }
.person:hover { border-color: var(--gold); }
.person .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold2); font-weight: 700; flex: none; }
.person b { display: block; font-size: 14px; }
.person small { color: var(--mut); font-size: 12px; }

/* ═══ خريطة النظام (/nizam) ═══ */
.page-map .bb-sec { padding: 0 0 20px; background: linear-gradient(var(--ink) 0 360px, var(--ivory) 360px); }
.bb { position: relative; padding-top: 70px; }
.bb .cn { display: none; }
.bb-s { position: relative; }
.bb-head { text-align: center; color: #fff; margin-bottom: 40px; }
.bb-t { font: 700 calc(clamp(36px, 5vw, 60px) * var(--hs))/1.2 var(--fk); background: var(--goldg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bb-sw { display: block; width: 120px; height: 12px; margin: 6px auto 12px; overflow: visible; }
.bb-sw path { fill: none; stroke: var(--gold); stroke-width: 2px; stroke-linecap: round; }
.bb-lead { color: #ffffffc7; font-size: 17px; font-weight: 300; max-width: 640px; margin: 0 auto; }
.pillars { display: flex; align-items: stretch; justify-content: center; gap: 14px; max-width: 920px; margin: 0 auto 56px; }
.pl { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: var(--sh2); }
.pl.acc { flex: 1.15; border-top: 3px solid var(--gold); }
.pl.wa { flex: 1; border-top: 3px solid var(--wa); }
.pl-i { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--gold2); background: var(--ink); }
.pl.wa .pl-i { background: var(--wa); color: #fff; }
.pl-i .si { width: 26px; height: 26px; }
.pl b { display: block; font: 700 calc(20px * var(--hs))/1.35 var(--fk); color: var(--ink); }
.pl > div > span { display: block; font-size: 14px; line-height: 1.75; color: var(--mut); }
.pl-plus { align-self: center; font: 600 calc(30px * var(--hs))/1 var(--fk); color: var(--gold); }
.lv-t { text-align: center; font: 700 calc(26px * var(--hs))/1.3 var(--fk); color: var(--ink); margin-bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lv-t::before, .lv-t::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lv-t::after { transform: scaleX(-1); }
.lv-t small { font: 500 13px var(--fb); color: var(--mut); }
.nodes { position: relative; display: grid; gap: 44px 18px; justify-content: center; align-items: start; grid-template-columns: minmax(0, 480px); }
.nodes.four { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 50px; margin-top: -18px; }
.lv-3 .nodes { grid-template-columns: 1fr minmax(0, 480px) 1fr; }
.lv-3 .nd:first-child { grid-column: 2; }
.lv-3 .nd.dash { grid-column: 3; grid-row: 1; justify-self: start; max-width: 300px; margin-top: 30px; }
.nodes.four::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 1.5px; background: var(--gold); }
.nodes.four .nd::after { content: ""; position: absolute; top: -50px; left: 50%; width: 1.5px; height: 28px; background: var(--gold); }
.nd { position: relative; background: #fff; border-radius: 20px; padding: 36px 18px 18px; text-align: center; box-shadow: 0 0 0 1px #0b16300d, var(--sh); border-top: 3px solid var(--mc, var(--gold)); }
.nd h3 { font: 700 calc(22px * var(--hs))/1.3 var(--fk); color: var(--ink); }
.nd h3 small { display: inline-block; vertical-align: middle; font: 600 11.5px/1.7 var(--fb); color: var(--gold3); background: #f6eedb; border-radius: 99px; padding: 0 10px; }
.nd-s { color: var(--mut); font-size: 14px; line-height: 1.8; margin-top: 4px; }
.nd-n { margin-top: 10px; font-size: 13.5px; line-height: 1.75; color: #3d3368; background: #f2effa; border-radius: 12px; padding: 9px 12px; text-align: start; }
.nd.dash { background: #ffffffa6; box-shadow: none; border: 1.5px dashed #b9bfcc; }
.mag { position: absolute; top: -24px; left: 50%; margin-left: -24px; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--mc); box-shadow: 0 10px 20px #0b163033, 0 0 0 4px #fff; }
.mag .si { width: 23px; height: 23px; stroke-width: 1.8; }
.mag-principal, .who-principal, .nd:has(.mag-principal) { --mc: #1d3a8a; } .mag-vice, .who-vice, .nd:has(.mag-vice) { --mc: #1f5f4e; } .mag-secretary, .who-secretary, .nd:has(.mag-secretary) { --mc: #7a5230; }
.mag-accountant, .who-accountant, .nd:has(.mag-accountant) { --mc: #a5781c; } .mag-teacher, .who-teacher, .nd:has(.mag-teacher) { --mc: #a63a35; } .mag-parent, .who-parent, .nd:has(.mag-parent) { --mc: #5b4a8f; }
.mag-visitor, .nd:has(.mag-visitor) { --mc: #7b858e; } .who-hub { --mc: var(--wa); }
.acct { position: relative; margin-top: 14px; padding: 28px 9px 10px; border-radius: 14px; background: #f5f6fb; border: 1px solid #e3e6f2; text-align: start; }
.acct-h { position: absolute; top: 7px; inset-inline-start: 11px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink3); }
.acct-h .si { width: 15px; height: 15px; }
.scr { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.scr li { padding: 1px 10px; border-radius: 8px; background: #fff; border: 1px solid #e3e6f2; color: #263d74; font-size: 12.5px; line-height: 1.8; }
.mini { position: relative; margin-top: 9px; background: #efe7de; border-radius: 14px; padding: 28px 9px 10px; display: flex; flex-direction: column; gap: 6px; text-align: start; }
.mini-h { position: absolute; top: 7px; inset-inline-start: 11px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #0b6b3d; }
.mini-h .si { width: 15px; height: 15px; }
.b { max-width: 92%; padding: 5px 10px; border-radius: 11px; font-size: 12.5px; line-height: 1.7; box-shadow: 0 1px 1px #0000001a; }
.b.in { background: #fff; align-self: flex-start; border-start-start-radius: 3px; }
.b.out { background: #d9fdd3; align-self: flex-end; border-start-end-radius: 3px; }
.b.file::before { content: "PDF"; display: inline-block; margin-inline-end: 6px; padding: 0 5px; border-radius: 4px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.7; }
.lk { position: relative; height: 80px; display: grid; place-items: center; margin: 8px 0 6px; --lkc: var(--gold); }
.lk::before { content: ""; position: absolute; top: 4px; bottom: 12px; left: 50%; width: 1.5px; margin-left: -.75px; background: var(--lkc); }
.lk::after { content: ""; position: absolute; bottom: 2px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 10px solid var(--lkc); border-bottom: 0; }
.lk span { position: relative; padding: 4px 16px; border-radius: 99px; background: var(--ivory); border: 1px solid var(--lkc); font-size: 13.5px; font-weight: 600; color: var(--gold3); }
.lk.red { --lkc: var(--bad); } .lk.red span { color: var(--bad); }
.perm-sec, .chain-sec { padding: 70px 0 10px; }
.page-map .sec-t { text-align: center; font: 700 calc(clamp(26px, 3vw, 36px) * var(--hs))/1.3 var(--fk); color: var(--ink); margin-bottom: 10px; }
.page-map .sec-sub { text-align: center; margin: 0 auto 26px; max-width: 640px; }
.sheet { max-width: 920px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px #0b16300d, var(--sh); padding: 18px 16px 12px; overflow-x: auto; }
.perm { width: 100%; border-collapse: collapse; font-size: 14px; }
.perm thead th { width: 12%; padding: 0 2px 12px; vertical-align: bottom; font-size: 12.5px; font-weight: 600; }
.perm thead th:first-child { width: auto; }
.perm thead .mag { position: static; margin: 0 auto 6px; width: 36px; height: 36px; border-radius: 11px; box-shadow: none; }
.perm thead .mag .si { width: 18px; height: 18px; }
.perm tr.g th { padding: 16px 6px 6px; text-align: start; border-bottom: 1px solid var(--gold); font: 700 calc(17px * var(--hs))/1.3 var(--fk); color: var(--ink); }
.perm th[scope="row"] { padding: 8px 6px; text-align: start; font-weight: 400; line-height: 1.6; }
.perm th[scope="row"], .perm td { border-bottom: 1px solid #f0ebdf; }
.perm td { padding: 4px 2px; text-align: center; }
.perm td i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #dcd5c5; }
.yes { width: 22px; height: 22px; vertical-align: middle; }
.yes path { fill: none; stroke: var(--gold3); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.perm-notes { list-style: none; max-width: 920px; margin: 18px auto 0; display: grid; gap: 10px; }
.perm-notes li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.75; }
.perm-notes .si { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--gold3); }
.chain { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; }
.chain li { position: relative; counter-increment: s; background: #fff; border-radius: 18px; padding: 18px; padding-inline-start: 66px; box-shadow: 0 0 0 1px #0b16300d, var(--sh); }
.chain li::before { content: counter(s); position: absolute; top: 18px; inset-inline-start: 16px; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: var(--gold2); display: grid; place-items: center; font: 600 calc(16px * var(--hs))/1 var(--fk); }
.who { display: inline-block; margin-bottom: 5px; padding: 0 11px; border-radius: 99px; background: var(--mc); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.9; }
.chain p { font-size: 14.5px; line-height: 1.8; }
.safe-sec { padding: 70px 0 90px; }
.safe { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; max-width: 1040px; margin: 0 auto 34px; }
.sf { display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px #0b16300d, var(--sh); }
.sf .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--gold2); }
.sf b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.sf p { color: var(--mut); font-size: 14px; line-height: 1.75; }
.safe-sec .cta { display: flex; justify-content: center; }
@media (max-width: 1040px) {
  .nodes.four { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; margin-top: 0; }
  .nodes.four::before, .nodes.four .nd::after { display: none; }
  .lv-3 .nodes { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .lv-3 .nd:first-child { grid-column: 1; }
  .lv-3 .nd.dash { grid-column: 2; max-width: none; justify-self: stretch; }
  .chain { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-map .bb-sec { background: linear-gradient(var(--ink) 0 330px, var(--ivory) 330px); }
  .bb { padding-top: 46px; }
  .pillars { flex-direction: column; gap: 10px; margin-bottom: 44px; }
  .pl { flex-direction: column; text-align: center; padding: 18px; }
  .pl-plus { display: none; }
  .nodes, .nodes.four, .lv-3 .nodes { grid-template-columns: minmax(0, 1fr); }
  .lv-3 .nd:first-child, .lv-3 .nd.dash { grid-column: 1; grid-row: auto; max-width: none; margin-top: 0; justify-self: stretch; }
  .lk { height: 66px; }
  .chain { grid-template-columns: 1fr; }
  .perm { font-size: 13px; } .perm thead th { font-size: 11px; } .perm thead .mag { width: 28px; height: 28px; } .yes { width: 19px; height: 19px; }
  .sheet { padding: 12px 8px 8px; border-radius: 16px; }
}

/* ═══ تنزيل التطبيق: نافذة + شريط ═══ */
.ins-ov { position: fixed; inset: 0; z-index: 100; background: #050a18d9; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.ins-ov.show { opacity: 1; }
.ins { width: min(480px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 26px; box-shadow: var(--sh2); transform: translateY(20px) scale(.97); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ins-ov.show .ins { transform: none; }
.ins-h { position: relative; padding: 26px 24px 20px; background: radial-gradient(80% 120% at 80% 0%, #18306a, transparent 70%), var(--ink); color: #fff; display: flex; align-items: center; gap: 14px; }
.ins-h img { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 0 0 1.5px var(--gold); }
.ins-h b { display: block; font: 700 calc(21px * var(--hs))/1.3 var(--fk); }
.ins-h small { color: #ffffffb3; font-size: 13px; }
.ins-x { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffff1a; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.ins-tabs { display: flex; gap: 8px; padding: 14px 20px 0; }
.ins-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; color: var(--mut); cursor: pointer; }
.ins-tabs button.on { border-color: var(--ink); color: var(--ink); background: var(--ivory); }
.ins-b { padding: 18px 22px 24px; }
.ins-b ol { list-style: none; counter-reset: k; display: grid; gap: 14px; margin: 4px 0 6px; }
.ins-b ol li { counter-increment: k; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.7; }
.ins-b ol li::before { content: counter(k); flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--gold2); display: grid; place-items: center; font: 600 calc(14px * var(--hs)) var(--fk); }
.ins-b .k { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 7px; background: var(--ivory); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.ins-b .k .si { width: 16px; height: 16px; }
.ins-b h4 { font: 700 calc(15px * var(--hs)) var(--fk); color: var(--ink); margin: 16px 0 8px; }
.ins-b .note { font-size: 13px; color: var(--mut); margin-top: 12px; }
.ins-perks { display: grid; gap: 8px; margin: 2px 0 16px; font-size: 14px; color: var(--mut); }
.ins-perks span { display: flex; align-items: center; gap: 8px; }
.ins-perks span::before { content: "✓"; color: var(--ok); font-weight: 700; }
.ins-bar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px #00000059, 0 0 0 1px var(--hair); max-width: 440px; margin-inline: auto; transform: translateY(150%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ins-bar.show { transform: none; }
.ins-bar img { width: 46px; height: 46px; border-radius: 12px; }
.ins-bar div { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }
.ins-bar b { display: block; font-size: 14.5px; }
.ins-bar small { color: #ffffffa6; }
.ins-bar .x { background: none; border: 0; color: #ffffff8c; font-size: 20px; cursor: pointer; padding: 4px 6px; }
.toast-s { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: var(--sh2); font-size: 14.5px; }

/* ─── صفحة تطبيق أندرويد (/tatbiq): هاتف بإشعارات + المزايا + خطوات التثبيت + رمز للحاسوب ─── */
.tb-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(70% 90% at 15% 20%, #18306a 0%, transparent 60%), radial-gradient(60% 70% at 95% 85%, #2a2312 0%, transparent 55%), var(--ink); padding: 64px 0 90px; }
.tb-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: .6; }
.tb-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.tb-hero h1 { font: 700 calc(clamp(40px, 5.4vw, 68px) * var(--hs))/1.14 var(--fk); margin: 18px 0 20px; }
.tb-hero h1 em { display: block; font-style: normal; background: var(--goldg); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.tb-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tb-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 16px; font-size: 13.5px; color: #ffffff99; }
.tb-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-inline-end: 10px; vertical-align: middle; }
.tb-ios { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 0; border: 0; background: none; color: var(--gold2); font: 600 14px var(--fb); cursor: pointer; }
.tb-ios span { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #e9d6a366; }
.tb-ios .si { width: 18px; height: 18px; }
.tb-art { display: grid; place-items: center; }
.tb-ph { width: min(320px, 82vw); }
.tb-scr { aspect-ratio: 780 / 1688; border-radius: 26px; overflow: hidden; padding: 62px 13px 14px; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 20% 0%, #2c4a8a, transparent 60%), radial-gradient(100% 60% at 100% 100%, #6b4f22, transparent 60%), #10204a; }
.tb-lock { text-align: center; color: #fff; margin-bottom: 26px; }
.tb-lock b { display: block; font: 300 62px/1 var(--fb); direction: ltr; }
.tb-lock small { font-size: 13px; opacity: .85; }
.tb-ns { display: grid; gap: 10px; }
.tb-n { text-align: start; background: #ffffffeb; color: var(--text); border-radius: 18px; padding: 10px 13px 12px; box-shadow: 0 10px 24px #0000004d; opacity: 0; transform: translateY(-14px) scale(.98); animation: tbn .6s cubic-bezier(.2, .8, .2, 1) var(--d) forwards; }
@keyframes tbn { to { opacity: 1; transform: none; } }
.tb-nh { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--mut); margin-bottom: 3px; }
.devp .tb-nh img { width: 18px; height: 18px; aspect-ratio: auto; border-radius: 5px; }
.tb-nh time { margin-inline-start: auto; }
.tb-n b { display: block; font-size: 13.5px; line-height: 1.45; }
.tb-n p { font-size: 12.5px; line-height: 1.6; color: #3a4258; margin: 2px 0 0; }
.tb-feat { padding: 84px 0 40px; }
.tb-fg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tb-f { background: var(--card); border-radius: 20px; padding: 26px 22px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px #0b16300d; }
.tb-f .ark-i { margin-bottom: 0; }
.tb-f h3 { font: 700 calc(19px * var(--hs))/1.4 var(--fk); color: var(--ink); margin: 16px 0 6px; }
.tb-f p { color: var(--mut); font-size: 14.5px; line-height: 1.8; margin: 0; }
.tb-how { padding: 40px 0 96px; }
.tb-how-in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; background: var(--card); border-radius: 26px; padding: 44px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px #0b163014; }
.tb-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 16px; }
.tb-steps li { counter-increment: s; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; }
.tb-steps li::before { content: counter(s); grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--gold2); font: 700 17px var(--fb); }
.tb-steps b { color: var(--ink); font-size: 16.5px; }
.tb-steps span { color: var(--mut); font-size: 14.5px; }
.tb-note { font-size: 13px; color: var(--mut2); line-height: 1.85; margin: 0 0 22px; max-width: 620px; }
.tb-qr { display: grid; justify-items: center; gap: 6px; text-align: center; }
.tb-qr-box { width: 200px; height: 200px; padding: 16px; border-radius: 20px; background: var(--ivory2); box-shadow: 0 0 0 1px var(--line); margin-bottom: 10px; }
.tb-qr-box svg { display: block; width: 100%; height: 100%; }
.tb-qr b { color: var(--ink); font-size: 17px; }
.tb-qr span { color: var(--mut); font-size: 14px; max-width: 240px; }
@media (max-width: 1000px) {
  .tb-in { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
  .tb-hero .lead { margin-inline: auto; }
  .tb-hero .eyebrow, .tb-hero .cta, .tb-meta { justify-content: center; }
  .tb-fg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-how-in { grid-template-columns: minmax(0, 1fr); }
  .tb-qr { display: none; }
}
@media (max-width: 560px) {
  .tb-fg { grid-template-columns: minmax(0, 1fr); }
  .tb-how-in { padding: 28px 18px; border-radius: 22px; }
}

/* الشاشة الأولى كاملة بلا تمرير: على الحاسوب الواجهة بارتفاع الشاشة والهاتف يصغر حسب الارتفاع */
@media (min-width: 1001px) {
  .tb-hero { min-height: calc(100svh - 72px); display: flex; align-items: center; padding: 28px 0 36px; }
  .tb-hero > .wrap { width: min(1200px, 100% - 40px); }
  .tb-ph { width: min(300px, calc((100svh - 150px) * .44)); }
}
/* الهاتف: العنوان والوصف بجانب صورة هاتف صغيرة، والأزرار بسطر واحد تحتها */
@media (max-width: 760px) {
  .tb-hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 18px 0 22px; }
  .tb-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eb eb" "t art" "l art" "c c" "m m" "i i"; grid-template-rows: auto auto 1fr auto auto auto; gap: 0 14px; text-align: start; align-items: start; }
  .tb-copy { display: contents; }
  .tb-hero .eyebrow { grid-area: eb; justify-content: flex-start; margin-bottom: 12px; }
  .tb-hero h1 { grid-area: t; font-size: calc(clamp(26px, 8.2vw, 38px) * var(--hs)); white-space: nowrap; margin: 0 0 10px; }
  .tb-hero .lead { grid-area: l; font-size: 14px; line-height: 1.8; margin: 0; }
  .tb-art { grid-area: art; align-self: center; }
  .tb-ph { width: 300px; zoom: .44; }
  .tb-hero .cta { grid-area: c; display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; margin-top: 20px; }
  .tb-hero .cta .btn { width: auto; padding: 14px 10px; font-size: 15px; gap: 7px; }
  .tb-meta { grid-area: m; justify-content: center; margin-top: 12px; }
  .tb-ios { grid-area: i; justify-self: center; margin-top: 12px; }
}
@media (max-width: 360px) { .tb-ph { zoom: .38; } .tb-hero .cta { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tb-n { animation: none; opacity: 1; transform: none; } }

/* داخل التطبيق المثبّت: لا أزرار تنزيل ولا روابط تسويق بالشريط العلوي */
@media (display-mode: standalone) { .install-btn, .ins-bar, .top-nav, .foot-nav [href="/tatbiq"] { display: none !important; } }
