/* ═══════════════════════════════════════════════════════════════
   فلته لحلول البرمجيات — نظام التصميم v4
   «من الفكرة إلى نظام حي يدير العمل»
   عربي أولًا · RTL أصيل · بنفسجي الهوية #6D28D9 على أساس ليلي #07111F
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* — الأساس الليلي — */
  --bg:      #07111F;
  --bg-2:    #0B1727;
  --surface: #0D1928;
  --d-line:  rgba(255,255,255,.11);
  --d-line-2:rgba(255,255,255,.06);
  --d-text:  rgba(247,248,243,.78);
  --d-mute:  rgba(247,248,243,.55);

  /* — الأساس النهاري — */
  --paper:   #F7F8F3;
  --paper-2: #FFFFFF;
  --ink:     #101828;
  --muted:   #667085;
  --line:    #E5E7EB;
  --line-2:  #F0F1EC;

  /* — بنفسجي الهوية (مأخوذ من الشعار الرسمي) — */
  --brand:      #6D28D9;
  --brand-deep: #5B21B6;
  --brand-hover:#7C3AED;
  --brand-lift: #A78BFA;   /* للنص والأيقونات فوق الداكن */
  --brand-soft: #F3EEFE;   /* خلفية خفيفة على الفاتح */
  --brand-tint: rgba(109,40,217,.14);

  /* — دلالات — */
  --ok:   #18A66A;  --ok-soft:   #E7F6EF;
  --warn: #F5A524;  --warn-soft: #FDF3E2;
  --err:  #B42318;  --err-soft:  #FBEAE8;

  /* — قياسات — */
  --r-xs: 4px;  --r-sm: 6px;  --r: 10px;  --r-lg: 14px;
  --shadow:   0 1px 2px rgba(16,24,40,.04), 0 12px 32px -20px rgba(16,24,40,.18);
  --shadow-lg:0 2px 4px rgba(16,24,40,.04), 0 28px 60px -32px rgba(16,24,40,.26);
  --ease: cubic-bezier(.22,.61,.36,1);
  --t: 200ms var(--ease);

  --w: 1200px;          /* عرض المحتوى */
  --gutter: clamp(18px, 4vw, 48px);
  --sec-y: clamp(64px, 8vw, 116px);

  --f-head: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'SF Arabic', system-ui, sans-serif;
}

/* ── تصفير وأساس ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.on-dark :focus-visible, .hero :focus-visible, .site-head :focus-visible { outline-color: var(--brand-lift); }

.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;
}
/* مصيدة السبام: مخفية بصريًا وعن قارئات الشاشة، وآمنة في RTL (لا تُوسّع التخطيط) */
.hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 50%; top: -60px; transform: translateX(50%);
  background: var(--brand); color: #fff; padding: 10px 22px; border-radius: 0 0 var(--r) var(--r);
  z-index: 200; font-weight: 700; transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* ── الطباعة ── */
h1, h2, h3, h4, h5 { font-family: var(--f-head); font-weight: 700; line-height: 1.42; text-wrap: balance; }
h1 { font-size: clamp(28px, 4.6vw, 52px); font-weight: 800; line-height: 1.36; letter-spacing: 0; }
h2 { font-size: clamp(23px, 3.3vw, 39px); font-weight: 800; line-height: 1.4;  letter-spacing: 0; }
h3 { font-size: clamp(17.5px, 1.9vw, 21px); line-height: 1.55; }
h4 { font-size: 16.5px; line-height: 1.6; }
p  { text-wrap: pretty; }
strong, b { font-weight: 700; }

/* الأرقام والأسعار — عرض أنيق ومحاذاة جدولية */
.num, .price-val, .money, time, [dir="ltr"] {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ── الحاويات والشبكة ── */
.container { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 780px; }
.section { padding-block: var(--sec-y); position: relative; }
.section-tight { padding-block: clamp(46px, 5.5vw, 74px); }

/* الأسطح */
.on-dark { background: var(--bg); color: var(--d-text); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-paper { background: var(--paper); }
.on-white { background: var(--paper-2); }

/* شبكة البلوبرنت — خلفية هندسية خافتة للأقسام الداكنة */
.blueprint { position: relative; isolation: isolate; }
.blueprint::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--d-line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--d-line-2) 1px, transparent 1px);
  background-size: 68px 68px;
  background-position: center;
  -webkit-mask-image: radial-gradient(115% 85% at 78% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(115% 85% at 78% 0%, #000 0%, transparent 72%);
}

/* ── عناوين الأقسام ── */
.sec-head { max-width: 60ch; margin-bottom: clamp(34px, 4vw, 54px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: clamp(15.5px, 1.5vw, 17.5px); margin-top: 14px; }
.on-dark .sec-head p { color: var(--d-mute); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .09em; color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--brand); border-radius: 2px;
}
.on-dark .eyebrow { color: var(--brand-lift); }
.on-dark .eyebrow::before { background: var(--brand-lift); }

/* رقم القسم — توقيع بصري بدل الزخرفة */
.sec-index {
  font-family: var(--f-head); font-weight: 800; font-size: 13px;
  color: var(--brand); opacity: .55; letter-spacing: .08em;
  display: block; margin-bottom: 10px;
}
.on-dark .sec-index { color: var(--brand-lift); opacity: .7; }

/* ── الأزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-head); font-size: 15px; font-weight: 700; line-height: 1;
  padding: 15px 26px; border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; position: relative;
  transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

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

.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost { border-color: var(--d-line); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--brand-lift); color: var(--brand-lift); background: rgba(167,139,250,.07); }

.btn-quiet { color: var(--brand); padding-inline: 6px; }
.btn-quiet:hover { color: var(--brand-hover); }
.on-dark .btn-quiet { color: var(--brand-lift); }

.btn-sm { padding: 11px 18px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* رابط بسهم — حركة دقيقة تحترم RTL */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--brand);
}
.arrow-link svg { transition: transform var(--t); }
.arrow-link:hover svg { transform: translateX(-4px); }
.on-dark .arrow-link { color: var(--brand-lift); }

/* ── الشارات ── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; font-family: var(--f-head);
  padding: 5px 11px; border-radius: 999px; line-height: 1.6;
}
.tag-brand { background: var(--brand-soft); color: var(--brand-deep); }
.tag-live   { background: var(--ok-soft); color: #0F7A4C; }
.tag-outline{ border: 1px solid var(--line); color: var(--muted); }
.on-dark .tag-outline { border-color: var(--d-line); color: var(--d-mute); }

/* نبضة «حي الآن» — هادئة */
.tag-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── ظهور هادئ عند التمرير ── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 70ms; } .rv-d2 { transition-delay: 140ms; } .rv-d3 { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* ═══════════════════════ شريط التنقل ═══════════════════════ */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), backdrop-filter var(--t);
}
.site-head.stuck {
  background: rgba(7,17,31,.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: var(--d-line);
}
/* على الصفحات الفاتحة يبدأ الشريط داكنًا مباشرة */
.site-head.solid { background: var(--bg); border-bottom-color: var(--d-line); }

.head-in {
  max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter);
  height: 74px; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px);
}
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(4px, 1vw, 14px); margin-inline-end: auto; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--d-text);
  padding: 9px 10px; border-radius: var(--r-sm); transition: color var(--t);
  white-space: nowrap;
}
.nav a:hover { color: var(--paper); }
.nav a::after {
  content: ''; position: absolute; inset-inline: 10px; bottom: 2px; height: 2px;
  background: var(--brand-lift); border-radius: 2px;
  transform: scaleX(0); transform-origin: inset-inline-start;
  transition: transform var(--t);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--paper); font-weight: 700; }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.head-act { flex: none; display: flex; align-items: center; gap: 10px; }
.head-act .login {
  font-size: 14.5px; font-weight: 500; color: var(--d-text); padding: 9px 8px;
  transition: color var(--t);
}
.head-act .login:hover { color: var(--paper); }

/* زر القائمة للجوال */
.burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; color: var(--paper);
  border: 1px solid var(--d-line);
}
.burger span {
  display: block; width: 19px; height: 1.8px; background: currentColor; border-radius: 2px;
  position: relative; transition: background-color var(--t);
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; inset-inline-start: 0; width: 19px; height: 1.8px;
  background: currentColor; border-radius: 2px; transition: transform var(--t), top var(--t);
}
.burger span::before { top: -6px; } .burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* قائمة الجوال */
.m-nav {
  position: fixed; inset: 74px 0 0; z-index: 99;
  background: var(--bg); border-top: 1px solid var(--d-line);
  padding: 22px var(--gutter) 40px; overflow-y: auto;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.m-nav.open { opacity: 1; visibility: visible; transform: none; }
.m-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; font-size: 17px; font-weight: 500; color: var(--d-text);
  border-bottom: 1px solid var(--d-line-2);
}
.m-nav a[aria-current="true"] { color: var(--brand-lift); font-weight: 700; }
.m-nav a .n { font-family: var(--f-head); font-size: 12px; color: var(--d-mute); opacity: .6; }
.m-nav .m-foot { margin-top: 26px; display: grid; gap: 12px; }
body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav, .head-act .login, .head-act .btn { display: none; }
  .burger { display: inline-flex; }
  .head-in { justify-content: space-between; }
  .brand { margin-inline-end: auto; }
}

/* ═══════════════════════ الواجهة الأولى ═══════════════════════ */
.hero {
  background: var(--bg); color: var(--d-text);
  padding-block: clamp(48px, 6vw, 92px) clamp(58px, 7vw, 104px);
  margin-top: -74px; padding-top: calc(74px + clamp(48px, 6vw, 92px));
  overflow: hidden;
}
.hero-grid {
  max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(38px, 5vw, 70px); align-items: center;
}
.hero h1 { color: var(--paper); margin-bottom: 22px; }
.hero h1 .accent {
  color: var(--brand-lift); font-style: normal;
  position: relative; white-space: nowrap;
}
.hero .lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--d-text); max-width: 46ch; line-height: 1.95; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hero-wa {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--d-mute); padding: 9px 6px; transition: color var(--t);
}
.hero-wa:hover { color: var(--paper); }
.hero-wa svg { color: #25D366; flex: none; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-head); font-size: 12.5px; font-weight: 600; letter-spacing: .05em;
  color: var(--d-mute); border: 1px solid var(--d-line); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 26px;
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-lift); flex: none; }

/* ── مُحاكاة بوابة العملاء (HTML/CSS خالص) ── */
.portal {
  border: 1px solid var(--d-line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0E1B2C, #0A1420);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9);
  overflow: hidden; direction: rtl;
}
.portal-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--d-line-2); background: rgba(255,255,255,.02);
}
.portal-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--d-line); flex: none; }
.portal-bar .label {
  margin-inline-start: auto; font-family: var(--f-head); font-size: 11.5px;
  color: var(--d-mute); letter-spacing: .04em;
}
.portal-body { padding: 20px clamp(16px, 2vw, 22px) 22px; }

.portal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.portal-top .pname { font-family: var(--f-head); font-size: 15.5px; font-weight: 700; color: var(--paper); line-height: 1.5; }
.portal-top .pmeta { font-size: 12.5px; color: var(--d-mute); margin-top: 3px; }

/* حلقة الإنجاز */
.ring { position: relative; width: 62px; height: 62px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ring .track { stroke: rgba(255,255,255,.09); }
.ring .fill  { stroke: var(--brand-lift); stroke-dasharray: 163.4; stroke-dashoffset: 163.4; animation: ring-fill 1.5s var(--ease) .35s forwards; }
@keyframes ring-fill { to { stroke-dashoffset: 53.9; } }   /* 67% */
.ring .pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-head); font-size: 14px; font-weight: 800; color: var(--paper);
}

/* صفوف البيانات */
.portal-rows { display: grid; gap: 1px; background: var(--d-line-2); border: 1px solid var(--d-line-2); border-radius: var(--r); overflow: hidden; }
.prow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: rgba(255,255,255,.015); font-size: 13px;
}
.prow .k { color: var(--d-mute); display: inline-flex; align-items: center; gap: 8px; }
.prow .k svg { color: var(--brand-lift); opacity: .8; flex: none; }
.prow .v { font-family: var(--f-head); font-weight: 700; color: var(--paper); font-size: 13px; }
.prow .v.ok { color: #4ADE80; }
.prow .v.warn { color: #FBBF24; }

/* الخط الزمني للمراحل */
.portal-time { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--d-line-2); }
.portal-time .th {
  font-family: var(--f-head); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--d-mute); margin-bottom: 14px;
}
.tline { display: flex; align-items: flex-start; gap: 0; }
.tstep { flex: 1; position: relative; text-align: center; }
.tstep .bead {
  display: block; width: 11px; height: 11px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--bg-2); border: 2px solid var(--d-line); position: relative; z-index: 1;
  transition: background-color var(--t), border-color var(--t);
}
.tstep::before {
  content: ''; position: absolute; top: 5px; inset-inline-start: 50%; width: 100%; height: 2px;
  background: var(--d-line-2);
}
.tstep:last-child::before { display: none; }
.tstep.done .bead { background: var(--brand-lift); border-color: var(--brand-lift); }
.tstep.done::before { background: var(--brand); }
.tstep.now .bead {
  background: var(--bg); border-color: var(--brand-lift);
  box-shadow: 0 0 0 4px rgba(167,139,250,.16);
}
.tstep .tl { font-size: 10.5px; color: var(--d-mute); line-height: 1.5; display: block; }
.tstep.now .tl, .tstep.done .tl { color: var(--d-text); }
.tstep.now .tl { font-weight: 700; color: var(--paper); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lede { max-width: none; }
  .portal { max-width: 520px; margin-inline: auto; }
}

/* ═══════════════════════ شريط الثقة ═══════════════════════ */
.trust { background: var(--surface); border-block: 1px solid var(--d-line); }
.trust-in {
  max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.tr {
  display: flex; align-items: center; gap: 11px; padding: 20px 18px;
  border-inline-start: 1px solid var(--d-line-2);
}
.tr:first-child { border-inline-start: 0; }
.tr svg { color: var(--brand-lift); flex: none; }
.tr .tx { font-size: 13px; line-height: 1.55; color: var(--d-text); }
.tr .tx b { display: block; font-family: var(--f-head); font-size: 13.5px; font-weight: 700; color: var(--paper); }

@media (max-width: 1000px) { .trust-in { grid-template-columns: repeat(3, 1fr); }
  .tr:nth-child(3n+1) { border-inline-start: 0; }
  .tr:nth-child(n+4) { border-top: 1px solid var(--d-line-2); } }
@media (max-width: 620px)  { .trust-in { grid-template-columns: repeat(2, 1fr); }
  .tr { padding: 16px 12px; }
  .tr:nth-child(3n+1) { border-inline-start: 1px solid var(--d-line-2); }
  .tr:nth-child(2n+1) { border-inline-start: 0; }
  .tr:nth-child(n+3)  { border-top: 1px solid var(--d-line-2); } }

/* ═══════════════════════ المشكلة والحل ═══════════════════════ */
.cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 2.4vw, 30px); align-items: stretch; }

.cmp-col { padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg); }
.cmp-before {
  border: 1.5px dashed var(--line);
  background: transparent;
}
.cmp-after {
  background: var(--bg); color: var(--d-text);
  border: 1px solid var(--bg);
  position: relative; overflow: hidden;
}
.cmp-after::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--brand);
}
.cmp-h {
  font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  margin-bottom: 20px; display: flex; align-items: center; gap: 9px;
}
.cmp-before .cmp-h { color: var(--muted); }
.cmp-after  .cmp-h { color: var(--brand-lift); }

.cmp-list { display: grid; gap: 2px; }
.cmp-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 11px 0;
  font-size: 15.5px; line-height: 1.75;
}
.cmp-list li + li { border-top: 1px solid var(--line-2); }
.cmp-after .cmp-list li + li { border-top-color: var(--d-line-2); }
.cmp-before .cmp-list li { color: var(--muted); }
.cmp-after  .cmp-list li { color: var(--paper); }
.cmp-list .mk { flex: none; margin-top: 4px; }
.cmp-before .mk { color: #A3ABB8; }
.cmp-after  .mk { color: var(--brand-lift); }

/* السهم بين اللوحتين */
.cmp-arrow {
  display: grid; place-items: center; align-self: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; flex: none;
}
@media (max-width: 860px) {
  .cmp { grid-template-columns: 1fr; }
  .cmp-arrow { transform: rotate(-90deg); margin-inline: auto; }
}

/* ═══════════════════════ الخدمات ═══════════════════════ */
.svc-major { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.svc-major > * { grid-column: span 6; }
.svc-major > *:nth-child(4n+1), .svc-major > *:nth-child(4n+4) { grid-column: span 7; }
.svc-major > *:nth-child(4n+2), .svc-major > *:nth-child(4n+3) { grid-column: span 5; }

.svc {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.svc:hover { border-color: #D6D3E4; box-shadow: var(--shadow); transform: translateY(-2px); }

.svc-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.svc-ico {
  width: 42px; height: 42px; flex: none; border-radius: var(--r); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.svc-n {
  margin-inline-start: auto; font-family: var(--f-head); font-size: 12px; font-weight: 800;
  color: #CDD2DC; letter-spacing: .06em;
}
.svc h3 { margin-bottom: 8px; }
.svc > p { color: var(--muted); font-size: 15px; line-height: 1.8; }

/* الفائدة التجارية — سطر مميّز */
.svc-gain {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 16px;
  padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft);
  font-size: 14px; line-height: 1.7; color: var(--brand-deep); font-weight: 500;
}
.svc-gain svg { flex: none; margin-top: 3px; }

.svc-foot {
  margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.svc-price { line-height: 1.4; }
.svc-price .lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.svc-price .val {
  font-family: var(--f-head); font-size: 24px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.svc-price .val small { font-size: 13px; font-weight: 600; color: var(--muted); }
.svc-price .scope { font-family: var(--f-head); font-size: 16px; font-weight: 700; color: var(--ink); }
.svc-dur {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 14px; width: 100%;
}
.svc-dur svg { flex: none; color: var(--muted); }

/* الخدمات المصغّرة */
.svc-minor { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); margin-top: clamp(12px, 1.4vw, 18px); }
.svc-c {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: transparent;
  transition: border-color var(--t), background-color var(--t);
}
.svc-c:hover { border-color: var(--brand); background: var(--paper-2); }
.svc-c .ci { color: var(--brand); }
.svc-c h4 { font-size: 16px; }
.svc-c p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.svc-c .cf {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.svc-c .cf b { font-family: var(--f-head); color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }

/* بطاقة الاستشارة */
.svc-help {
  grid-column: span 12; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-top: clamp(12px, 1.4vw, 18px);
  padding: 22px clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg);
  background: var(--brand-soft); border: 1px solid #E4DAFB;
}
.svc-help p { font-size: 15px; color: var(--brand-deep); }
.svc-help b { font-family: var(--f-head); display: block; font-size: 17px; color: var(--ink); margin-bottom: 3px; }

@media (max-width: 980px) {
  .svc-major > *, .svc-major > *:nth-child(4n+1), .svc-major > *:nth-child(4n+2),
  .svc-major > *:nth-child(4n+3), .svc-major > *:nth-child(4n+4) { grid-column: span 6; }
  .svc-minor { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .svc-major > *, .svc-major > *:nth-child(4n+1), .svc-major > *:nth-child(4n+2),
  .svc-major > *:nth-child(4n+3), .svc-major > *:nth-child(4n+4) { grid-column: span 12; }
  .svc-minor { grid-template-columns: 1fr; }
}

/* ═══════════════════════ تطوير الألعاب ═══════════════════════ */
.game { background: var(--bg); color: var(--d-text); }
.game-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(34px, 4.4vw, 62px); align-items: start;
}
.game .lede { font-size: clamp(15.5px, 1.5vw, 17.5px); color: var(--d-text); line-height: 1.95; max-width: 50ch; }

/* الفئات الثلاث */
.game-cats { display: grid; gap: 10px; margin-top: 30px; }
.gcat {
  display: flex; align-items: center; gap: 15px; padding: 16px 18px;
  border: 1px solid var(--d-line); border-radius: var(--r);
  background: rgba(255,255,255,.02); transition: border-color var(--t), background-color var(--t);
}
.gcat:hover { border-color: var(--brand-lift); background: rgba(167,139,250,.06); }
.gcat .gi { color: var(--brand-lift); flex: none; }
.gcat b { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--paper); display: block; }
.gcat span { font-size: 13px; color: var(--d-mute); line-height: 1.6; }

/* السعر والمدة */
.game-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px;
  background: var(--d-line-2); border: 1px solid var(--d-line-2); border-radius: var(--r); overflow: hidden;
}
.game-meta div { background: rgba(255,255,255,.02); padding: 16px 18px; }
.game-meta .k { font-size: 12.5px; color: var(--d-mute); display: block; margin-bottom: 4px; }
.game-meta .v { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--paper); }
.game-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* لوحة مسار التطوير — عنصر بصري أصلي */
.pipe {
  border: 1px solid var(--d-line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0E1B2C, #0A1420); overflow: hidden;
}
.pipe-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--d-line-2); background: rgba(255,255,255,.02);
}
.pipe-h b { font-family: var(--f-head); font-size: 13px; font-weight: 700; color: var(--paper); letter-spacing: .03em; }
.pipe-h span { font-size: 11.5px; color: var(--d-mute); font-family: var(--f-head); letter-spacing: .04em; }
.pipe-body { padding: 8px 18px 18px; }

.pstage { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 14px 0; position: relative; }
.pstage + .pstage { border-top: 1px solid var(--d-line-2); }
.pstage .pn {
  width: 26px; height: 26px; border-radius: var(--r-xs); display: grid; place-items: center;
  border: 1px solid var(--d-line); font-family: var(--f-head); font-size: 11.5px; font-weight: 800;
  color: var(--d-mute); font-variant-numeric: tabular-nums;
}
.pstage.active .pn { border-color: var(--brand-lift); color: var(--brand-lift); background: rgba(167,139,250,.1); }
.pstage .pt { font-family: var(--f-head); font-size: 14px; font-weight: 700; color: var(--paper); line-height: 1.5; }
.pstage .pd { font-size: 12.5px; color: var(--d-mute); line-height: 1.65; margin-top: 2px; }
.pstage .rail { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); margin-top: 10px; overflow: hidden; }
.pstage .rail i {
  display: block; height: 100%; border-radius: 3px; background: var(--brand-lift);
  width: 0; animation: rail 900ms var(--ease) forwards;
}
.pstage:nth-child(1) .rail i { animation-delay: .10s; --w: 100%; }
.pstage:nth-child(2) .rail i { animation-delay: .22s; --w: 100%; }
.pstage:nth-child(3) .rail i { animation-delay: .34s; --w: 62%; }
.pstage:nth-child(4) .rail i { animation-delay: .46s; --w: 26%; }
.pstage:nth-child(5) .rail i { animation-delay: .58s; --w: 8%; }
@keyframes rail { to { width: var(--w); } }

/* ما تشمله الخدمة */
.game-scope { margin-top: clamp(30px, 3.4vw, 44px); }
.game-scope .gsh {
  font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .05em;
  color: var(--d-mute); margin-bottom: 16px;
}
.gs-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(18px, 2.4vw, 34px); }
.gs-list li {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  font-size: 14px; color: var(--d-text); line-height: 1.7;
  border-top: 1px solid var(--d-line-2);
}
.gs-list li .gm { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-lift); flex: none; margin-top: 10px; }

@media (max-width: 940px) { .game-grid { grid-template-columns: 1fr; } .gs-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gs-list { grid-template-columns: 1fr; } .game-meta { grid-template-columns: 1fr; } }

/* ═══════════════════════ المشاريع ═══════════════════════ */
.work + .work { margin-top: clamp(40px, 5vw, 76px); padding-top: clamp(40px, 5vw, 76px); border-top: 1px solid var(--line); }
.work-grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
article.work:nth-of-type(even) .work-grid > .work-shot { order: -1; }

.work-idx {
  font-family: var(--f-head); font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand); opacity: .6; display: block; margin-bottom: 12px;
}
.work-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.work-title h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.work-type { font-size: 13px; color: var(--muted); margin-bottom: 20px; display: block; }

.work-qa { display: grid; gap: 16px; margin-bottom: 22px; }
.work-qa div { padding-inline-start: 16px; border-inline-start: 2px solid var(--line); }
.work-qa div.sol { border-inline-start-color: var(--brand); }
.work-qa dt {
  font-family: var(--f-head); font-size: 12.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); margin-bottom: 5px;
}
.work-qa div.sol dt { color: var(--brand); }
.work-qa dd { font-size: 15px; line-height: 1.8; color: var(--ink); }

.work-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.work-feats li {
  font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; background: var(--paper-2);
}

/* إطار المتصفح للقطة */
.work-shot {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow-lg);
}
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.shot-url {
  margin-inline-start: auto; font-size: 11.5px; color: var(--muted); direction: ltr;
  font-family: var(--f-head); letter-spacing: .02em;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}
.work-shot img { width: 100%; display: block; background: var(--paper); }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  article.work:nth-of-type(even) .work-grid > .work-shot { order: 0; }
}

/* ═══════════════════════ آلية العمل ═══════════════════════ */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.step { position: relative; padding: 0 clamp(8px, 1.2vw, 16px); }
.step .sbead {
  display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--paper-2);
  border: 2.5px solid var(--brand); position: relative; z-index: 1; margin-bottom: 20px;
}
.step::before {
  content: ''; position: absolute; top: 5px; inset-inline-start: 0; width: 100%; height: 2px;
  background: var(--line);
}
.step:first-child::before { inset-inline-start: clamp(8px, 1.2vw, 16px); width: calc(100% - clamp(8px, 1.2vw, 16px)); }
.step:last-child::before  { width: clamp(8px, 1.2vw, 16px); }
.step .sn {
  font-family: var(--f-head); font-size: 11.5px; font-weight: 800; color: var(--brand);
  letter-spacing: .08em; display: block; margin-bottom: 6px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.steps-note {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: clamp(34px, 4vw, 50px); padding: 18px 22px;
  border: 1px solid var(--line); border-inline-start: 3px solid var(--brand);
  border-radius: var(--r); background: var(--paper-2); font-size: 15px; line-height: 1.8;
}
.steps-note svg { color: var(--brand); flex: none; margin-top: 3px; }
.steps-note { align-items: flex-start; }
.steps-note .arrow-link { display: inline-flex; margin-top: 8px; }
.steps-note > span { flex: 1 1 260px; }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .step:nth-child(3n)::before { width: clamp(8px, 1.2vw, 16px); }
  .step:nth-child(3n+1)::before { inset-inline-start: clamp(8px, 1.2vw, 16px); width: calc(100% - clamp(8px, 1.2vw, 16px)); } }
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 22px; padding-inline-start: 30px; }
  .step::before { top: 6px; inset-inline-start: 6px !important; width: 2px !important; height: 100%; }
  .step:last-child::before { display: none; }
  .step .sbead { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
}

/* ═══════════════════════ الباقات ═══════════════════════ */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
.pkg {
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2);
  padding: clamp(24px, 2.6vw, 32px);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.pkg:hover { border-color: #D6D3E4; box-shadow: var(--shadow); }
.pkg.pop {
  background: var(--bg); border-color: var(--bg); color: var(--d-text);
  box-shadow: var(--shadow-lg);
}
.pkg.pop h3, .pkg.pop .p-val { color: var(--paper); }

.p-flag {
  position: absolute; top: -1px; inset-inline-start: 24px; transform: translateY(-50%);
  background: var(--brand); color: #fff; font-family: var(--f-head);
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  padding: 5px 13px; border-radius: 999px;
}
.pkg h3 { font-size: 19px; margin-bottom: 6px; }
.p-for { font-size: 13.5px; color: var(--muted); line-height: 1.7; min-height: 44px; }
.pkg.pop .p-for { color: var(--d-mute); }

.p-price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.p-val {
  font-family: var(--f-head); font-size: clamp(30px, 3.4vw, 40px); font-weight: 800;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums lining-nums;
}
.p-cur { font-size: 15px; font-weight: 600; color: var(--muted); }
.pkg.pop .p-cur { color: var(--d-mute); }
.p-down {
  font-size: 13px; color: var(--muted); padding-bottom: 20px;
  border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.p-down b { font-family: var(--f-head); color: var(--brand); font-variant-numeric: tabular-nums; }
.pkg.pop .p-down { color: var(--d-mute); border-bottom-color: var(--d-line); }
.pkg.pop .p-down b { color: var(--brand-lift); }

.p-feats { display: grid; gap: 11px; margin-bottom: 26px; }
.p-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.7; }
.p-feats svg { flex: none; margin-top: 4px; color: var(--brand); }
.pkg.pop .p-feats svg { color: var(--brand-lift); }
.pkg.pop .p-feats li { color: var(--paper); }
.pkg .btn { margin-top: auto; }

.pkg-note { text-align: center; margin-top: 26px; font-size: 14px; color: var(--muted); }

@media (max-width: 940px) { .pkgs { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .p-for { min-height: 0; } }

/* ═══════════════════════ مقارنة الصيانة ═══════════════════════ */
.mt-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.mt { width: 100%; border-collapse: collapse; text-align: start; }
.mt th, .mt td { padding: 15px clamp(12px, 1.6vw, 22px); text-align: start; vertical-align: middle; }
.mt thead th { background: var(--bg); color: var(--paper); border-bottom: 1px solid var(--bg); }
.mt thead th:first-child { font-size: 13px; color: var(--d-mute); font-weight: 500; }
.mt .m-name { font-family: var(--f-head); font-size: 16px; font-weight: 700; display: block; }
.mt .m-price {
  font-family: var(--f-head); font-size: 21px; font-weight: 800; color: var(--brand-lift);
  display: block; margin-top: 3px; font-variant-numeric: tabular-nums lining-nums;
}
.mt .m-price small { font-size: 12.5px; font-weight: 600; color: var(--d-mute); }
.mt thead th.pop-col { background: var(--brand-deep); border-bottom-color: var(--brand-deep); }
.mt thead th.pop-col .m-price { color: #fff; }
.mt thead th.pop-col .m-price small { color: rgba(255,255,255,.7); }
.mt .m-flag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.16); border-radius: 999px; padding: 2px 9px; margin-bottom: 6px;
}
.mt tbody tr + tr { border-top: 1px solid var(--line-2); }
.mt tbody tr:hover { background: var(--paper); }
.mt tbody th { font-weight: 500; font-size: 14.5px; color: var(--ink); width: 30%; }
.mt tbody td { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mt tbody td.yes { color: var(--ok); }
.mt tbody td.no  { color: #C6CBD3; }
.mt tfoot td { padding: 18px clamp(12px, 1.6vw, 22px); border-top: 1px solid var(--line); }
.mt col.is-pop { background: var(--brand-soft); }

.mt-cards { display: none; }
.mt-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2);
  padding: 22px; margin-bottom: 14px;
}
.mt-card.pop { border-color: var(--brand); }
.mt-card .mc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mt-card .mc-h b { font-family: var(--f-head); font-size: 17px; }
.mt-card .mc-p { font-family: var(--f-head); font-size: 20px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-card .mc-p small { font-size: 12px; color: var(--muted); font-weight: 600; }
.mt-card dl { display: grid; gap: 1px; }
.mt-card .mc-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.mt-card .mc-r + .mc-r { border-top: 1px solid var(--line-2); }
.mt-card .mc-r dt { color: var(--muted); }
.mt-card .mc-r dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-card .mc-r dd.no { color: #C6CBD3; font-weight: 400; }
.mt-card .btn { margin-top: 20px; }

@media (max-width: 860px) { .mt-wrap { display: none; } .mt-cards { display: block; } }

/* ═══════════════════════ الأسئلة الشائعة ═══════════════════════ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; gap: 16px; text-align: start;
  padding: 22px 4px; font-family: var(--f-head); font-size: clamp(15.5px, 1.6vw, 17.5px);
  font-weight: 700; line-height: 1.65; color: var(--ink);
  transition: color var(--t);
}
.faq-q:hover { color: var(--brand); }
.faq-q .fi {
  flex: none; width: 22px; height: 22px; margin-top: 3px; position: relative;
  border: 1.5px solid var(--line); border-radius: 50%; transition: border-color var(--t), background-color var(--t);
}
.faq-q .fi::before, .faq-q .fi::after {
  content: ''; position: absolute; top: 50%; inset-inline-start: 50%; background: var(--brand);
  transform: translate(50%, -50%); border-radius: 2px; transition: opacity var(--t), transform var(--t);
}
.faq-q .fi::before { width: 9px; height: 1.6px; }
.faq-q .fi::after  { width: 1.6px; height: 9px; }
.faq-q:hover .fi { border-color: var(--brand); }
.faq-q[aria-expanded="true"] .fi { border-color: var(--brand); background: var(--brand); }
.faq-q[aria-expanded="true"] .fi::before, .faq-q[aria-expanded="true"] .fi::after { background: #fff; }
.faq-q[aria-expanded="true"] .fi::after { transform: translate(50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.faq-a[data-open="true"] { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 38px 24px 4px; color: var(--muted); font-size: 15.5px; line-height: 1.9; max-width: 68ch;
}
html[dir="rtl"] .faq-a p { padding-inline: 38px 4px; }

/* ═══════════════════════ نموذج التواصل ═══════════════════════ */
.form-panel {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.f-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: var(--f-body);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.field select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 15px center; padding-inline-end: 15px; padding-inline-start: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #D6D3E4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--paper-2);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field .err-msg { font-size: 13px; color: var(--err); display: none; align-items: center; gap: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); background: var(--err-soft); }
.field.invalid .err-msg { display: flex; }
.field .hint { font-size: 12.5px; color: var(--muted); }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-foot .btn { min-width: 190px; }
.form-alt { font-size: 14px; color: var(--muted); }

/* حالات الإرسال */
.btn[data-loading="true"] { pointer-events: none; opacity: .75; }
.btn .spin {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn[data-loading="true"] .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.note { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border-radius: var(--r); font-size: 14.5px; line-height: 1.75; margin-bottom: 22px; }
.note svg { flex: none; margin-top: 3px; }
.note-ok  { background: var(--ok-soft);  color: #0E6B44; }
.note-err { background: var(--err-soft); color: var(--err); }
.note-info{ background: var(--brand-soft); color: var(--brand-deep); }

@media (max-width: 640px) { .f-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ═══════════════════════ التذييل ═══════════════════════ */
.site-foot { background: var(--bg); color: var(--d-text); padding-block: clamp(48px, 6vw, 76px) 0; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(26px, 3vw, 48px);
  padding-bottom: clamp(34px, 4vw, 50px);
}
.foot-brand img { height: 40px; margin-bottom: 18px; }
.foot-brand p { font-size: 14.5px; color: var(--d-mute); line-height: 1.85; max-width: 34ch; }
.foot-cr {
  margin-top: 16px; font-size: 13px; color: var(--d-mute);
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--d-line); border-radius: var(--r-sm); padding: 7px 13px;
}
.foot-cr svg { color: var(--brand-lift); flex: none; }

.site-foot h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--paper);
  margin-bottom: 18px;
}
.foot-links { display: grid; gap: 11px; }
.foot-links a, .foot-contact a { font-size: 14.5px; color: var(--d-mute); transition: color var(--t); }
.foot-links a:hover, .foot-contact a:hover { color: var(--brand-lift); }
.foot-contact { display: grid; gap: 13px; }
.foot-contact li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--d-mute); }
.foot-contact svg { color: var(--brand-lift); flex: none; }
.foot-contact .addr { color: var(--d-mute); font-size: 13.5px; margin-top: 2px; }

.foot-bottom {
  border-top: 1px solid var(--d-line); padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--d-mute);
}
.foot-legal { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-legal a { transition: color var(--t); }
.foot-legal a:hover { color: var(--paper); }

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════ واتساب والشريط السفلي ═══════════════════════ */
.wa-float {
  position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px -10px rgba(37,211,102,.6);
  transition: transform var(--t);
}
.wa-float:hover { transform: scale(1.06); }

.m-dock {
  display: none; position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 95;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(7,17,31,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--d-line); gap: 10px;
}
.m-dock .btn { flex: 1; }
.m-dock .m-wa {
  width: 48px; height: 48px; flex: none; border-radius: var(--r); display: grid; place-items: center;
  background: #25D366; color: #fff;
}
@media (max-width: 720px) {
  .m-dock { display: flex; align-items: center; }
  .wa-float { display: none; }
  body { padding-bottom: 74px; }
}

/* ═══════════════════════ معالج الطلب ═══════════════════════ */
.wiz-steps { display: flex; align-items: center; gap: 0; margin-bottom: 30px; }
.ws { flex: 1; position: relative; padding-top: 26px; text-align: center; font-size: 13px; color: var(--muted); }
.ws::before {
  content: ''; position: absolute; top: 7px; inset-inline-start: 0; width: 100%; height: 2px; background: var(--line);
}
.ws::after {
  content: attr(data-n); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: 17px; height: 17px; border-radius: 50%; background: var(--paper-2);
  border: 2px solid var(--line); font-family: var(--f-head); font-size: 10px; font-weight: 800;
  color: var(--muted); display: grid; place-items: center; line-height: 1;
  transition: border-color var(--t), background-color var(--t), color var(--t);
}
.ws.on { color: var(--ink); font-weight: 700; }
.ws.on::after  { border-color: var(--brand); color: var(--brand); }
.ws.done::after { border-color: var(--brand); background: var(--brand); color: #fff; }
.ws.done::before, .ws.on::before { background: var(--brand); }

.wiz-panel { display: none; }
.wiz-panel.on { display: block; animation: fade 260ms var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.opt-group {
  font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px;
}
.opt-group:first-child { margin-top: 0; }
.opt-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; }

.opt {
  position: relative; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 15px 17px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--paper); transition: border-color var(--t), background-color var(--t);
}
.opt:hover { border-color: #D6D3E4; background: var(--paper-2); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt b { font-family: var(--f-head); font-size: 15px; font-weight: 700; padding-inline-end: 26px; }
.opt small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt .mark {
  position: absolute; top: 15px; inset-inline-end: 15px; width: 18px; height: 18px;
  border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center;
  transition: border-color var(--t), background-color var(--t);
}
.opt .mark svg { opacity: 0; color: #fff; transition: opacity var(--t); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt:has(input:checked) .mark { border-color: var(--brand); background: var(--brand); }
.opt:has(input:checked) .mark svg { opacity: 1; }
.opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt-add .mark { border-radius: var(--r-xs); }
.opt .add-p { color: var(--brand); font-weight: 700; font-family: var(--f-head); }

.est {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 20px; border-radius: var(--r);
  background: var(--bg); color: var(--d-text);
}
.est .lb { font-size: 13.5px; }
.est .lb small { display: block; font-size: 12px; color: var(--d-mute); margin-top: 2px; }
.est b {
  font-family: var(--f-head); font-size: 21px; font-weight: 800; color: var(--brand-lift);
  font-variant-numeric: tabular-nums lining-nums;
}
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wiz-nav .btn { min-width: 150px; }

/* الحقول الشرطية للألعاب */
.game-fields { display: none; }
.game-fields.on { display: block; animation: fade 260ms var(--ease); }
.game-fields .gf-head {
  display: flex; align-items: center; gap: 10px; margin: 26px 0 14px;
  font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brand);
}
.game-fields .gf-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ═══════════════════════ صفحات مساعدة ═══════════════════════ */
.page-head { background: var(--bg); color: var(--d-text); padding-block: clamp(52px, 6vw, 88px); margin-top: -74px; padding-top: calc(74px + clamp(52px, 6vw, 88px)); }
.page-head h1 { color: var(--paper); font-size: clamp(26px, 4vw, 44px); margin-bottom: 14px; }
.page-head p { color: var(--d-mute); font-size: clamp(15.5px, 1.5vw, 17.5px); max-width: 56ch; }

.prose h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 40px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; line-height: 1.95; }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; margin: 14px 0; }
.prose ul li { display: flex; gap: 11px; }
.prose ul li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 12px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.e404 { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.e404 .code { font-family: var(--f-head); font-size: clamp(72px, 14vw, 150px); font-weight: 800; color: var(--brand); opacity: .16; line-height: 1; }
.e404 h1 { margin: -18px 0 14px; }
.e404 p { color: var(--muted); max-width: 44ch; margin: 0 auto 30px; }
.e404 .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* صفحة الدخول/التسجيل */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); background: var(--bg); }
.auth-card {
  width: 100%; max-width: 430px; background: var(--paper-2); border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 40px); box-shadow: var(--shadow-lg);
}
.auth-card .logo { display: block; height: 38px; width: auto; margin: 0 auto 24px; }
.auth-card h1 { font-size: 23px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-card .field + .field { margin-top: 16px; }
.auth-card .btn { margin-top: 24px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.auth-alt a { color: var(--brand); font-weight: 600; }
.auth-back { display: block; text-align: center; margin-top: 22px; font-size: 14px; color: var(--d-mute); }
.auth-back:hover { color: var(--paper); }

/* طباعة */
@media print {
  .site-head, .m-dock, .wa-float, .site-foot, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* ═══════════════════════ صفحة «كيف نعمل» ═══════════════════════ */
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.pay-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2);
  padding: clamp(22px, 2.4vw, 30px); position: relative; overflow: hidden;
}
.pay-card::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--brand); }
.pay-card .pct {
  font-family: var(--f-head); font-size: clamp(32px, 4vw, 44px); font-weight: 800;
  color: var(--brand); line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums lining-nums;
}
.pay-card h3 { margin-bottom: 6px; }
.pay-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* الفواصل على الخلايا نفسها لا على فجوات الشبكة — حتى لا تظهر المسارات الفارغة كمربعات رمادية */
.sectors { display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.sector { padding: clamp(20px, 2.2vw, 28px); transition: background-color var(--t);
  border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line);
  margin-top: -1px; margin-inline-start: -1px; }
.sector:hover { background: var(--brand-soft); }
.sector .si { color: var(--brand); margin-bottom: 14px; }
.sector h3 { font-size: 15.5px; margin-bottom: 5px; }
.sector p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.method .mstep { padding: clamp(20px, 2.2vw, 26px);
  border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line);
  margin-top: -1px; margin-inline-start: -1px; }
.method .mn {
  font-family: var(--f-head); font-size: 12px; font-weight: 800; color: var(--brand);
  letter-spacing: .08em; display: block; margin-bottom: 10px;
}
.method h3 { font-size: 15.5px; margin-bottom: 6px; }
.method p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.cta-band { background: var(--bg); color: var(--d-text); text-align: center; }
.cta-band h2 { color: var(--paper); margin-bottom: 12px; }
.cta-band p { color: var(--d-mute); margin-bottom: 30px; font-size: clamp(15.5px, 1.5vw, 17.5px); }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) { .pay { grid-template-columns: 1fr; } .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } }
