/* ==========================================================================
   منصة مراجعة اللغة العربية — نظام التصميم V7 (EdTech Design System)
   الألوان: نيلي عميق (ثقة ومعرفة) + عنبري حيوي لأزرار الحث CTA
   الخطوط: Cairo للعناوين · IBM Plex Sans Arabic للنصوص
   ========================================================================== */

/* ---------- 1. متغيرات التصميم (Design Tokens) ---------- */
:root {
  /* الأسطح */
  --bg: #F6F7FC;
  --surface: #FFFFFF;
  --surface-2: #EEF0F9;
  --surface-soft: #EEF2FF;
  --surface-glass: rgba(255, 255, 255, 0.86);

  /* النصوص */
  --ink: #14123A;
  --ink-2: #3A3961;
  --muted: #5F5E80;

  /* الهوية: النيلي */
  --primary: #3730A3;
  --primary-2: #4F46E5;
  --primary-dark: #1E1B4B;
  --primary-ink: #3730A3;
  --sky: #0E7490;
  --sky-bright: #06B6D4;

  /* لون الحث على الإجراء CTA */
  --cta: #F59E0B;
  --cta-hover: #FBBF24;
  --cta-ink: #1E1B4B;
  --cta-shadow: rgba(245, 158, 11, 0.38);

  --pill-bg: #E0E7FF;
  --pill-ink: #3730A3;

  /* الحدود */
  --border: #E3E5F3;
  --border-strong: #CBD0EA;
  --border-blue: #C7D2FE;

  /* الظلال */
  --shadow-xs: 0 1px 3px rgba(30, 27, 75, 0.06);
  --shadow-sm: 0 6px 18px -6px rgba(30, 27, 75, 0.10);
  --shadow-md: 0 16px 36px -12px rgba(30, 27, 75, 0.18);
  --shadow-lg: 0 26px 56px -18px rgba(30, 27, 75, 0.32);

  /* الخطوط */
  --font-head: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Cairo', system-ui, -apple-system, sans-serif;

  /* الأبعاد */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

html[data-theme="dark"] {
  --bg: #0B0A20;
  --surface: #14133A;
  --surface-2: #1D1C4D;
  --surface-soft: rgba(129, 140, 248, 0.12);
  --surface-glass: rgba(15, 14, 40, 0.86);

  --ink: #F5F5FF;
  --ink-2: #CFCFEA;
  --muted: #A3A3C7;

  --primary: #A5B4FC;
  --primary-2: #818CF8;
  --primary-dark: #4F46E5;
  --primary-ink: #C7D2FE;
  --sky: #22D3EE;
  --sky-bright: #67E8F9;

  --pill-bg: rgba(129, 140, 248, 0.20);
  --pill-ink: #C7D2FE;

  --border: rgba(165, 180, 252, 0.14);
  --border-strong: rgba(165, 180, 252, 0.26);
  --border-blue: rgba(165, 180, 252, 0.34);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 20px -6px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 36px -10px rgba(0, 0, 0, 0.58);
  --shadow-lg: 0 26px 56px -16px rgba(0, 0, 0, 0.70);
}

/* ---------- 2. الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(79, 70, 229, 0.08) 0, transparent 34%),
    radial-gradient(circle at 96% 10%, rgba(245, 158, 11, 0.07) 0, transparent 30%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.35; }
img { max-width: 100%; }
a { color: inherit; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; right: 16px; z-index: 3000;
  background: var(--cta); color: var(--cta-ink); font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 3. الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s ease, color .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }
.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 22px -8px var(--cta-shadow); }
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 16px 28px -10px var(--cta-shadow); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(55, 48, 163, .6); }
html[data-theme="dark"] .btn-primary { background: var(--primary-2); color: #fff; }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.34); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary-ink); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-soft); border-color: var(--primary-2); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* ---------- 4. الهيدر والقوائم ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}
header.site-header.scrolled { box-shadow: 0 10px 30px -14px rgba(30, 27, 75, .28); }
.flag {
  height: 3px;
  background: linear-gradient(90deg, #000 0 25%, #e2e8f0 25% 50%, #00732F 50% 75%, #C8102E 75% 100%);
  opacity: .9;
}
.nav-inner {
  max-width: var(--container); margin: auto; height: var(--header-h);
  padding: 0 20px; display: flex; align-items: center; gap: 18px;
}
.brand-right { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand-right img.tr-logo { height: 42px; width: auto; max-width: 112px; object-fit: contain; display: block; flex-shrink: 0; transition: transform .3s var(--ease); }
.brand-right:hover img.tr-logo { transform: scale(1.06) rotate(-2deg); }
.brand-divider { width: 1px; height: 28px; background: var(--border-strong); flex-shrink: 0; }
.brand-text { min-width: 0; }
.brand-text b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-family: var(--font-head); font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2.5px;
  border-radius: 3px; background: var(--cta);
  transform: scaleX(0); transform-origin: right; transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--primary-ink); background: var(--surface-soft); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary-ink); font-weight: 700; }

.brand-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-inline-start: auto; }
.nav-links + .brand-left { margin-inline-start: 0; }
.brand-left img.sch-logo { height: 40px; width: auto; max-width: 54px; object-fit: contain; display: block; }
html[data-theme="dark"] .nav-inner img.sch-logo,
html[data-theme="dark"] .nav-inner img.tr-logo,
html[data-theme="dark"] .footer-logos img,
html[data-theme="dark"] .drawer-head img {
  background: rgba(255, 255, 255, .94); padding: 3px 6px; border-radius: 10px;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--primary-2); background: var(--surface-soft); color: var(--primary-ink); }
.icon-btn:active { transform: scale(.92); }
#themeBtn svg, #vthemeBtn svg { transition: transform .5s var(--ease); }
#themeBtn:hover svg, #vthemeBtn:hover svg { transform: rotate(40deg); }

/* زر القائمة (همبرغر) */
.menu-btn { display: none; }
.menu-btn .bars { position: relative; width: 20px; height: 14px; }
.menu-btn .bars i {
  position: absolute; inset-inline: 0; height: 2.2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease);
}
.menu-btn .bars i:nth-child(1) { top: 0; }
.menu-btn .bars i:nth-child(2) { top: 6px; }
.menu-btn .bars i:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* القائمة الجانبية للهاتف */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(12, 10, 40, .55);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(86vw, 360px); background: var(--surface);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(105%); visibility: hidden;
  transition: transform .38s var(--ease), visibility .38s ease;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.drawer-head .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-head img { height: 40px; width: auto; max-width: 96px; object-fit: contain; }
.drawer-head b { font-family: var(--font-head); font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.drawer-label { margin: 20px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a, .drawer nav button.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; border-radius: 14px; border: 0; background: transparent;
  font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--ink);
  text-align: right; text-decoration: none; cursor: pointer;
  opacity: 0; transform: translateX(18px);
  transition: background .18s ease, color .18s ease, opacity .35s ease, transform .35s var(--ease);
}
.drawer.open nav a, .drawer.open nav button.row { opacity: 1; transform: none; }
.drawer.open nav > *:nth-child(1) { transition-delay: .08s; }
.drawer.open nav > *:nth-child(2) { transition-delay: .13s; }
.drawer.open nav > *:nth-child(3) { transition-delay: .18s; }
.drawer.open nav > *:nth-child(4) { transition-delay: .23s; }
.drawer.open nav > *:nth-child(5) { transition-delay: .28s; }
.drawer nav a:hover, .drawer nav button.row:hover { background: var(--surface-soft); color: var(--primary-ink); }
.drawer nav .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-soft); color: var(--primary-ink); display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }
.drawer nav .ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawer-cta { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.drawer-cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- 5. الواجهة الرئيسية ---------- */
main { max-width: var(--container); margin: auto; padding: 26px 20px 20px; }

/* قسم الترحيب (Hero) */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 36px; align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px);
  border-radius: 32px; color: #fff;
  background:
    radial-gradient(circle at 10% 12%, rgba(129, 140, 248, .45) 0, transparent 40%),
    radial-gradient(circle at 92% 92%, rgba(245, 158, 11, .26) 0, transparent 38%),
    linear-gradient(135deg, #1E1B4B 0%, #312E81 46%, #4338CA 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
  mask-image: linear-gradient(200deg, #000, transparent 70%);
}
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb.a { width: 260px; height: 260px; left: -90px; bottom: -110px; border: 1.5px dashed rgba(255,255,255,.22); animation: spinSlow 40s linear infinite; }
.hero-orb.b { width: 120px; height: 120px; right: 38%; top: -46px; background: radial-gradient(circle, rgba(245,158,11,.45), transparent 70%); animation: floatY 7s ease-in-out infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(16px); } }

.hero-content { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: #E0E7FF;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 0 rgba(245,158,11,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
.hero h1 {
  margin: 16px 0 12px; font-weight: 900;
  font-size: clamp(28px, 4.8vw, 48px); line-height: 1.25; color: #fff; letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--cta-hover); position: relative; white-space: nowrap; }
.hero p { margin: 0 0 24px; font-size: clamp(15px, 2.2vw, 17.5px); line-height: 1.9; color: #D9DEFF; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.stats-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 480px;
  background: rgba(14, 12, 52, .42); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; backdrop-filter: blur(10px); overflow: hidden;
}
.stat { padding: 14px 8px; text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.18); }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.15; color: #fff; }
.stat small { display: block; font-size: 12.5px; color: #C7D2FE; margin-top: 2px; }

.hero-emblem { display: flex; justify-content: center; align-items: center; }
.emblem-frame {
  position: relative; box-sizing: border-box; width: 210px; height: auto; aspect-ratio: 299 / 423;
  padding: 12px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(12, 10, 46, .66), rgba(49, 46, 129, .55));
  border: 1px solid rgba(199, 210, 254, .32);
  box-shadow: 0 22px 44px rgba(8, 6, 32, .45), inset 0 1px 0 rgba(255,255,255,.2);
  animation: floatY 6s ease-in-out infinite;
}
.emblem-frame::before {
  content: ""; position: absolute; inset: -14px; border-radius: 36px; z-index: -1;
  border: 1.5px dashed rgba(245,158,11,.38);
}
.emblem-frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* شريط الإشراف */
.meta-strip {
  margin: 18px 0 0; padding: 12px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 28px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.meta-strip span { display: inline-flex; align-items: center; gap: 8px; }
.meta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-bright); flex-shrink: 0; }
.meta-dot.royal { background: var(--primary-2); }

/* عناوين الأقسام */
section.block { padding-top: 56px; }
.sec-head { margin: 0 0 6px; scroll-margin-top: calc(var(--header-h) + 16px); }
.eyebrow {
  display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-ink); font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
}
.sec-head h2 { margin: 0; font-weight: 800; font-size: clamp(22px, 3.6vw, 32px); color: var(--ink); }
.hint { margin: 6px 0 26px; font-size: 15.5px; color: var(--muted); max-width: 640px; }

/* بطاقات المزايا */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow-xs); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.feature::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-2), var(--cta)); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-blue); }
.feature:hover::after { transform: scaleX(1); }
.feature .f-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface-soft); color: var(--primary-ink); margin-bottom: 14px;
  transition: transform .35s var(--ease), background .25s ease, color .25s ease;
}
.feature:hover .f-ic { transform: rotate(-8deg) scale(1.08); background: var(--primary); color: #fff; }
html[data-theme="dark"] .feature:hover .f-ic { background: var(--primary-2); }
.feature .f-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 17.5px; font-weight: 700; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--muted); }

/* بطاقات الصفوف (الدورات) — تُولَّد بواسطة JavaScript */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gcard {
  position: relative; border: 1px solid var(--border); border-radius: 26px; padding: 0;
  background: var(--surface); color: var(--ink); cursor: pointer; text-align: right;
  font-family: inherit; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.gcard:hover, .gcard:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border-blue); outline: none; }
.gcard:active { transform: translateY(-3px) scale(.99); }
.gcard-banner {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 26px 24px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, #1E1B4B 0%, #3730A3 55%, #4F46E5 100%);
}
.gcard:nth-child(2) .gcard-banner { background: linear-gradient(135deg, #172554 0%, #1D4ED8 50%, #0891B2 100%); }
.gcard-banner::before {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%); mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.gcard-banner::after {
  content: ""; position: absolute; z-index: -1; width: 170px; height: 170px; border-radius: 50%;
  left: -50px; bottom: -90px; background: radial-gradient(circle, rgba(245,158,11,.34), transparent 70%);
  transition: transform .6s var(--ease);
}
.gcard:hover .gcard-banner::after { transform: scale(1.5) translate(20px, -10px); }
.gcard-title-group { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gcard-icon {
  width: 58px; height: 58px; border-radius: 18px; flex-shrink: 0; display: grid; place-items: center; font-size: 28px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px);
  transition: transform .4s var(--ease);
}
.gcard:hover .gcard-icon { transform: rotate(-10deg) scale(1.1); }
.gcard .gn { display: block; font-family: var(--font-head); font-weight: 800; font-size: 25px; line-height: 1.25; color: #fff; }
.gcard .gsub { display: block; font-size: 13px; color: #E0E7FF; margin-top: 2px; }
.gcard .status-pill {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.34); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.gcard .status-pill.visited { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); font-weight: 700; }
.gcard-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.gcard .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gcard .tags span {
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border);
}
.gcard .go {
  margin-top: auto; width: 100%; min-height: 50px; border-radius: 14px;
  background: var(--surface-soft); border: 1.5px solid var(--border-blue); color: var(--primary-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .22s ease, color .22s ease, border-color .22s ease, letter-spacing .22s ease, box-shadow .22s ease;
}
.gcard:hover .go { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); box-shadow: 0 12px 24px -10px var(--cta-shadow); }

/* مسار التعلم */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: s; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px 18px 20px; text-align: right; box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-blue); box-shadow: var(--shadow-md); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-ic {
  width: 48px; height: 48px; border-radius: 15px; background: var(--surface-soft);
  display: grid; place-items: center; font-size: 24px; transition: transform .35s var(--ease);
}
.step:hover .step-ic { transform: scale(1.12) rotate(6deg); }
.step-num {
  font-family: var(--font-head); font-size: 13px; font-weight: 800; color: var(--cta-ink);
  background: var(--cta); padding: 2px 11px; border-radius: 999px;
}
.step b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.step small { display: block; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* شريط الحث الختامي */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 56px;
  padding: clamp(28px, 5vw, 48px); border-radius: 28px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background:
    radial-gradient(circle at 88% 20%, rgba(245,158,11,.3) 0, transparent 40%),
    linear-gradient(135deg, #1E1B4B, #3730A3 70%, #4F46E5);
  box-shadow: var(--shadow-md);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.6px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; color: #fff; }
.cta-band p { margin: 0; color: #D9DEFF; font-size: 15.5px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. الفوتر ---------- */
footer.site-footer {
  margin-top: 64px; color: #C7CBEE; position: relative;
  background: linear-gradient(180deg, #17154A 0%, #0E0C33 100%);
}
footer.site-footer::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, #000 0 25%, #e2e8f0 25% 50%, #00732F 50% 75%, #C8102E 75% 100%); opacity: .9;
}
.footer-inner { max-width: var(--container); margin: auto; padding: 52px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .9fr 1fr 1.1fr; gap: 36px; padding-bottom: 34px; border-bottom: 1px solid rgba(199, 210, 254, .16); }
.footer-logos { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logos img { height: 44px; width: auto; object-fit: contain; display: block; background: rgba(255,255,255,.94); padding: 4px 8px; border-radius: 12px; }
.footer-brand p { margin: 0; font-size: 14.5px; line-height: 1.9; color: #AEB4E0; max-width: 360px; }
.footer-col h4 { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: #fff; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--cta); }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links button, .footer-links a {
  border: 0; background: transparent; padding: 0; font-family: var(--font-body);
  font-size: 14.5px; color: #AEB4E0; text-decoration: none; cursor: pointer; text-align: right;
  transition: color .18s ease, transform .18s var(--ease);
}
.footer-links button:hover, .footer-links a:hover { color: var(--cta-hover); transform: translateX(-4px); }
.footer-credits { display: flex; flex-direction: column; gap: 12px; }
.credit-row { font-size: 14.5px; color: #E8EAFF; display: flex; flex-direction: column; line-height: 1.5; }
.credit-row strong { font-family: var(--font-head); font-weight: 700; }
.credit-row small { font-size: 12.5px; color: #9AA0D0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: #AEB4E0; }
.contact-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--cta-hover); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; font-size: 13px; color: #9AA0D0;
}
.footer-dev { font-size: 12.5px; opacity: .9; }

/* ---------- 7. نافذة عرض الصف ---------- */
#viewer { position: fixed; inset: 0; height: 100dvh; z-index: 1000; background: var(--bg); display: none; flex-direction: column; }
#viewer.on { display: flex; animation: viewerIn .35s var(--ease); }
@keyframes viewerIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
#vbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: var(--surface-glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border); color: var(--ink); z-index: 10;
}
.vbar-back {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink);
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.vbar-back:hover { background: var(--surface-soft); border-color: var(--border-blue); color: var(--primary-ink); }
.vbar-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vbar-center { flex: 1; min-width: 0; text-align: center; }
.vbar-center b#vtitle { display: block; font-family: var(--font-head); font-weight: 800; font-size: 15.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.vbar-center span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vactions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pdf-top-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 0;
  background: var(--cta); color: var(--cta-ink); font-family: var(--font-head); font-size: 13.5px; font-weight: 800; cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.pdf-top-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pdf-top-btn:hover { background: var(--cta-hover); }
.pdf-top-btn:active { transform: scale(.95); }
#vframe { flex: 1; width: 100%; border: 0; background: var(--bg); }

/* ---------- 8. شريط التنقل السفلي (#pnav) ---------- */
#pnav { display: none; }

/* ---------- 9. شاشة التحميل ---------- */
#loading {
  position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; background: var(--surface-glass); backdrop-filter: blur(12px);
}
#loading.on { display: flex; }
#loading .spin {
  width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--primary-2); border-right-color: var(--cta);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading p { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 16px; }
#loading small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

button:focus-visible, .gcard:focus-visible, a:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* ---------- 10. حركة الظهور عند التمرير ---------- */
html.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
html.js-reveal .reveal.d1 { transition-delay: .08s; }
html.js-reveal .reveal.d2 { transition-delay: .16s; }
html.js-reveal .reveal.d3 { transition-delay: .24s; }

/* ---------- 11. التجاوب ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .brand-left { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 26px; padding: 28px 22px 30px; }
  .hero-content { align-items: center; }
  .hero-emblem { order: -1; }
  .emblem-frame { width: min(168px, 48vw); }
  .hero-actions { justify-content: center; }
  .hero p { max-width: 100%; }
  .stats-bar { max-width: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band .actions { justify-content: center; }
}
@media (max-width: 768px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  #pnav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface-glass); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-top: 1px solid var(--border); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px -10px rgba(30, 27, 75, .18);
  }
  html[data-theme="dark"] #pnav { box-shadow: 0 -8px 24px rgba(0, 0, 0, .45); }
  #pnav button {
    border: 0; background: transparent; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: 11.5px;
    padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; line-height: 1.15;
    cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .16s ease;
  }
  #pnav button .nav-ic { width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s ease, transform .15s ease; }
  #pnav button svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  #pnav button:active .nav-ic { transform: scale(.9); }
  #pnav button.on { color: var(--primary-ink); font-weight: 700; }
  #pnav button.on .nav-ic { background: var(--pill-bg); }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .features { grid-template-columns: 1fr; }
  section.block { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  body { font-size: 15.5px; }
  .container, main { padding-inline: 14px; }
  .nav-inner { padding: 0 14px; gap: 8px; }
  .brand-right { gap: 8px; }
  .brand-right img.tr-logo { height: 34px; max-width: 92px; }
  .brand-divider { height: 22px; }
  .brand-text b { font-size: 14px; }
  .brand-text span { font-size: 11px; }
  .brand-left { gap: 8px; }
  .brand-left img.sch-logo { height: 34px; max-width: 44px; }
  .icon-btn { width: 40px; height: 40px; border-radius: 11px; }
  main { padding-top: 16px; }
  .hero { border-radius: 24px; padding: 22px 16px 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 11px 4px; }
  .stat b { font-size: 21px; }
  .stat small { font-size: 11.5px; }
  .meta-strip { font-size: 13px; padding: 10px 12px; gap: 6px 14px; }
  .gcard { border-radius: 22px; }
  .gcard-banner { padding: 20px 18px; }
  .gcard-body { padding: 16px 18px 18px; }
  .gcard .gn { font-size: 22px; }
  .gcard-icon { width: 50px; height: 50px; font-size: 24px; }
  .steps { gap: 12px; }
  .step { padding: 16px 14px; }
  .cta-band { border-radius: 22px; }
  .cta-band .actions, .cta-band .actions .btn { width: 100%; }
  .footer-inner { padding: 40px 14px 20px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .vbar-back { padding: 0 11px; font-size: 13px; }
  .vbar-back span { display: none; }
  .pdf-top-btn { padding: 0 12px; }
}
@media (max-width: 480px) {
  .brand-right { flex-shrink: 1; gap: 6px; }
  .brand-divider, .brand-text span { display: none; }
  .brand-right img.tr-logo { max-width: 78px; }
  .brand-text b { white-space: normal; font-size: 12.5px; line-height: 1.35; }
  .brand-left { gap: 6px; }
  .brand-left img.sch-logo { max-width: 40px; height: 36px; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  .brand-right img.tr-logo { max-width: 66px; height: 30px; }
  .brand-text b { font-size: 11.5px; }
  .brand-left img.sch-logo { max-width: 34px; height: 32px; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js-reveal .reveal { opacity: 1; transform: none; }
}
@media print {
  header, main, footer, #vbar, #loading, #pnav, .flag, .drawer, .drawer-overlay { display: none !important; }
  #viewer { position: static !important; height: auto !important; display: block !important; }
  #vframe { height: auto !important; min-height: 100vh !important; overflow: visible !important; }
}

/* أزرار التواصل في الفوتر */
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contact-actions .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.contact-actions .btn-wa { background: #25D366; color: #0B3D1E; box-shadow: 0 10px 22px -10px rgba(37,211,102,.6); }
.contact-actions .btn-wa:hover { background: #3EE17C; transform: translateY(-2px); }
.contact-actions .btn-call { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.3); }
.contact-actions .btn-call:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.contact-num { direction: ltr; unicode-bidi: embed; font-weight: 600; color: #E8EAFF; text-decoration: none; }
.contact-num:hover { color: var(--cta-hover); }

/* ==========================================================================
   V8 — إضافات: الشكل والقوائم والتثبيت
   ========================================================================== */
[hidden] { display: none !important; }

/* أرقام واضحة */
.stat b, .vbar-center b { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }
.stat b { font-family: 'IBM Plex Sans Arabic', var(--font-head); font-weight: 700; }

/* نقش نجمة الخاتم يمتد من الانترو إلى الهيرو والفوتر */
.hero::after, .cta-band::after, footer.site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23F2C46B' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 15% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 15% 100%, #000, transparent 70%);
}
footer.site-footer { overflow: hidden; isolation: isolate; }

/* أيقونات الخطوات (SVG بدل الإيموجي) */
.step-ic { color: var(--primary-ink); }
.step-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step:hover .step-ic { background: var(--primary); color: #fff; }
html[data-theme="dark"] .step:hover .step-ic { background: var(--primary-2); }

/* أيقونات بطاقات الصفوف (SVG تُحقن عبر ui.js) */
.gcard-icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* زر «تابع من حيث توقفت» */
.btn-resume { background: rgba(245,158,11,.16); color: #FFE3A3; border-color: rgba(245,158,11,.55); }
.btn-resume:hover { background: rgba(245,158,11,.28); transform: translateY(-2px); }

/* القائمة الجانبية: صفوف الخيارات + واتساب */
.drawer nav button.row[hidden] { display: none !important; }
.btn-wa { background: #25D366; color: #0B3D1E; box-shadow: 0 10px 22px -10px rgba(37,211,102,.6); }
.btn-wa:hover { background: #3EE17C; transform: translateY(-2px); }
.btn-wa svg { width: 20px; height: 20px; }
.footer-links button[hidden] { display: none !important; }

/* شريط العرض: أهداف لمس 44px + زر Aa */
.vbar-back { height: 44px; min-width: 44px; justify-content: center; }
#vbar .icon-btn { width: 44px; height: 44px; }
.pdf-top-btn { height: 44px; }
.pdf-top-btn.loading { pointer-events: none; opacity: .85; }
.pdf-top-btn.loading svg { animation: spinBtn .8s linear infinite; }
@keyframes spinBtn { to { transform: rotate(360deg); } }
.aa { font-family: var(--font-head); font-weight: 800; font-size: 15px; line-height: 1; }
#vzoomBtn[data-level="1"] .aa { color: var(--cta); font-size: 17px; }
#vzoomBtn[data-level="2"] .aa { color: var(--cta); font-size: 19px; }

/* الشريط السفلي يختفي عند التمرير للأسفل */
#pnav { transition: transform .32s var(--ease); }
body.pnav-hide #pnav { transform: translateY(115%); }

/* نافذة تعليمات iOS + إشعار */
.sheet-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; background: rgba(12,10,40,.6); backdrop-filter: blur(4px); animation: fadeIn .25s ease; }
.sheet { position: relative; width: min(100%, 460px); background: var(--surface); color: var(--ink-2); border-radius: 26px 26px 0 0; padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; box-shadow: var(--shadow-lg); animation: sheetUp .35s var(--ease); }
.sheet img { border-radius: 16px; box-shadow: var(--shadow-sm); }
.sheet h3 { margin: 12px 0 14px; font-size: 20px; }
.sheet ol { margin: 0; padding: 0 20px 0 0; text-align: right; display: grid; gap: 10px; font-size: 15.5px; }
.sheet .inl { width: 18px; height: 18px; vertical-align: -4px; stroke: var(--primary-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-close { position: absolute; top: 14px; left: 14px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; z-index: 3000; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 420px); background: var(--primary-dark); color: #fff; padding: 12px 20px; border-radius: 14px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); animation: toastIn .35s var(--ease); display: flex; align-items: center; gap: 12px; }
.toast button { border: 0; background: var(--cta); color: var(--cta-ink); border-radius: 10px; padding: 6px 14px; font-family: inherit; font-weight: 800; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

/* وضع التطبيق المثبّت */
@media (display-mode: standalone) {
  header.site-header { padding-top: env(safe-area-inset-top, 0px); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* شريط العرض على الشاشات الصغيرة: زر PDF أيقونة فقط ليتّسع عنوان الصف */
@media (max-width: 440px) {
  .pdf-top-btn span { display: none; }
  .pdf-top-btn { width: 44px; padding: 0; justify-content: center; }
  .vactions { gap: 6px; }
  #vbar { padding-inline: 10px; gap: 8px; }
}

