/* =============================================================================
   Pixa — نظام تصميم الموقع التسويقي
   مشتق من هوية الشعار ومن مقادير المنتج (pixa/web/src/styles/tokens.css).
   RTL هو الأصل، وLTR مشتق. سمتان فاتحة/داكنة تتبعان النظام مع مبدّل يدوي.
   لا خطوط CDN ولا مكتبات خارجية — كل شيء ذاتي الاستضافة.
   ========================================================================== */

/* ---------- 1. المقادير ---------- */
:root {
  /* ألوان الشعار حرفياً */
  --brand-navy: #243672;
  --brand-blue: #253e8b;
  --brand-green: #8dc045;
  --brand-cyan: #1abacd;

  /* مشتقات */
  --navy-900: #131d40;
  --navy-800: #1b2856;
  --navy-700: #243672;
  --navy-600: #2f4694;
  --navy-500: #3d59b3;
  --navy-100: #dbe2f5;
  --navy-050: #eef2fb;

  --green-700: #4e7d16;
  --green-600: #6ba227;
  --green-500: #8dc045;
  --green-100: #ddf0c2;

  --cyan-800: #0d3f47;
  --cyan-700: #0e7c8b;
  --cyan-600: #1abacd;
  --cyan-100: #cdf1f5;

  /* أسطح ونصوص — فاتح */
  --surface: #ffffff;
  --surface-1: #f7f9fc;
  --surface-2: #eff3f9;
  --surface-3: #e4eaf3;
  --surface-inverse: #131d40;
  --text: #131a25;
  --text-2: #3d4759;
  --text-3: #667085;
  --border: #e0e6f0;
  --border-strong: #c6d0e2;

  --accent: var(--navy-700);
  --accent-ink: #ffffff;
  --link: #1f56c9;

  --success: #4e7d16;
  --warning: #b45309;
  --danger: #ba1a1a;
  --info: #0e7c8b;

  /* هندسة */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-1: 0 1px 2px rgba(19, 29, 64, .06), 0 1px 3px rgba(19, 29, 64, .08);
  --shadow-2: 0 4px 12px rgba(19, 29, 64, .07), 0 2px 4px rgba(19, 29, 64, .05);
  --shadow-3: 0 18px 40px rgba(19, 29, 64, .12), 0 4px 10px rgba(19, 29, 64, .06);

  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 7vw, 104px);

  /* الخطوط */
  --font-ar: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-num: "Hanken Grotesk", "Tajawal", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dirmul: 1;
}

html[dir="ltr"] { --dirmul: -1; }

:root[data-theme="dark"] {
  --surface: #0e1526;
  --surface-1: #131c31;
  --surface-2: #1a2540;
  --surface-3: #22304f;
  --surface-inverse: #060a14;
  --text: #eaf0fb;
  --text-2: #b9c5dc;
  --text-3: #8b9ab6;
  --border: #253352;
  --border-strong: #33456d;

  --accent: #8dc045;
  --accent-ink: #10230a;
  --link: #7fb0ff;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-3: 0 20px 44px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0e1526;
    --surface-1: #131c31;
    --surface-2: #1a2540;
    --surface-3: #22304f;
    --surface-inverse: #060a14;
    --text: #eaf0fb;
    --text-2: #b9c5dc;
    --text-3: #8b9ab6;
    --border: #253352;
    --border-strong: #33456d;
    --accent: #8dc045;
    --accent-ink: #10230a;
    --link: #7fb0ff;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow-3: 0 20px 44px rgba(0, 0, 0, .55);
  }
}

/* ---------- 2. الخطوط الذاتية ----------
   التعريفات في fonts.css (مولَّدة محلياً بنطاقات unicode-range) — تُحمَّل قبل هذا الملف. */

/* ---------- 3. إعادة الضبط ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html[lang="en"] body { font-size: 16.5px; line-height: 1.7; }
main { flex: 1; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--cyan-600);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--green-500); color: #10230a; }

/* أرقام لاتينية بخط Hanken دائماً */
.num, .stat-value, time, .price-value { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { text-wrap: pretty; }

/* ---------- 4. الأدوات ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-alt { background: var(--surface-1); }
.center { text-align: center; }
.muted { color: var(--text-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999;
  background: var(--navy-700); color: #fff; padding: 10px 18px; border-radius: var(--r);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 212px), 1fr)); }

/* ---------- 5. عناوين الأقسام ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: #0a5661; text-transform: uppercase;
  background: var(--cyan-100); padding: 5px 14px; border-radius: var(--r-full);
}
:root[data-theme="dark"] .eyebrow { background: rgba(26,186,205,.14); color: #6fe0ef; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { background: rgba(26,186,205,.14); color: #6fe0ef; }
}
.section-head { max-width: 760px; margin-inline: auto; text-align: center; margin-block-end: clamp(30px, 4vw, 52px); }
.section-head.start { margin-inline: 0; text-align: start; }
.section-head p { color: var(--text-2); font-size: 1.06rem; margin-block-start: 14px; }
.section-head .eyebrow { margin-block-end: 16px; }

/* ---------- 6. الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-full); border: 1.5px solid transparent;
  font-weight: 700; font-size: .97rem; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-2); }
.btn-primary:hover { background: var(--navy-600); box-shadow: var(--shadow-3); }
.btn-accent { background: var(--green-500); color: #16290a; box-shadow: 0 6px 20px rgba(141,192,69,.35); }
.btn-accent:hover { background: #9ccd55; }
.btn-ghost { border-color: var(--border-strong); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--navy-700); background: var(--surface-1); }
.btn-on-dark { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-on-dark:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-wa { background: #0e7a3d; color: #fff; }
.btn-wa:hover { background: #0d8544; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 7. الرأس ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid var(--border);
  transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-2); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a, .nav .navbtn {
  padding: 9px 13px; border-radius: var(--r); font-size: .94rem; font-weight: 500;
  color: var(--text-2); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav .navbtn:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--navy-700); font-weight: 700; }
:root[data-theme="dark"] .nav a[aria-current="page"] { color: var(--green-500); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-1);
  cursor: pointer; color: var(--text-2);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-switch { font-weight: 700; font-size: .85rem; width: auto; padding-inline: 13px; gap: 7px; }

/* القائمة الضخمة — جهاز مميز + أجهزة + برمجيات (مستوحاة من أنماط منصات التيليماتكس العالمية) */
.has-drop { position: relative; }
.has-mega { position: static; }
.drop-mega {
  position: absolute; top: calc(100% + 10px); inset-inline: 0; margin-inline: auto;
  width: min(1060px, calc(100vw - 28px)); padding: 24px 26px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  display: grid; grid-template-columns: 292px 1fr 1.12fr; column-gap: 30px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  /* اللوحة المغلقة لا تلتقط الماوس: opacity وحدها تُخفي بصرياً ويبقى العنصر
     قابلاً للتأشير، فيفتح المرورُ أسفلَ الرابط القائمةَ بلا قصد */
  pointer-events: none;
  /* تأخير الإغلاق يسمح للمؤشر بعبور الفجوة بين الرابط واللوحة دون أن تنغلق */
  transition: opacity .15s var(--ease) .12s, transform .15s var(--ease) .12s,
              visibility 0s linear .27s, pointer-events 0s linear .27s;
}
.has-mega:hover .drop-mega, .has-mega:focus-within .drop-mega {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s, pointer-events 0s;
}
/* الشريحة النشطة تعلن visibility/pointer-events لنفسها (قاعدة ‎.slide العامة)
   فتُبطل إخفاء اللوحة المغلقة — نحيّدها ما دامت القائمة غير مفتوحة */
.has-mega:not(:hover):not(:focus-within) .drop-mega .slide {
  visibility: hidden; pointer-events: none;
}
.mm-label {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3); margin-block-end: 8px; padding-inline: 12px;
}
.mm-col { display: flex; flex-direction: column; gap: 2px; }
/* ‎.drop-mega قبل اسم الصنف: لتجاوز قاعدة ‎.nav a العامة (inline-flex + حشوة) */
.drop-mega .mm-item { display: block; padding: 9px 12px; border-radius: var(--r); }
.drop-mega .mm-item:hover { background: var(--surface-2); }
.mm-t { display: block; font-weight: 700; font-size: .95rem; color: var(--text); }
.mm-t b { color: var(--green-700); font-weight: 800; }
:root[data-theme="dark"] .mm-t b { color: var(--green-500); }
.mm-d { display: block; font-size: .8rem; color: var(--text-3); line-height: 1.55; margin-block-start: 2px; }
.drop-mega .mm-all { margin-block-start: auto; padding: 10px 12px; border-radius: var(--r); font-weight: 700; font-size: .88rem; color: var(--link); display: flex; align-items: center; gap: 7px; }
.drop-mega .mm-all:hover { background: var(--surface-2); }
.drop-mega .mm-all svg { width: 15px; height: 15px; flex: none; }
.mm-feat {
  display: flex; flex-direction: column; padding: 16px 16px 14px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.mm-feat .mm-label { padding-inline: 0; }
.mm-feat .slides { flex: 1; }
.mm-feat .slide { display: block; padding: 0; border-radius: var(--r); }
.mm-art {
  display: grid; place-items: center; padding: 8px 14px; margin-block-end: 12px; border-radius: var(--r-lg);
  background: radial-gradient(130% 130% at 28% 18%, #1e2c5e 0%, #131d40 58%, #0d1530 100%);
}
.mm-art svg { width: 100%; max-width: 218px; height: auto; }
.mm-feat .slider-dots { margin-block-start: 12px; justify-content: center; }
:root[data-theme="dark"] .slider-dots.on-light button { background: var(--border-strong); }
:root[data-theme="dark"] .slider-dots.on-light button[aria-selected="true"] { background: var(--green-500); }

/* قائمة الجوال */
.burger { display: none; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 100; background: var(--surface);
  padding: 22px var(--gutter) 40px; overflow-y: auto;
  transform: translateY(-100%); transition: transform .28s var(--ease); visibility: hidden;
}
.mobile-nav[data-open="true"] { transform: translateY(0); visibility: visible; }
.mobile-nav .mn-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 20px; }
.mobile-nav details { border-block-end: 1px solid var(--border); }
.mobile-nav summary { padding: 15px 4px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; font-size: 1.4rem; color: var(--text-3); }
.mobile-nav details[open] summary::after { content: "\2212"; }
.mobile-nav .mn-links { padding-block-end: 12px; display: grid; gap: 2px; }
.mobile-nav .mn-links a { padding: 10px 12px; border-radius: var(--r); color: var(--text-2); font-size: .94rem; }
.mobile-nav .mn-links a:hover { background: var(--surface-2); }
.mobile-nav a.mn-top { display: block; padding: 15px 4px; font-weight: 700; border-block-end: 1px solid var(--border); }
.mobile-nav .mn-cta { margin-block-start: 26px; display: grid; gap: 12px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  /* الأزرار النصية تنتقل لقائمة الجوال — يبقى: السمة، اللغة، البرغر */
  .header-actions .btn { display: none; }
}

/* ---------- 8. البطل (Hero) ---------- */
.hero {
  position: relative; overflow: hidden; color: #eef3ff;
  background:
    radial-gradient(1200px 620px at 82% -8%, rgba(26,186,205,.22), transparent 62%),
    radial-gradient(900px 520px at 8% 8%, rgba(141,192,69,.16), transparent 60%),
    linear-gradient(160deg, #1b2856 0%, #131d40 55%, #0d1530 100%);
}
html[dir="ltr"] .hero {
  background:
    radial-gradient(1200px 620px at 18% -8%, rgba(26,186,205,.22), transparent 62%),
    radial-gradient(900px 520px at 92% 8%, rgba(141,192,69,.16), transparent 60%),
    linear-gradient(200deg, #1b2856 0%, #131d40 55%, #0d1530 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; display: grid; gap: clamp(30px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 92px); }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { color: #fff; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--green-500), var(--cyan-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.03rem, 1.7vw, 1.22rem); color: #c3cfe8; margin-block-start: 20px; max-width: 60ch; }
.hero .eyebrow { background: rgba(141,192,69,.16); color: var(--green-500); }
.hero-cta { margin-block-start: 30px; }
.hero-note { margin-block-start: 22px; font-size: .87rem; color: #93a3c4; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--green-500); flex: none; }

/* شريط الثقة */
.trustbar { border-block: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.16); position: relative; z-index: 2; }
.trustbar ul { list-style: none; padding: 16px 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(20px, 4vw, 46px); }
.trustbar li { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: #c3cfe8; font-weight: 500; }
.trustbar svg { width: 17px; height: 17px; color: var(--cyan-600); flex: none; }

/* ---------- 9. السلايدر ---------- */
.slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease); pointer-events: none; }
.slide[data-active="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.slider-dots { display: flex; gap: 9px; margin-block-start: 26px; }
.slider-dots button {
  width: 30px; height: 5px; border-radius: var(--r-full); border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.55); transition: background .2s, width .25s var(--ease);
}
.slider-dots button[aria-selected="true"] { background: var(--green-500); width: 52px; }
.slider-dots.on-light button { background: var(--border-strong); }
.slider-dots.on-light button[aria-selected="true"] { background: var(--navy-700); }
.slider-pause {
  width: 30px; height: 30px; margin-inline-start: 8px; margin-block-start: -12px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; display: inline-grid; place-items: center; padding: 0;
}
.slider-pause:hover { background: rgba(255,255,255,.18); }
.slider-pause svg { width: 13px; height: 13px; }

/* نبضة «مباشر» — CSS لا SMIL كي يوقفها prefers-reduced-motion */
.live-pulse { animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* إطار المتصفح للقطات */
.browser {
  border-radius: var(--r-lg); overflow: hidden; background: #0f1830;
  border: 1px solid rgba(255,255,255,.13); box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #16203c; border-block-end: 1px solid rgba(255,255,255,.08); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a6e; }
.browser-bar .url {
  margin-inline-start: 12px; flex: 1; font-size: .72rem; color: #8b9ab6; font-family: var(--font-mono);
  background: rgba(255,255,255,.05); padding: 4px 12px; border-radius: var(--r-full); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr;
}
.browser figure { margin: 0; background: #0b1226; }
.browser img, .browser svg { width: 100%; display: block; }
.phone {
  width: 258px; margin-inline: auto; border-radius: 30px; padding: 10px; background: #16203c;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 56px rgba(0,0,0,.42);
}
.phone > * { border-radius: 22px; overflow: hidden; display: block; }

/* ---------- 10. البطاقات ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  position: relative; overflow: hidden; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--border-strong); }
a.card:hover { border-color: var(--navy-500); }
.card h3 { font-size: 1.14rem; margin-block-end: 9px; }
.card p { color: var(--text-2); font-size: .95rem; }
.card .ci {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-block-end: 16px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-600)); color: #fff;
}
.card .ci svg { width: 23px; height: 23px; }
.card.accent .ci { background: linear-gradient(140deg, var(--green-600), var(--green-500)); color: #16290a; }
.card.cyan .ci { background: linear-gradient(140deg, var(--cyan-700), var(--cyan-600)); color: #fff; }
.card-more { margin-block-start: 16px; font-weight: 700; font-size: .9rem; color: var(--link); display: inline-flex; align-items: center; gap: 6px; }
.card-more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-more svg { transform: translateX(calc(-4px * var(--dirmul))); }

.card-flat { background: var(--surface-1); border-color: transparent; }
.card-dark { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: #dfe7f8; border-color: rgba(255,255,255,.1); }
.card-dark h3 { color: #fff; }
.card-dark p { color: #b4c1dc; }

/* ---------- 11. الأرقام ---------- */
.stats { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); }
.stat { background: var(--surface); padding: clamp(20px, 2.6vw, 30px) 18px; text-align: center; }
.stat-value { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1; background: linear-gradient(140deg, var(--navy-700), var(--cyan-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .stat-value { background: linear-gradient(140deg, var(--green-500), var(--cyan-600)); -webkit-background-clip: text; background-clip: text; }
.stat-label { margin-block-start: 10px; font-size: .87rem; color: var(--text-3); line-height: 1.55; }

/* ---------- 12. شريط العملاء ---------- */
.clients { overflow: hidden; position: relative; padding-block: 8px; }
.clients::before, .clients::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 120px); z-index: 2; pointer-events: none;
}
.clients::before { inset-inline-start: 0; background: linear-gradient(to right, var(--surface-1), transparent); }
.clients::after { inset-inline-end: 0; background: linear-gradient(to left, var(--surface-1), transparent); }
html[dir="rtl"] .clients::before { background: linear-gradient(to left, var(--surface-1), transparent); }
html[dir="rtl"] .clients::after { background: linear-gradient(to right, var(--surface-1), transparent); }
.clients-track { display: flex; gap: clamp(28px, 4vw, 60px); width: max-content; animation: marquee var(--marquee-duration, 42s) linear infinite; }
.clients:hover .clients-track, .clients:focus-within .clients-track { animation-play-state: paused; }
.clients-track figure { margin: 0; flex: none; display: grid; place-items: center; height: 76px; }
.clients-track img {
  max-height: 56px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s, transform .25s var(--ease);
}
.clients-track figure:hover img { filter: none; opacity: 1; transform: scale(1.05); }
:root[data-theme="dark"] .clients-track img { filter: grayscale(1) brightness(1.9); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% * var(--marquee-dir, 1))); } }
html[dir="rtl"] .clients-track { --marquee-dir: -1; }
.clients-empty { text-align: center; color: var(--text-3); font-size: .92rem; padding: 22px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }

/* ---------- 13. تبويبات المنتج ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-block-end: 28px; }
.tabs button {
  padding: 10px 20px; border-radius: var(--r-full); border: 1.5px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: .93rem; cursor: pointer; color: var(--text-2);
  transition: all .18s var(--ease);
}
.tabs button[aria-selected="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.tabpanel { display: none; }
.tabpanel[data-active="true"] { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-grid { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1fr 1.25fr; } }
.tabpanel ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.tabpanel ul li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: .96rem; }
.tabpanel ul svg { width: 19px; height: 19px; color: var(--green-600); flex: none; margin-block-start: 3px; }

/* ---------- 14. أقسام داكنة ---------- */
.dark-section { background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); color: #dfe7f8; position: relative; overflow: hidden; }
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section p { color: #b4c1dc; }
.dark-section::before {
  content: ""; position: absolute; inset-inline-end: -10%; top: -30%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(26,186,205,.2), transparent 65%); pointer-events: none;
}
.dark-section .container { position: relative; z-index: 1; }
.dark-section .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #dfe7f8; }
.dark-section .card h3 { color: #fff; }
.dark-section .card p { color: #b4c1dc; }
.dark-section .eyebrow { background: rgba(141,192,69,.16); color: var(--green-500); }

/* ---------- 15. الجداول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
thead th { background: var(--surface-2); text-align: start; padding: 14px 16px; font-weight: 700; color: var(--text); white-space: nowrap; border-block-end: 1px solid var(--border); }
tbody td { padding: 13px 16px; border-block-end: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
tbody tr:last-child td { border-block-end: 0; }
tbody tr:hover { background: var(--surface-1); }
.prose table { min-width: 0; }

/* شارات */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--green-100); color: #35590d; }
.badge-soon { background: #fdead5; color: #8f4a0c; }
.badge-info { background: var(--cyan-100); color: #0b4b55; }
.badge-navy { background: var(--navy-100); color: var(--navy-700); }
:root[data-theme="dark"] .badge-ok { background: rgba(141,192,69,.18); color: #b7e37a; }
:root[data-theme="dark"] .badge-soon { background: rgba(180,83,9,.22); color: #f0b27a; }
:root[data-theme="dark"] .badge-info { background: rgba(26,186,205,.18); color: #7fe1ee; }
:root[data-theme="dark"] .badge-navy { background: rgba(61,89,179,.24); color: #b9c8ee; }

/* ---------- 16. الأسعار ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 292px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 28px; background: var(--surface); }
.plan.featured { border-color: var(--navy-700); box-shadow: var(--shadow-3); position: relative; }
.plan.featured::before {
  content: attr(data-tag); position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--green-500); color: #16290a; font-size: .76rem; font-weight: 800; padding: 4px 16px; border-radius: var(--r-full);
  white-space: nowrap;
}
html[dir="ltr"] .plan.featured::before { transform: translateX(-50%); }
.plan h3 { font-size: 1.28rem; }
.plan .plan-desc { font-size: .89rem; color: var(--text-3); margin-block-start: 6px; min-height: 2.8em; }
.plan .plan-price { margin-block: 16px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-value { font-size: 2.5rem; font-weight: 800; color: var(--navy-700); }
:root[data-theme="dark"] .price-value { color: var(--green-500); }
.price-unit { font-size: .88rem; color: var(--text-3); }
.plan ul { list-style: none; padding: 0; margin-block: 20px; display: grid; gap: 11px; flex: 1; }
.plan ul li { display: flex; gap: 10px; font-size: .93rem; color: var(--text-2); align-items: flex-start; }
.plan ul svg { width: 18px; height: 18px; color: var(--green-600); flex: none; margin-block-start: 3px; }

/* حاسبة */
.calc { border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); background: var(--surface); }
.calc-out { background: var(--surface-1); border-radius: var(--r-lg); padding: 24px; text-align: center; margin-block-start: 22px; }
.calc-out .calc-total { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy-700); font-family: var(--font-num); }
:root[data-theme="dark"] .calc-out .calc-total { color: var(--green-500); }
.calc-lines { display: grid; gap: 8px; margin-block-start: 16px; font-size: .89rem; color: var(--text-2); text-align: start; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; border-block-end: 1px dashed var(--border); padding-block-end: 6px; }
.switchers { display: flex; flex-wrap: wrap; gap: 14px; }
.switch { display: flex; gap: 9px; align-items: center; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: var(--r-full); cursor: pointer; font-size: .9rem; }
.switch input { width: 17px; height: 17px; }
.switch:has(input:checked) { border-color: var(--navy-700); background: var(--navy-050); }
:root[data-theme="dark"] .switch:has(input:checked) { background: rgba(61,89,179,.18); }

/* ---------- 17. الأسئلة الشائعة ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq details[open] { border-color: var(--navy-500); }
.faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: none; border-inline-end: 2px solid var(--text-3); border-block-end: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .22s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-2); font-size: .96rem; }
.faq .faq-body > * + * { margin-block-start: 12px; }

/* ---------- 18. النماذج ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .91rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--r); border: 1.5px solid var(--border);
  background: var(--surface); transition: border-color .18s, box-shadow .18s; font-size: .97rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(61,89,179,.35);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--text-3); }
.field .err { font-size: .84rem; color: var(--danger); display: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--danger); }
.field[data-invalid="true"] .err { display: block; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hp-field { position: absolute !important; inset-inline-start: -9999px !important; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: var(--r); font-size: .93rem; display: none; }
.form-status[data-kind="ok"] { display: block; background: var(--green-100); color: #35590d; }
.form-status[data-kind="err"] { display: block; background: #ffdad6; color: #93000a; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--text-2); }
.consent input { width: 18px; height: 18px; flex: none; margin-block-start: 3px; }
.form-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); background: var(--surface); box-shadow: var(--shadow-2); }

/* ---------- 19. المقالات ---------- */
.article-hero { background: var(--surface-1); border-block-end: 1px solid var(--border); padding-block: clamp(34px, 5vw, 64px); }
.breadcrumbs { font-size: .84rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-block-end: 18px; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--text-3); margin-block-start: 18px; align-items: center; }
.article-meta .badge { font-size: .76rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; flex: none; }
.prose { max-width: 74ch; margin-inline: auto; font-size: 1.05rem; }
.prose > * + * { margin-block-start: 1.15em; }
.prose h2 { margin-block-start: 2em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); scroll-margin-top: 92px; }
.prose h3 { margin-block-start: 1.6em; font-size: 1.22rem; scroll-margin-top: 92px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: 9px; }
.prose li { color: var(--text-2); }
.prose li::marker { color: var(--green-600); font-weight: 700; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose blockquote {
  border-inline-start: 4px solid var(--green-500); padding: 10px 20px; color: var(--text-2);
  background: var(--surface-1); border-radius: var(--r);
}
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: 2px 7px; border-radius: 5px; }
.prose pre { background: var(--navy-900); color: #dfe7f8; padding: 18px 20px; border-radius: var(--r-lg); overflow-x: auto; font-size: .87rem; direction: ltr; text-align: left; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose figure { margin-block: 1.8em; }
.prose figcaption { font-size: .84rem; color: var(--text-3); text-align: center; margin-block-start: 10px; }
.tldr {
  background: linear-gradient(140deg, var(--navy-050), var(--cyan-100)); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 24px;
}
:root[data-theme="dark"] .tldr { background: linear-gradient(140deg, rgba(61,89,179,.16), rgba(26,186,205,.12)); }
.tldr h2 { margin: 0 0 10px !important; font-size: 1.05rem !important; display: flex; align-items: center; gap: 9px; }
.tldr svg { width: 20px; height: 20px; color: var(--cyan-700); flex: none; }
:root[data-theme="dark"] .tldr svg { color: var(--cyan-600); }
.tldr ul { margin: 0; }
.toc { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 22px; background: var(--surface-1); }
.toc strong { display: block; margin-block-end: 10px; font-size: .93rem; }
.toc ol { padding-inline-start: 1.2em; display: grid; gap: 6px; font-size: .93rem; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.post-card { display: flex; flex-direction: column; }
.post-card .pc-cat { font-size: .78rem; font-weight: 700; color: var(--cyan-700); letter-spacing: .03em; }
:root[data-theme="dark"] .post-card .pc-cat { color: var(--cyan-600); }
.post-card h3 { font-size: 1.07rem; margin-block: 10px 8px; }
.post-card p { font-size: .91rem; flex: 1; }
.post-card .pc-meta { margin-block-start: 14px; font-size: .8rem; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; }
.post-thumb { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; margin-block-end: 16px; background: var(--surface-2); }
.post-thumb svg, .post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-block-end: 32px; }
.filters button {
  padding: 8px 17px; border-radius: var(--r-full); border: 1.5px solid var(--border); background: var(--surface);
  font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--text-2);
}
.filters button[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* ---------- 20. التذييل ---------- */
.site-footer { background: var(--navy-900); color: #b4c1dc; padding-block: clamp(46px, 6vw, 76px) 0; }
.footer-cta {
  background: linear-gradient(125deg, var(--navy-700), var(--cyan-800));
  border-radius: var(--r-xl); padding: clamp(30px, 4vw, 52px); text-align: center;
  margin-block-end: clamp(40px, 5vw, 64px); position: relative; overflow: hidden;
}
.footer-cta::after {
  content: ""; position: absolute; inset-inline-end: -8%; bottom: -60%; width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(141,192,69,.28), transparent 62%); pointer-events: none;
}
.footer-cta h2 { color: #fff; position: relative; }
.footer-cta p { color: #c9d6ee; max-width: 62ch; margin: 14px auto 26px; position: relative; }
.footer-cta .btn-row { justify-content: center; position: relative; }
.footer-grid { display: grid; gap: clamp(26px, 3.4vw, 44px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); }
.footer-brand { grid-column: span 2; min-width: 230px; }
@media (max-width: 720px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 40px; width: auto; margin-block-end: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.8; max-width: 40ch; }
.footer-col h3 { font-size: .84rem; color: #fff; letter-spacing: .06em; margin-block-end: 16px; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: .9rem; color: #9dabc8; transition: color .16s; }
.footer-col a:hover { color: var(--green-500); }
.footer-social { display: flex; gap: 10px; margin-block-start: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #c9d6ee; transition: all .18s var(--ease);
}
.footer-social a:hover { background: var(--green-500); color: #16290a; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.footer-badges span {
  font-size: .74rem; padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(255,255,255,.07); color: #c9d6ee; border: 1px solid rgba(255,255,255,.1);
}
.footer-bottom {
  margin-block-start: clamp(34px, 4vw, 52px); border-block-start: 1px solid rgba(255,255,255,.1);
  padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
  font-size: .84rem; color: #8b9ab6;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--green-500); }

/* واتساب عائم */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: #0e7a3d; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(14,122,61,.45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 29px; height: 29px; }

/* ---------- 21. الحركة عند التمرير ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- 22. متفرقات ---------- */
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-start { grid-template-columns: 1.15fr 1fr; } }
.checklist { list-style: none; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist svg { width: 21px; height: 21px; color: var(--green-600); flex: none; margin-block-start: 2px; }
.checklist strong { color: var(--text); display: block; margin-block-end: 2px; }
.dark-section .checklist li { color: #b4c1dc; }
.dark-section .checklist strong { color: #fff; }

.steps { counter-reset: s; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s); flex: none;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-700); color: #fff; font-weight: 800; font-family: var(--font-num);
}
.step h3 { font-size: 1.06rem; margin-block-end: 5px; }
.step p { color: var(--text-2); font-size: .94rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { padding: 6px 15px; border-radius: var(--r-full); background: var(--surface-2); font-size: .86rem; color: var(--text-2); border: 1px solid var(--border); }

.notice {
  border-inline-start: 4px solid var(--cyan-600); background: var(--surface-1);
  padding: 16px 20px; border-radius: var(--r); font-size: .93rem; color: var(--text-2);
}
.notice strong { color: var(--text); }
.notice.warn { border-inline-start-color: var(--warning); }

.searchbox { position: relative; max-width: 460px; margin-inline: auto; margin-block-end: 24px; }
.searchbox input { width: 100%; padding: 13px 46px 13px 16px; border-radius: var(--r-full); border: 1.5px solid var(--border); background: var(--surface); }
html[dir="rtl"] .searchbox input { padding: 13px 16px 13px 46px; }
.searchbox svg { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-3); pointer-events: none; }

.page-hero { background: var(--surface-1); border-block-end: 1px solid var(--border); padding-block: clamp(40px, 5.5vw, 76px); }
.page-hero h1 { max-width: 22ch; }
.page-hero p { color: var(--text-2); font-size: 1.08rem; max-width: 64ch; margin-block-start: 16px; }
.page-hero.dark { background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); border-block-end-color: transparent; color: #dfe7f8; }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark p { color: #b4c1dc; }
.page-hero .btn-row { margin-block-start: 26px; }

.portal-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); }
.portal {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface); transition: all .2s var(--ease);
}
.portal:hover { border-color: var(--navy-500); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.portal .pi { width: 40px; height: 40px; border-radius: 11px; background: var(--navy-050); color: var(--navy-700); display: grid; place-items: center; flex: none; }
.portal .pi svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .portal .pi { background: rgba(141,192,69,.12); color: var(--green-500); }
.portal strong { display: block; font-size: .97rem; }
.portal span { font-size: .82rem; color: var(--text-3); }

/* ---------- منظومة بيكسا — مخطط «من المركبة إلى القرار» ---------- */
.eco { --eco-line: var(--border-strong); }
.eco ul { list-style: none; margin: 0; padding: 0; }
.eco-sources { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.eco-sources li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.esi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-1); border: 1px solid var(--border); color: var(--navy-600); }
.esi svg { width: 24px; height: 24px; }
:root[data-theme="dark"] .esi { color: var(--cyan-600); }
.eco-funnel { width: min(76%, 820px); height: 24px; margin-inline: auto; border: 2px solid var(--eco-line); opacity: .6; }
.eco-funnel.top { border-block-start: 0; border-radius: 0 0 14px 14px; margin-block-start: 16px; }
.eco-funnel.bottom { border-block-end: 0; border-radius: 14px 14px 0 0; margin-block-end: 16px; }
.eco-stub { width: 2px; height: 22px; margin-inline: auto; background: var(--eco-line); opacity: .6; }
.eco-mid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 46px); padding-block: 10px; }
.eco-caps { display: grid; gap: 12px; }
.eco-caps a { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-radius: var(--r-full); font-weight: 700; font-size: .93rem; color: var(--text-2); }
.eco-caps a:hover { background: var(--surface-2); color: var(--text); }
.eco-caps.a a { margin-inline-start: auto; }
.eco-caps.b a { margin-inline-end: auto; }
.eci { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; box-shadow: var(--shadow-1); }
.eci svg { width: 21px; height: 21px; }
.eci.c1 { background: var(--cyan-600); }
.eci.c2 { background: var(--warning); }
.eci.c3 { background: var(--green-600); }
.eci.c4 { background: var(--navy-500); }
.eci.c5 { background: var(--danger); }
.eci.c6 { background: var(--cyan-700); }
.eci.c7 { background: var(--green-700); }
.eci.c8 { background: var(--navy-700); }
.eco-hub {
  position: relative; width: clamp(190px, 22vw, 232px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center; padding: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2);
}
.eco-hub::before {
  content: ""; position: absolute; inset: -13px; border-radius: 50%; opacity: .85;
  background: conic-gradient(var(--brand-cyan), var(--brand-green), var(--brand-navy), var(--brand-cyan));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: eco-spin 26s linear infinite;
}
@keyframes eco-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .eco-hub::before { animation: none; } }
.eco-hub strong { font-size: 1.02rem; }
.eco-hub .eco-sub { font-size: .74rem; color: var(--text-3); line-height: 1.5; }
.eco-mark { width: 54px; height: 54px; object-fit: contain; }
.eco-mark-dark { display: none; }
:root[data-theme="dark"] .eco-mark-dark { display: block; }
:root[data-theme="dark"] .eco-mark-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eco-mark-dark { display: block; }
  :root:not([data-theme="light"]) .eco-mark-light { display: none; }
}
.eco-outputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eco-outputs li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); }
.eoi { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--navy-050); color: var(--navy-700); }
.eoi svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .eoi { background: rgba(141,192,69,.12); color: var(--green-500); }
.eco-outputs strong { display: block; font-size: .93rem; }
.eco-outputs li span { font-size: .8rem; color: var(--text-3); line-height: 1.55; }
@media (max-width: 980px) {
  .eco-sources { grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
  .eco-funnel, .eco-stub { display: none; }
  .eco-mid { grid-template-columns: 1fr; justify-items: center; gap: 22px; margin-block: 26px; }
  .eco-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .eco-caps.a a, .eco-caps.b a { margin-inline: 0; }
  .eco-outputs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .eco-sources { grid-template-columns: repeat(2, 1fr); }
  .eco-outputs { grid-template-columns: 1fr; }
}

/* طباعة */
@media print {
  .site-header, .site-footer, .wa-float, .btn-row, .skip-link, .mobile-nav { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .prose { max-width: none; }
}
