@charset "UTF-8";

/* ============================================================================
   نظام تصميم ورشة الطباعة ثلاثية الأبعاد
   ----------------------------------------------------------------------------
   الاتجاه: صناعي تقني. الأرقام تُقرأ كمواصفات، والجداول تُقرأ كأوراق بيانات.
   بلا تدرّجات لونية، بلا زوايا دائرية كبيرة، بلا ظلال ناعمة، بلا أيقونات
   تعبيرية. الخطوط الفاصلة الرفيعة هي عنصر التصميم الأساسي.
   ========================================================================== */

/* ─── الخطوط ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-arabic-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-arabic-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-arabic-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-arabic-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/plex-ar-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: optional;
}

@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* خط العناوين: Alexandria — نفس خط البروشور، هندسي يناسب عالم التصنيع */
@font-face {
  font-family: 'Alexandria';
  src: url('../fonts/alexandria-var.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: optional;
}

/* ─── الرموز ─────────────────────────────────────────────────────────────── */

:root {
  /* هوية xfab: الأزرق الداكن والبرتقالي من الشعار */
  --brand:      #062b5c;   /* أزرق الشعار — الترويسة الداكنة، التذييل، الصدارة */
  --brand-2:    #0b3a78;
  --brand-ink:  #0b1b33;   /* نص على البرتقالي — أوضح من الأبيض عليه */

  --ink:        #0b1b33;
  --ink-2:      #33445c;
  --muted:      #5e6b7d;
  --faint:      #929aa6;
  --line:       #d8d3c8;
  --line-soft:  #e8e4db;
  --paper:      #f4f1ea;
  --card:       #ffffff;
  --sunken:     #ece8df;

  --accent:     #ff6600;   /* برتقالي الشعار */
  --accent-ink: #b34200;   /* البرتقالي نصًّا على خلفية فاتحة */
  --accent-bg:  #fff0e5;

  --ok:         #1c7049;
  --ok-bg:      #e8f3ed;
  --warn:       #8a6100;
  --warn-bg:    #fbf2dd;
  --danger:     #a32a1f;
  --danger-bg:  #fbeceb;

  --display: 'Alexandria', 'Plex Arabic', system-ui, sans-serif;
  --sans: 'Plex Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --w:   1160px;   /* عرض المحتوى الأقصى */
  --gut: 24px;     /* هامش جانبي */

  --r: 4px;        /* زوايا مشدودة بلا حدّة */
}

/* ─── إعادة الضبط ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* حاسم: أي صنف يضبط display (مثل .tag أو .btn) يتغلّب على خاصية hidden
   لأن قاعدة الصنف أقوى من ورقة أنماط المتصفح. بلا هذا السطر تبقى عناصر
   أخفيناها بجافاسكربت ظاهرة على الشاشة. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="ltr"] body { line-height: 1.6; }

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

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.3;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2rem); }
h3 { font-size: 1.15rem; }

p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection { background: var(--accent); color: var(--brand-ink); }

/* كل الأرقام والمقاسات بخط أحادي المسافة — هذا ما يعطي الإحساس التقني */
.num, .mono, code, kbd, samp {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.94em;
  letter-spacing: -0.01em;
}

/* ─── البنية ─────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section + .section { border-top: 1px solid var(--line-soft); }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  :root { --gut: 16px; }
}

/* ─── نص مساعد ───────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
  display: block;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .8rem; }

.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }

/* ─── الترويسة ───────────────────────────────────────────────────────────── */

.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-head__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: -0.015em;
  flex-shrink: 0;
}
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.brand span { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-inline-start: auto;
}

.nav a {
  padding: .5rem .7rem;
  font-size: .925rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--r);
  white-space: nowrap;
}
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.lang-switch {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--muted);
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.cart-link:hover { border-color: var(--ink); }
.cart-link__count {
  font-family: var(--mono);
  font-size: .72rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding-inline: 4px;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .45rem .55rem;
  cursor: pointer;
}
.burger svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem var(--gut) 1rem;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}

/* ─── الأزرار ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--card); }

.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }

.btn--lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn--sm { padding: .42rem .75rem; font-size: .84rem; }
.btn--block { width: 100%; }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ─── البطاقات واللوحات ──────────────────────────────────────────────────── */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.panel__head {
  padding: .9rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1rem; }
.panel__body { padding: 1.15rem; }
.panel__foot {
  padding: .9rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  background: var(--sunken);
}

/* ─── الجداول ────────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .925rem;
  background: var(--card);
}
table.data th,
table.data td {
  padding: .7rem .85rem;
  text-align: start;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data thead th {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--sunken);
}
[dir="rtl"] table.data thead th { letter-spacing: 0; font-size: .82rem; text-transform: none; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #faf9f6; }
table.data td.num, table.data th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* قائمة مواصفات: اسم ← قيمة، بخط منقّط بينهما */
.specs { margin: 0; }
.specs div {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: .9rem; flex-shrink: 0; }
.specs dd {
  margin: 0;
  margin-inline-start: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  font-weight: 500;
  text-align: end;
}
.specs dd.is-total { font-size: 1.05rem; font-weight: 500; }
.specs dd.is-discount { color: var(--ok); }

/* ─── صندوق الكوبون ──────────────────────────────────────────────────────── */

.coupon-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.coupon-box .input { min-width: 0; flex: 1 1 auto; }
.coupon-box .btn { flex: 0 0 auto; }

/* يُخفي النص بصريًا ويُبقيه لقارئ الشاشة */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── النماذج ────────────────────────────────────────────────────────────── */

.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.label .req { color: var(--accent); }

.hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

.input, .select, .textarea {
  width: 100%;
  padding: .65rem .8rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21, 22, 26, .08);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236d7077' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 11px;
  background-position: left .8rem center;
  padding-inline-start: 2.2rem;
}
[dir="ltr"] .select { background-position: right .8rem center; padding-inline-start: .8rem; padding-inline-end: 2.2rem; }

.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--danger);
}
.error-text {
  display: block;
  font-size: .82rem;
  color: var(--danger);
  margin-top: .35rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .92rem;
  cursor: pointer;
}
.check input { margin-top: .3rem; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

/* حقل الخداع — مخفي عن الإنسان، مرئي للروبوت */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* أزرار اختيار على هيئة بطاقات (الخامة، الجودة) */
.choices { display: grid; gap: .6rem; }
.choices--2 { grid-template-columns: repeat(2, 1fr); }
.choices--3 { grid-template-columns: repeat(3, 1fr); }

.choice { position: relative; }

/* المدخل يغطّي البطاقة كاملة بدل إخفائه بعرض صفر.
   إخفاؤه بـ width:0 يجعله غير قابل للنقر ولا للتركيز بلوحة المفاتيح
   في بعض المتصفحات — وهذا يكسر إمكانية الوصول ويكسر الاختبارات معًا. */
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.choice span {
  display: block;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  text-align: center;
  transition: border-color .12s ease, background-color .12s ease;
}
.choice span small {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: .15rem;
}
.choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.choice input:checked + span small { color: rgba(244, 243, 239, .72); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* منزلقة (نسبة الحشو) */
.range {
  width: 100%;
  accent-color: var(--accent);
  height: 24px;
}

/* عيّنات الألوان */
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { position: relative; }
.swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.swatch span {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--card);
}
.swatch input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--card), 0 0 0 1px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── التنبيهات ──────────────────────────────────────────────────────────── */

.note {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--muted);
  border-radius: var(--r);
  background: var(--card);
  font-size: .92rem;
}
.note + .note { margin-top: .6rem; }
.note--ok     { border-inline-start-color: var(--ok);     background: var(--ok-bg); }
.note--warn   { border-inline-start-color: var(--warn);   background: var(--warn-bg); }
.note--danger { border-inline-start-color: var(--danger); background: var(--danger-bg); }
.note--info   { border-inline-start-color: var(--accent); background: var(--accent-bg); }
.note strong { font-weight: 600; }
.note ul { margin: .4rem 0 0; padding-inline-start: 1.1rem; }

.flash-area { position: sticky; top: 68px; z-index: 30; height: 0; overflow: visible; }
.flash-area .wrap { padding-top: .75rem; display: grid; gap: .5rem; }
.flash-area .note {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  box-shadow: 0 12px 30px rgba(2,16,40,.25); margin: 0; animation: flash-in .25s ease-out;
}
.flash-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: inherit; cursor: pointer; opacity: .6; padding: 0 .2rem; }
.flash-close:hover { opacity: 1; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .flash-area .note { animation: none; } }

/* ─── الشارات ────────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .76rem;
  font-weight: 600;
  padding: .18rem .5rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  white-space: nowrap;
}
.tag--ok     { color: var(--ok);     border-color: #b9d8c8; background: var(--ok-bg); }
.tag--warn   { color: var(--warn);   border-color: #e3d2a4; background: var(--warn-bg); }
.tag--danger { color: var(--danger); border-color: #e5bdb9; background: var(--danger-bg); }
.tag--accent { color: var(--accent-ink); border-color: #f0c4ad; background: var(--accent-bg); }
.tag--ink    { color: var(--paper); border-color: var(--ink); background: var(--ink); }

/* ─── الصدارة ────────────────────────────────────────────────────────────── */

.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}
.hero h1 { margin-bottom: .5rem; }
.hero__sub { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 1.6rem; }

/* شريط حقائق تحت الصدارة */
.factbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.factbar > div {
  padding: 1.1rem var(--gut);
  border-inline-end: 1px solid var(--line-soft);
}
.factbar > div:last-child { border-inline-end: 0; }
.factbar dt { font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }
.factbar dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .factbar { grid-template-columns: repeat(2, 1fr); }
  .factbar > div:nth-child(2n) { border-inline-end: 0; }
  .factbar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

/* ─── خطوات مرقّمة ───────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps > li {
  list-style: none;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-inline-start: 0;
  background: var(--card);
}
.steps > li:first-child { border-inline-start: 1px solid var(--line); }
.steps__n {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: .6rem;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.steps p { font-size: .92rem; color: var(--ink-2); margin: 0; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .steps > li { border-inline-start: 1px solid var(--line); border-top: 0; }
  .steps > li:first-child { border-top: 1px solid var(--line); }
}

/* ─── التذييل ───────────────────────────────────────────────────────────── */

.site-foot {
  background: var(--ink);
  color: #b9bcc2;
  margin-top: auto;
  font-size: .9rem;
}
.site-foot a { color: #e6e7ea; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .site-foot__grid { grid-template-columns: 1fr; } }
.site-foot h4, .site-foot .foot-h {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9fb6d3;
  margin-bottom: .85rem;
}
[dir="rtl"] .site-foot h4, [dir="rtl"] .site-foot .foot-h { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li + li { margin-top: .5rem; }
.site-foot__bar {
  border-top: 1px solid #2b2d34;
  padding-block: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .82rem;
  color: #9fb6d3;
}

/* ─── الصفحة كاملة ───────────────────────────────────────────────────────── */

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page > main { flex: 1; }

.page-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.page-head h1 { margin-bottom: .35rem; }
.page-head .lead { margin: 0; }

/* مسار التنقّل */
.crumbs {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin-inline: .4rem; color: var(--faint); }

/* ─── تخطيط لوحين ────────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }

.sticky { position: sticky; top: 92px; }
@media (max-width: 1000px) { .sticky { position: static; } }

/* ─── أدوات ──────────────────────────────────────────────────────────────── */

.flex { display: flex; gap: .75rem; align-items: center; }
.flex-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.text-end { text-align: end; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }

.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: 0;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  z-index: 100;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-head, .site-foot, .btn, .no-print { display: none !important; }
  body { background: #fff; }
  .panel { border-color: #999; }
}

/* ─── أدوات إضافية ───────────────────────────────────────────────────────────
   موجودة لأن سياسة أمان المحتوى (CSP) تمنع خاصية style المضمّنة،
   وهو منع مقصود: إغلاق هذا الباب يُبطل معظم هجمات حقن السكربتات.
   -------------------------------------------------------------------------- */

.narrow        { max-width: 620px; margin-inline: auto; }
.measure       { max-width: 34ch; }
.reset-list    { padding: 0; margin: 0; }
.items-center  { align-items: center; }
.items-start   { align-items: start; }
.btn-row--center { justify-content: center; }
.band          { background: var(--card); border-top: 1px solid var(--line); }
.pad-block-3   { padding-block: 3rem; }

.err-code      { font-size: clamp(2.6rem, 8vw, 3.5rem); font-weight: 500; color: var(--accent); margin: 0 0 .5rem; }
.err-title     { font-size: 1.5rem; }

.label-mono    { font-size: .86rem !important; letter-spacing: .04em; }
.specs dt.is-strong { font-weight: 600; color: var(--ink); }
.factbar dd.is-text { font-size: 1rem; }

.foot-name     { color: #e6e7ea; font-weight: 600; margin-bottom: .5rem; }
.foot-dim      { color: #9fb6d3; }

/* جدول عريض: ينزلق أفقيًا بدل أن ينضغط، ويُخفي عمود الوصف على الشاشات الصغيرة */
table.data--wide { min-width: 720px; }
@media (max-width: 720px) {
  table.data--wide { min-width: 0; }
  .col-desc { display: none; }
}
.table-scroll { -webkit-overflow-scrolling: touch; }

/* توازن الصدارة: النص يبدأ من الأعلى على الشاشات الكبيرة */
@media (min-width: 881px) {
  .hero__grid { align-items: start; padding-block-start: clamp(2rem, 4vw, 3.5rem); }
}

.input--qty { width: 5.5rem; text-align: center; }
.price-line { font-size: 1.1rem; }

/* ─── خط زمن الطلب ───────────────────────────────────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline__step {
  display: flex;
  gap: .9rem;
  padding-bottom: 1.3rem;
  position: relative;
}
.timeline__step:last-child { padding-bottom: 0; }

/* الخط الواصل بين النقاط */
.timeline__step:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 16px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}
.timeline__step.is-done:not(:last-child)::before { background: var(--ok); }

.timeline__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}
.timeline__step.is-done .timeline__dot    { background: var(--ok); border-color: var(--ok); }
.timeline__step.is-current .timeline__dot { background: var(--accent); border-color: var(--accent); }
.timeline__step.is-todo    { color: var(--faint); }
.timeline__step.is-todo strong { font-weight: 500; }

/* ─── تبويبات ────────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  align-items: center;
  gap: .25rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tabs a {
  padding: .6rem .9rem;
  font-size: .925rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs__end { margin-inline-start: auto; padding-bottom: .4rem; }

.swatch-dot {
  display: inline-block;
  width: 20px; height: 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════════════════════════
   قائمة الحساب في الترويسة
   ---------------------------------------------------------------------------
   مبنية على <details> بلا جافاسكربت: تفتح بالنقر وبلوحة المفاتيح، وتعمل
   حتى لو تعطّل السكربت. الدائرة تحمل أول حرف من الاسم بلون ثابت مشتق من
   البريد — لا صورة تُرفع ولا مساحة تُستهلك.
   ═════════════════════════════════════════════════════════════════════════ */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #4a4d55;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  user-select: none;
}
.avatar--lg { width: 3.6rem; height: 3.6rem; font-size: 1.6rem; }

/* ثمانية ألوان ثابتة — اللون يُختار من بريد الزبون فيثبت له في كل زيارة */
.avatar--c0 { background: #a8431a; }
.avatar--c1 { background: #1c5d7a; }
.avatar--c2 { background: #3f6b34; }
.avatar--c3 { background: #6b3f7a; }
.avatar--c4 { background: #8a5a12; }
.avatar--c5 { background: #2f4f7f; }
.avatar--c6 { background: #7a2f3f; }
.avatar--c7 { background: #2f6f66; }

.usermenu { position: relative; }
.usermenu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  border-radius: 50%;
  outline-offset: 3px;
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover .avatar { filter: brightness(1.12); }

.usermenu__panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .5rem);
  z-index: 60;
  min-width: 13.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 10px 28px rgba(21, 22, 26, .13);
  padding: .35rem;
}
.usermenu__id {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .55rem .65rem .6rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: .35rem;
}
.usermenu__panel a,
.usermenu__panel button {
  display: block;
  width: 100%;
  text-align: start;
  padding: .5rem .65rem;
  border: 0;
  border-radius: calc(var(--r) - 2px);
  background: none;
  font: inherit;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.usermenu__panel a:hover,
.usermenu__panel button:hover { background: var(--sunken); }
.usermenu__panel form { margin: .35rem 0 0; border-top: 1px solid var(--line-soft); padding-top: .35rem; }
.usermenu__panel button { color: var(--danger); }

/* ─── بطاقات الملفات المحفوظة ─────────────────────────────────────────────── */

.filecards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}
.filecard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.filecard__head {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--line-soft);
}
.filecard__icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--accent-bg);
  color: var(--accent-ink);
}
.filecard__name {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
  word-break: break-word;
}
.filecard__specs {
  margin: 0;
  padding: .75rem .9rem;
  display: grid;
  gap: .4rem;
  font-size: .85rem;
}
.filecard__specs div { display: flex; justify-content: space-between; gap: .75rem; }
.filecard__specs dt { color: var(--muted); }
.filecard__specs dd { margin: 0; font-family: var(--mono); font-size: .82rem; }
.filecard__foot {
  margin-top: auto;
  display: flex;
  gap: .5rem;
  padding: .75rem .9rem;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.filecard__foot .btn { flex-grow: 1; }

/* ─── لمحة الحساب ─────────────────────────────────────────────────────────── */

.acct-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.acct-hero__meta { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.acct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .75rem;
}
.acct-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .85rem 1rem;
}
.acct-stat__num { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.acct-stat__label { color: var(--muted); font-size: .85rem; }

/* مربّع اللون بجانب اسمه */
.swatch-inline { display: inline-flex; align-items: center; gap: .4rem; }
.swatch-dot {
  width: .85rem; height: .85rem; border-radius: 3px;
  border: 1px solid rgba(21, 22, 26, .22);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   جداول تتحوّل إلى بطاقات على الجوال
   ---------------------------------------------------------------------------
   الجدول العريض على شاشة 390px يضغط الأعمدة حتى تتكسّر الكلمات حرفًا حرفًا.
   تحت 720px يصبح كل صفّ بطاقة، ويأخذ كل حقل عنوانه من data-label.
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 719px) {
  table.data--stack,
  table.data--stack tbody,
  table.data--stack tr,
  table.data--stack td { display: block; width: 100%; }

  table.data--stack thead { display: none; }

  table.data--stack tr {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    margin-bottom: .75rem;
    padding: .25rem .25rem .5rem;
  }

  table.data--stack td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: .55rem .7rem;
    text-align: start;
  }
  table.data--stack td:last-child { border-bottom: 0; }

  table.data--stack td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: var(--sans);
    font-size: .82rem;
    letter-spacing: 0;
    flex-shrink: 0;
  }

  table.data--stack td.num { text-align: end; }
  table.data--stack .table-scroll { overflow: visible; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   معرض الأعمال
   ═════════════════════════════════════════════════════════════════════════ */

.workgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.workcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.workcard:hover { border-color: var(--ink); transform: translateY(-2px); }

.workcard__media {
  aspect-ratio: 1 / 1;
  background: var(--sunken);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.workcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.workcard__blank { color: var(--faint); }

.workcard__body { padding: .85rem .95rem; display: flex; flex-direction: column; gap: .3rem; }
.workcard__title { margin: 0; font-size: 1rem; line-height: 1.45; }
.workcard__meta { display: flex; gap: .6rem; flex-wrap: wrap; }

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .work-layout { grid-template-columns: minmax(0, 1fr); } }

.work-hero {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sunken);
}
.work-hero img { width: 100%; height: auto; display: block; }

.work-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: .6rem;
}
.work-strip a { display: block; }
.work-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: block;
}

/* العارض داخل صفحة العمل: quote.css غير محمّل هنا، فنعرّفه مستقلًا */
.viewer--work {
  position: relative;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.viewer--work canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) { .viewer--work { aspect-ratio: 1 / 1; } }

/* لوحة الإدارة */
.admin-thumb { border-radius: 4px; object-fit: cover; display: block; }

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: .75rem;
}
.admin-gallery__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: center;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.admin-gallery__cell img { width: 100%; height: auto; border-radius: 4px; display: block; }


/* ═══════════════════════════════════════════════════════════════════════════
   طبقة الهوية — xfab
   ---------------------------------------------------------------------------
   كل ما يخصّ الهوية البصرية مجموع هنا فوق الأساس، فمراجعته أو التراجع عنه
   لا يتطلّب المرور على بقية الملف.
   ═════════════════════════════════════════════════════════════════════════ */

.brand__logo { height: 40px; width: auto; }
@media (max-width: 600px) { .brand__logo { height: 32px; } }

.nav a[aria-current="page"] { color: var(--brand); }

/* الزرّ الأساسي: برتقالي الشعار بنص أزرق داكن — تباين 5.9:1، أوضح من الأبيض */
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand-ink);
  font-weight: 700;
}
.btn--primary:hover { background: #f25c00; border-color: #f25c00; color: var(--brand-ink); }

/* الصدارة: أزرق الشعار بشبكة هندسية خفيفة، كغلاف البروشور */
.hero {
  background-color: var(--brand);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  border-bottom: 0;
}
.hero h1 { color: #fff; }
.hero__sub { color: #d3dcea; }
.hero .eyebrow { color: var(--accent); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero .panel { color: var(--ink); box-shadow: 0 18px 40px rgba(2, 16, 40, .35); border-color: transparent; }

.hero .factbar { border-top-color: rgba(255,255,255,.14); }
.hero .factbar > div { border-inline-end-color: rgba(255,255,255,.1); }
.hero .factbar dt { color: #9fb6d3; }
.hero .factbar dd { color: #fff; }
@media (max-width: 760px) {
  .hero .factbar > div:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,.1); }
}

/* رؤوس الصفحات: خط برتقالي قصير تحت العنوان — توقيع الهوية في كل صفحة */
.page-head h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: .7rem;
  background: var(--accent);
  border-radius: 2px;
}

.steps__n { color: var(--accent-ink); }

/* التذييل بأزرق الشعار */
.site-foot { background: var(--brand); color: #c3d0e2; }
.site-foot a { color: #fff; }
.site-foot a:hover { text-decoration-color: var(--accent); }
.foot-logo { height: 44px; width: auto; margin-bottom: 1rem; }

/* ============================================================================
   الصفحة الرئيسية (تصميم 2026-09)
   ========================================================================== */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.home-hero {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.home-hero .wrap { position: relative; }
.home-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.home-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.25; margin: .5rem 0 1rem; }
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-hero__sub { color: #d3dcea; font-size: 1.12rem; max-width: 44ch; margin-bottom: 1.6rem; }
.home-hero__eyebrow { display: inline-flex; gap: .55rem; align-items: center; font-size: .88rem; color: #ffb27d; font-weight: 600; }
.home-hero__eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(255,102,0,.25);
}
.home-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.home-hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.home-hero .panel { color: var(--ink); box-shadow: 0 18px 40px rgba(2,16,40,.35); border-color: transparent; }

.home-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; color: #b9c7dc; font-size: .9rem; }
.home-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.home-trust svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.collage { position: relative; height: 420px; }
.collage img {
  position: absolute; object-fit: cover; border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35); border: 4px solid #fff; background: #fff;
}
.collage__a { width: 62%; height: 78%; inset-inline-end: 0; top: 0; }
.collage__b { width: 44%; height: 50%; inset-inline-start: 0; top: 8%; transform: rotate(-3deg); }
.collage__c { width: 40%; height: 44%; inset-inline-start: 12%; bottom: 0; transform: rotate(2deg); }
.pricechip {
  position: absolute; inset-inline-end: 6%; bottom: 4%;
  background: #fff; color: var(--ink); border-radius: 10px;
  padding: .75rem 1rem; box-shadow: 0 14px 30px rgba(0,0,0,.3); min-width: 210px;
}
.pricechip small { display: block; color: var(--muted); font-size: .78rem; }
.pricechip b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--brand); line-height: 1.4; }
.pricechip__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pricechip__tag { font-size: .72rem; background: #fff1e6; color: var(--accent-ink); padding: .15rem .45rem; border-radius: 4px; font-weight: 600; }

.home-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 3rem 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.home-facts > div { padding: 1.1rem 1.2rem; border-inline-end: 1px solid rgba(255,255,255,.1); }
.home-facts > div:first-child { padding-inline-start: 0; }
.home-facts > div:last-child { border-inline-end: 0; }
.home-facts dt { color: #9fb6d3; font-size: .82rem; }
.home-facts dd { margin: 0; color: #fff; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: .35rem 0 0; color: var(--muted); }
.kicker { display: block; color: var(--accent-ink); font-weight: 700; font-size: .82rem; margin-bottom: .2rem; }

.stepcards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.stepcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; position: relative; }
.stepcard__ic { width: 52px; height: 52px; border-radius: 12px; background: #fff1e6; color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.stepcard__ic svg { width: 26px; height: 26px; }
.stepcard__n { position: absolute; inset-inline-end: 1.2rem; top: 1.1rem; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: #c9733a; line-height: 1; opacity: .9; }
.stepcard h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.stepcard p { margin: 0; color: var(--muted); font-size: .95rem; }

.showcase { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 21vw, 270px); gap: 1rem; }
.showcase__item { border-radius: 10px; overflow: hidden; position: relative; display: block; text-decoration: none; background: var(--sunken); }
.showcase__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.showcase__item:hover img { transform: scale(1.04); }
.showcase__item span {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(6,43,92,.92)); color: #fff; font-weight: 600; font-size: .95rem;
}
.showcase__item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* الأول كبير دائمًا؛ البقية تملأ الفراغ حسب العدد */
.showcase--n3 .showcase__item:first-child,
.showcase--n4 .showcase__item:first-child,
.showcase--n5 .showcase__item:first-child { grid-column: span 2; grid-row: span 2; }
.showcase--n3 .showcase__item:not(:first-child),
.showcase--n4 .showcase__item:nth-child(2) { grid-column: span 2; }
.showcase--n1, .showcase--n2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(220px, 38vw, 440px); }
.showcase .showcase__item:first-child span { font-size: 1.15rem; }

.matcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.matcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem;
  display: flex; flex-direction: column; gap: .75rem; color: inherit; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease; position: relative;
}
.matcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.matcard.is-popular { border-color: var(--accent); }
.matcard.is-popular::after {
  content: attr(data-badge); position: absolute; top: -.75rem; inset-inline-start: 1rem;
  background: var(--accent); color: var(--brand-ink); font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 4px;
}
.matcard__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.matcard__name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--brand); }
.matcard__cost { font-size: .8rem; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; }
.dots { letter-spacing: 1px; font-size: .7rem; }
.dots b { color: var(--accent); font-weight: 400; }
.dots i { color: #ddd6c8; font-style: normal; }
.matcard p { margin: 0; color: var(--ink-2); font-size: .93rem; min-height: 3em; }
.matcard__bars { display: grid; gap: .45rem; }
.meter { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.meter > div { height: 6px; background: #eee8dc; border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.meter .lvl-1 { width: 20%; } .meter .lvl-2 { width: 40%; } .meter .lvl-3 { width: 60%; }
.meter .lvl-4 { width: 80%; } .meter .lvl-5 { width: 100%; }
.matcard__tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.matcard__tags span { font-size: .75rem; background: var(--paper); border: 1px solid var(--line); padding: .15rem .55rem; border-radius: 99px; }

.whyline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.whyline > div { border-top: 3px solid var(--accent); padding-top: 1rem; }
.whyline h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.whyline p { color: var(--muted); margin: 0; font-size: .95rem; }

.ctabox {
  background: var(--brand); color: #fff; border-radius: 14px; padding: 2.2rem 2.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.ctabox h2 { color: #fff; margin: 0; }
.ctabox h2::after { display: none; }
.ctabox p { color: #c6d3e6; margin: .4rem 0 0; }
.ctabox .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.ctabox .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 820px) {
  .home-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .collage { height: 300px; }
  .home-facts { grid-template-columns: repeat(2, 1fr); }
  .home-facts > div { border-top: 1px solid rgba(255,255,255,.1); padding-inline-start: 0; }
  .home-facts > div:nth-child(-n+2) { border-top: 0; }
  .home-facts > div:nth-child(2n) { border-inline-end: 0; padding-inline-start: 1.2rem; }
  .stepcards, .matcards, .whyline { grid-template-columns: 1fr; }
  .whyline { gap: 1.5rem; }
  .showcase { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .showcase--n3 .showcase__item:first-child,
  .showcase--n4 .showcase__item:first-child,
  .showcase--n5 .showcase__item:first-child { grid-row: auto; }
  .showcase--n3 .showcase__item:not(:first-child),
  .showcase--n4 .showcase__item:nth-child(2) { grid-column: auto; }
  .ctabox { padding: 1.6rem; }
  .home-hero .btn-row .btn, .ctabox .btn-row .btn { flex: 1; }
}
@media (max-width: 820px) {
  .showcase--n4 .showcase__item:last-child { grid-column: span 2; }
}

/* ============================================================================
   الصفحات الداخلية: ترويسة موحّدة ومكوّنات (2026-09)
   ========================================================================== */

.phero {
  background: var(--brand); color: #fff; position: relative; overflow: hidden;
  padding-block: clamp(2.2rem, 5vw, 3.6rem) 0;
}
.phero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.phero::after {
  content: ""; position: absolute; inset-inline-start: -120px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,102,0,.22), transparent 65%); pointer-events: none;
}
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: .5rem 0 .6rem; }
.phero h1::after { display: none; }
.phero__lead { color: #d3dcea; font-size: 1.1rem; max-width: 60ch; margin: 0; }
.phero__facts { margin-top: 2.2rem; }
.phero > .wrap > :last-child:not(.phero__facts) { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.phero__facts--n3 { grid-template-columns: repeat(3, 1fr); }
.phero--compact { padding-top: clamp(1.8rem, 4vw, 2.6rem); }
.phero--compact h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.psteps { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 1.5rem; }
.psteps li { display: inline-flex; align-items: center; gap: .55rem; color: #d3dcea; font-weight: 600; font-size: .95rem; }
.psteps li span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .85rem;
}
.psteps:not(:has(.is-current, .is-done)) li:first-child span { background: var(--accent); border-color: var(--accent); color: var(--brand-ink); }
.psteps li:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: rgba(255,255,255,.25); margin-inline-start: .6rem; }

/* ─── الخامات ─── */
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.need {
  /* flex-wrap: الاسم الطويل ينزل سطرًا بدل أن يدفع البطاقة خارج الشاشة */
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem;
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s;
}
.need:hover { border-color: var(--accent); transform: translateY(-2px); }
.need__label { font-weight: 600; min-width: 0; }
.need__mat { font-family: var(--display); font-weight: 700; color: var(--brand); white-space: nowrap; }
.need__mat::after { content: " →"; color: var(--accent); }
[dir="rtl"] .need__mat::after { content: " ←"; }

.matrows { display: grid; gap: 1rem; }
.matrow {
  display: grid; grid-template-columns: 220px 1fr 250px; gap: 1.2rem 2rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; position: relative;
  scroll-margin-top: 90px;
}
.matrow:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,102,0,.18); }
.matrow.is-popular { border-color: var(--accent); }
.matrow.is-popular::after {
  content: attr(data-badge); position: absolute; top: -.75rem; inset-inline-start: 1.2rem;
  background: var(--accent); color: var(--brand-ink); font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 4px;
}
.matrow__id { display: grid; gap: .6rem; }
.matrow__id .matcard__name { margin: 0; font-size: 1.5rem; }
.matrow__body p { margin: 0 0 .8rem; color: var(--ink-2); }
.matrow__specs { margin: 0; display: grid; gap: .5rem; font-size: .88rem; }
.matrow__specs > div { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px dashed var(--line); padding-bottom: .45rem; }
.matrow__specs dt { color: var(--muted); }
.matrow__specs dd { margin: 0; font-family: var(--mono); }
.matrow__specs dd.swatches { font-family: inherit; display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.matrow__cta { grid-column: 1 / -1; display: flex; gap: .6rem; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 1rem; }

/* ─── إرشادات التصميم ─── */
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.limit { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; border-top: 3px solid var(--brand); }
.limit__value { display: block; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--brand); line-height: 1.3; }
[dir="rtl"] .limit__value { text-align: right; }
.limit h3 { font-size: 1rem; margin: .4rem 0 .3rem; }
.limit p { margin: 0; color: var(--muted); font-size: .9rem; }

.guide-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.checklist { display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; }
.checklist__n { width: 44px; height: 44px; border-radius: 50%; background: #fff1e6; color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.checklist li div { color: var(--ink-2); font-size: .95rem; }
.checklist strong { color: var(--ink); }
.autobox { background: var(--brand); color: #fff; border-radius: 12px; padding: 1.6rem; position: sticky; top: 90px; }
.autobox h2 { color: #fff; font-size: 1.25rem; margin: 0 0 1rem; }
.autobox h2::after { display: none; }
.autobox ul { display: grid; gap: .85rem; }
.autobox li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; color: #d3dcea; font-size: .93rem; }
.autobox svg { width: 20px; height: 20px; color: var(--accent); margin-top: .15rem; }

/* ─── من نحن ─── */
.aboutstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.aboutstrip__item { border-radius: 10px; overflow: hidden; aspect-ratio: 1; display: block; background: var(--sunken); }
.aboutstrip__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.aboutstrip__item:hover img { transform: scale(1.05); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.story__block { border-top: 3px solid var(--accent); padding-top: 1rem; }
.story h2, .honest h2 { font-size: 1.35rem; margin: .2rem 0 .6rem; }
.story p, .honest p { color: var(--ink-2); margin: 0; line-height: 1.9; }
.honest { background: #fff1e6; border: 1px solid #ffd4b3; border-radius: 12px; padding: 1.6rem; }
.licensed {
  display: grid; grid-template-columns: 56px 1fr 1fr; gap: 1.5rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem;
}
.licensed > svg { width: 52px; height: 52px; color: var(--brand); }
.licensed h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.licensed p { color: var(--muted); margin: 0 0 .5rem; }
.licensed dl { margin: 0; display: grid; gap: .5rem; font-size: .9rem; }
.licensed dt { color: var(--muted); font-size: .8rem; }
.licensed dd { margin: 0; font-weight: 600; }

/* ─── تواصل معنا ─── */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method {
  display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem;
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s;
}
.method:hover { border-color: var(--brand); transform: translateY(-2px); }
.method__ic { width: 48px; height: 48px; border-radius: 12px; background: #e9eef6; color: var(--brand); display: grid; place-items: center; }
.method__ic svg { width: 24px; height: 24px; }
.method--wa { border-color: #25d366; }
.method--wa .method__ic { background: #25d366; color: #fff; }
.method__body { display: grid; gap: .15rem; }
.method__body strong { display: flex; align-items: center; gap: .5rem; }
.method__badge { font-size: .7rem; background: #dcf8e6; color: #0b6b35; padding: .1rem .45rem; border-radius: 4px; }
.method__val { font-family: var(--mono); font-size: .95rem; color: var(--brand); }
[dir="rtl"] .method__val { text-align: right; }
.method__body small { color: var(--muted); }
.qcard {
  display: grid; gap: .5rem; justify-items: start; background: var(--brand); color: #fff; border-radius: 12px;
  padding: 1.4rem; text-decoration: none;
}
.qcard strong { font-family: var(--display); font-size: 1.15rem; }
.qcard > span:not(.btn) { color: #c6d3e6; font-size: .92rem; }
.qcard .btn { margin-top: .4rem; }

/* ─── حاسبة السعر ─── */
.qhelp { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1rem; }
.qhelp li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; display: grid; gap: .25rem; align-content: start; font-size: .88rem; }
.qhelp span { color: var(--muted); }
.qhelp a { font-weight: 600; color: var(--accent-ink); }
#stage:not([hidden]) ~ .qhelp { display: none; }

@media (max-width: 900px) {
  .matrow { grid-template-columns: 1fr; }
  .guide-split { grid-template-columns: 1fr; }
  .autobox { position: static; }
  .licensed { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .needs, .methods, .qhelp, .story { grid-template-columns: 1fr; }
  .limits { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .limit { padding: 1rem; }
  .limit__value { font-size: 1.15rem; }
  .limit h3 { font-size: .92rem; }
  .limit p { font-size: .82rem; }
  .story { gap: 1.5rem; }
  .aboutstrip { grid-template-columns: repeat(2, 1fr); }
  .phero__facts--n3 { grid-template-columns: repeat(2, 1fr); }
  .psteps li:not(:last-child)::after { display: none; }
  .phero .btn-row .btn { flex: 1; }
}

/* ============================================================================
   الترويسة القديمة .page-head بنفس شكل الترويسة الموحّدة .phero
   (حسابي، السلة، إتمام الطلب، الأسئلة، أعمالنا، التقنيات، الشروط، الخصوصية…)
   ========================================================================== */
.page-head {
  background: var(--brand); color: #fff; border-bottom: 0; position: relative; overflow: hidden;
  padding-block: clamp(2rem, 4.5vw, 3.2rem);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-head::after {
  content: ""; position: absolute; inset-inline-start: -120px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,102,0,.22), transparent 65%); pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.page-head h1::after { display: none; }
.page-head .lead { color: #d3dcea; max-width: 62ch; }
.page-head .muted, .page-head .crumbs { color: #9fb6d3; }
.page-head a { color: #ffb27d; }
.page-head a:hover { color: #fff; }
.page-head .crumbs span { color: rgba(255,255,255,.35); }
.page-head .crumbs a:hover { color: #fff; }
.page-head .specs > div { border-color: rgba(255,255,255,.14); }
.page-head .specs dt { color: #9fb6d3; }
.page-head .specs dd, .page-head .specs .is-total, .page-head .specs .is-strong { color: #fff; }

/* حالة «لا يوجد شيء بعد» */
.empty {
  background: var(--card); border: 1px dashed #cfc6b6; border-radius: 12px;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; text-align: center; display: grid; justify-items: center; gap: .6rem;
}
.empty__ic {
  width: 76px; height: 76px; border-radius: 50%; background: #fff1e6; color: var(--accent);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,102,0,.06); margin-bottom: .6rem;
}
.empty__ic svg { width: 36px; height: 36px; }
.empty h2 { font-size: 1.3rem; margin: 0; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 0 .6rem; }
.empty .btn-row { justify-content: center; }

/* الأسئلة الشائعة */
.faq-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.faq { display: grid; gap: .7rem; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.faq__item[open] { border-color: var(--brand); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.2rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h2 { font-size: 1.02rem; margin: 0; font-family: inherit; font-weight: 600; }
.faq__item summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff1e6; color: var(--accent-ink); font-weight: 700; transition: transform .2s;
}
.faq__item[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq__item p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--ink-2); line-height: 1.9; }
.faq-ask p { color: #d3dcea; margin: 0 0 1.2rem; }
.faq-ask .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }

/* أعمدة الشبكة تنكمش بدل أن تدفع الصفحة للعرض (الجداول العريضة تتمرّر داخل إطارها) */
.split > *, .grid > *, .work-layout > *, .guide-split > *, .faq-layout > * { min-width: 0; }
/* العناوين الطويلة (بريد، روابط) تنكسر بدل أن تخرج عن الإطار */
.specs dd, .specs dd a { overflow-wrap: anywhere; }

/* عنوان صفحة بحجم عنوان قسم — للصفحات الصغيرة مثل «راجع بريدك» */
.empty h1.h2-size { font-size: 1.3rem; margin: 0; }

/* حقل للقراءة فقط (بريد الطلب = بريد الحساب) */
.input[readonly] { background: var(--sunken); color: var(--ink-2); cursor: default; }

/* صفوف المواصفات: القيمة في طرف السطر دائمًا، حتى حين تكون باتجاه LTR
   داخل صفحة عربية (الهامش التلقائي كان يُحسب باتجاه القيمة نفسها فيلصقها
   بالتسمية). والخط الأحادي للأرقام والرموز فقط — النص العربي بخطّه العادي. */
.specs div { justify-content: space-between; }
.specs dd { margin-inline-start: 0; text-align: end; font-family: inherit; }
.specs dd[dir="ltr"], .specs dd.mono, .specs dd .mono { font-family: var(--mono); }
.specs--text dd { font-weight: 400; color: var(--ink-2); }

/* شريط الخطوات يتقدّم مع الزبون في الحاسبة */
.psteps li span { transition: background-color .2s, border-color .2s; }
.psteps li.is-done span { background: #1e8449; border-color: #1e8449; color: #fff; }
.psteps li.is-current span { background: var(--accent); border-color: var(--accent); color: var(--brand-ink); }
.psteps li.is-current { color: #fff; }
.site-foot .foot-h { margin: 0 0 .9rem; font-family: inherit; line-height: 1.4; }
.site-foot .foot-h::after { display: none; }

.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* الطباعة: الترويسات الزرقاء تُطبع نصًّا داكنًا على أبيض، والملخّص لا يُدفع لصفحة ثانية */
@media print {
  .page-head, .phero, .home-hero { background: none !important; color: #000 !important; padding-block: 0 1rem !important; }
  .page-head::before, .page-head::after, .phero::before, .phero::after { display: none !important; }
  .page-head h1, .phero h1, .page-head .lead, .phero__lead,
  .page-head .specs dt, .page-head .specs dd, .page-head .muted, .page-head a { color: #000 !important; }
  .page-head .specs > div { border-color: #ccc !important; }
  .split, .grid-2 { display: block !important; }
  .panel { break-inside: avoid; margin-bottom: .8rem; }
  .flash-area, .psteps, .ctabox, .sprite { display: none !important; }
  a[href]::after { content: none !important; }
}

/* <picture> لا يُنشئ صندوقًا: الصورة داخله تتصرّف كما لو كانت ابنًا مباشرًا */
picture { display: contents; }

/* ─── زرّ الدخول بجوجل ───────────────────────────────────────────────────────
   الزرّ أبيض بحدود رمادية كما تُلزم إرشادات هوية جوجل، لا بألوان الموقع. */
.gsso { margin-bottom: 1.25rem; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  width: 100%; padding: .8rem 1rem; cursor: pointer;
  background: #fff; color: #1f1f1f; font-size: 1rem; font-weight: 600;
  font-family: inherit; text-decoration: none;
  border: 1px solid #c9ccd1; border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.btn-google:hover { background: #f7f8fa; border-color: #9aa0a6; text-decoration: none; }
.btn-google:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-google__logo { width: 20px; height: 20px; flex: 0 0 20px; }
span.btn-google__logo {
  border-radius: 3px; background: #eceff3; color: #5f6368;
  display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}
.gsso__or {
  display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem;
  color: var(--muted); font-size: .85rem;
}
.gsso__or::before, .gsso__or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
