
/* ══════════════════════════════════════════════════════════════════════
   IBM Plex Sans Arabic — مستضاف محليًا (بلا اعتماد على Google Fonts)
   ══════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-600-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/IBMPlexSansArabic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ══════════════════════════════════════════════════════════════
   كود المنصات — DGA Design System Tokens
   المصدر: design.dga.gov.sa/guidelines/foundations
   ══════════════════════════════════════════════════════════════ */
:root {
  /* ── الألوان الأساسية (SA) ── */
  --sa-25:#F7FDF9;  --sa-50:#F3FCF6;  --sa-100:#DFF6E7; --sa-200:#B8EACB;
  --sa-300:#88D8AD; --sa-400:#54C08A; --sa-500:#25935F; --sa-600:#1B8354;
  --sa-700:#166A45; --sa-800:#14573A; --sa-900:#104631; --sa-950:#092A1E;

  /* ── الألوان المحايدة (Gray) ── */
  --gray-25:#FCFCFD;  --gray-50:#F9FAFB;  --gray-100:#F3F4F6; --gray-200:#E5E7EB;
  --gray-300:#D2D6DB; --gray-400:#9DA4AE; --gray-500:#6C737F; --gray-600:#4D5761;
  --gray-700:#384250; --gray-800:#1F2A37; --gray-900:#111927; --gray-950:#0D121C;

  /* ── الألوان الثانوية ── */
  --gold-100:#FFFCE6; --gold-200:#FCF3BD; --gold-300:#FAE996; --gold-400:#F7D54D; --gold-500:#F5BD02; --gold-600:#DBA102; --gold-700:#B87B02;
  --lav-100:#F2E9F5;  --lav-200:#E1CCE8;  --lav-500:#80519F;  --lav-600:#6D428F;

  /* ── الألوان الدلالية ── */
  --success-100:#DCFAE6; --success-500:#17B26A; --success-600:#079455; --success-700:#067647;
  --warning-100:#FEF0C7; --warning-500:#F79009; --warning-600:#DC6803; --warning-700:#B54708;
  --error-100:#FEE4E2;   --error-400:#F97066;   --error-500:#F04438;   --error-600:#D92D20;   --error-700:#B42318;
  --info-100:#D1E9FF;    --info-400:#53B1FD;    --info-500:#2E90FA;    --info-600:#1570EF;    --info-700:#175CD3;

  /* ── الفواصل (spacing) ── */
  --sp-xxs:2px;  --sp-xs:4px;   --sp-sm:6px;   --sp-md:8px;   --sp-lg:12px;
  --sp-xl:16px;  --sp-2xl:20px; --sp-3xl:24px; --sp-4xl:32px; --sp-5xl:40px;
  --sp-6xl:48px; --sp-7xl:64px; --sp-8xl:80px; --sp-9xl:96px; --sp-10xl:128px;

  /* ── الحاويات ── */
  --container-max:1280px;
  --container-pad-mobile:16px;
  --container-pad-desktop:32px;
  --paragraph-max:720px;

  /* ── نصف القطر ── */
  --r-xs:4px; --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-2xl:20px; --r-full:999px;

  /* ── الظلال (shadow color 101828) ── */
  --shadow-xs:0 1px 2px 0 rgba(16,24,40,.05);
  --shadow-sm:0 1px 3px 0 rgba(16,24,40,.10), 0 1px 2px 0 rgba(16,24,40,.06);
  --shadow-md:0 4px 8px -2px rgba(16,24,40,.10), 0 2px 4px -2px rgba(16,24,40,.06);
  --shadow-lg:0 12px 16px -6px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03);
  --shadow-xl:0 20px 24px -4px rgba(16,24,40,.08), 0 8px 8px -4px rgba(16,24,40,.03);

  /* ── مقياس الطباعة ── */
  --display-lg:48px;  --display-lg-lh:60px;
  --display-md:36px;  --display-md-lh:44px;
  --display-sm:30px;  --display-sm-lh:38px;
  --display-xs:24px;  --display-xs-lh:32px;
  --text-xl:20px;     --text-xl-lh:30px;
  --text-lg:18px;     --text-lg-lh:28px;
  --text-md:16px;     --text-md-lh:24px;
  --text-sm:14px;     --text-sm-lh:20px;
  --text-xs:12px;     --text-xs-lh:18px;
  --text-2xs:10px;    --text-2xs-lh:14px;
}

/* ══════════════════════════════════════════════════════════════
   السمة الفاتحة — الأساسية
   ══════════════════════════════════════════════════════════════ */
:root, [data-theme="light"] {
  --bg:#FFFFFF;
  --bg-alt:var(--gray-50);
  --surface:#FFFFFF;
  --surface-alt:var(--gray-50);
  --surface-sunken:var(--gray-100);
  --border:var(--gray-200);
  --border-strong:var(--gray-300);

  --text:var(--gray-950);          /* 18.74:1 على أبيض */
  --text-2:var(--gray-700);        /*  9.68:1 */
  --text-3:var(--gray-600);        /*  6.72:1 */

  --brand:var(--sa-600);           /*  4.75:1 على أبيض — AA */
  --brand-hover:var(--sa-700);
  --brand-text:var(--sa-700);
  --brand-soft:var(--sa-50);
  --brand-soft-2:var(--sa-100);
  --brand-soft-border:var(--sa-200);
  --on-brand:#FFFFFF;

  --icon-chip-bg:var(--sa-50);
  --icon-chip-fg:var(--sa-700);
  --icon-chip-border:var(--sa-200);

  --hero-bg:linear-gradient(180deg, var(--sa-25) 0%, #FFFFFF 62%);
  --hero-pattern:var(--sa-200);
  --hero-pattern-opacity:.30;

  --field-bg:#FFFFFF;
  --track:var(--gray-100);
  --scroll-track:var(--gray-100);

  /* نبرات دلالية مهيأة للسمة — تحافظ على تباين ≥4.5:1 مع سطح البطاقة */
  --gold-fg:var(--gold-700);       --gold-bg:var(--gold-100);       --gold-bd:var(--gold-200);
  --error-fg:var(--error-700);     --error-bg:var(--error-100);     --error-bd:var(--error-100);
  --success-fg:var(--success-700); --success-bg:var(--success-100); --success-bd:var(--success-100);
  --info-fg:var(--info-700);       --info-bg:var(--info-100);       --info-bd:var(--info-100);
}

/* ══════════════════════════════════════════════════════════════
   السمة الداكنة — الثانوية
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:var(--gray-950);
  --bg-alt:#0A0F17;
  --surface:var(--gray-900);
  --surface-alt:var(--gray-800);
  --surface-sunken:#0A0F17;
  --border:var(--gray-800);
  --border-strong:var(--gray-700);

  --text:#FFFFFF;                  /* 18.74:1 على Gray 950 */
  --text-2:rgba(255,255,255,.72);
  --text-3:rgba(255,255,255,.60);

  --brand:var(--sa-500);           /* أزرار: 4.84:1 على الخلفية الداكنة */
  --brand-hover:var(--sa-600);
  --brand-text:var(--sa-400);      /* نص: 8.29:1 على Gray 950 */
  --brand-soft:rgba(84,192,138,.10);
  --brand-soft-2:rgba(84,192,138,.16);
  --brand-soft-border:rgba(84,192,138,.26);
  --on-brand:#FFFFFF;

  --icon-chip-bg:rgba(84,192,138,.12);
  --icon-chip-fg:var(--sa-400);
  --icon-chip-border:rgba(84,192,138,.28);

  --hero-bg:linear-gradient(180deg, #0A1A13 0%, var(--gray-950) 62%);
  --hero-pattern:var(--sa-700);
  --hero-pattern-opacity:.45;

  --field-bg:var(--gray-950);
  --track:var(--gray-800);
  --scroll-track:var(--gray-900);

  --gold-fg:var(--gold-500);       --gold-bg:rgba(245,189,2,.12);   --gold-bd:rgba(245,189,2,.28);
  --error-fg:var(--error-400);     --error-bg:rgba(249,112,102,.12);--error-bd:rgba(249,112,102,.28);
  --success-fg:var(--success-500); --success-bg:rgba(23,178,106,.12);--success-bd:rgba(23,178,106,.28);
  --info-fg:var(--info-400);       --info-bg:rgba(83,177,253,.12);  --info-bd:rgba(83,177,253,.28);

  --shadow-xs:0 1px 2px 0 rgba(0,0,0,.40);
  --shadow-sm:0 1px 3px 0 rgba(0,0,0,.45), 0 1px 2px 0 rgba(0,0,0,.30);
  --shadow-md:0 4px 8px -2px rgba(0,0,0,.50), 0 2px 4px -2px rgba(0,0,0,.32);
  --shadow-lg:0 12px 16px -6px rgba(0,0,0,.50), 0 4px 6px -2px rgba(0,0,0,.28);
  --shadow-xl:0 20px 24px -4px rgba(0,0,0,.55), 0 8px 8px -4px rgba(0,0,0,.30);
}

/* ══════════════════════════════════════════════════════════════
   الأساسات
   ══════════════════════════════════════════════════════════════ */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:132px; }

body {
  font-family:'IBM Plex Sans Arabic','Segoe UI',Tahoma,sans-serif;
  font-size:var(--text-md);
  line-height:var(--text-md-lh);
  background:var(--bg);
  color:var(--text);
  direction:rtl;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  transition:background-color .25s ease, color .25s ease;
}

.container { max-width:var(--container-max); padding-inline:var(--container-pad-mobile); }
@media (min-width:960px) { .container { padding-inline:var(--container-pad-desktop); } }
/* الفواصل داخل الشبكة لا تتجاوز حشوة الحاوية — يمنع الفيضان الأفقي على الجوال */
.container > .row, .container > * > .row { --bs-gutter-x:24px; }

::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background:var(--scroll-track); }
::-webkit-scrollbar-thumb { background:var(--gray-400); border-radius:var(--r-full); border:3px solid var(--scroll-track); }
::-webkit-scrollbar-thumb:hover { background:var(--gray-500); }

:focus-visible { outline:2px solid var(--brand); outline-offset:2px; border-radius:var(--r-xs); }

.skip-link {
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}
.skip-link:focus {
  width:auto; height:auto; overflow:visible; clip:auto; clip-path:none;
  top:var(--sp-md); inset-inline-start:var(--sp-md); z-index:2000;
  background:var(--brand); color:var(--on-brand); padding:var(--sp-lg) var(--sp-3xl);
  border-radius:var(--r-md); font-weight:600; font-size:var(--text-sm);
}

h1,h2,h3,h4,h5,h6 { font-weight:700; color:var(--text); letter-spacing:-.02em; }
p { color:var(--text-2); }
a { color:var(--brand-text); text-decoration:none; }
a:hover { color:var(--brand-hover); }

/* ══════════════════════════════════════════════════════════════
   الشريط الحكومي
   ══════════════════════════════════════════════════════════════ */
.gov-bar {
  background:var(--gray-950);
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:var(--text-xs);
  line-height:var(--text-xs-lh);
  position:fixed; top:0; inset-inline:0; z-index:1002;
}
.gov-bar__inner { display:flex; align-items:center; justify-content:space-between; gap:var(--sp-xl); height:36px; }
.gov-bar__kingdom { display:inline-flex; align-items:center; gap:var(--sp-md); color:rgba(255,255,255,.82); font-weight:500; }
.flag-dot { width:8px; height:8px; border-radius:var(--r-full); background:var(--sa-400); flex:none; }
.gov-bar__links { display:flex; gap:var(--sp-3xl); }
.gov-bar__links a { color:rgba(255,255,255,.70); font-weight:500; }
.gov-bar__links a:hover { color:#FFFFFF; }
@media (max-width:600px) { .gov-bar__links { display:none; } }

/* ══════════════════════════════════════════════════════════════
   الترويسة
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position:fixed; top:36px; inset-inline:0; z-index:1001;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  transition:box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { box-shadow:var(--shadow-sm); }
.header__inner { display:flex; align-items:center; gap:var(--sp-3xl); min-height:72px; }

.brand { display:flex; align-items:center; gap:var(--sp-lg); flex:none; }
.brand__logo { width:36px; height:52px; object-fit:contain; display:block; }
[data-theme="light"] .brand__logo--dark,
[data-theme="dark"]  .brand__logo--light { display:none; }
.brand__text { display:flex; flex-direction:column; line-height:1.35; }
.brand__text strong { font-size:var(--text-sm); font-weight:700; color:var(--text); }
.brand__text span { font-size:var(--text-xs); color:var(--text-3); font-weight:400; }

/* الجوال أولًا: القائمة درج منسدل تحت الترويسة */
.nav {
  position:absolute; top:100%; inset-inline:0; margin:0;
  background:var(--surface); border-bottom:1px solid var(--border);
  box-shadow:var(--shadow-lg); padding:var(--sp-xl) var(--container-pad-mobile);
  display:none;
}
.nav.is-open { display:block; }
.nav ul { display:flex; flex-direction:column; align-items:stretch; gap:var(--sp-xs); list-style:none; }
.nav a {
  display:block; white-space:nowrap; padding:var(--sp-md) var(--sp-lg); border-radius:var(--r-md);
  font-size:var(--text-sm); font-weight:600; color:var(--text-2);
  border:1px solid transparent; transition:all .2s ease;
}
.nav a:hover { background:var(--brand-soft); color:var(--brand-text); }
.nav a.is-active { background:var(--brand-soft); color:var(--brand-text); border-color:var(--brand-soft-border); }

.header__actions { display:flex; align-items:center; gap:var(--sp-lg); flex:none; }

.theme-toggle {
  width:40px; height:40px; border-radius:var(--r-md);
  background:var(--surface-alt); border:1px solid var(--border);
  color:var(--text-2); font-size:16px; display:grid; place-items:center;
  cursor:pointer; transition:all .2s ease;
}
.theme-toggle:hover { background:var(--brand-soft); color:var(--brand-text); border-color:var(--brand-soft-border); }
[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="dark"]  .theme-toggle .icon-moon { display:none; }

.nav-toggle {
  display:grid; width:40px; height:40px; border-radius:var(--r-md);
  background:var(--surface-alt); border:1px solid var(--border); color:var(--text);
  font-size:18px; cursor:pointer; place-items:center;
}

.nav a { padding:var(--sp-lg) var(--sp-xl); }
.header__inner { gap:var(--sp-lg); }
.brand__text strong { font-size:var(--text-xs); }
@media (max-width:600px) {
  .brand__text { display:none; }
}

/* ── تحسين تدريجي: من 1200px تصبح القائمة شريطًا أفقيًا ── */
@media (min-width:1200px) {
  .nav-toggle { display:none; }
  .nav {
    position:static; margin-inline-start:auto;
    background:transparent; border-bottom:0; box-shadow:none; padding:0;
    display:block;
  }
  .nav ul { flex-direction:row; align-items:center; gap:var(--sp-xs); }
  .nav a { padding:var(--sp-md) var(--sp-lg); }
  .header__inner { gap:var(--sp-3xl); }
  .brand__text strong { font-size:var(--text-sm); }
}

/* ══════════════════════════════════════════════════════════════
   الأزرار
   ══════════════════════════════════════════════════════════════ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:var(--sp-md);
  font-family:inherit; font-size:var(--text-sm); font-weight:600; line-height:var(--text-sm-lh);
  padding:var(--sp-lg) var(--sp-2xl); border-radius:var(--r-md);
  border:1px solid transparent; cursor:pointer; transition:all .2s ease; white-space:nowrap;
}
.btn i { font-size:16px; }
.btn--primary { background:var(--brand); color:var(--on-brand); border-color:var(--brand); }
.btn--primary:hover { background:var(--brand-hover); border-color:var(--brand-hover); color:var(--on-brand); }
.btn--secondary { background:var(--surface); color:var(--text); border-color:var(--border-strong); }
.btn--secondary:hover { background:var(--surface-alt); border-color:var(--text-3); color:var(--text); }
.btn--lg { padding:var(--sp-xl) var(--sp-4xl); font-size:var(--text-md); line-height:var(--text-md-lh); }
.btn--block { width:100%; }
.btn:disabled { opacity:.6; cursor:not-allowed; }

/* ══════════════════════════════════════════════════════════════
   البطل — Hero
   ══════════════════════════════════════════════════════════════ */
#home {
  background:var(--hero-bg);
  padding-top:calc(108px + var(--sp-8xl));
  padding-bottom:var(--sp-8xl);
  position:relative; overflow:hidden;
  border-bottom:1px solid var(--border);
}
.hero-pattern {
  position:absolute; inset:0; pointer-events:none;
  opacity:var(--hero-pattern-opacity);
  color:var(--hero-pattern);
  -webkit-mask-image:linear-gradient(to bottom, #000 0%, transparent 78%);
          mask-image:linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero-pattern { overflow:hidden; }
.hero-pattern svg { width:100%; height:100%; display:block; }

.eyebrow {
  display:inline-flex; align-items:center; gap:var(--sp-md);
  background:var(--brand-soft); color:var(--brand-text);
  border:1px solid var(--brand-soft-border); border-radius:var(--r-full);
  padding:var(--sp-sm) var(--sp-xl);
  font-size:var(--text-xs); line-height:var(--text-xs-lh); font-weight:600;
  width:fit-content; margin-bottom:var(--sp-3xl);
}
.eyebrow .dot { width:6px; height:6px; border-radius:var(--r-full); background:var(--brand); flex:none; }

.hero-title {
  font-size:var(--display-md); line-height:var(--display-md-lh);
  font-weight:700; letter-spacing:-.02em; margin-bottom:var(--sp-2xl);
}
.hero-title .accent { color:var(--brand-text); }
@media (min-width:960px) { .hero-title { font-size:var(--display-lg); line-height:var(--display-lg-lh); } }

.hero-en {
  font-size:var(--text-xs); line-height:var(--text-xs-lh); letter-spacing:.12em;
  color:var(--text-3); font-weight:500; direction:ltr; text-align:right;
  margin-bottom:var(--sp-xl); text-transform:uppercase;
}
.hero-lead {
  font-size:var(--text-lg); line-height:var(--text-lg-lh);
  color:var(--text-2); max-width:var(--paragraph-max); margin-bottom:var(--sp-4xl);
}
.hero-actions { display:flex; flex-wrap:wrap; gap:var(--sp-lg); }

.hero-panel {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-xl); box-shadow:var(--shadow-lg);
  padding:var(--sp-4xl); position:relative;
}
.hero-headline-stat {
  display:flex; align-items:baseline; gap:var(--sp-md);
  padding-bottom:var(--sp-3xl); margin-bottom:var(--sp-3xl);
  border-bottom:1px solid var(--border);
}
.hero-headline-stat .num {
  font-size:var(--display-sm); line-height:var(--display-sm-lh);
  font-weight:700; color:var(--brand-text); letter-spacing:-.02em;
}
.hero-headline-stat .unit { font-size:var(--text-lg); font-weight:600; color:var(--text-2); }
.hero-headline-stat .label { font-size:var(--text-sm); color:var(--text-3); margin-inline-start:auto; }

.ring-wrap { display:flex; align-items:center; gap:var(--sp-3xl); margin-bottom:var(--sp-3xl); }
.ring { width:132px; height:132px; position:relative; flex:none; }
.ring svg { width:100%; height:100%; transform:rotate(-90deg); }
.ring__text { position:absolute; inset:0; display:grid; place-content:center; text-align:center; }
.ring__num { font-size:var(--display-xs); line-height:var(--display-xs-lh); font-weight:700; color:var(--text); }
.ring__label { font-size:var(--text-xs); color:var(--text-3); }
.ring-note { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }

.minis { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--sp-lg); }
.mini {
  background:var(--surface-alt); border:1px solid var(--border);
  border-radius:var(--r-md); padding:var(--sp-xl);
}
.mini__num { font-size:var(--text-xl); line-height:var(--text-xl-lh); font-weight:700; }
.mini__label { font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--text-3); }

.hero-chip {
  display:inline-flex; align-items:center; gap:var(--sp-md);
  margin-top:var(--sp-3xl); padding:var(--sp-lg) var(--sp-xl);
  background:var(--surface-alt); border:1px solid var(--border); border-radius:var(--r-md);
  font-size:var(--text-sm); color:var(--text-2); font-weight:500;
}

/* ══════════════════════════════════════════════════════════════
   الأقسام
   ══════════════════════════════════════════════════════════════ */
section { padding:var(--sp-9xl) 0; }
.section--alt { background:var(--bg-alt); border-block:1px solid var(--border); }

.section-header { max-width:var(--paragraph-max); margin-bottom:var(--sp-7xl); }
.section-tag {
  display:inline-block; font-size:var(--text-sm); line-height:var(--text-sm-lh);
  font-weight:600; color:var(--brand-text); margin-bottom:var(--sp-lg);
}
.section-title {
  font-size:var(--display-sm); line-height:var(--display-sm-lh);
  margin-bottom:var(--sp-xl);
}
@media (min-width:960px) { .section-title { font-size:var(--display-md); line-height:var(--display-md-lh); } }
.section-desc { font-size:var(--text-lg); line-height:var(--text-lg-lh); color:var(--text-2); }

.card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:var(--sp-4xl);
  box-shadow:var(--shadow-xs);
  transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
/* تمدد البطاقة لكامل ارتفاع العمود فقط عندما تكون العنصر الوحيد فيه */
.row > [class*="col-"] > .card:only-child { height:100%; }
.card--interactive:hover { box-shadow:var(--shadow-md); border-color:var(--border-strong); transform:translateY(-2px); }
.card__title { font-size:var(--text-lg); line-height:var(--text-lg-lh); font-weight:700; margin-bottom:var(--sp-md); }
.card__text { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }

/* حاوية الأيقونة — نمط كود المنصات */
.icon-chip {
  width:48px; height:48px; border-radius:var(--r-full);
  background:var(--icon-chip-bg); color:var(--icon-chip-fg);
  border:1px solid var(--icon-chip-border);
  display:grid; place-items:center; font-size:20px; flex:none;
  margin-bottom:var(--sp-2xl);
}
.icon-chip--sm { width:40px; height:40px; font-size:16px; margin-bottom:0; }
.icon-chip--solid { background:var(--brand); color:var(--on-brand); border-color:var(--brand); }

.h-card-title { display:flex; align-items:center; gap:var(--sp-lg); margin-bottom:var(--sp-3xl); }
.h-card-title h4 { font-size:var(--text-lg); line-height:var(--text-lg-lh); font-weight:700; }

/* خطوات العملية */
.steps { display:flex; flex-direction:column; gap:var(--sp-xl); }
.step {
  display:flex; gap:var(--sp-xl); padding:var(--sp-2xl);
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); box-shadow:var(--shadow-xs);
}
.step__num {
  width:40px; height:40px; flex:none; border-radius:var(--r-md);
  background:var(--brand-soft); color:var(--brand-text); border:1px solid var(--brand-soft-border);
  display:grid; place-items:center; font-size:var(--text-sm); font-weight:700;
  font-variant-numeric:tabular-nums;
}
.step__body h5 { font-size:var(--text-md); line-height:var(--text-md-lh); font-weight:700; margin-bottom:var(--sp-xs); }
.step__body p { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }

/* قائمة المتطلبات */
.req { display:flex; gap:var(--sp-xl); padding-block:var(--sp-2xl); border-top:1px solid var(--border); }
.req:first-of-type { border-top:0; padding-top:0; }
.req__body h6 { font-size:var(--text-md); line-height:var(--text-md-lh); font-weight:700; margin-bottom:var(--sp-xs); }
.req__body p { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }

/* ══════════════════════════════════════════════════════════════
   الإحصائيات
   ══════════════════════════════════════════════════════════════ */
.stat { text-align:start; }
.stat__num {
  font-size:var(--display-sm); line-height:var(--display-sm-lh);
  font-weight:700; letter-spacing:-.02em; margin-bottom:var(--sp-xs);
  font-variant-numeric:tabular-nums;
}
.stat__label { font-size:var(--text-md); line-height:var(--text-md-lh); font-weight:600; color:var(--text); }
.stat__sub { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-3); }

.bar { margin-bottom:var(--sp-2xl); }
.bar:last-child { margin-bottom:0; }
.bar__head {
  display:flex; justify-content:space-between; align-items:center; gap:var(--sp-lg);
  font-size:var(--text-sm); line-height:var(--text-sm-lh); margin-bottom:var(--sp-md);
}
.bar__head .name { display:inline-flex; align-items:center; gap:var(--sp-md); color:var(--text); font-weight:600; }
.bar__head .val { color:var(--text-3); font-variant-numeric:tabular-nums; }
.bar__swatch { width:10px; height:10px; border-radius:var(--r-xs); flex:none; }
.bar__track { height:8px; background:var(--track); border-radius:var(--r-full); overflow:hidden; }
.bar__fill { height:100%; width:0; border-radius:var(--r-full); transition:width 1s cubic-bezier(.22,.61,.36,1); }

.total-line {
  font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-3);
  padding-bottom:var(--sp-2xl); margin-bottom:var(--sp-2xl); border-bottom:1px solid var(--border);
}
.total-line strong { color:var(--text); font-variant-numeric:tabular-nums; }

.zone {
  display:flex; align-items:center; gap:var(--sp-lg);
  background:var(--surface-alt); border:1px solid var(--border);
  border-radius:var(--r-md); padding:var(--sp-xl); height:100%;
}
.zone__ar { font-size:var(--text-sm); line-height:var(--text-sm-lh); font-weight:600; color:var(--text); }
.zone > div { min-width:0; }
.zone__en { font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--text-3); direction:ltr; text-align:start; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ══════════════════════════════════════════════════════════════
   التنبيهات
   ══════════════════════════════════════════════════════════════ */
.alert-box {
  display:flex; gap:var(--sp-xl); padding:var(--sp-3xl);
  border-radius:var(--r-lg); border:1px solid; margin-bottom:var(--sp-5xl);
}
.alert-box h5 { font-size:var(--text-md); line-height:var(--text-md-lh); font-weight:700; margin-bottom:var(--sp-xs); }
.alert-box p { font-size:var(--text-sm); line-height:var(--text-sm-lh); margin:0; }
.alert-box i { font-size:20px; flex:none; }
.alert-box--info { background:var(--info-100); border-color:var(--info-500); }
[data-theme="dark"] .alert-box--info { background:rgba(46,144,250,.10); border-color:rgba(46,144,250,.35); }
.alert-box--info i { color:var(--info-700); }
[data-theme="dark"] .alert-box--info i { color:var(--info-500); }
.alert-box--info h5 { color:var(--text); }
.alert-box--info p { color:var(--text-2); }

/* شارات */
.tag {
  display:inline-block; padding:var(--sp-xs) var(--sp-lg);
  background:var(--surface-alt); border:1px solid var(--border); border-radius:var(--r-full);
  font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--text-2); font-weight:500;
}
.tags { display:flex; flex-wrap:wrap; gap:var(--sp-md); margin-top:var(--sp-2xl); }

.partner__role { font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--text-3); direction:ltr; text-align:start; margin-bottom:var(--sp-lg); }
.verified {
  display:inline-flex; align-items:center; gap:var(--sp-sm);
  font-size:var(--text-xs); font-weight:600; color:var(--success-fg);
  background:var(--success-bg); border:1px solid var(--success-bd);
  border-radius:var(--r-full); padding:var(--sp-xs) var(--sp-lg);
}

/* ══════════════════════════════════════════════════════════════
   النماذج
   ══════════════════════════════════════════════════════════════ */
.field { margin-bottom:var(--sp-2xl); }
.field label {
  display:block; font-size:var(--text-sm); line-height:var(--text-sm-lh);
  font-weight:600; color:var(--text); margin-bottom:var(--sp-sm);
}
.field .req-mark { color:var(--error-600); }
.field input, .field select, .field textarea {
  width:100%; font-family:inherit;
  font-size:var(--text-md); line-height:var(--text-md-lh);
  padding:var(--sp-lg) var(--sp-xl);
  background:var(--field-bg); color:var(--text);
  border:1px solid var(--border-strong); border-radius:var(--r-md);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height:132px; resize:vertical; }
.field input::placeholder, .field textarea::placeholder { color:var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-soft-2);
}
.field .hint { font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--text-3); margin-top:var(--sp-sm); }

.contact-row { display:flex; gap:var(--sp-xl); padding-block:var(--sp-2xl); border-top:1px solid var(--border); }
.contact-row:first-of-type { border-top:0; padding-top:0; }
.contact-row__label { font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--text-3); margin-bottom:var(--sp-xxs); }
.contact-row__value { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text); font-weight:500; }

.callout {
  margin-top:var(--sp-3xl); padding:var(--sp-2xl);
  background:var(--brand-soft); border:1px solid var(--brand-soft-border); border-radius:var(--r-md);
  font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2);
  display:flex; gap:var(--sp-lg);
}
.callout i { color:var(--brand-text); font-size:16px; flex:none; margin-top:2px; }

/* ══════════════════════════════════════════════════════════════
   التذييل — أخضر داكن ثابت في السمتين
   ══════════════════════════════════════════════════════════════ */
.site-footer { background:var(--sa-900); color:#FFFFFF; padding:var(--sp-8xl) 0 var(--sp-4xl); }
.footer-brand { display:flex; align-items:center; gap:var(--sp-lg); margin-bottom:var(--sp-2xl); }
.footer-brand img { width:34px; height:49px; object-fit:contain; }
.footer-brand strong { font-size:var(--text-sm); font-weight:700; color:#FFFFFF; display:block; }
.footer-brand span { font-size:var(--text-xs); color:rgba(255,255,255,.70); }
.site-footer p { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:rgba(255,255,255,.70); max-width:420px; }
.footer-heading { font-size:var(--text-sm); font-weight:700; color:#FFFFFF; margin-bottom:var(--sp-2xl); }
.footer-list { list-style:none; display:flex; flex-direction:column; gap:var(--sp-lg); }
.footer-list a { font-size:var(--text-sm); color:rgba(255,255,255,.75); }
.footer-list a:hover { color:#FFFFFF; text-decoration:underline; }
.socials { display:flex; gap:var(--sp-lg); margin-top:var(--sp-3xl); }
.socials a {
  width:40px; height:40px; border-radius:var(--r-full);
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18);
  color:#FFFFFF; display:grid; place-items:center; font-size:16px; transition:background .2s ease;
}
.socials a:hover { background:rgba(255,255,255,.20); }
.footer-bottom {
  margin-top:var(--sp-7xl); padding-top:var(--sp-3xl); border-top:1px solid rgba(255,255,255,.14);
  display:flex; flex-wrap:wrap; gap:var(--sp-xl); justify-content:space-between;
  font-size:var(--text-xs); line-height:var(--text-xs-lh); color:rgba(255,255,255,.65);
}
.footer-bottom nav { display:flex; gap:var(--sp-3xl); flex-wrap:wrap; }
.footer-bottom a { color:rgba(255,255,255,.65); }
.footer-bottom a:hover { color:#FFFFFF; }

/* زر العودة للأعلى */
.to-top {
  position:fixed; inset-block-end:var(--sp-3xl); inset-inline-start:var(--sp-3xl); z-index:900;
  width:44px; height:44px; border-radius:var(--r-md);
  background:var(--surface); border:1px solid var(--border-strong); color:var(--text);
  box-shadow:var(--shadow-md); display:grid; place-items:center; font-size:16px;
  cursor:pointer; opacity:0; visibility:hidden; transform:translateY(8px); transition:all .25s ease;
}
.to-top.is-visible { opacity:1; visibility:visible; transform:none; }

/* ══════════════════════════════════════════════════════════════
   الحركة
   ══════════════════════════════════════════════════════════════ */
.reveal { opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce) {
  * { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .reveal { opacity:1; transform:none; }
}

/* ══════════════════════════════════════════════════════════════
   مكوّنات إضافية
   ══════════════════════════════════════════════════════════════ */

/* بطاقة الإعلان في البطل */
.announce { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); box-shadow:var(--shadow-lg); overflow:hidden; }
.announce__top { background:var(--sa-900); color:#FFFFFF; padding:var(--sp-3xl) var(--sp-4xl); text-align:center; }
.announce__forum { font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--sa-300); letter-spacing:.08em; margin-bottom:var(--sp-lg); }
.announce__medal { width:64px; height:64px; margin:0 auto var(--sp-xl); border-radius:var(--r-full); background:linear-gradient(160deg,var(--gold-400),var(--gold-700)); display:grid; place-items:center; color:#FFFFFF; font-size:26px; }
.announce__rank { font-size:var(--display-xs); line-height:var(--display-xs-lh); font-weight:700; color:#FFFFFF; }
.announce__body { padding:var(--sp-4xl); }
.announce__cat { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); margin-bottom:var(--sp-xl); }
.announce__cat strong { color:var(--text); }
.announce__slogan { font-size:var(--text-md); line-height:var(--text-md-lh); font-weight:600; color:var(--brand-text); padding-top:var(--sp-xl); border-top:1px solid var(--border); }

/* بطاقات المبادرات */
.initiative { position:relative; display:block; padding:var(--sp-4xl); border-radius:var(--r-lg); color:#FFFFFF; overflow:hidden; height:100%; box-shadow:var(--shadow-sm); }
.initiative:hover { color:#FFFFFF; box-shadow:var(--shadow-md); }
.initiative--a { background:linear-gradient(135deg,var(--sa-800),var(--sa-600)); }
.initiative--b { background:linear-gradient(135deg,var(--gray-900),var(--gray-700)); }
.initiative--c { background:linear-gradient(135deg,var(--lav-600),var(--lav-500)); }
.initiative i { font-size:24px; margin-bottom:var(--sp-2xl); display:block; opacity:.9; }
.initiative h3 { font-size:var(--text-lg); line-height:var(--text-lg-lh); color:#FFFFFF; margin-bottom:var(--sp-md); }
.initiative p { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:rgba(255,255,255,.82); margin:0; }
.initiative .more { display:inline-flex; align-items:center; gap:var(--sp-md); margin-top:var(--sp-2xl); font-size:var(--text-sm); font-weight:600; color:#FFFFFF; }

/* التبويبات */
.tabs { display:flex; flex-wrap:wrap; gap:var(--sp-md); padding:var(--sp-md); background:var(--surface-alt); border:1px solid var(--border); border-radius:var(--r-full); margin-bottom:var(--sp-6xl); }
.tab { display:inline-flex; align-items:center; gap:var(--sp-md); padding:var(--sp-lg) var(--sp-3xl); border:1px solid transparent; border-radius:var(--r-full); background:transparent; font-family:inherit; font-size:var(--text-sm); font-weight:600; color:var(--text-2); cursor:pointer; transition:all .2s ease; }
.tab:hover { color:var(--brand-text); background:var(--brand-soft); }
.tab[aria-selected="true"] { background:var(--brand); color:var(--on-brand); border-color:var(--brand); }
.tab-panel[hidden] { display:none; }

/* بطاقة إدارة فرعية */
.dept { display:block; height:100%; }
.dept__logo { width:52px; height:52px; border-radius:var(--r-md); background:var(--sa-900); display:grid; place-items:center; margin-bottom:var(--sp-2xl); padding:var(--sp-md); }
.dept__logo img { width:100%; height:100%; object-fit:contain; }
.dept__more { display:inline-flex; align-items:center; gap:var(--sp-md); margin-top:var(--sp-xl); font-size:var(--text-sm); font-weight:600; color:var(--brand-text); }

/* قائمة الملفات المرقّمة */
.numbered { list-style:none; }
.numbered li { display:flex; gap:var(--sp-xl); padding:var(--sp-2xl) 0; border-top:1px solid var(--border); font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }
.numbered li:first-child { border-top:0; padding-top:0; }
.numbered .n { flex:none; min-width:24px; font-weight:700; color:var(--brand-text); font-variant-numeric:tabular-nums; }

/* قائمة تحقق */
.checklist { list-style:none; margin-bottom:var(--sp-3xl); }
.checklist li { display:flex; gap:var(--sp-lg); padding:var(--sp-lg) 0; font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }
.checklist i { color:var(--brand-text); font-size:14px; margin-top:4px; flex:none; }

/* بطاقة خبر */
.news { display:flex; flex-direction:column; height:100%; overflow:hidden; padding:0; }
.news__media { aspect-ratio:16/10; background:var(--surface-sunken); display:grid; place-items:center; color:var(--text-3); font-size:28px; border-bottom:1px solid var(--border); }
.news__body { padding:var(--sp-3xl); display:flex; flex-direction:column; gap:var(--sp-md); flex:1; }
.news__date { display:inline-flex; align-items:center; gap:var(--sp-md); font-size:var(--text-xs); line-height:var(--text-xs-lh); color:var(--text-3); }
.news__title { font-size:var(--text-lg); line-height:var(--text-lg-lh); font-weight:700; }
.news__text { font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); margin:0; }

/* الأسئلة الشائعة */
.faq { border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface); overflow:hidden; box-shadow:var(--shadow-xs); }
.faq__item + .faq__item { border-top:1px solid var(--border); }
.faq__q { width:100%; display:flex; align-items:center; justify-content:space-between; gap:var(--sp-xl); padding:var(--sp-3xl); background:transparent; border:0; font-family:inherit; font-size:var(--text-md); line-height:var(--text-md-lh); font-weight:600; color:var(--text); text-align:start; cursor:pointer; }
.faq__q i { color:var(--brand-text); transition:transform .2s ease; flex:none; }
.faq__q[aria-expanded="true"] i { transform:rotate(180deg); }
.faq__a { padding:0 var(--sp-3xl) var(--sp-3xl); font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }
.faq__a[hidden] { display:none; }

/* بطاقة تسجيل الدخول */
.login-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-lg); padding:var(--sp-4xl); }
.login-card h3 { font-size:var(--text-xl); line-height:var(--text-xl-lh); margin-bottom:var(--sp-3xl); }
.login-meta { display:flex; align-items:center; justify-content:space-between; gap:var(--sp-xl); margin-bottom:var(--sp-3xl); font-size:var(--text-sm); }
.login-meta label { display:inline-flex; align-items:center; gap:var(--sp-md); color:var(--text-2); font-weight:500; margin:0; }

/* مسار التنقل */
.crumbs { display:flex; align-items:center; gap:var(--sp-md); font-size:var(--text-sm); color:var(--text-3); margin-bottom:var(--sp-xl); }
.crumbs a { color:var(--text-3); }
.crumbs a:hover { color:var(--brand-text); }

/* ══════════════════════════════════════════════════════════════
   ترويسة الصفحة الداخلية
   ══════════════════════════════════════════════════════════════ */
.page-head {
  background:var(--hero-bg);
  border-bottom:1px solid var(--border);
  padding-top:calc(108px + var(--sp-7xl));
  padding-bottom:var(--sp-7xl);
  position:relative; overflow:hidden;
}
.page-head__inner { position:relative; max-width:var(--paragraph-max); }
.page-head .section-title { margin-bottom:var(--sp-xl); }
.page-head .section-desc { margin-bottom:0; }
.page-head .btn { margin-top:var(--sp-4xl); }

/* الصفحة الداخلية تبدأ بترويسة، لا ببطل */
body[data-page] main > section:first-of-type:not(.page-head) { padding-top:var(--sp-9xl); }

@media (min-width:1200px) and (max-width:1399px) {
  .nav ul { gap:0; }
  .nav a { padding:var(--sp-md) var(--sp-md); }
  .brand__text span { display:none; }
}

/* مؤشر الروابط الخارجية في القائمة */
.nav a .ext { font-size:10px; opacity:.6; margin-inline-start:2px; vertical-align:1px; }

/* زر صغير */
.btn--sm { padding:var(--sp-sm) var(--sp-lg); font-size:var(--text-xs); line-height:var(--text-xs-lh); }
.btn--sm i { font-size:13px; }

/* ══════════════════════════════════════════════════════════════
   طبقة توافق: صفحات عامة لا نظير لها في الديمو
   (عن الإدارة · سياسة الخصوصية · تفاصيل المورد)
   تُبنى على نفس رموز «كود المنصات» أعلاه — بلا ألوان جديدة
   ══════════════════════════════════════════════════════════════ */
.dga-container { max-width:var(--container-max); margin-inline:auto; padding-inline:var(--container-pad-mobile); }
@media (min-width:960px) { .dga-container { padding-inline:var(--container-pad-desktop); } }

.dga-section { padding:var(--sp-9xl) 0; }
.dga-section:nth-of-type(even) { background:var(--bg-alt); border-block:1px solid var(--border); }

.dga-pagehead {
  background:var(--hero-bg); border-bottom:1px solid var(--border);
  padding-top:calc(108px + var(--sp-7xl)); padding-bottom:var(--sp-7xl);
}
.dga-pagehead__title { font-size:var(--display-sm); line-height:var(--display-sm-lh); font-weight:700; margin-bottom:var(--sp-xl); }
@media (min-width:960px) { .dga-pagehead__title { font-size:var(--display-md); line-height:var(--display-md-lh); } }

.dga-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:var(--sp-md); list-style:none; padding:0; margin-bottom:var(--sp-xl); font-size:var(--text-sm); color:var(--text-3); }
.dga-breadcrumb li + li::before { content:"‹"; margin-inline-end:var(--sp-md); color:var(--text-3); }
.dga-breadcrumb a { color:var(--text-3); }
.dga-breadcrumb a:hover { color:var(--brand-text); }

.dga-eyebrow {
  display:inline-flex; align-items:center; gap:var(--sp-md); width:fit-content;
  background:var(--brand-soft); color:var(--brand-text); border:1px solid var(--brand-soft-border);
  border-radius:var(--r-full); padding:var(--sp-sm) var(--sp-xl);
  font-size:var(--text-xs); line-height:var(--text-xs-lh); font-weight:600; margin-bottom:var(--sp-3xl);
}
.dga-lede { font-size:var(--text-lg); line-height:var(--text-lg-lh); color:var(--text-2); max-width:var(--paragraph-max); }
.dga-h2 { font-size:var(--display-sm); line-height:var(--display-sm-lh); margin-bottom:var(--sp-3xl); }
@media (min-width:960px) { .dga-h2 { font-size:var(--display-md); line-height:var(--display-md-lh); } }

.dga-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-xs); overflow:hidden; height:100%; }
.dga-panel__head { padding:var(--sp-3xl); border-bottom:1px solid var(--border); background:var(--surface-alt); }
.dga-panel__title { font-size:var(--text-lg); line-height:var(--text-lg-lh); font-weight:700; margin:0; }
.dga-panel__body { padding:var(--sp-3xl); color:var(--text-2); font-size:var(--text-sm); line-height:var(--text-sm-lh); }

.dga-split { display:grid; gap:var(--sp-6xl); }
@media (min-width:960px) { .dga-split { grid-template-columns:minmax(0,1fr) 320px; } }
.dga-split--aside { align-self:start; }

.dga-toc { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-xs); padding:var(--sp-3xl); list-style:none; }
.dga-toc li + li { margin-top:var(--sp-lg); }
.dga-toc a { font-size:var(--text-sm); font-weight:600; color:var(--text-2); }
.dga-toc a:hover { color:var(--brand-text); }

.dga-prose { color:var(--text-2); font-size:var(--text-md); line-height:var(--text-md-lh); max-width:var(--paragraph-max); }
.dga-prose h2, .dga-prose h3 { color:var(--text); margin:var(--sp-6xl) 0 var(--sp-xl); font-size:var(--text-xl); line-height:var(--text-xl-lh); }
.dga-prose h2:first-child, .dga-prose h3:first-child { margin-top:0; }
.dga-prose p { margin-bottom:var(--sp-2xl); }
.dga-prose ul, .dga-prose ol { margin:0 var(--sp-3xl) var(--sp-2xl) 0; }
.dga-prose li { margin-bottom:var(--sp-md); }

.dga-alert { display:flex; gap:var(--sp-xl); padding:var(--sp-3xl); border-radius:var(--r-lg); border:1px solid; margin-bottom:var(--sp-3xl); font-size:var(--text-sm); line-height:var(--text-sm-lh); }
.dga-alert--info { background:var(--info-bg); border-color:var(--info-bd); color:var(--text-2); }
.dga-alert--info i { color:var(--info-fg); }

.dga-dl { display:grid; gap:var(--sp-2xl); grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); margin:0; }
.dga-dl dt { font-size:var(--text-xs); font-weight:600; color:var(--text-3); margin-bottom:var(--sp-sm); }
.dga-dl dd { margin:0 0 var(--sp-2xl); font-size:var(--text-sm); color:var(--text); }

.dga-grid { display:grid; gap:var(--sp-3xl); grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.dga-grid--4 { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }

.dga-dept { display:block; height:100%; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:var(--sp-4xl); box-shadow:var(--shadow-xs); transition:all .2s ease; }
.dga-dept:hover { box-shadow:var(--shadow-md); border-color:var(--border-strong); transform:translateY(-2px); }
.dga-dept__icon { display:grid; place-items:center; width:52px; height:52px; padding:var(--sp-md); border-radius:var(--r-md); background:var(--sa-900); margin-bottom:var(--sp-2xl); }
.dga-dept__icon img { max-width:100%; height:auto; }
.dga-dept__title { font-size:var(--text-lg); line-height:var(--text-lg-lh); font-weight:700; margin-bottom:var(--sp-md); }
.dga-dept__more { display:inline-flex; align-items:center; gap:var(--sp-md); font-size:var(--text-sm); font-weight:600; color:var(--brand-text); }

.dga-checklist { list-style:none; padding:0; }
.dga-checklist li { display:flex; gap:var(--sp-lg); padding:var(--sp-lg) 0; font-size:var(--text-sm); line-height:var(--text-sm-lh); color:var(--text-2); }
.dga-checklist i { color:var(--brand-text); font-size:14px; margin-top:4px; flex:none; }

.dga-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:var(--sp-md);
  font-family:inherit; font-size:var(--text-sm); font-weight:600; line-height:var(--text-sm-lh);
  padding:var(--sp-lg) var(--sp-2xl); border-radius:var(--r-md);
  border:1px solid transparent; cursor:pointer; transition:all .2s ease;
}
.dga-btn--primary { background:var(--brand); color:var(--on-brand); border-color:var(--brand); }
.dga-btn--primary:hover { background:var(--brand-hover); border-color:var(--brand-hover); color:var(--on-brand); }
.dga-btn--secondary { background:var(--surface); color:var(--text); border-color:var(--border-strong); }
.dga-btn--secondary:hover { background:var(--surface-alt); color:var(--text); }
.dga-btn--lg { padding:var(--sp-xl) var(--sp-4xl); font-size:var(--text-md); line-height:var(--text-md-lh); }
.dga-form__actions { display:flex; flex-wrap:wrap; gap:var(--sp-lg); margin-top:var(--sp-3xl); }

.dga-footer__list { list-style:none; padding:0; display:flex; flex-direction:column; gap:var(--sp-lg); }
.dga-footer__link { font-size:var(--text-sm); color:var(--text-2); }
.dga-footer__link:hover { color:var(--brand-text); }
