/* ملف التنسيق الوحيد للموقع.
   Layout: سايدبار ثابت 220px + محتوى بعرض أقصى 1000px على الديسكتوب،
   وصف علوي واحد مع منيو أفقي متحرك تحت 1024px.
   الألوان: الأسود أساس، الأخضر الغامق لزر التدقيق فقط، والأخضر للنتائج والإتاحة. */

:root {
  --bg: #ffffff;
  --fg: #121211;
  --muted: #62625d;
  --line: #ebebe6;
  --soft: #f5f5f2;
  --soft-line: #e6e5df;
  --chip: #f0f0ec;
  --panel: #141413;
  --panel-fg: #f5f5f2;
  --panel-muted: #a9a9a2;
  --panel-line: rgba(255, 255, 255, 0.1);
  --good: #1e8449;        /* نص أخضر يقرأ على الأبيض */
  --good-dot: #27ae60;    /* أخضر الهوية: النقاط والإشارات */
  --good-soft: #e7f5ec;
  --good-bright: #27ae60; /* أخضر الهوية فوق اللوحات الداكنة */
  --good-on-panel: rgba(39, 174, 96, 0.18);
  --cta: #1e8449;         /* أخضر غامق: زر التدقيق فقط */
  --cta-fg: #ffffff;
  --danger: #b42318;     /* رسائل الخطأ في النماذج */
  --btn: #121211;
  --btn-fg: #ffffff;
  --focus: #2563eb;
  --backdrop: rgba(18, 18, 17, 0.45);

  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 26px;
  --fs-2xl: clamp(30px, 4.2vw, 40px);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211; --fg: #efefea; --muted: #a4a49d; --line: #2a2a27; --soft: #1b1b19; --soft-line: #2c2c29;
    --chip: #242422; --panel: #1f1f1d; --panel-fg: #f5f5f2; --panel-muted: #a9a9a2; --panel-line: rgba(255,255,255,0.1);
    --good: #27ae60; --good-dot: #27ae60; --good-soft: rgba(39,174,96,0.16); --good-bright: #27ae60; --good-on-panel: rgba(39,174,96,0.18); --cta: #1e8449; --cta-fg: #ffffff; --danger: #f97066; --btn: #efefea; --btn-fg: #121211;
    --focus: #60a5fa; --backdrop: rgba(0,0,0,0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211; --fg: #efefea; --muted: #a4a49d; --line: #2a2a27; --soft: #1b1b19; --soft-line: #2c2c29;
  --chip: #242422; --panel: #1f1f1d; --panel-fg: #f5f5f2; --panel-muted: #a9a9a2; --panel-line: rgba(255,255,255,0.1);
  --good: #27ae60; --good-dot: #27ae60; --good-soft: rgba(39,174,96,0.16); --good-bright: #27ae60; --good-on-panel: rgba(39,174,96,0.18); --cta: #1e8449; --cta-fg: #ffffff; --danger: #f97066; --btn: #efefea; --btn-fg: #121211;
  --focus: #60a5fa; --backdrop: rgba(0,0,0,0.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: var(--fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- الهيكل ---------- */
.shell {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px;
  max-width: 1360px; margin: 0 auto; padding-block: 48px 80px;
  padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.view { min-width: 0; max-width: 1000px; display: flex; flex-direction: column; gap: 40px; }

/* ---------- السايدبار ---------- */
.side {
  position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; scrollbar-width: none;
}
.brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%; background: var(--btn); color: var(--btn-fg);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px;
}
.brand-name { font-weight: 700; font-size: var(--fs-md); line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none;
  font-size: var(--fs-md); color: var(--muted); text-align: start;
}
.nav-link::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .2s; }
.nav-link:hover { color: var(--fg); }
.nav-link.is-active { color: var(--fg); font-weight: 600; }
.nav-link.is-active::before { background: var(--cta); }
.search-btn {
  min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted);
  display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm);
}
.search-btn:hover { color: var(--fg); }
.kbd { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 12px; line-height: 20px; direction: ltr; }

.side-box {
  background: var(--soft); border: 1px solid var(--soft-line); border-radius: var(--r-md); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.side-box-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.side-box-title { font-size: var(--fs-sm); font-weight: 600; line-height: 1.6; color: var(--fg); }
.side-box-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.icon-btn {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--chip); color: var(--fg); }
.bar { height: 4px; border-radius: 4px; background: var(--soft-line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--cta); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good-dot); display: inline-block; }

.side-sub { display: flex; flex-direction: column; gap: 8px; }
.side-sub label { font-weight: 700; font-size: var(--fs-sm); }
.side-sub p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }

[data-section], #contact, #pricing, #request, #subscribe, .sec { scroll-margin-top: 24px; }
@media (max-width: 1023px) { [data-section], #contact, #pricing, #request, #subscribe, .sec { scroll-margin-top: 84px; } }

/* ---------- الشريط العلوي للجوال ---------- */
.topbar { display: none; }
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 24px 64px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .side { display: none; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
  .topbar {
    display: block; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  /* صف واحد: الشعار ← المنيو المتحرك ← فاصل ← البحث ← اشترك */
  .topbar-row {
    display: flex; align-items: center; gap: 10px; padding-block: 10px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .topbar-row .brand { flex: 0 0 auto; }
  .topbar-row .brand-mark { width: 40px; height: 40px; font-size: 17px; }
  .topnav-wrap { flex: 1 1 auto; min-width: 0; position: relative; }
  /* تلاشي عند طرف المنيو يلمّح أن هناك عناصر أكثر، فوق المنيو ولا يمنع اللمس */
  .topnav-wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28px; pointer-events: none;
    background: linear-gradient(to right, var(--bg), transparent);
  }
  .topnav {
    display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior-x: contain;
    padding-inline: 4px 28px; cursor: grab; user-select: none; -webkit-user-select: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav .nav-link { flex: 0 0 auto; min-height: 44px; font-size: 15px; white-space: nowrap; }
  .topnav .nav-link::before { display: none; }
  .topnav .nav-link.is-active { color: var(--fg); font-weight: 700; }
  .topbar-sep { flex: 0 0 1px; height: 22px; background: var(--line); }
  .topbar-search { flex: 0 0 auto; width: 40px; height: 40px; color: var(--fg); }
  .topbar-sub { flex: 0 0 auto; min-height: 42px; padding: 0 18px; }
}

/* ---------- عناصر عامة ---------- */
.eyebrow { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.h1 { font-size: var(--fs-2xl); line-height: 1.35; font-weight: 700; }
.h2 { font-size: var(--fs-xl); line-height: 1.45; font-weight: 700; }
.h3 { font-size: var(--fs-lg); line-height: 1.5; font-weight: 700; }
.lead { font-size: 18px; line-height: 1.85; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-xs); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sec { display: flex; flex-direction: column; gap: 18px; padding-top: 40px; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.more { font-weight: 600; font-size: var(--fs-sm); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: var(--bg);
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
a.card { transition: border-color .2s, transform .2s; }
a.card:hover { color: inherit; border-color: var(--muted); }
.card-title { font-size: var(--fs-md); font-weight: 700; line-height: 1.55; }
.card-text { font-size: var(--fs-sm); line-height: 1.75; color: var(--muted); }
.card.soft { background: var(--soft); border-color: var(--soft-line); }

.btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 24px; border: 1px solid var(--btn); border-radius: 999px; background: var(--btn); color: var(--btn-fg);
  font-weight: 700; font-size: var(--fs-sm); white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); opacity: .88; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--soft-line); }
.btn-ghost:hover { color: var(--fg); border-color: var(--muted); opacity: 1; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--panel-fg); color: #121211; border-color: var(--panel-fg); }
/* الزر الأهم فقط: طلب التدقيق */
.btn-cta { background: var(--cta); color: var(--cta-fg); border-color: var(--cta); }
.btn-cta:hover { color: var(--cta-fg); opacity: .9; }
.btn-light:hover { color: #121211; }
.btn-block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-free { background: var(--good-soft); color: var(--good); }
.badge-dark { background: var(--btn); color: var(--btn-fg); }
.chip { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--chip); font-size: var(--fs-xs); white-space: nowrap; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); font-size: 14px;
}
.pill:hover { border-color: var(--muted); }
.pill.is-on { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.pill .count { font-size: 12px; opacity: .7; }

.check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.check svg { flex: 0 0 16px; margin-top: 6px; }
.check.no { color: var(--muted); }

/* ---------- النماذج ---------- */
.field {
  min-height: 50px; padding: 0 18px; border: 1px solid var(--soft-line); border-radius: 999px; background: var(--bg);
  font-size: var(--fs-sm); width: 100%;
}
.field:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
textarea.field { border-radius: var(--r-sm); padding: 12px 16px; min-height: 120px; resize: vertical; }
.field-box { border-radius: var(--r-sm); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form .field { flex: 1 1 240px; width: auto; }
.form-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.success {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--good-soft); color: var(--good); font-weight: 600; font-size: var(--fs-sm);
}

/* ---------- الهيرو والبطاقة المثبّتة ---------- */
.hero-line { font-size: 22px; line-height: 1.6; color: var(--muted); }
.hero-line strong { color: var(--fg); }
.pinned {
  display: flex; flex-wrap: wrap; border: 1px solid var(--soft-line); border-radius: var(--r-lg); overflow: hidden; background: var(--soft);
}
.pinned-offer { flex: 1 1 360px; padding: 34px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; }
.pinned-proof { flex: 1 1 300px; background: var(--panel); color: var(--panel-fg); padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.slot { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--soft-line); font-size: var(--fs-xs); color: var(--muted); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.tick { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--soft-line); font-size: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.panel-head span:last-child { font-size: 12px; font-weight: 400; color: var(--panel-muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: rgba(255,255,255,0.06); border: 1px solid var(--panel-line); border-radius: var(--r-sm); padding: 12px 14px; }
.kpi span { display: block; font-size: 12px; color: var(--panel-muted); }
.kpi strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.kpi .up { color: var(--good-bright); }
.spark { background: rgba(255,255,255,0.04); border: 1px solid var(--panel-line); border-radius: var(--r-sm); padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 4px; }
.spark span { font-size: 11px; color: var(--panel-muted); }
.spark svg { width: 100%; height: 90px; display: block; }
.panel-foot { font-size: 12px; color: var(--panel-muted); }

/* ---------- القوائم ---------- */
.rows { display: flex; flex-direction: column; }
.row-link {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.row-link:last-child { border-bottom: 0; }
.row-title { flex: 1 1 340px; font-size: var(--fs-md); font-weight: 500; line-height: 1.6; }
.row-meta { display: flex; gap: 12px; align-items: center; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

.feature {
  display: flex; flex-wrap: wrap; gap: 24px; padding: 22px; border: 1px solid var(--soft-line); border-radius: var(--r-lg); background: var(--soft);
}
.feature:hover { color: inherit; border-color: var(--muted); }
.cover {
  border-radius: 14px; background: var(--chip); display: flex; align-items: flex-end; padding: 16px; min-height: 200px;
  position: relative; overflow: hidden; color: var(--fg);
}
.cover-art { position: absolute; inset: 0; }
.cover-label { position: relative; font-size: 12px; font-weight: 600; background: var(--bg); padding: 3px 10px; border-radius: 999px; }
.feature .cover { flex: 1 1 300px; }
.feature-body { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }

/* ---------- المقال ---------- */
.read-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 50; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--cta); }
.article { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 2; max-width: 680px; }
.article h2 { font-size: 24px; line-height: 1.5; margin-top: 12px; }
.article blockquote { margin: 8px 0; padding: 2px 20px 2px 0; border-right: 3px solid var(--fg); font-size: 21px; line-height: 1.8; font-weight: 600; }
.post-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 16px; border-block: 1px solid var(--line); font-size: 14px; max-width: 680px; }
.end-block { max-width: 760px; }
.panel-card {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: 28px; border-radius: var(--r-lg); background: var(--panel); color: var(--panel-fg);
}
.panel-card p { color: var(--panel-muted); }
.panel-card .stack-sm { flex: 1 1 300px; }

/* ---------- الموارد ---------- */
.res-card { padding: 0; overflow: hidden; gap: 0; }
.res-card .cover { border-radius: 0; min-height: 170px; }
.res-card .res-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.res-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > * { flex: 1 1 360px; min-width: 0; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery .cover { min-height: 340px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumbs .cover { min-height: 84px; padding: 0; }
.buy-box { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--soft); border: 1px solid var(--soft-line); }
.price { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.old-price { color: var(--muted); text-decoration: line-through; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- دراسات الحالة ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--panel-line); border-radius: 18px; overflow: hidden; }
.stat-strip > div { background: var(--panel); color: var(--panel-fg); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.stat-strip span { font-size: var(--fs-xs); color: var(--panel-muted); }
.stat-strip strong { font-size: 26px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client { display: flex; align-items: center; gap: 12px; }
.client-logo {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; background: var(--chip); color: var(--fg);
}
.client-logo.anon { background: var(--btn); color: var(--btn-fg); }
.client-name { font-weight: 700; line-height: 1.4; }
.client-sub { font-size: var(--fs-xs); color: var(--muted); }
.big-metric { font-size: 40px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.case-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.metric-card { background: var(--panel); color: var(--panel-fg); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.metric-card .label { font-size: var(--fs-xs); color: var(--panel-muted); }
.metric-card .vals { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-variant-numeric: tabular-nums; }
.metric-card .before { color: var(--panel-muted); text-decoration: line-through; }
.metric-card .after { font-size: 28px; font-weight: 700; }
.delta { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--good-on-panel); color: var(--good-bright); font-size: var(--fs-xs); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.8; }
.step-n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--btn); color: var(--btn-fg); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.quote { margin: 0; padding: 26px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--soft-line); display: flex; flex-direction: column; gap: 12px; }
.quote blockquote { margin: 0; font-size: 20px; line-height: 1.8; font-weight: 600; }
.chart-box { border-radius: 18px; background: var(--soft); border: 1px solid var(--soft-line); padding: 18px; }
.chart-box svg { width: 100%; height: 220px; display: block; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.pager a span { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }

/* ---------- الخدمات ---------- */
.svc {
  display: flex; flex-wrap: wrap; gap: 24px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.svc:hover { color: inherit; border-color: var(--muted); }
.svc.is-featured { background: var(--soft); border-color: var(--soft-line); }
.svc-main { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.svc-side { flex: 0 1 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
@media (max-width: 700px) { .svc-side { padding-inline-start: 0; border-inline-start: 0; padding-top: 16px; border-top: 1px solid var(--line); flex-basis: 100%; } }
.pkg { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pkg.is-pop { border-color: var(--fg); background: var(--soft); }
details.faq { padding: 16px 0; border-bottom: 1px solid var(--line); }
details.faq:last-child { border-bottom: 0; }
details.faq summary { font-size: var(--fs-md); font-weight: 600; cursor: pointer; list-style-position: inside; }
details.faq p { margin-top: 8px; color: var(--muted); line-height: 1.85; }

/* ---------- نبذة ---------- */
.portrait { flex: 0 0 200px; height: 240px; border-radius: 22px; background: var(--btn); color: var(--btn-fg); display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .yr { flex: 0 0 64px; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-box { display: flex; flex-wrap: wrap; gap: 32px; padding: 30px; border-radius: 22px; background: var(--soft); border: 1px solid var(--soft-line); }
.contact-box > * { flex: 1 1 300px; min-width: 0; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.copy-line code { font-family: var(--font); direction: ltr; unicode-bidi: isolate; }

/* ---------- الفوتر ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .stack-sm { flex: 1 1 300px; max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }

/* ---------- البحث ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--backdrop);
  display: flex; justify-content: center; align-items: flex-start;
  padding: calc(10vh + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
}
.modal { width: 100%; max-width: 580px; background: var(--bg); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.modal-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: var(--fs-md); min-height: 36px; }
.results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.result:hover, .result.is-sel { background: var(--chip); color: var(--fg); }
.result small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.results-empty { padding: 20px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }



/* ================= إضافات WordPress ================= */
.skip-link { position: absolute; top: -100px; right: 16px; z-index: 100; background: var(--btn); color: var(--btn-fg); padding: 8px 16px; border-radius: 999px; }
.skip-link:focus { top: calc(8px + env(safe-area-inset-top, 0px)); color: var(--btn-fg); }
.page-head { display: flex; flex-direction: column; gap: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.eyebrow.strong { font-weight: 600; }
.h1-sm { font-size: clamp(28px, 3.4vw, 34px); }
.pinned-title { font-size: clamp(24px, 3vw, 32px); }
.hero { gap: 22px; }
.hero-form { max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.form-title { font-weight: 600; font-size: var(--fs-md); }
.form-gap { gap: 12px; }
.panel-muted { color: var(--panel-muted); }
.good { color: var(--good-bright); }
.ic-check { color: var(--good); flex: 0 0 16px; }
.pinned .ic-check, .tick .ic-check { color: var(--good); }
.ic-x { flex: 0 0 16px; margin-top: 5px; display: inline-flex; }
.pad-lg { padding: 26px; gap: 12px; }
.buy-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.split-tight { gap: 16px; }
.card-row { flex-direction: row; justify-content: space-between; align-items: center; }
.price-md { font-size: 26px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.svc-head { gap: 16px; max-width: 760px; }
.svc-short, .feature-excerpt { line-height: 1.85; }
.case-head { gap: 18px; max-width: 800px; }
.case-card { gap: 14px; }
.case-summary { line-height: 1.8; }
.narrow { max-width: 720px; }
.body-lg { font-size: var(--fs-md); line-height: 2; }
.about-blurb { font-size: var(--fs-md); line-height: 1.95; max-width: 700px; }
.pager-next { text-align: left; }
.faq-list { gap: 4px; }
.platforms .chip { padding: 8px 16px; font-size: 15px; font-weight: 600; }
.side-sub-title { font-weight: 700; font-size: var(--fs-sm); }
.side-box-slot:empty { display: none; }
.client-sub { display: block; }
.client-logo.has-img { background: var(--bg); border: 1px solid var(--line); overflow: hidden; padding: 0; }
.client-logo img { width: 100%; height: 100%; object-fit: cover; }

/* الأغلفة: صورة بارزة أو رسم تجريدي */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-sm { flex: 0 0 150px; min-height: 120px; }
.cover-lg { min-height: 360px; }
.end-res { align-items: center; }
.end-res .feature-body { flex: 1 1 240px; }
.end-sub { padding: 28px; gap: 12px; }
.post-cover { margin: 0; max-width: 760px; border-radius: 18px; overflow: hidden; }
.post-cover img { width: 100%; height: auto; display: block; }

/* صفحة النبذة */
.about-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.about-intro { flex: 1 1 340px; min-width: 0; }
.about-intro .lead p { margin: 0 0 12px; }
.portrait.has-img { background: var(--chip); overflow: hidden; padding: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* الرسم البياني في دراسة الحالة */
.chart-title { margin-bottom: 6px; }
.chart-val { fill: var(--fg); font-size: 13px; font-weight: 600; font-family: var(--font); }
.chart-lab { fill: var(--muted); font-size: 12px; font-family: var(--font); }

/* محتوى المحرر داخل المقال والصفحات */
.entry-content > * { margin: 0; }
.entry-content h2 { font-size: 24px; line-height: 1.5; margin-top: 12px; }
.entry-content h3 { font-size: 20px; line-height: 1.5; margin-top: 8px; }
.entry-content a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--soft-line); }
.entry-content a:hover { text-decoration-color: var(--fg); color: var(--fg); }
.entry-content ul, .entry-content ol { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 8px 0; padding: 2px 20px 2px 0; border-right: 3px solid var(--fg); border-left: 0; font-size: 21px; line-height: 1.8; font-weight: 600; }
.entry-content .wp-block-quote cite { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.entry-content img { height: auto; border-radius: 14px; }
.entry-content figure { margin: 8px 0; }
.entry-content figcaption { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: start; }
.entry-content code { background: var(--chip); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.entry-content .wp-block-button__link { background: var(--btn); color: var(--btn-fg); border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 14px; }

/* ترقيم الصفحات */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.pagination .page-numbers.current { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.pagination .page-numbers.dots { border: 0; }

/* نماذج من إضافات خارجية (FluentCRM وغيرها) تأخذ نفس الشكل تقريبًا */
.side-sub input[type="email"], .footer input[type="email"] { min-height: 44px; border-radius: 999px; }
.ic-x svg { margin-top: 0; }

/* ================= ابدأ من هنا: بطاقات مثبّتة ================= */
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .start-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.start-card {
	display: flex; align-items: center; gap: 20px; min-width: 0; min-height: 124px; padding: 18px 20px;
	border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); transition: border-color .2s;
}
.start-card:hover { color: inherit; border-color: var(--muted); }
.start-thumb { flex: 0 0 88px; height: 88px; border-radius: 12px; overflow: hidden; position: relative; background: var(--chip); }
.start-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.start-title { flex: 1 1 auto; min-width: 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.65; }
.start-arrow { flex: 0 0 auto; color: var(--muted); display: inline-flex; transition: transform .2s; }
.start-card:hover .start-arrow { color: var(--fg); transform: translateX(-3px); }
@media (max-width: 560px) { .start-card { min-height: 0; padding: 14px; gap: 14px; } .start-thumb { flex-basis: 64px; height: 64px; } }

/* ================= المنشورات: بطاقات بالصور ================= */
.sec-head-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.sec-head-pills .eyebrow { margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.post-grid[hidden] { display: none !important; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.post-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.post-card:hover { color: inherit; }
.post-card-img {
	display: block; position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden;
	border-radius: 14px; border: 1px solid var(--line); background: var(--chip);
}
.post-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.post-card-title { font-size: var(--fs-md); font-weight: 600; line-height: 1.6; }
.post-card:hover .post-card-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--soft-line); }
.posts-more { align-self: flex-start; }

/* عرض القائمة في صفحة كل المقالات */
.post-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.is-list .post-card { flex-direction: row; align-items: center; gap: 18px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.is-list .post-card:last-child { border-bottom: 0; }
.is-list .post-card-img { flex: 0 0 132px; border-radius: 10px; }
.is-list .post-card-body { flex: 1 1 auto; flex-direction: column-reverse; gap: 6px; }
@media (max-width: 560px) { .is-list .post-card-img { flex-basis: 96px; } }

.h1-count { font-size: var(--fs-md); font-weight: 500; color: var(--muted); vertical-align: middle; }
.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; }
.view-toggle button { width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.view-toggle button[aria-pressed="true"] { background: var(--chip); color: var(--fg); }

/* الترقيم: دوائر */
.pagination { margin-top: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 10px; border-color: transparent; font-variant-numeric: tabular-nums; }
.pagination .page-numbers:hover { border-color: var(--line); }
.pagination .page-numbers.current { border-color: var(--btn); }
.pagination .page-numbers svg { display: block; }
.is-list .post-card-meta { justify-content: flex-start; gap: 16px; }


/* ================= v1.2: عناوين أخف للصفحات الرئيسية ================= */
.page-head .h1 { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.4; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.h1-count {
	display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
	background: var(--chip); color: var(--muted); font-size: 14px; font-weight: 600; vertical-align: middle;
}

/* ================= v1.2: بطاقات المقالات (صورة أعلى + عنوان أسفل) ================= */
.post-grid { gap: 20px; }
.post-card {
	gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg);
	transition: border-color .2s, box-shadow .2s;
}
.post-card:hover { border-color: var(--soft-line); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.post-card-img { aspect-ratio: 16 / 9; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.post-card-body { padding: 14px 16px 18px; gap: 8px; }
.post-card-title { font-size: 16px; line-height: 1.65; }
.post-card:hover .post-card-title { text-decoration: none; }

/* عرض القائمة: صورة مصغّرة يمين + العنوان يسار */
.post-grid.is-list { gap: 12px; }
.is-list .post-card { flex-direction: row; align-items: center; gap: 16px; padding: 12px; border-bottom: 1px solid var(--line); }
.is-list .post-card:last-child { border-bottom: 1px solid var(--line); }
.is-list .post-card-img { flex: 0 0 168px; aspect-ratio: 16 / 10; border: 0; border-radius: 12px; }
.is-list .post-card-body { padding: 0; }
.is-list .post-card-title { font-size: var(--fs-md); }
@media (max-width: 560px) {
	.is-list .post-card { gap: 12px; padding: 10px; }
	.is-list .post-card-img { flex-basis: 104px; border-radius: 10px; }
	.is-list .post-card-title { font-size: 15px; }
}
.view-toggle button { cursor: pointer; }


/* ================= v1.2.2: نماذج الاشتراك الخارجية (FluentCRM / Fluent Forms / MailerLite / غيرها) =================
   أي نموذج يأتي من شورت كود يأخذ شكل نماذج الثيم: حقل بإطار دائري، وزر أسود دائري. */
.hub-ext-form form { margin: 0; }
.hub-ext-form label { font-size: 14px; color: var(--muted); }
.hub-ext-form input[type="email"],
.hub-ext-form input[type="text"],
.hub-ext-form input[type="tel"] {
	min-height: 50px !important; height: auto !important; padding: 0 18px !important; width: 100% !important;
	border: 1px solid var(--soft-line) !important; border-radius: 999px !important; background: var(--bg) !important;
	color: var(--fg) !important; font: inherit !important; font-size: var(--fs-sm) !important; box-shadow: none !important;
}
.hub-ext-form input[type="email"]:focus,
.hub-ext-form input[type="text"]:focus { outline: 2px solid var(--focus) !important; outline-offset: 1px; border-color: var(--soft-line) !important; }
.hub-ext-form input::placeholder { color: var(--muted) !important; opacity: 1; }
.hub-ext-form button,
.hub-ext-form input[type="submit"],
.hub-ext-form .ff-btn-submit,
.hub-ext-form .ml-form-embedSubmit button {
	min-height: 50px !important; height: auto !important; padding: 0 26px !important; width: auto;
	border: 1px solid var(--btn) !important; border-radius: 999px !important; background: var(--btn) !important; color: var(--btn-fg) !important;
	font: inherit !important; font-weight: 700 !important; font-size: var(--fs-sm) !important; line-height: 1 !important;
	box-shadow: none !important; cursor: pointer; transition: opacity .2s;
}
.hub-ext-form button:hover,
.hub-ext-form input[type="submit"]:hover { opacity: .88; }
/* مسافات Fluent Forms الافتراضية */
.hub-ext-form .ff-el-group { margin-bottom: 0 !important; }
.hub-ext-form .ff-el-group + .ff-el-group,
.hub-ext-form .ff_submit_btn_wrapper { margin-top: 8px !important; }
.hub-ext-form .ff-message-success, .hub-ext-form .ff-el-is-error .text-danger { font-size: 14px; }
/* في السايدبار: الحقل والزر بعرض كامل تحت بعض */
.side .hub-ext-form button,
.side .hub-ext-form input[type="submit"],
.side .hub-ext-form .ff-btn-submit { width: 100% !important; min-height: 44px !important; }
.side .hub-ext-form input[type="email"], .side .hub-ext-form input[type="text"] { min-height: 44px !important; }
/* صف واحد: الحقل والزر جنب بعض، وينزل الزر تحت الحقل في المساحات الضيقة */
.hub-ext-form .ff-t-container { display: flex !important; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.hub-ext-form .ff-t-cell { flex: 1 1 240px; min-width: 0; padding: 0 !important; }
.hub-ext-form .ff-t-cell:has(.ff-btn-submit), .hub-ext-form .ff-t-cell:has(button) { flex: 0 0 auto; }
.hub-ext-form .ff_submit_btn_wrapper { margin-top: 0 !important; }
.side .hub-ext-form .ff-t-cell { flex-basis: 100%; }


/* ================= v1.3: صورتك، الاشتراك، الفوتر ================= */
.brand-mark.has-img { background: var(--chip); overflow: hidden; padding: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* المشترك لا يرى نماذج الاشتراك، ويرى البديل */
html:not(.hub-subscribed) .hub-sub-alt { display: none !important; }
.hub-subscribed .hub-sub:not(.hub-sub-keep) { display: none !important; }
.sub-alt-line { font-size: var(--fs-sm); color: var(--muted); }

/* الفوتر: الاشتراك في الجوال والتابلت فقط (في الكمبيوتر موجود في القائمة الجانبية) */
.footer-audit { display: none; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1 1 300px; max-width: 460px; }
@media (min-width: 1024px) {
	.footer .footer-sub { display: none; }
	.footer-audit { display: flex; }
}
.hub-subscribed .footer-audit, .footer.no-sub .footer-audit { display: flex; }


/* ================= v1.5: القائمة الجانبية الغامقة (الكمبيوتر فقط) ================= */
:root {
	--side-bg: #141413; --side-card: rgba(255,255,255,.06); --side-line: rgba(255,255,255,.1);
	--side-fg: #f5f5f2; --side-muted: #a9a9a2; --side-hover: rgba(255,255,255,.05); --side-on: rgba(255,255,255,.1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --side-bg: #1b1b19; } }
:root[data-theme="dark"] { --side-bg: #1b1b19; }

@media (min-width: 1024px) {
	.shell { grid-template-columns: 268px minmax(0, 1fr); gap: 48px; }
	.side {
		background: var(--side-bg); color: var(--side-fg); border: 1px solid var(--side-line); border-radius: 22px;
		padding: 12px; gap: 10px; top: 48px; height: calc(100vh - 72px); max-height: none; box-sizing: border-box;
	}
}
/* بطاقتك */
.side-card {
	background: var(--side-card); border: 1px solid var(--side-line); border-radius: 16px; padding: 12px;
	display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto;
}
.side .brand { gap: 12px; }
.side .brand-mark { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 52px; }
.side .brand-mark img { border-radius: 14px; }
.side .brand-name { font-size: 17px; color: var(--side-fg); }
.side .brand-name small { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--side-muted); }
.side-facts { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--side-line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.6; }
.side-facts li { display: flex; align-items: center; gap: 8px; }
.side-facts svg { flex: 0 0 16px; color: var(--side-muted); }
.side-facts .is-good svg { color: var(--good-bright); }

/* الروابط */
.side .nav { gap: 2px; flex: 0 0 auto; }
.side .nav-link { min-height: 38px; padding: 0 12px; border-radius: 11px; font-size: 15.5px; color: var(--side-muted); transition: background .15s, color .15s; }
.side .nav-link::before { display: none; }
.side .nav-link:hover { color: var(--side-fg); background: var(--side-hover); }
.side .nav-link.is-active { color: #fff; background: var(--side-on); font-weight: 600; }
.nav-ic { flex: 0 0 18px; }
.side .nav-link.is-active .nav-ic { color: var(--good-bright); }
.nav-count { margin-inline-start: auto; font-size: 12px; line-height: 1.7; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--side-muted); font-weight: 400; }

/* البحث */
.side .search-btn { min-height: 42px; padding: 0 12px; border: 1px solid var(--side-line); border-radius: 11px; background: var(--side-card); color: var(--side-muted); flex: 0 0 auto; }
.side .search-btn:hover { color: var(--side-fg); }
.side .search-btn .kbd { margin-inline-start: auto; border-color: var(--side-line); }

/* البوكس الذكي وبطاقة «أنت مشترك» */
.side .side-box { background: var(--side-card); border-color: var(--side-line); flex: 0 0 auto; }
.side .side-box-head { color: var(--side-muted); }
.side .side-box-title, .side .side-box-link { color: var(--side-fg); }
.side .icon-btn { color: var(--side-muted); }
.side .icon-btn:hover { background: var(--side-on); color: var(--side-fg); }
.side .bar { background: var(--side-on); }
.side .bar > span { background: var(--good-bright); }

/* الأسفل: الاشتراك وحساباتك */
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side .side-sub { background: var(--side-card); border: 1px solid var(--side-line); border-radius: 14px; padding: 12px; }
.side .side-sub-title, .side .side-sub label { color: var(--side-fg); }
.side .side-sub p { color: var(--side-muted); }
.side .field { background: transparent; border-color: var(--side-line); color: var(--side-fg); min-height: 44px; border-radius: 11px; }
.side .field::placeholder { color: var(--side-muted); opacity: 1; }
.side .side-sub .btn { background: var(--side-fg); border-color: var(--side-fg); color: #121211; }
.side .side-sub .btn:hover { color: #121211; }
.side .success { background: var(--good-on-panel); color: var(--good-bright); }
.side .hub-ext-form label { color: var(--side-muted); }
.side .hub-ext-form input[type="email"], .side .hub-ext-form input[type="text"] {
	background: transparent !important; border-color: var(--side-line) !important; color: var(--side-fg) !important; border-radius: 11px !important;
}
.side .hub-ext-form input::placeholder { color: var(--side-muted) !important; }
.side .hub-ext-form button, .side .hub-ext-form input[type="submit"], .side .hub-ext-form .ff-btn-submit {
	background: var(--side-fg) !important; border-color: var(--side-fg) !important; color: #121211 !important;
}
.side-social { display: flex; gap: 8px; }
.side-social a {
	width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--side-card); border: 1px solid var(--side-line); color: var(--side-fg); transition: background .15s;
}
.side-social a:hover { background: var(--side-on); }
.side :focus-visible { outline-color: #60a5fa; }


/* ================= v1.5: فواصل الرئيسية — بين أي قسمين متتاليين مهما كان الترتيب ================= */
.home-flow { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.home-block { min-width: 0; }
.home-block + .home-block { border-top: 1px solid var(--line); padding-top: 40px; }
.home-block > .sec { border-top: 0; padding-top: 0; }

/* الشاشات القصيرة: نضغط المسافات ونخفي سطر وصف الاشتراك حتى يظهر كل شيء بدون تمرير */
@media (min-width: 1024px) and (max-height: 960px) {
	.side .side-sub p { display: none; }
	.side .nav-link { min-height: 35px; font-size: 15px; }
	.side-facts { padding-top: 8px; gap: 2px; }
	.side .side-box { padding: 10px 12px; gap: 6px; }
	.side .side-box-title { font-size: 14px; }
	.side .search-btn { min-height: 38px; }
	.side .field, .side .side-sub .btn { min-height: 40px; }
	.side-social a { width: 34px; height: 34px; }
	.side-foot { gap: 10px; }
	.side { gap: 8px; }
}
@media (min-width: 1024px) and (max-height: 840px) {
	.side-facts { display: none; }
	.side { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
}
.side a:hover { color: var(--side-fg); }
.side .muted { color: var(--side-muted); }


/* ================= v1.6: فهرس المقال ================= */
.toc { margin: 0; }
.toc-box { border: 1px solid var(--soft-line); border-radius: var(--r-md); background: var(--soft); }
.toc-box summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 0 18px; font-weight: 600; font-size: var(--fs-sm);
}
.toc-box summary::-webkit-details-marker { display: none; }
.toc-count { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.toc-chev { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.toc-box[open] .toc-chev { transform: rotate(180deg); }
.toc-box ol { list-style: none; margin: 0; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--soft-line); }
.toc-box li a {
	display: flex; align-items: baseline; gap: 10px; padding: 8px 8px; border-radius: 10px;
	font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); transition: background .15s, color .15s;
}
.toc-box li a:hover { background: var(--bg); color: var(--fg); }
.toc-box li a.is-active { background: var(--bg); color: var(--fg); font-weight: 600; }
.toc-n { flex: 0 0 auto; min-width: 18px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.toc-box li a.is-active .toc-n { color: var(--good); }
.article h2[id] { scroll-margin-top: 24px; }
@media (max-width: 1023px) { .article h2[id] { scroll-margin-top: 84px; } }

/* ================= v1.6: زر الطلب الثابت في صفحة الخدمة (الجوال والتابلت فقط) ================= */
.svc-sticky { display: none; }
@media (max-width: 1023px) {
	.svc-sticky {
		position: fixed; inset: auto 0 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
		background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06);
		transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
	}
	.svc-sticky.is-shown { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
	.svc-sticky-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
	.svc-sticky-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.svc-sticky-text span { font-size: 12.5px; color: var(--muted); }
	.svc-sticky .btn { flex: 0 0 auto; min-height: 44px; }
	.has-svc-sticky .footer, .has-calc-sticky .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}


/* ================= v1.7: حاسبة ميزانية الإعلانات ================= */
.calc-head { gap: 14px; }
.calc-head .lead { max-width: 680px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.calc-note { font-size: 14px; color: var(--muted); }
.calc-step { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.calc-step legend { float: right; width: 100%; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-md); padding: 0; margin-bottom: 2px; }
.calc-n { width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--btn-fg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-label { font-size: 14px; font-weight: 600; }
.calc-input { display: flex; align-items: center; border: 1px solid var(--soft-line); border-radius: var(--r-sm); background: var(--bg); min-height: 50px; padding: 0 16px; gap: 10px; }
.calc-input:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.calc-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; }
.calc-input input::placeholder { font-size: 15px; font-weight: 400; color: var(--muted); }
.calc-unit { font-size: 14px; color: var(--muted); }
.calc-help { font-size: 13px; color: var(--muted); line-height: 1.6; }
.calc-fee-help { margin-top: -6px; }
.calc-warn { font-size: 13px; color: var(--danger); line-height: 1.6; margin-top: -6px; }
.calc-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--soft-line); background: var(--bg); font-size: 14px; }
.calc-chip.is-on { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.calc-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; position: relative; min-height: 32px; }
.calc-switch input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; }
.calc-switch input:focus-visible + .calc-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.calc-track { width: 40px; height: 24px; border-radius: 999px; background: var(--soft-line); position: relative; flex: 0 0 40px; transition: background .2s; }
.calc-track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.calc-switch input:checked + .calc-track { background: var(--good); }
.calc-switch input:checked + .calc-track::after { transform: translateX(-16px); }

.calc-result { position: sticky; top: 24px; background: var(--panel); color: var(--panel-fg); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.calc-r-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.calc-r-tag { font-size: 12px; font-weight: 400; color: var(--panel-muted); }
.calc-hero { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--panel-line); }
.calc-hero-l, .calc-hero-s { font-size: 13px; color: var(--panel-muted); }
.calc-hero strong { font-size: 46px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.calc-hero small { font-size: 18px; font-weight: 600; color: var(--panel-muted); }
.calc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-kpi { background: rgba(255,255,255,.06); border: 1px solid var(--panel-line); border-radius: var(--r-sm); padding: 10px 12px; }
.calc-kpi span { display: block; font-size: 12px; color: var(--panel-muted); line-height: 1.5; }
.calc-kpi strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.calc-kpi.good strong { color: var(--good-bright); }
.calc-split { display: flex; flex-direction: column; gap: 8px; }
.calc-split-t { font-size: 12.5px; color: var(--panel-muted); }
.calc-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.calc-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--panel-muted); }
.calc-legend li { display: flex; align-items: center; gap: 6px; }
.calc-legend i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; }
.calc-legend b { color: var(--panel-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-say { font-size: 14px; line-height: 1.8; background: rgba(39,174,96,.12); border: 1px solid rgba(39,174,96,.28); border-radius: var(--r-sm); padding: 10px 12px; }
.calc-say b { color: var(--good-bright); }
.calc-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.calc-mail { align-self: center; min-height: 44px; background: none; border: 0; padding: 0 8px; font-size: 14px; color: var(--panel-muted); text-decoration: underline; text-underline-offset: 3px; }
.calc-mail:hover { color: var(--panel-fg); }
.calc-mail-form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--panel-line); padding-top: 12px; }
.calc-mail-form[hidden] { display: none; }
.calc-mail-l { font-size: 13.5px; line-height: 1.7; color: var(--panel-fg); }
.calc-mail-row { display: flex; gap: 8px; }
.calc-mail-row .field { flex: 1; min-width: 0; min-height: 44px; background: transparent; border-color: var(--panel-line); color: var(--panel-fg); }
.calc-mail-row .field::placeholder { color: var(--panel-muted); }
.calc-mail-note { font-size: 12px; color: var(--panel-muted); line-height: 1.6; }
.calc-mail-msg { font-size: 13.5px; line-height: 1.6; }
.calc-mail-msg:empty { display: none; }
.calc-mail-msg.is-ok { color: var(--good-bright); }
.calc-mail-msg.is-err { color: #f97066; }
.calc-result .success { background: var(--good-on-panel); color: var(--good-bright); }
.calc-how .small { margin-top: 4px; }
.calc-sticky { display: none; }
@media (max-width: 1023px) {
	.calc { grid-template-columns: minmax(0, 1fr); }
	.calc-result { position: static; scroll-margin-top: 84px; }
	.calc-sticky {
		position: fixed; inset: auto 0 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
		background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06); font-size: 14px;
		transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
	}
	.calc-sticky.is-shown { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
	.calc-sticky b { font-variant-numeric: tabular-nums; }
	.calc-sticky .btn { min-height: 44px; flex: 0 0 auto; }
}
@media (max-width: 560px) { .calc-row2 { grid-template-columns: minmax(0, 1fr); } .calc-step { padding: 16px; } }

/* قسم الحاسبة في الرئيسية */
.calc-home { display: flex; flex-wrap: wrap; align-items: stretch; border: 1px solid var(--soft-line); border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.calc-home-text { flex: 1 1 340px; padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.calc-home-text h3 { font-size: 24px; line-height: 1.5; }
.calc-home-demo { flex: 1 1 300px; background: var(--panel); color: var(--panel-fg); padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.calc-home-cap { font-size: 12.5px; color: var(--panel-muted); }
.calc-home-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--panel-muted); border-bottom: 1px solid var(--panel-line); padding-bottom: 8px; }
.calc-home-row b { color: var(--panel-fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-home-big { display: flex; flex-direction: column; }
.calc-home-big span { font-size: 12.5px; color: var(--panel-muted); }
.calc-home-big strong { font-size: 34px; color: var(--good-bright); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .calc-home-text, .calc-home-demo { padding: 20px; } .calc-home-text h3 { font-size: 20px; } }


/* ================= v1.7.2: دليل الحاسبة ================= */
.calc-label { display: inline-flex; align-items: center; flex-wrap: wrap; }
.calc-q {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px; margin-inline-start: 6px;
	border-radius: 50%; border: 1px solid var(--soft-line); font-size: 12px; font-weight: 700; line-height: 1; color: var(--muted); position: relative; vertical-align: middle;
}
.calc-q::after { content: ""; position: absolute; inset: -12px; } /* مساحة ضغط أكبر من الشكل */
.calc-q:hover { color: var(--fg); border-color: var(--muted); }
.calc-q.on-dark { border-color: var(--panel-line); color: var(--panel-muted); }
.calc-q.on-dark:hover { color: var(--panel-fg); border-color: var(--panel-muted); }
.calc-kpi > span:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.calc-kpi .calc-q { width: 18px; height: 18px; font-size: 11px; margin: 0; }
.calc-guide { gap: 20px; }
.guide-head { display: flex; flex-direction: column; gap: 6px; }
.guide-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-col { display: flex; flex-direction: column; min-width: 0; }
.guide-t { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.guide-item { border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.guide-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 600; font-size: 15.5px; transition: color .3s; }
.guide-item summary::-webkit-details-marker { display: none; }
.guide-chev { color: var(--muted); flex: 0 0 16px; transition: transform .2s; }
.guide-item[open] .guide-chev { transform: rotate(180deg); }
.guide-item.is-hl summary { color: var(--good); }
.guide-body { padding: 0 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.guide-body b { color: var(--fg); }
.guide-math { margin: 4px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--fg); }
@media (max-width: 900px) { .guide-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (max-width: 1023px) { .guide-item { scroll-margin-top: 84px; } }
.guide-gap { height: 22px; }
.guide-note { font-size: 14px; line-height: 1.85; color: var(--muted); background: var(--soft); border: 1px solid var(--soft-line); border-radius: var(--r-sm); padding: 12px 14px; }
.guide-note b { color: var(--fg); }
.guide-item summary span { line-height: 1.6; padding: 6px 0; }


/* ================= v1.8: صفحة «نبذة عني» ================= */
.about { display: flex; flex-direction: column; gap: 48px; }
.about.is-mono img { filter: grayscale(1); }
.ab-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ab-hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ab-eyebrow { font-size: var(--fs-sm); color: var(--muted); }
.ab-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.45; font-weight: 700; margin: 0; }
.ab-lead { display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.9; color: var(--muted); }
.ab-lead p:first-child { color: var(--fg); }
.ab-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ab-social a { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--soft-line); display: inline-flex; align-items: center; justify-content: center; color: var(--fg); transition: border-color .15s, background .15s; }
.ab-social a:hover { background: var(--soft); border-color: var(--muted); color: var(--fg); }
.ab-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 0.92; background: var(--panel); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-photo.is-empty { display: flex; align-items: center; justify-content: center; color: var(--panel-fg); font-size: 96px; font-weight: 700; }

.ab-h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.5; margin: 0; }
.ab-h3 { font-size: 22px; line-height: 1.5; margin: 0; }
.ab-rule { display: inline-flex; flex-direction: column; gap: 10px; }
.ab-rule::after { content: ""; width: 44px; height: 3px; border-radius: 2px; background: var(--fg); }

.ab-story { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.ab-prose { font-size: 17px; line-height: 1.95; }

.ab-card { display: flex; align-items: center; gap: 32px; background: var(--soft); border: 1px solid var(--soft-line); border-radius: 22px; padding: 30px 34px; }
.ab-card-icon { flex: 0 0 auto; color: var(--fg); padding-inline-end: 32px; border-inline-end: 1px solid var(--soft-line); display: inline-flex; }
.ab-card-text { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.9; color: var(--muted); min-width: 0; }
.ab-card-text p:first-of-type { color: var(--fg); }

.ab-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 8px; }
.ab-split.no-img { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ab-split-text { display: flex; flex-direction: column; gap: 14px; font-size: 16.5px; line-height: 1.95; color: var(--muted); }
.ab-split-text .ab-h2 { color: var(--fg); align-self: flex-start; }
.ab-split-img { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.ab-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ab-focus { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; border-top: 1px solid var(--line); }
.ab-focus .ab-h2 { align-self: flex-start; }
.ab-focus-grid { display: grid; grid-template-columns: repeat(var(--ab-cols, 3), minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .ab-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ab-focus-card { background: var(--soft); border: 1px solid var(--soft-line); border-radius: 18px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ab-focus-ic { color: var(--fg); margin-bottom: 4px; }
.ab-focus-card strong { font-size: 16px; line-height: 1.5; }
.ab-focus-card span[dir] { font-size: 13px; color: var(--muted); line-height: 1.5; }

.ab-band { position: relative; overflow: hidden; border-radius: 22px; background: var(--panel); color: var(--panel-fg); padding: 34px 36px; min-height: 180px; display: flex; align-items: center; }
.ab-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ab-band.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to left, var(--panel) 35%, rgba(20,20,19,.55) 70%, rgba(20,20,19,.2)); }
.ab-band-text { position: relative; z-index: 2; max-width: 620px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.9; color: var(--panel-muted); }
.ab-band-text .ab-h3 { color: var(--panel-fg); }

.ab-know { display: flex; flex-direction: column; gap: 20px; }
.ab-know-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ab-know-head > div { display: flex; flex-direction: column; gap: 8px; }
.ab-know-head .ab-h2 { align-self: flex-start; }

.ab-closing { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.6; text-align: center; padding: 28px 12px; border-block: 1px solid var(--line); text-wrap: balance; }

@media (max-width: 900px) {
	.ab-hero, .ab-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ab-photo { order: -1; aspect-ratio: 4 / 3.4; }
	.ab-card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
	.ab-card-icon { padding: 0 0 18px; border-inline-end: 0; border-bottom: 1px solid var(--soft-line); }
	.ab-band { padding: 26px 22px; }
	.ab-band.has-img::before { background: linear-gradient(to top, var(--panel) 40%, rgba(20,20,19,.6)); }
}
@media (max-width: 560px) { .ab-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-focus-card { padding: 18px 10px; } }


/* ================= v1.9: عرض موحّد لعمود المقال ================= */
/* العنوان والصورة والفهرس والنص والمشاركة وبلوك النهاية كلها بنفس العرض */
:root { --read-w: 760px; }
.post-head, .post-cover, .toc, .article, .share, .end-block { max-width: var(--read-w); width: 100%; }

/* ================= v1.9: حركات خفيفة ================= */
/* تعمل فقط مع .hub-motion على body، ولا تعمل أبدًا لمن فعّل «تقليل الحركة» */
@media (prefers-reduced-motion: no-preference) {
	.hub-motion .rv { opacity: 0; transform: translateY(14px); }
	.hub-motion .rv.rv-in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-d, 0ms); }
	.hub-motion a.card:hover, .hub-motion .start-card:hover, .hub-motion .ab-focus-card:hover, .hub-motion .res-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .06); }
	.hub-motion a.card, .hub-motion .start-card, .hub-motion .ab-focus-card { transition: border-color .2s, transform .2s ease-out, box-shadow .2s ease-out; }
	.hub-motion .btn { transition: opacity .2s, transform .12s ease-out; }
	.hub-motion .btn:active { transform: scale(.97); }
	.hub-motion .nav-link .nav-ic { transition: transform .2s ease-out; }
	.hub-motion .side .nav-link:hover .nav-ic { transform: translateX(-2px); }
}

/* v1.9.1: الأرقام الإنجليزية مع إشارة سالب أو نسبة (−38%) تُقرأ صحيحة داخل الصفحة العربية */
.big-metric, .metric-card .before, .metric-card .after, .delta, .kpi strong, .stat-strip strong, .calc-kpi strong, .calc-hero strong { unicode-bidi: plaintext; text-align: right; }
