/* ============ فلته — نظام التصميم v3 «الهجين الفخم» ============
   هيرو داكن ملكي + ذهبي هادئ + جسم فاتح غني.
   Cairo للعناوين، Tajawal للنصوص، أيقونات SVG خطية فقط. */

:root {
  /* الداكن الملكي */
  --dark:  #171130;
  --dark2: #221743;
  --dlite: rgba(255,255,255,.75);
  --dline: rgba(255,255,255,.12);

  /* الجسم الفاتح */
  --paper: #FBFAFF;
  --card:  #FFFFFF;
  --ink:   #221B3A;
  --muted: #6F6889;
  --line:  #E9E5F4;

  /* الهوية */
  --v:     #6D28D9;
  --v2:    #9333EA;
  --gold:  #D4A853;
  --grad:  linear-gradient(120deg, #6D28D9, #9333EA);
  --soft:  0 24px 65px -30px rgba(34,27,58,.22);
  --glow:  0 16px 40px -14px rgba(109,40,217,.55);

  /* دلالات الحالات */
  --good: #1A7F4E;  --good-soft: #E6F4EC;
  --warn: #A16207;  --warn-soft: #FAF3DF;
  --crit: #B42318;  --crit-soft: #FBEAE8;
  --info: #1D4ED8;  --info-soft: #E8EEFC;
  --teal-c: #0F766E; --teal-soft: #E6F2F0;

  /* أسماء قديمة تعتمد عليها الفاتورة وصفحات أخرى */
  --indigo: var(--v); --violet: var(--v2); --coral: var(--v);
  --purple: var(--v2); --teal: var(--teal-c); --sky: var(--info);
  --green: var(--good); --yellow: var(--warn); --pink: #A78BFA;
  --tint: #F1EBFB; --bg: var(--paper);
  --grad-teal: linear-gradient(120deg, #0F766E, #14B8A6);
  --grad-sun:  linear-gradient(120deg, #B8860B, #D4A853);
  --shadow: 0 10px 34px -18px rgba(34,27,58,.18);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', 'SF Arabic', Tahoma, system-ui, sans-serif;
       background: var(--paper); color: var(--ink); line-height: 1.85; font-size: 15.5px; overflow-x: hidden; }
h1, h2, h3, h4, .price, .pct, .stat .num { font-family: 'Cairo', 'Tajawal', sans-serif; }
h1, h2 { line-height: 1.5; }
a { color: var(--v); text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── أزرار ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 30px;
       border-radius: 12px; font-family: 'Tajawal'; font-size: 15px; font-weight: 800; cursor: pointer;
       border: 1.5px solid transparent; text-align: center; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #E0B968; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: #fff; color: var(--v); border-color: var(--line); }
.btn-outline:hover { border-color: var(--v); }
.btn-teal { background: #fff; color: var(--v); border-color: var(--line); }
.btn-teal:hover { border-color: var(--v); }
.btn-sun { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--muted); }
.btn-danger { background: var(--crit-soft); color: var(--crit); }
.btn-wa { background: #1FAF54; color: #fff; }
.btn-wa:hover { background: #178A42; color: #fff; }
.btn-sm { padding: 7px 18px; font-size: 13px; border-radius: 10px; }

/* ── شارات الحالة ── */
.badge { display: inline-block; padding: 3px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-coral  { background: var(--tint); color: var(--v); }
.badge-purple { background: var(--tint); color: var(--v2); }
.badge-teal   { background: var(--teal-soft); color: var(--teal-c); }
.badge-green  { background: var(--good-soft); color: var(--good); }
.badge-yellow { background: var(--warn-soft); color: var(--warn); }
.badge-sky    { background: var(--info-soft); color: var(--info); }
.badge-gray   { background: #F0EEF6; color: var(--muted); }
.badge-pink   { background: var(--tint); color: var(--v2); }

/* ── رسائل ── */
.flash { padding: 13px 20px; border-radius: 12px; margin-bottom: 20px; font-weight: 700; font-size: 14px; border: 1px solid; }
.flash-success { background: var(--good-soft); color: var(--good); border-color: #BFE3CE; }
.flash-error { background: var(--crit-soft); color: var(--crit); border-color: #F1C1BC; }

/* ── التنقل (داكن) ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(23,17,48,.92); backdrop-filter: blur(12px);
       border-bottom: 1px solid var(--dline); padding: 13px 5%; display: flex; align-items: center;
       justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.nav-brand { display: inline-flex; align-items: center; }
.nav-brand img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--dlite); font-size: 14px; font-weight: 700; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-links a.btn { color: var(--dark); }

/* ── الهيرو الداكن ── */
.hero { position: relative; background: var(--dark); color: #fff; padding: 84px 5% 96px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(650px 420px at 15% 15%, rgba(147,51,234,.35), transparent 60%),
  radial-gradient(520px 380px at 85% 75%, rgba(212,168,83,.14), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; max-width: 1150px; margin: 0 auto; display: grid;
             grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.kicker { display: inline-block; color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .05em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: var(--dlite); font-size: 17.5px; max-width: 52ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hb { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dline); background: rgba(255,255,255,.06);
      border-radius: 50px; padding: 7px 18px; font-size: 12.5px; font-weight: 700; color: var(--dlite); }
.hb svg { color: var(--gold); }
.hb b { color: #fff; }

/* تركيبة الأجهزة في الهيرو */
.devs { position: relative; min-height: 420px; }
.dsk { position: absolute; top: 0; right: 0; left: 70px; background: #fff; border-radius: 18px;
       box-shadow: 0 45px 100px -35px rgba(0,0,0,.6); overflow: hidden; transform: rotate(-2deg); }
.dsk-bar { display: flex; gap: 6px; padding: 11px 14px; background: #F3F1FA; border-bottom: 1px solid var(--line); }
.dsk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DDD8EC; }
.dsk-body { padding: 18px; color: var(--ink); }
.dsk-body h5 { font-family: 'Cairo'; font-size: 13.5px; margin-bottom: 12px; }
.prog { height: 10px; border-radius: 6px; background: #EFEBF9; overflow: hidden; margin-bottom: 14px; }
.prog i { display: block; height: 100%; width: 62%; background: var(--grad); border-radius: 6px; animation: grow 2.2s ease; }
@keyframes grow { from { width: 8%; } }
.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rw { background: #F8F6FE; border-radius: 10px; padding: 10px 12px; font-size: 11px; color: var(--muted); }
.rw b { display: block; font-family: 'Cairo'; font-size: 15.5px; color: var(--ink); }
.ph { position: absolute; bottom: -14px; left: 0; width: 166px; background: #fff; border-radius: 26px;
      box-shadow: 0 35px 80px -25px rgba(0,0,0,.6); padding: 12px; transform: rotate(4deg); }
.ph-notch { width: 56px; height: 5px; border-radius: 3px; background: #E4E0F0; margin: 2px auto 12px; }
.ph-chip { display: inline-block; background: var(--tint); color: var(--v); font-size: 10px; font-weight: 800; border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }
.ph-line { height: 9px; border-radius: 5px; background: #F1EDF9; margin-bottom: 8px; }
.ph-line.w { width: 70%; }
.ph-btn { height: 32px; border-radius: 9px; background: var(--grad); margin-top: 10px; display: flex;
          align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }

/* ── شريط الثقة الذهبي ── */
.gstrip { background: var(--dark2); color: #fff; border-top: 1px solid var(--dline); }
.gstrip-in { max-width: 1150px; margin: 0 auto; padding: 22px 20px; display: grid;
             grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; }
.gs b { color: var(--gold); font-family: 'Cairo'; font-size: 19px; display: block; }
.gs span { font-size: 12.5px; color: rgba(255,255,255,.65); }

/* ── الأقسام ── */
.section { padding: 78px 5%; }
.section-alt { background: #F5F2FC; border-block: 1px solid var(--line); }
.container { max-width: 1150px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.sec-head .eyebrow { display: inline-block; color: var(--v); font-weight: 800; font-size: 13px; letter-spacing: .05em; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; margin-bottom: 10px; }
.sec-head p { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line);
        box-shadow: var(--soft); transition: transform .2s; }
a.card:hover, .grid-3 .card:hover, .grid-4 .card:hover { transform: translateY(-5px); }
.ico { vertical-align: middle; flex-shrink: 0; }

/* ── الأعمال ── */
.work-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.wk-top { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wk-top h3 { font-size: 18px; font-weight: 800; }
.work-type { font-size: 11px; font-weight: 800; color: var(--v); background: var(--tint); border-radius: 7px; padding: 3px 10px; white-space: nowrap; }
.work-card > p { padding: 6px 24px 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.wk-foot { margin-top: 16px; padding: 13px 24px; border-top: 1px solid var(--line); background: var(--paper);
           display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.wk-foot a { color: var(--v); font-weight: 800; }
.wk-foot .live { color: var(--gold); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.wk-foot .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ── بطاقات الحلول ── */
.service-card { display: flex; flex-direction: column; }
.service-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--tint); color: var(--v);
               display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.service-price { margin: 14px 0 2px; font-size: 13px; color: var(--muted); }
.service-price b { font-family: 'Cairo'; font-size: 24px; font-weight: 900; color: var(--v); margin: 0 5px; }
.service-price small { font-size: 12px; font-weight: 600; }
.service-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }

.feat-list { list-style: none; margin: 12px 0; font-size: 13.5px; }
.feat-list li { padding: 4px 0; padding-inline-start: 22px; position: relative; }
.feat-list li::before { content: '✓'; position: absolute; right: 0; top: 4px; color: var(--gold); font-weight: 900; font-size: 12px; }

/* ── القطاعات ── */
.sector-card { text-align: center; padding: 24px 16px; }
.sector-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--v);
              display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.sector-card h4 { margin-top: 12px; font-size: 15px; font-weight: 800; }
.sector-card p { color: var(--muted); font-size: 12.5px; }

/* ── الباقات: لوحة داكنة + بطاقات ── */
.dpr { background: var(--dark); border-radius: 30px; padding: 60px 40px; position: relative; overflow: hidden; }
.dpr::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(147,51,234,.3), transparent 65%); pointer-events: none; }
.dpr .sec-head { position: relative; }
.dpr .sec-head h2 { color: #fff; }
.dpr .sec-head .eyebrow { color: var(--gold); }
.dpr .sec-head p { color: rgba(255,255,255,.65); }
.dpr .grid-3 { position: relative; }

.pkg { position: relative; display: flex; flex-direction: column; border-radius: 20px; padding: 30px;
       background: var(--card); border: 1px solid var(--line); box-shadow: var(--soft); }
.pkg h3 { font-size: 19px; font-weight: 800; }
.pkg .tagline { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.pkg .price { font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--v); }
.pkg .price small { font-size: 13px; color: var(--muted); font-weight: 700; font-family: 'Tajawal'; }
.pkg .starter { font-size: 12.5px; color: var(--v); font-weight: 700; margin-bottom: 8px; }
.pkg .feat-list { flex: 1; }
.pkg .pop-tag { position: absolute; top: -13px; right: 24px; background: var(--gold); color: var(--dark);
                font-size: 12px; font-weight: 800; padding: 4px 16px; border-radius: 50px; }
/* داخل اللوحة الداكنة */
.dpr .pkg { background: rgba(255,255,255,.05); border-color: var(--dline); color: #fff; box-shadow: none; }
.dpr .pkg .tagline { color: rgba(255,255,255,.6); }
.dpr .pkg .price { color: #fff; }
.dpr .pkg .price small { color: rgba(255,255,255,.6); }
.dpr .pkg .starter { color: var(--gold); }
.dpr .pkg .feat-list li { color: rgba(255,255,255,.82); }
.dpr .pkg.popular { background: #fff; color: var(--ink); box-shadow: 0 30px 80px -25px rgba(0,0,0,.55); }
.dpr .pkg.popular .tagline { color: var(--muted); }
.dpr .pkg.popular .price { color: var(--v); }
.dpr .pkg.popular .price small { color: var(--muted); }
.dpr .pkg.popular .starter { color: var(--v); }
.dpr .pkg.popular .feat-list li { color: var(--ink); }
.dpr .pkg.popular .feat-list li::before { color: var(--v); }

/* ── خطوات وأسئلة ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { padding: 20px 14px; text-align: center; }
.step .num { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); color: var(--v);
             font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center;
             margin: 0 auto 10px; font-variant-numeric: tabular-nums; }
.step h4 { font-size: 13.5px; font-weight: 800; }
.step p { font-size: 11.5px; color: var(--muted); }

.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pay-card { text-align: center; }
.pay-card .pct { font-size: 38px; font-weight: 900; color: var(--v); font-variant-numeric: tabular-nums; }
.pay-card .pct::after { content: ''; display: block; width: 34px; height: 3px; background: var(--gold); margin: 4px auto 8px; border-radius: 2px; }

details.faq { background: var(--card); border-radius: 14px; padding: 16px 22px; margin-bottom: 10px; border: 1px solid var(--line); box-shadow: var(--soft); }
details.faq summary { font-weight: 800; cursor: pointer; font-size: 15px; }
details.faq[open] { border-color: var(--gold); }
details.faq p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ── نماذج ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 14px; background: #fff; color: var(--ink); transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--v); }
textarea { min-height: 110px; resize: vertical; }

/* ── معالج الطلب ── */
.wiz-progress { display: flex; margin-bottom: 28px; }
.wiz-p { flex: 1; text-align: center; position: relative; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 36px; }
.wiz-p::before { content: attr(data-n); position: absolute; top: 0; right: 50%; transform: translateX(50%);
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-family: 'Cairo'; }
.wiz-p::after { content: ''; position: absolute; top: 14px; right: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: var(--line); }
.wiz-p:first-child::after { display: none; }
.wiz-p.on { color: var(--v); }
.wiz-p.on::before { border-color: var(--gold); color: var(--v); box-shadow: 0 0 0 5px rgba(212,168,83,.15); }
.wiz-p.done { color: var(--ink); }
.wiz-p.done::before { background: var(--grad); border-color: transparent; color: #fff; content: '✓'; }
.wiz-p.done::after { background: var(--gold); }
.wiz-step { display: none; }
.wiz-step.on { display: block; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.sol-group { font-size: 13px; font-weight: 800; color: var(--muted); margin: 18px 0 8px; }
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label.sol-card { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
                 cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
label.sol-card:hover { border-color: var(--v); }
label.sol-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.sol-card b { display: block; font-size: 14.5px; font-weight: 800; }
label.sol-card small { color: var(--muted); font-size: 12.5px; }
label.sol-card:has(input:checked) { border-color: var(--gold); background: #FDF9F0; }
.addon-card .add-price { color: var(--v); font-weight: 800; font-size: 12.5px; margin-inline-start: 6px; white-space: nowrap; }
.est-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px;
           background: #FDF9F0; border: 1.5px solid var(--gold); border-radius: 14px;
           padding: 14px 20px; margin: 16px 0 22px; }
.est-bar > div > span { font-weight: 800; font-size: 14.5px; }
.est-note { font-size: 11.5px; color: var(--muted); }
.est-bar b { font-family: 'Cairo'; font-size: 22px; font-weight: 900; color: var(--v); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── فوتر داكن ── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 54px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; max-width: 1150px; margin: 0 auto 30px; }
.footer h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.footer h4::after { content: ''; display: block; width: 26px; height: 2px; background: var(--gold); margin-top: 6px; border-radius: 2px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 14px; }
.footer a { color: rgba(255,255,255,.65); }
.footer a:hover { color: var(--gold); }
.footer p { color: rgba(255,255,255,.6) !important; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.footer-bottom { text-align: center; color: rgba(255,255,255,.55); font-size: 13px; border-top: 1px solid var(--dline);
                 padding-top: 20px; max-width: 1150px; margin: 0 auto; }

/* ── زر واتساب العائم + شريط الجوال ── */
.wa-float { position: fixed; bottom: 22px; left: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  background: #1FAF54; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(31,175,84,.55); transition: transform .15s; }
.wa-float:hover { transform: scale(1.05); color: #fff; }
.m-cta { display: none; }
@media print { .wa-float, .m-cta, .nav { display: none !important; } }

/* ── صفحات الدخول (داكنة) ── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px;
  background: var(--dark); position: relative; overflow: hidden; }
.auth-wrap::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(600px 400px at 20% 10%, rgba(147,51,234,.3), transparent 60%),
  radial-gradient(450px 320px at 85% 85%, rgba(212,168,83,.12), transparent 60%); }
.auth-card { position: relative; background: var(--card); border-radius: 22px; padding: 40px; width: 100%; max-width: 440px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); border-top: 4px solid var(--gold); }
.auth-card h1 { font-size: 23px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* ── لوحة التحكم: جانبي داكن + جسم فاتح ── */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--dark); padding: 26px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { margin-bottom: 6px; padding: 0 10px; display: block; }
.sidebar .brand img { height: 38px; width: auto; }
.sidebar .role { font-size: 12px; color: rgba(255,255,255,.5); padding: 0 10px; margin-bottom: 24px; }
.side-nav { list-style: none; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  color: rgba(255,255,255,.62); font-size: 14px; font-weight: 700; margin-bottom: 3px;
  border-inline-start: 3px solid transparent; transition: background .15s, color .15s; }
.side-nav a svg { flex-shrink: 0; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(212,168,83,.12); color: var(--gold); border-inline-start-color: var(--gold); }
.dash-main { padding: 30px 34px; background: var(--paper); }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-head h1 { font-size: 23px; font-weight: 900; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { border-radius: var(--radius); padding: 18px 20px; background: var(--card); border: 1px solid var(--line);
        border-top: 3px solid var(--line); box-shadow: var(--soft); }
.stat .num { font-size: 27px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 12.5px; color: var(--muted); }
.stat-coral  { border-top-color: var(--v); }     .stat-coral .num { color: var(--v); }
.stat-teal   { border-top-color: var(--teal-c); } .stat-teal .num { color: var(--teal-c); }
.stat-sun    { border-top-color: var(--gold); }   .stat-sun .num { color: #B8860B; }
.stat-purple { border-top-color: var(--v2); }     .stat-purple .num { color: var(--v2); }

table.data { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius);
             overflow: hidden; border: 1px solid var(--line); box-shadow: var(--soft); }
table.data th { background: #F3F0FB; padding: 12px 16px; text-align: right; font-size: 12.5px; color: var(--v);
                font-weight: 800; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--paper); }

/* ── محادثة التذاكر ── */
.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.msg { max-width: 75%; padding: 12px 18px; border-radius: 14px; font-size: 14px; }
.msg .who { font-size: 11.5px; font-weight: 800; margin-bottom: 4px; opacity: .75; }
.msg-me { background: var(--grad); color: #fff; align-self: flex-start; border-bottom-right-radius: 4px; }
.msg-them { background: var(--card); border: 1px solid var(--line); align-self: flex-end; border-bottom-left-radius: 4px; }

/* ── الخط الزمني ── */
.timeline-h { display: flex; overflow-x: auto; padding: 10px 0 20px; }
.tl-step { flex: 1; min-width: 96px; text-align: center; position: relative; }
.tl-step::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1;
  font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-step.done .dot { background: var(--grad); border-color: transparent; color: #fff; }
.tl-step.done .dot::after { content: '✓'; }
.tl-step.done::before { background: var(--v); }
.tl-step.now .dot { border-color: var(--gold); color: var(--v); font-weight: 800; box-shadow: 0 0 0 5px rgba(212,168,83,.18); }
.tl-step .lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tl-step.now .lbl { color: var(--v); }

/* ── ظهور تدريجي ── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }

/* ── متجاوب ── */
@media (max-width: 980px) {
  .grid-3, .grid-4, .steps, .pay-cards, .stats { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .gstrip-in { grid-template-columns: 1fr 1fr; }
  .devs { min-height: 400px; margin-top: 10px; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .dpr { padding: 46px 24px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .pay-cards, .stats, .form-grid, .sol-grid, .gstrip-in { grid-template-columns: 1fr; }
  .dash-main { padding: 20px 16px; }
  .section { padding: 54px 5%; }
  .dsk { left: 0; }
  .ph { width: 140px; }
  .wa-float { display: none; }
  .m-cta { position: fixed; bottom: 12px; right: 12px; left: 12px; z-index: 95; display: flex; gap: 10px;
           align-items: center; background: rgba(23,17,48,.96); backdrop-filter: blur(14px);
           border: 1px solid var(--dline); border-radius: 20px; padding: 10px;
           padding-bottom: max(10px, env(safe-area-inset-bottom));
           box-shadow: 0 20px 50px -12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07); }
  .m-wa { flex-shrink: 0; width: 50px; height: 50px; border-radius: 15px; background: #1FAF54; color: #fff;
          display: flex; align-items: center; justify-content: center;
          box-shadow: 0 8px 20px -6px rgba(31,175,84,.55); transition: transform .15s; }
  .m-wa:active { transform: scale(.94); }
  .m-go { flex: 1; height: 50px; border-radius: 15px; background: var(--gold); color: var(--dark);
          display: flex; align-items: center; justify-content: center; gap: 10px;
          font-family: 'Cairo'; font-weight: 800; font-size: 15.5px;
          box-shadow: 0 8px 22px -6px rgba(212,168,83,.45); transition: transform .15s; }
  .m-go:active { transform: scale(.97); }
  .m-go svg { transition: transform .2s; }
  .m-go:hover svg { transform: translateX(-4px); }
  body { padding-bottom: 84px; }
}
