/* ═══════════════════════════════════════════════════════════════════
   BLUEPRINT — DESIGN SYSTEM v1
   نظام تصميم موحّد لكل صفحات blueprint2soft.com
   ───────────────────────────────────────────────────────────────────
   المبدأ: نطوّر هوية Blueprint الموجودة لا نستبدلها.
     • الكحلي العميق أساساً        • الأزرق الهندسي للأفعال
     • السماوي للتمييز التقني فقط   • مساحات واسعة وحدود 1px دقيقة
     • لغة المخطط الهندسي (شبكة، أركان، ترقيم، mono)
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. TOKENS — الوضع الداكن (الافتراضي)
   ───────────────────────────────────────────────────────────── */
:root {
  /* ── الأسطح ── */
  --bg:            #0a0e27;
  --bg-deep:       #070b1e;
  --surface-1:     #0e1433;
  --surface-2:     #131a3d;
  --surface-3:     #1b244f;
  --surface-glass: rgba(19, 26, 61, .55);

  /* ── العلامة ── */
  --brand:         #1f6ae0;   /* الأزرق الهندسي — 4.96:1 مع النص الأبيض */
  --brand-strong:  #1454bd;
  --brand-soft:    rgba(43, 127, 255, .13);
  --brand-line:    rgba(43, 127, 255, .38);
  --brand-bright:  #4d97ff;   /* للنص/الأيقونات على خلفية داكنة فقط */

  /* ── التمييز التقني (بحذر) ── */
  --accent:        #00e5ff;
  --accent-soft:   rgba(0, 229, 255, .10);
  --accent-line:   rgba(0, 229, 255, .32);

  /* ── النص ── */
  --text:          #eaf2ff;
  --text-muted:    #9aa6c9;   /* 7.85:1 على --bg */
  --text-subtle:   #8390b4;   /* 5.6:1 — أدنى درجة مسموحة للنص الصغير */
  --text-on-brand: #ffffff;

  /* ── الحدود ── */
  --border:        rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);

  /* ── الحالات ── */
  --success:       #22d39a;
  --success-soft:  rgba(34, 211, 154, .12);
  --warn:          #ffb43d;
  --warn-soft:     rgba(255, 180, 61, .12);
  --danger:        #ff4d6a;
  --danger-soft:   rgba(255, 77, 106, .12);

  /* ── الظلال ── */
  --shadow-1: 0 1px 2px rgba(0,0,0,.28);
  --shadow-2: 0 6px 20px rgba(0,0,0,.34);
  --shadow-3: 0 18px 44px rgba(0,0,0,.44);
  --glow:     0 0 26px rgba(0, 229, 255, .18);

  /* ── الخطوط ── */
  --font-head: 'Cairo', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* ── السلّم الطباعي (مرن) ── */
  --fs-display: clamp(2rem,  1.2rem + 3.6vw, 3.6rem);
  --fs-h1:      clamp(1.75rem, 1.1rem + 2.7vw, 2.85rem);
  --fs-h2:      clamp(1.45rem, 1.05rem + 1.7vw, 2.15rem);
  --fs-h3:      clamp(1.15rem, .98rem + .72vw, 1.45rem);
  --fs-h4:      1.0625rem;
  --fs-lead:    clamp(1rem, .96rem + .3vw, 1.15rem);
  --fs-body:    1rem;
  --fs-sm:      .9375rem;
  --fs-xs:      .8125rem;
  --fs-mono:    .75rem;

  --lh-tight: 1.25;
  --lh-head:  1.4;
  --lh-body:  1.85;

  /* ── المسافات (أساس 4px) ── */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  /* إيقاع الأقسام */
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* ── الاستدارة ── */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 22px;  --r-pill: 999px;

  /* ── العرض ── */
  --container:        1200px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, .6rem + 1.6vw, 1.5rem);

  /* ── الحركة ── */
  --ease:   cubic-bezier(.22, .61, .36, 1);
  --dur-1:  .18s;
  --dur-2:  .28s;
  --dur-3:  .55s;

  /* ── الشريط العلوي ── */
  --nav-h: 68px;
  --nav-brand-bg: #0d347f;   /* أزرق صلب — 8.1:1 مع الأبيض */

  /* ── توافق مع الكود القديم (لا تستخدمها في كود جديد) ── */
  --card: var(--surface-glass);
  --dim:  var(--text-muted);
  --mono: var(--font-mono);
  --radius: var(--r-xl);
  --accent2: var(--brand-strong);
  --border-strong-legacy: var(--accent-line);
}

/* ─────────────────────────────────────────────────────────────
   2. TOKENS — الوضع الفاتح
   ───────────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg:            #f6f8fd;
  --bg-deep:       #eef2fa;
  --surface-1:     #ffffff;
  --surface-2:     #f3f7fd;
  --surface-3:     #e7eefb;
  --surface-glass: rgba(255, 255, 255, .72);

  --brand:         #1157c9;
  --brand-strong:  #0c3f96;
  --brand-bright:  #1157c9;
  --brand-soft:    rgba(17, 87, 201, .08);
  --brand-line:    rgba(17, 87, 201, .30);

  --accent:        #04607f;   /* 5.6:1 على الخلفية الفاتحة */
  --accent-soft:   rgba(4, 96, 127, .08);
  --accent-line:   rgba(4, 96, 127, .30);

  --text:          #0b1533;
  --text-muted:    #4d5b7c;
  --text-subtle:   #5a678a;   /* 5.1:1 على الخلفية الفاتحة */
  --text-on-brand: #ffffff;

  --border:        rgba(11, 21, 51, .11);
  --border-strong: rgba(11, 21, 51, .20);

  --success:       #0f9d6f;
  --success-soft:  rgba(15, 157, 111, .10);
  --warn:          #8a5600;
  --warn-soft:     rgba(184, 118, 10, .10);
  --danger:        #c01f3f;
  --danger-soft:   rgba(211, 39, 72, .09);

  --shadow-1: 0 1px 2px rgba(11,21,51,.06);
  --shadow-2: 0 6px 20px rgba(11,21,51,.09);
  --shadow-3: 0 18px 44px rgba(11,21,51,.13);
  --glow:     0 0 24px rgba(17, 87, 201, .12);
  --nav-brand-bg: #0d347f;
}

/* ─────────────────────────────────────────────────────────────
   3. الأساس
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

::selection { background: var(--brand); color: #fff; }

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 900; line-height: var(--lh-head); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 800; }

a { color: inherit; }

/* التركيز — مرئي دائماً لمستخدم لوحة المفاتيح */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* تخطي إلى المحتوى */
.bp-skip {
  position: absolute; inset-inline-start: var(--sp-4); top: -100px; z-index: 200;
  background: var(--brand); color: var(--text-on-brand);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md);
  font-weight: 800; text-decoration: none; transition: top var(--dur-1) var(--ease);
}
.bp-skip:focus { top: var(--sp-3); }

/* ─────────────────────────────────────────────────────────────
   4. التخطيط
   ───────────────────────────────────────────────────────────── */
.bp-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.bp-container--narrow { max-width: var(--container-narrow); }

.bp-section { padding-block: var(--section-y); position: relative; }
.bp-section + .bp-section { padding-top: 0; }

.bp-stack   > * + * { margin-top: var(--sp-4); }
.bp-stack-lg > * + * { margin-top: var(--sp-8); }

.bp-grid { display: grid; gap: var(--sp-5); }
.bp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.bp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.bp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ─────────────────────────────────────────────────────────────
   5. خلفية المخطط الهندسي — توقيع Blueprint البصري
   ───────────────────────────────────────────────────────────── */
.bp-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bp-backdrop::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%,  var(--brand-soft), transparent 62%),
    radial-gradient(ellipse 55% 45% at 85% 18%, var(--accent-soft), transparent 62%);
}
.bp-backdrop::after {
  content: ''; position: absolute; inset: -120px;
  background-image:
    linear-gradient(var(--grid-line, rgba(255,255,255,.05)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line, rgba(255,255,255,.05)) 1px, transparent 1px),
    linear-gradient(var(--grid-line-fine, rgba(255,255,255,.025)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-fine, rgba(255,255,255,.025)) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  mask-image: radial-gradient(ellipse 92% 78% at 50% 0%, #000 32%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 92% 78% at 50% 0%, #000 32%, transparent 88%);
  animation: bpGridDrift 70s linear infinite;
}
:root[data-theme="light"] .bp-backdrop::after {
  --grid-line: rgba(17, 87, 201, .085);
  --grid-line-fine: rgba(17, 87, 201, .04);
}
@keyframes bpGridDrift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(128px,128px,0); }
}

/* أركان المخطط — تُوضع على أي عنصر بـ .bp-corners */
.bp-corners { position: relative; }
.bp-corners::before, .bp-corners::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1.5px solid var(--accent-line); pointer-events: none;
}
.bp-corners::before { top: -1px; inset-inline-start: -1px; border-inline-end: 0; border-bottom: 0; }
.bp-corners::after  { bottom: -1px; inset-inline-end: -1px; border-inline-start: 0; border-top: 0; }

/* ─────────────────────────────────────────────────────────────
   6. عناوين الأقسام
   ───────────────────────────────────────────────────────────── */
.bp-kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-3);
}
.bp-kicker::before { content: ''; width: 22px; height: 1px; background: var(--accent-line); }

.bp-section-head { max-width: var(--container-narrow); margin-bottom: var(--sp-12); }
.bp-section-head--center { margin-inline: auto; text-align: center; }
.bp-section-head--center .bp-kicker::after { content: ''; width: 22px; height: 1px; background: var(--accent-line); }

.bp-title { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.bp-lead  { font-size: var(--fs-lead); color: var(--text-muted); line-height: var(--lh-body); }

/* رقم هندسي — 01 / 02 / 03 */
.bp-num {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  font-weight: 700; color: var(--accent); letter-spacing: .1em;
}

/* ─────────────────────────────────────────────────────────────
   7. الأزرار
   ───────────────────────────────────────────────────────────── */
.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding-inline: var(--sp-6);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 800;
  border: 1px solid transparent; border-radius: var(--r-md);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.bp-btn:active { transform: translateY(1px); }

.bp-btn--primary { background: var(--brand); color: var(--text-on-brand); box-shadow: var(--shadow-2); }
.bp-btn--primary:hover { background: var(--brand-strong); box-shadow: var(--shadow-3); }

.bp-btn--outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.bp-btn--outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.bp-btn--ghost { background: transparent; color: var(--text-muted); }
.bp-btn--ghost:hover { color: var(--text); background: var(--surface-2); }

.bp-btn--sm { min-height: 44px; padding-inline: var(--sp-4); font-size: var(--fs-xs); }
.bp-btn--block { width: 100%; }

.bp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.bp-btn .bp-arrow { transition: transform var(--dur-1) var(--ease); }
.bp-btn:hover .bp-arrow { transform: translateX(-4px); }

/* ─────────────────────────────────────────────────────────────
   8. البطاقات
   ───────────────────────────────────────────────────────────── */
.bp-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.bp-card--solid { background: var(--surface-2); }
.bp-card--flat  { background: transparent; }

.bp-card--interactive { cursor: pointer; display: flex; flex-direction: column; }
.bp-card--interactive:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-3);
}

/* شريط علوي ملوّن اختياري */
.bp-card--accent { position: relative; overflow: hidden; }
.bp-card--accent::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--c1, var(--brand)), var(--c2, var(--accent)));
}

.bp-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--sp-5);
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand);
}
:root[data-theme="dark"] .bp-card__icon,
:root:not([data-theme]) .bp-card__icon { color: var(--accent); }
.bp-card__icon svg { width: 24px; height: 24px; }

.bp-card__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.bp-card__text  { color: var(--text-muted); font-size: var(--fs-sm); flex: 1; }

/* ─────────────────────────────────────────────────────────────
   9. الشارات
   ───────────────────────────────────────────────────────────── */
.bp-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3); min-height: 26px;
  font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted);
}
.bp-badge--brand   { background: var(--brand-soft);   border-color: var(--brand-line);   color: var(--brand-bright); }
.bp-badge--accent  { background: var(--accent-soft);  border-color: var(--accent-line);  color: var(--accent); }
.bp-badge--success { background: var(--success-soft); border-color: var(--success);      color: var(--success); }
.bp-badge--warn    { background: var(--warn-soft);    border-color: var(--warn);         color: var(--warn); }
.bp-badge--danger  { background: var(--danger-soft);  border-color: var(--danger);       color: var(--danger); }
.bp-badge--mono    { font-family: var(--font-mono); letter-spacing: .06em; }

.bp-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bp-dot--live { animation: bpPulse 1.8s ease-in-out infinite; }
@keyframes bpPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ─────────────────────────────────────────────────────────────
   10. الحقول
   ───────────────────────────────────────────────────────────── */
.bp-field { display: block; margin-bottom: var(--sp-4); }
.bp-label {
  display: block; font-size: var(--fs-xs); font-weight: 700;
  color: var(--text-muted); margin-bottom: var(--sp-2);
}
.bp-label .req { color: var(--danger); }

.bp-input, .bp-select, .bp-textarea {
  width: 100%; min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.bp-textarea { min-height: 110px; resize: vertical; line-height: var(--lh-body); }
.bp-input::placeholder, .bp-textarea::placeholder { color: var(--text-subtle); }
.bp-input:focus, .bp-select:focus, .bp-textarea:focus {
  border-color: var(--brand); background: var(--surface-1);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.bp-input[aria-invalid="true"] { border-color: var(--danger); }

.bp-hint  { font-size: var(--fs-xs); color: var(--text-subtle); margin-top: var(--sp-2); }
.bp-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 700; margin-top: var(--sp-2); }

/* خيارات قابلة للنقر */
.bp-choice { position: relative; display: inline-flex; }
.bp-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bp-choice span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-muted);
  font-size: var(--fs-xs); font-weight: 700; cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.bp-choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }
.bp-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ─────────────────────────────────────────────────────────────
   11. الشريط العلوي
   ───────────────────────────────────────────────────────────── */
.bp-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .bp-nav { background: var(--bg); }
}
.bp-nav__inner {
  height: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
/* الشريط الأزرق — توقيع Blueprint، يعمل في الوضعين */
.bp-nav--brand {
  background: var(--nav-brand-bg);
  border-bottom-color: rgba(255, 255, 255, .16);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.bp-nav--brand .bp-brand,
.bp-nav--brand .bp-brand__name { color: #fff; }
.bp-nav--brand .bp-brand__sub { color: rgba(255, 255, 255, .86); }
.bp-nav--brand .bp-nav__links a { color: #fff; }
.bp-nav--brand .bp-nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.bp-nav--brand .bp-nav__links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .16); }
.bp-nav--brand .bp-icon-btn { color: #fff; border-color: rgba(255, 255, 255, .34); }
.bp-nav--brand .bp-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.bp-nav--brand .bp-btn--primary {
  background: #fff; color: var(--brand-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.bp-nav--brand .bp-btn--primary:hover { background: #eef4ff; color: var(--brand-strong); }

.bp-brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--text); min-height: 46px; }
.bp-brand img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }
.bp-brand__name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; line-height: 1.15; white-space: nowrap; }
.bp-brand__sub  { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .28em; color: var(--text-subtle); direction: ltr; }

.bp-nav__links { display: flex; align-items: center; gap: var(--sp-1); }
.bp-nav__links a {
  min-height: 42px; display: inline-flex; align-items: center;
  padding-inline: var(--sp-4); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.bp-nav__links a:hover { color: var(--text); background: var(--surface-2); }
.bp-nav__links a[aria-current="page"] { color: var(--accent); }

.bp-nav__tools { display: inline-flex; align-items: center; gap: var(--sp-2); }
.bp-icon-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text-muted); cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.bp-icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.bp-icon-btn svg { width: 19px; height: 19px; pointer-events: none; }

:root[data-theme="light"] .bp-icon-sun  { display: none; }
:root:not([data-theme="light"]) .bp-icon-moon { display: none; }

/* قائمة الموبايل */
.bp-burger { display: none; }
.bp-mobile {
  display: none; position: fixed; inset-inline: 0; top: var(--nav-h); z-index: 49;
  background: var(--surface-1); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  padding: var(--sp-3) var(--gutter) calc(var(--sp-5) + env(safe-area-inset-bottom));
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease), visibility var(--dur-2);
}
.bp-mobile.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.bp-mobile a {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 52px; padding: var(--sp-3) var(--sp-4);
  color: var(--text); text-decoration: none; font-size: var(--fs-lead); font-weight: 700;
  border-radius: var(--r-md); border: 1px solid transparent;
}
.bp-mobile a:hover { background: var(--surface-2); border-color: var(--border); }
.bp-mobile a + a { margin-top: 2px; }
.bp-mobile svg { width: 19px; height: 19px; opacity: .7; flex-shrink: 0; }
.bp-mobile__cta { margin-top: var(--sp-3); background: var(--brand) !important; color: var(--text-on-brand) !important; justify-content: center; }

.bp-scrim {
  display: none; position: fixed; inset: var(--nav-h) 0 0; z-index: 48;
  background: rgba(4, 7, 22, .55); backdrop-filter: blur(2px);
}
.bp-scrim.is-open { display: block; }

/* شاشات ضيقة جداً: نصغّر قفل العلامة فلا يضغط بقية الشريط */
@media (max-width: 400px) {
  .bp-brand__name { font-size: 1rem; }
  .bp-brand img { width: 34px; height: 34px; }
  .bp-brand { gap: var(--sp-2); }
}

@media (max-width: 860px) {
  .bp-nav__links { display: none; }
  .bp-burger { display: inline-grid; }
  .bp-mobile { display: block; }
}

/* ─────────────────────────────────────────────────────────────
   12. التذييل
   ───────────────────────────────────────────────────────────── */
.bp-footer { border-top: 1px solid var(--border); padding-block: var(--sp-12) var(--sp-8); position: relative; z-index: 1; }
.bp-footer__grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 620px) { .bp-footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .bp-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.bp-footer__col h4 { font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: var(--sp-4); font-weight: 700; }
.bp-footer__col a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm);
  transition: color var(--dur-1) var(--ease);
}
.bp-footer__col a:hover { color: var(--accent); }
.bp-footer__col li { list-style: none; }
.bp-footer__bottom {
  margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between;
  color: var(--text-subtle); font-size: var(--fs-xs);
}

/* ─────────────────────────────────────────────────────────────
   13. الأدوات المساعدة
   ───────────────────────────────────────────────────────────── */
.bp-mono      { font-family: var(--font-mono); }
.bp-muted     { color: var(--text-muted); }
.bp-subtle    { color: var(--text-subtle); }
.bp-center    { text-align: center; }
.bp-sr        { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bp-divider   { height: 1px; background: var(--border); border: 0; }
.bp-flow      { position: relative; z-index: 1; }

/* الظهور عند التمرير — يبدأ ظاهراً ثم يخفيه JS (حتى لا يختفي المحتوى بلا JS) */
.bp-reveal { opacity: 1; }
html.bp-js .bp-reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
html.bp-js .bp-reveal.is-in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────────
   14. تقليل الحركة
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.bp-js .bp-reveal { opacity: 1 !important; transform: none !important; }
}

/* ─────────────────────────────────────────────────────────────
   15. الطباعة
   ───────────────────────────────────────────────────────────── */
@media print {
  .bp-nav, .bp-mobile, .bp-scrim, .bp-backdrop, .bp-skip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ═══════════════════════════════════════════════════════════════════
   16. PRODUCT — بطاقة النظام
   ───────────────────────────────────────────────────────────────────
   ليست بطاقة عامة: لها تسلسل ثابت يجيب على أربعة أسئلة بالترتيب
     ١ ما اسمه؟   ٢ لمن؟   ٣ أي مشكلة يحل؟   ٤ ماذا أفعل به؟
   ثم فعلان: تعرّف / جرّب.
   ═══════════════════════════════════════════════════════════════════ */
.bp-product {
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.bp-product:hover { border-color: var(--brand-line); box-shadow: var(--shadow-2); }

/* لقطة النظام — تعمل بلقطة حقيقية أو بنمط هندسي بديل */
.bp-product__shot {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  display: grid; place-items: center;
}
.bp-product__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.bp-product__shot--empty::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 78%);
}
.bp-product__glyph { position: relative; color: var(--text-subtle); opacity: .55; }
.bp-product__glyph svg { width: 46px; height: 46px; }

.bp-product__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }

.bp-product__code {
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 700;
  letter-spacing: .12em; color: var(--accent); margin-bottom: var(--sp-2);
}
.bp-product__name { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.bp-product__desc { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-4); }

/* لمن هو — سطر تعريفي */
.bp-product__for {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-subtle);
  padding-bottom: var(--sp-4); margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.bp-product__for svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; }

/* المشكلة التي يحلها — أبرز جزء نصياً */
.bp-product__problem {
  font-size: var(--fs-sm); color: var(--text); line-height: var(--lh-body);
  margin-bottom: var(--sp-4);
}

/* الميزات — رقائق مضغوطة لا قائمة طويلة */
.bp-product__features { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.bp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.bp-chip::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.bp-product__actions { display: flex; gap: var(--sp-2); margin-top: auto; }
.bp-product__actions .bp-btn, .bp-product__actions .bp-try { flex: 1; }

/* ── بطاقة نظام مميّزة (hierarchy) ── */
.bp-product--featured { flex-direction: row; grid-column: 1 / -1; }
.bp-product--featured .bp-product__shot { aspect-ratio: auto; flex: 1 1 46%; border-bottom: 0; border-inline-start: 1px solid var(--border); }
.bp-product--featured .bp-product__body { flex: 1 1 54%; padding: var(--sp-10); }
.bp-product--featured .bp-product__name { font-size: var(--fs-h2); }
.bp-product--featured .bp-product__desc { font-size: var(--fs-lead); }
.bp-product--featured .bp-product__actions { max-width: 420px; }
@media (max-width: 900px) {
  .bp-product--featured { flex-direction: column; }
  .bp-product--featured .bp-product__shot { aspect-ratio: 16/10; border-inline-start: 0; border-bottom: 1px solid var(--border); }
  .bp-product--featured .bp-product__body { padding: var(--sp-6); }
}

/* ═══════════════════════════════════════════════════════════════════
   17. DEMO CTA — دعوة التجربة
   الوعد الأهم في الموقع: جرّب قبل أن تدفع.
   ═══════════════════════════════════════════════════════════════════ */
.bp-try {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding-inline: var(--sp-6);
  background: var(--brand); color: var(--text-on-brand);
  border: 1px solid var(--brand); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 800;
  text-decoration: none; cursor: pointer; position: relative;
  transition: background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.bp-try:hover { background: var(--brand-strong); box-shadow: var(--shadow-2); }
.bp-try svg { width: 17px; height: 17px; }

/* شريط الوعد — يوضع تحت الـhero أو أعلى قسم الحلول */
.bp-promise {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-1);
}
.bp-promise__item { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 700; }
.bp-promise__item svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; }
.bp-promise__sep { width: 1px; height: 18px; background: var(--border); }
@media (max-width: 700px) { .bp-promise__sep { display: none; } }

/* ═══════════════════════════════════════════════════════════════════
   18. ACCESS — تجربة كود الوصول
   ═══════════════════════════════════════════════════════════════════ */
.bp-access {
  min-height: 100dvh; display: grid; place-items: center;
  padding: var(--sp-6); position: relative; z-index: 1;
}
.bp-access__panel {
  width: 100%; max-width: 440px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  box-shadow: var(--shadow-3);
}
.bp-access__brand { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; margin-bottom: var(--sp-6); }
.bp-access__brand img { width: 44px; height: 44px; border-radius: var(--r-sm); }
.bp-access__title { font-size: var(--fs-h3); text-align: center; margin-bottom: var(--sp-2); }
.bp-access__hint { font-size: var(--fs-sm); color: var(--text-muted); text-align: center; margin-bottom: var(--sp-6); }

/* حقل الكود — أحرف متباعدة بخط mono */
.bp-code-input {
  width: 100%; min-height: 62px;
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
  letter-spacing: .38em; text-align: center; text-transform: uppercase;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  outline: none; padding-inline-start: .38em;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.bp-code-input::placeholder { color: var(--text-subtle); letter-spacing: .3em; }
.bp-code-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* أي نظام سيُفتح — يطمئن المستخدم أنه في المكان الصحيح */
.bp-access__target {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-5);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
}
.bp-access__target-label { font-size: var(--fs-xs); color: var(--text-subtle); }
.bp-access__target-name { font-weight: 800; font-size: var(--fs-sm); }

.bp-access__foot { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); text-align: center; }
.bp-access__foot a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--sp-3); color: var(--brand-bright); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.bp-access__foot a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   19. DEMO SHELL — إطار Blueprint حول النظام التجريبي
   ───────────────────────────────────────────────────────────────────
   الأنظمة التسعة لها هويات بصرية مختلفة تماماً (٥ خطوط و٩ لوحات).
   هذا الإطار هو أداة التوحيد الوحيدة التي لا تمسّ منطق النظام:
   شريط Blueprint ثابت أعلى أي نظام يجعله يبدو جزءاً من المنظومة.
   ═══════════════════════════════════════════════════════════════════ */
.bp-demobar {
  position: fixed; inset-inline: 0; top: 0; z-index: 2147483000;
  height: 46px; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding-inline: var(--sp-4);
  background: var(--nav-brand-bg); color: #fff;
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.16);
  direction: rtl;
}
.bp-demobar__brand { display: inline-flex; align-items: center; gap: var(--sp-2); }
.bp-demobar__brand img { width: 24px; height: 24px; border-radius: 5px; }
.bp-demobar__name { font-family: var(--font-mono); font-weight: 700; letter-spacing: .12em; font-size: var(--fs-mono); }
.bp-demobar__meta { display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.bp-demobar__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  font-variant-numeric: tabular-nums;
}
.bp-demobar__pill--warn { background: var(--danger); border-color: var(--danger); }
.bp-demobar__exit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; min-width: 44px;
  padding-inline: var(--sp-3); border-radius: var(--r-sm);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-family: inherit; font-size: var(--fs-xs); font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.bp-demobar__exit:hover { background: rgba(255,255,255,.24); }
/* النظام يُزاح للأسفل بمقدار الشريط */
html.bp-demo-framed body { padding-top: 46px !important; }
@media (max-width: 560px) {
  .bp-demobar { height: 42px; padding-inline: var(--sp-3); }
  .bp-demobar__name, .bp-demobar__label { display: none; }
  html.bp-demo-framed body { padding-top: 42px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   20. أنماط بلا بطاقات — لتجنّب "بطاقات في كل مكان"
   ═══════════════════════════════════════════════════════════════════ */

/* شبكة خلايا محدودة بخط 1px — للخدمات والمراحل والمواصفات */
.bp-cells {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.bp-cells > * { background: var(--bg); padding: var(--sp-6); }
.bp-cells--2, .bp-cells--3, .bp-cells--4 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .bp-cells--2, .bp-cells--3, .bp-cells--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) {
  .bp-cells--3 { grid-template-columns: repeat(3, 1fr); }
  .bp-cells--4 { grid-template-columns: repeat(4, 1fr); }
}

/* صف قائمة — بديل البطاقة للمحتوى المتسلسل */
.bp-row {
  display: flex; align-items: flex-start; gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.bp-row:first-child { border-top: 1px solid var(--border); }
.bp-row__lead { flex: 0 0 clamp(80px, 14vw, 150px); }
.bp-row__body { flex: 1; min-width: 0; }
@media (max-width: 640px) { .bp-row { flex-direction: column; gap: var(--sp-3); } }

/* لوح مقسوم — نص + بصري */
.bp-split { display: grid; gap: var(--sp-10); align-items: center; grid-template-columns: 1fr; }
.bp-split--wide-start { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bp-split { grid-template-columns: 1fr 1fr; }
  .bp-split--wide-start { grid-template-columns: 1.15fr .85fr; }
}

/* قائمة مواصفات تقنية */
.bp-specs { display: grid; gap: 0; }
.bp-specs__row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-3); border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.bp-specs__key { color: var(--text-subtle); }
.bp-specs__val { font-weight: 700; text-align: end; }

/* ═══════════════════════════════════════════════════════════════════
   21. SHELL — تفاصيل الرأس والتذييل العامّين
   ═══════════════════════════════════════════════════════════════════ */

/* الرأس يكتسب حدّاً أوضح عند التمرير — إشارة عمق خفيفة لا ظل ثقيل */
.bp-nav { transition: box-shadow var(--dur-2) var(--ease); }
.bp-nav.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.14); }

/* زر التجربة في الرأس يختفي على الشاشات الضيقة جداً (القائمة تغطّيه) */
@media (max-width: 460px) { .bp-nav__cta { display: none; } }

/* الروابط الاجتماعية */
.bp-social { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.bp-social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text-muted); background: var(--surface-1);
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.bp-social a:hover { color: var(--brand-bright); border-color: var(--brand-line); background: var(--brand-soft); }
.bp-social svg { width: 18px; height: 18px; }

/* التذييل: قوائم بلا نقاط ومسافات منتظمة */
.bp-footer__col ul { list-style: none; }
.bp-footer__col li + li { margin-top: 2px; }

/* ── بطاقة نظام مضغوطة: بلا لقطة، لصف «بقية الحلول» ── */
.bp-product--compact .bp-product__body { padding: var(--sp-5); }
.bp-product--compact .bp-product__name { font-size: var(--fs-h4); }
.bp-product--compact .bp-product__for { padding-bottom: var(--sp-3); margin-bottom: var(--sp-3); }
.bp-product--compact .bp-product__problem { font-size: var(--fs-xs); color: var(--text-muted); }
.bp-product--compact .bp-product__actions .bp-try { min-height: 44px; font-size: var(--fs-xs); }

/* رأس البطاقة: الكود + أيقونة النظام في سطر واحد */
.bp-product__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.bp-product__ico {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-bright);
}
.bp-product__ico svg { width: 17px; height: 17px; }

/* ── البصري الهندسي في الـhero ── */
.bp-schematic { width: 100%; height: auto; overflow: visible; }
.bp-schematic .s-grid   { stroke: var(--border); stroke-width: 1; }
.bp-schematic .s-frame  { stroke: var(--border-strong); fill: none; stroke-width: 1; }
.bp-schematic .s-box    { fill: var(--surface-1); stroke: var(--brand-line); stroke-width: 1.25; }
.bp-schematic .s-box-hi { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.5; }
.bp-schematic .s-link   { stroke: var(--brand-line); stroke-width: 1.25; fill: none; }
.bp-schematic .s-link-hi{ stroke: var(--accent); stroke-width: 1.5; fill: none; }
.bp-schematic .s-node   { fill: var(--accent); }
.bp-schematic .s-tick   { stroke: var(--accent-line); stroke-width: 1; }
.bp-schematic .s-txt    { fill: var(--text-muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; direction: ltr; unicode-bidi: isolate; }
.bp-schematic .s-txt-hi { fill: var(--accent); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; direction: ltr; unicode-bidi: isolate; }
.bp-schematic .s-label  { fill: var(--text); font-family: var(--font-body); font-size: 11px; font-weight: 700; }

/* حركة هادئة: النبضة تسري على المسار مرة كل دورة */
.bp-schematic .s-pulse { fill: var(--accent); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .bp-schematic .s-dash { stroke-dasharray: 4 5; animation: bpFlow 2.6s linear infinite; }
}
@keyframes bpFlow { to { stroke-dashoffset: -18; } }

/* ═══════════════════════════════════════════════════════════════════
   22. STATES — التحميل والخطأ والفراغ
   لا نترك نص «جارٍ التحميل…» معلّقاً أمام المستخدم.
   ═══════════════════════════════════════════════════════════════════ */

/* هيكل عظمي أثناء التحميل */
.bp-skeleton { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.bp-skeleton__media { aspect-ratio: 16/10; border-bottom: 1px solid var(--border); }
.bp-skeleton__body { padding: var(--sp-5); display: grid; gap: var(--sp-3); }
.bp-shimmer {
  background: var(--surface-2);
  background-image: linear-gradient(90deg, transparent, var(--surface-3), transparent);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  border-radius: var(--r-sm);
  animation: bpShimmer 1.4s ease-in-out infinite;
}
.bp-shimmer--title { height: 18px; width: 70%; }
.bp-shimmer--line  { height: 12px; width: 100%; }
.bp-shimmer--short { height: 12px; width: 45%; }
@keyframes bpShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .bp-shimmer { animation: none; } }

/* حالة الخطأ */
.bp-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.bp-state__ico { width: 48px; height: 48px; margin: 0 auto var(--sp-4); border-radius: 50%; display: grid; place-items: center; }
.bp-state__ico svg { width: 22px; height: 22px; }
.bp-state--error .bp-state__ico { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); }
.bp-state--empty .bp-state__ico { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-subtle); }
.bp-state__title { font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 800; margin-bottom: var(--sp-2); }
.bp-state__text { color: var(--text-muted); font-size: var(--fs-sm); max-width: 44ch; margin: 0 auto var(--sp-5); }

/* ═══════════════════════════════════════════════════════════════════
   23. LANG — زر تبديل اللغة
   يعرض اللغة *الأخرى* لا الحالية، فيفهم الزائر ما سينتقل إليه.
   ═══════════════════════════════════════════════════════════════════ */
.bp-lang { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; }
.bp-lang__ar, .bp-lang__en { line-height: 1; }
:root[lang="en"] .bp-lang__en { display: none; }
:root:not([lang="en"]) .bp-lang__ar { display: none; }

/* الشريط الأزرق: نفس معالجة بقية أزرار الأيقونات */
.bp-nav--brand .bp-lang { color: #fff; }

/* في الإنجليزية نُعيد النصوص اللاتينية إلى محاذاتها الطبيعية */
:root[lang="en"] .bp-brand__sub,
:root[lang="en"] .contact__value,
:root[lang="en"] .bp-specs__val { direction: ltr; }
