/* ═══════════════════════════════════════════════════════════════════════
   الموقعُ العامّ (docs/website/01-plan.md، المرحلة ٢)
   اللونُ الأساسيّ متغيّرٌ (--brand) يضبطه التخطيطُ من هويّةِ المنصّة.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
    --brand: #2E31A8;
    --ink: #111113;
    --ink-2: #3a3a40;
    --muted: #6b6b75;
    --line: #e7e5e2;
    --paper: #ffffff;
    --paper-2: #f7f6f4;
    --night: #121214;
    --night-2: #1c1c1f;
    --radius: 14px;
}

html { scroll-behavior: smooth; }
body.site {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
.site a { color: inherit; }
.site h1, .site h2, .site h3 { text-wrap: balance; letter-spacing: -0.3px; }
.site .num { font-variant-numeric: tabular-nums; }
.site-container { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* ── الترويسة ── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .site-container { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.site-logo img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.site-nav a { text-decoration: none; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.site-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.site-lang { font-size: 0.9rem; color: var(--muted); text-decoration: none; padding: 6px 8px; }
.site-lang:hover { color: var(--ink); }
.btn-brand {
    background: var(--brand); color: #fff !important; border: 0; font-weight: 700;
    padding: 9px 18px; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 6px 18px -8px var(--brand);
}
.btn-brand:hover { filter: brightness(0.95); }
.btn-ghost {
    border: 1px solid var(--line); color: var(--ink) !important; font-weight: 700; padding: 9px 18px; border-radius: 10px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px; background: var(--paper);
}
.btn-ghost:hover { border-color: var(--ink-2); }
.site-menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; margin-inline-start: auto; }

@media (max-width: 860px) {
    .site-menu-toggle { display: block; }
    .site-nav, .site-actions { display: none; }
    .site-header.open .site-container { flex-wrap: wrap; padding-bottom: 14px; }
    .site-header.open .site-nav, .site-header.open .site-actions { display: flex; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
}

/* ── البطل ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
    radial-gradient(600px 300px at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--paper-2), var(--paper)); }
.hero .site-container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--ink-2);
    background: var(--paper); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.hero-eyebrow i { color: var(--brand); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.3; margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }

/* لوحةٌ مصغَّرة: صورةٌ للنظامِ مرسومةٌ بالعناصرِ نفسِها لا بصورةٍ خارجيّة */
.mock {
    background: var(--night); border-radius: 18px; padding: 16px; color: #fff;
    box-shadow: 0 40px 80px -40px rgba(17,17,19,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a40; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: var(--night-2); border-radius: 12px; padding: 12px; }
.mock-kpi small { color: #a3a3ad; display: block; font-size: 0.75rem; }
.mock-kpi b { font-size: 1.15rem; }
.mock-kpi .up { color: #4ade80; font-size: 0.75rem; }
.mock-chart { margin-top: 12px; background: var(--night-2); border-radius: 12px; padding: 14px; height: 150px; display: flex; align-items: flex-end; gap: 8px; }
.mock-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: #3a3a40; }
.mock-chart span.hi { background: var(--brand); }
.mock-rows { margin-top: 12px; display: grid; gap: 6px; }
.mock-rows div { display: flex; justify-content: space-between; background: var(--night-2); border-radius: 10px; padding: 8px 12px; font-size: 0.82rem; color: #d4d4d8; }

@media (max-width: 920px) { .hero .site-container { grid-template-columns: 1fr; } .mock { max-width: 520px; } }

/* ── الأقسام ── */
.section { padding: 76px 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.trust { padding: 26px 0; border-block: 1px solid var(--line); }
.trust .site-container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust-label { color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.trust-logos { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.trust-logos .brand-logo, .trust-logos img { height: 30px; width: auto; opacity: 0.85; }

.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
.module:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }
.module-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem;
    background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 14px; }
.module h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.module p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 1000px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.highlight i { font-size: 1.4rem; color: var(--brand); }
.highlight h3 { font-size: 1.02rem; font-weight: 800; margin: 10px 0 6px; }
.highlight p { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 900px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .highlights { grid-template-columns: 1fr; } }

/* ── الباقات ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 30px 60px -40px var(--brand); }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; min-height: 52px; }
.plan-price b { font-size: 2.3rem; font-weight: 800; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 0.92rem; }
.plan-price .ask { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 8px; font-size: 0.95rem; }
.plan li i { color: var(--brand); }
.plan .btn-brand, .plan .btn-ghost { margin-top: auto; justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* بدّالُ شهريّ/سنويّ (المالك ٢٨/١٠): السنويُّ بعشرةِ أشهر - المشطوبُ وما يُوفَّر تحت الرقم */
.plans-toggle { display: flex; justify-content: center; margin-bottom: 28px; }
.plans-toggle > div { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.plans-toggle button { border: 0; background: transparent; padding: 7px 18px; border-radius: 999px; font: inherit; font-weight: 800; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; cursor: pointer; transition: background .15s, color .15s; }
.plans-toggle button.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.plans-toggle .save { font-size: .72rem; font-weight: 800; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); padding: 2px 9px; border-radius: 999px; }
.plans-toggle button.is-on .save { background: var(--brand); color: #fff; }
.plan-price > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; animation: planPriceIn .25s ease both; }
.plan-price .plan-was-month { font-size: 1.15rem; font-weight: 700; color: var(--muted); text-decoration: line-through; text-decoration-color: #d93025; text-decoration-thickness: 2px; align-self: center; }
.plan-price .plan-total { flex-basis: 100%; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.plan-price .plan-total b { font-size: 1.05rem; font-weight: 800; }
.plan-price .plan-total .plan-save { color: var(--brand); font-weight: 800; margin-inline-start: 8px; }
@keyframes planPriceIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* باقةُ «الأعمال بلا حدود»: شريطٌ عريضٌ داكنٌ تحت البطاقاتِ الثلاث - تسعيرٌ مخصّصٌ وتواصلٌ مع المبيعات */
.plan-ent {
    position: relative; overflow: hidden; margin-top: 22px; padding: 32px 36px; border-radius: 22px; color: #fff;
    display: grid; grid-template-columns: 1.05fr 1.35fr auto; gap: 32px; align-items: center;
    background: linear-gradient(135deg, var(--night-2) 0%, color-mix(in srgb, var(--brand) 72%, var(--night)) 100%);
    box-shadow: 0 34px 60px -44px var(--brand);
}
.plan-ent::before { content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%); pointer-events: none; }
.plan-ent::after { content: ""; position: absolute; inset-inline-start: 38%; bottom: -160px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 60%, #fff 0%), transparent 70%); opacity: .35; pointer-events: none; }
.plan-ent > * { position: relative; }
.plan-ent-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .2px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.plan-ent h3 { font-size: 1.55rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.plan-ent-head p { margin: 0; color: rgba(255,255,255,.82); font-size: .96rem; }
.plan-ent-perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 22px; }
.plan-ent-perks li { display: flex; gap: 10px; align-items: center; font-size: .93rem; font-weight: 600; }
.plan-ent-perks i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); font-size: 1rem; }
.plan-ent-cta { display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 210px; padding-inline-start: 28px; border-inline-start: 1px solid rgba(255,255,255,.16); }
.plan-ent-cta b { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.plan-ent-cta small { color: rgba(255,255,255,.72); font-size: .82rem; max-width: 220px; }
.plan-ent-cta .btn-brand { background: #fff; color: var(--brand) !important; box-shadow: 0 10px 26px -12px rgba(0,0,0,.6); margin-top: 4px; }
.plan-ent-cta .btn-brand:hover { filter: none; background: #f3f2ff; }
@media (max-width: 1000px) {
    .plan-ent { grid-template-columns: 1fr; gap: 22px; padding: 28px 26px; }
    .plan-ent-cta { justify-items: start; text-align: start; padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
    .plan-ent-cta small { max-width: none; }
}
@media (max-width: 560px) { .plan-ent-perks { grid-template-columns: 1fr; } .plans-toggle button { padding: 7px 12px; } }

/* جدولُ المقارنة */
/* أدواتُ المقارنة (المالك ٢٨/١٠): تبويباتُ الأقسام + «الفروق فقط» + بحث - فلا تمريرَ طويلًا */
.cmp-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.cmp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-tabs button { border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: inherit; font-size: .88rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cmp-tabs button:hover { border-color: var(--ink-2); }
.cmp-tabs button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cmp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cmp-diff { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; cursor: pointer; margin: 0; }
.cmp-diff input { width: 18px; height: 18px; accent-color: var(--brand); }
.cmp-search { flex: 1 1 220px; max-width: 320px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .92rem; background: var(--paper); color: var(--ink); }
.cmp-search:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.compare .cmp-empty td { text-align: center; color: var(--muted); padding: 28px 16px; }
.compare thead th { position: sticky; top: 0; z-index: 1; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare td:first-child { width: 42%; }
.compare th, .compare td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 0.93rem; }
.compare th:first-child, .compare td:first-child { text-align: start; }
/* لا رأسَ لاصق: داخلَ حاويةٍ تُمرَّر أفقيًّا يُزاح فوق أوّلِ صفّ */
.compare thead th { background: var(--paper); font-weight: 800; }
.compare tr.group td { background: var(--paper-2); font-weight: 800; text-align: start; color: var(--ink); }
.compare .yes { color: #15803d; }
.compare .no { color: #b4b4bc; }
.badge-soon { font-size: 0.72rem; font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 1px 8px; border-radius: 999px; margin-inline-start: 6px; white-space: nowrap; }
.services { display: flex; flex-wrap: wrap; gap: 10px; }
.services span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; }

/* المزايا: بطاقةٌ لكلّ وحدة */
.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-group h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.feature-group ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.feature-group li { break-inside: avoid; padding: 4px 0; font-size: 0.94rem; display: flex; gap: 8px; align-items: baseline; }
.feature-group li i { color: var(--brand); font-size: 0.8rem; }
@media (max-width: 860px) { .feature-groups { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .feature-group ul { columns: 1; } }

/* ── صفحاتُ النماذجِ والنصوص ── */
.page-head { padding: 56px 0 26px; background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 40em; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.site .form-control, .site .form-select { border-radius: 10px; padding: 10px 14px; border-color: var(--line); }
.site .form-control:focus, .site .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.site .form-label { font-weight: 700; font-size: 0.92rem; }
/* مخفيٌّ عن العين لا عن الآليّ - لا إزاحةَ يسارًا: في صفحةٍ من اليمينِ تُوسِّع التمريرَ الأفقيّ */
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 8px; }
.legal p { color: var(--ink-2); }
.contact-side { display: grid; gap: 14px; align-content: start; }
.contact-side a { text-decoration: none; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.contact-side i { color: var(--brand); font-size: 1.2rem; }

/* ── الدعوة والتذييل ── */
.cta-band { background: var(--night); color: #fff; border-radius: 22px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    background-image: radial-gradient(500px 220px at 90% 10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%); }
.cta-band h2 { font-weight: 800; margin: 0 0 6px; font-size: 1.6rem; }
.cta-band p { color: #c7c7ce; margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 76px; color: var(--muted); font-size: 0.93rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { font-size: 0.9rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
[dir="ltr"] .flip-ltr { display: inline-block; transform: scaleX(-1); }

/* ═══ التسجيلُ على خطوات (docs/website/02-trial-onboarding.md، المرحلة ١) ═══ */
.sg { padding: 40px 0 70px; background: radial-gradient(700px 320px at 10% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%), linear-gradient(180deg, var(--paper-2), var(--paper) 40%); min-height: calc(100vh - 66px); }
.sg-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 400px); gap: 32px; justify-content: center; align-items: start; }
.sg-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 32px 26px; box-shadow: 0 30px 60px -40px rgba(17,17,19,0.35); position: relative; overflow: hidden; animation: sgIn .5s ease both; }
@keyframes sgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sg-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.sg-sub { color: var(--muted); margin: 0 0 20px; }
.sg-sub b { color: var(--ink); }
/* المؤشّر: ثلاثُ نقاطٍ على خطٍّ يمتلئ بنسبة --fill */
.sg-stepper { --fill: 0; list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.sg-stepper::before { content: ""; position: absolute; top: 15px; inset-inline: 16.6%; height: 3px; background: var(--line); border-radius: 2px; }
.sg-stepper::after { content: ""; position: absolute; top: 15px; inset-inline-start: 16.6%; width: calc(66.8% * var(--fill)); height: 3px; background: var(--brand); border-radius: 2px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.sg-stepper li { display: grid; justify-items: center; gap: 7px; position: relative; z-index: 1; }
.sg-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--paper); border: 2px solid var(--line); color: var(--muted); transition: all .3s; }
.sg-dot-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.sg-stepper li.is-current .sg-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 15%, transparent); }
.sg-stepper li.is-current .sg-dot-label { color: var(--ink); }
.sg-stepper li.is-done .sg-dot { background: var(--brand); border-color: var(--brand); color: #fff; font-size: 0; }
.sg-stepper li.is-done .sg-dot::before { content: "\2713"; font-size: .95rem; }
/* الخطوات: انزلاقٌ باتّجاه القراءة */
.sg-step { display: grid; gap: 14px; }
.sg-step.enter-fwd { animation: sgFwd .42s cubic-bezier(.2,.8,.2,1) both; }
.sg-step.enter-back { animation: sgBack .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sgFwd { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes sgBack { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
[dir="ltr"] .sg-step.enter-fwd { animation-name: sgFwdL; }
[dir="ltr"] .sg-step.enter-back { animation-name: sgBackL; }
@keyframes sgFwdL { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes sgBackL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sg-field { display: grid; gap: 6px; }
.sg-field label { font-weight: 700; font-size: .92rem; }
.sg-opt { color: var(--muted); font-weight: 500; font-size: .82rem; }
.sg-phone { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
.sg-dial { font-variant-numeric: tabular-nums; }
.sg-pw { position: relative; }
.sg-pw input { padding-inline-end: 44px; }
.sg-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; padding: 4px 8px; border-radius: 8px; }
.sg-eye:hover { color: var(--ink); background: var(--paper-2); }
.sg-meter { display: grid; gap: 5px; }
.sg-meter-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.sg-meter-bar span { height: 5px; border-radius: 3px; background: var(--line); transition: background .25s; }
.sg-meter-text { font-size: .82rem; color: var(--muted); }
.sg-meter[data-score="1"] span:nth-child(-n+1) { background: #e11d48; }
.sg-meter[data-score="1"] .sg-meter-text { color: #e11d48; }
.sg-meter[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.sg-meter[data-score="2"] .sg-meter-text { color: #b45309; }
.sg-meter[data-score="3"] span:nth-child(-n+3) { background: #22c55e; }
.sg-meter[data-score="3"] .sg-meter-text { color: #15803d; }
.sg-meter[data-score="4"] span { background: #15803d; }
.sg-meter[data-score="4"] .sg-meter-text { color: #15803d; font-weight: 700; }
.sg-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.sg-check input { margin-top: 4px; flex: none; }
.sg-next { justify-content: center; width: 100%; padding: 12px 18px; font-size: 1.02rem; position: relative; transition: transform .15s; }
.sg-next:hover { transform: translateY(-1px); }
.sg-next:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.sg-next.is-busy span, .sg-next.is-busy i { visibility: hidden; }
.sg-next.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sgSpin .7s linear infinite; }
@keyframes sgSpin { to { transform: rotate(360deg); } }
.sg-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; border-radius: 10px; padding: 9px 12px; font-size: .9rem; }
.sg-error.shake { animation: sgShake .4s; }
@keyframes sgShake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.sg-foot { margin: 4px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.sg-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.sg-hint { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
/* الخطوة ٢ */
.sg-mail-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); margin-inline: auto; animation: sgPop .5s cubic-bezier(.2,.8,.2,1.4) both; }
@keyframes sgPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
[data-sg-step="2"] .sg-title, [data-sg-step="2"] .sg-sub { text-align: center; }
.sg-otp { display: flex; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.sg-otp input { width: 50px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .15s, transform .15s; font-variant-numeric: tabular-nums; }
.sg-otp input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); transform: translateY(-2px); }
/* الخطوة ٣ */
.sg-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg-lang { border: 2px solid var(--line); border-radius: 10px; padding: 9px 10px; text-align: center; font-weight: 800; cursor: pointer; transition: all .15s; position: relative; }
.sg-lang input { position: absolute; opacity: 0; }
.sg-lang.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand); }
.sg-adv summary { cursor: pointer; font-size: .9rem; color: var(--muted); font-weight: 700; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.sg-adv summary::-webkit-details-marker { display: none; }
.sg-adv[open] summary { color: var(--ink); }
/* اقتراحاتُ عنوانِ الشركة: أقراصٌ متاحةٌ ينقر أحدَها، والمختارُ يُضاء */
.sg-subs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; }
.sg-subs-cap { font-size: .82rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.sg-subs-cap i { color: var(--brand); }
.sg-subs-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-sub-chip { font: inherit; font-size: .84rem; font-weight: 700; line-height: 1.2; color: var(--ink-2); background: var(--paper-2); border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.sg-sub-chip:hover { border-color: var(--brand); color: var(--brand); }
.sg-sub-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sg-url { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; font-size: .92rem; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sg-url b { font-weight: 800; color: var(--ink); }
.sg-url i { color: var(--brand); font-size: 1.2rem; }
/* الجانب */
.sg-aside { position: sticky; top: 90px; }
.sg-aside-card { background: var(--night); color: #fff; border-radius: 22px; padding: 28px; background-image: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%); animation: sgIn .6s .1s ease both; }
.sg-aside-badge { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 800; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 999px; color: #fff; }
.sg-aside-badge i { color: #fbbf24; }
.sg-aside-title { font-size: 1.3rem; font-weight: 800; margin: 14px 0 16px; }
.sg-perks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.sg-perks li { display: flex; gap: 12px; align-items: center; font-size: .95rem; color: #e4e4e7; opacity: 0; animation: sgPerk .5s ease forwards; animation-delay: calc(.25s + var(--d) * .12s); }
@keyframes sgPerk { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.sg-perks i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-size: 1rem; flex: none; }
.sg-aside-mock { display: grid; gap: 8px; }
.sg-mock-row { display: flex; gap: 12px; align-items: center; background: var(--night-2); border-radius: 12px; padding: 10px 12px; opacity: 0; animation: sgPerk .5s ease forwards; }
.sg-mock-row:nth-child(1) { animation-delay: 1.1s; }
.sg-mock-row:nth-child(2) { animation-delay: 1.3s; }
.sg-mock-row:nth-child(3) { animation-delay: 1.5s; }
.sg-mock-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 55%, #000); color: #fff; flex: none; }
.sg-mock-row div { display: grid; flex: 1; min-width: 0; }
.sg-mock-row b { font-size: .9rem; }
.sg-mock-row small { color: #a1a1aa; font-size: .78rem; }
.sg-mock-ok { width: 24px; height: 24px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; color: #fff; font-size: .8rem; font-style: normal; }
/* صفحةُ التجهيز */
.sg-status { text-align: center; }
.sg-rocket { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); animation: sgFloat 2.2s ease-in-out infinite; }
@keyframes sgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sg-rocket.is-up { animation: sgUp .9s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes sgUp { to { transform: translateY(-120px) scale(.6); opacity: 0; } }
.sg-progress { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0 18px; }
.sg-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #fff), var(--brand)); border-radius: 6px; transition: width .6s cubic-bezier(.4,0,.2,1); background-size: 200% 100%; animation: sgShimmer 1.6s linear infinite; }
@keyframes sgShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sg-steps { list-style: none; padding: 0; margin: 0 auto 20px; display: grid; gap: 8px; text-align: start; max-width: 360px; }
.sg-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); transition: color .3s; }
.sg-steps li i { color: var(--line); font-size: 1.1rem; transition: color .3s, transform .3s; }
.sg-steps li.is-done { color: var(--ink); }
.sg-steps li.is-done i { color: #16a34a; transform: scale(1.1); }
.sg-steps li.is-now { color: var(--ink); font-weight: 700; }
.sg-steps li.is-now i { color: var(--brand); animation: sgPulse 1s ease-in-out infinite; }
@keyframes sgPulse { 50% { transform: scale(1.25); opacity: .7; } }
.sg-ready { display: grid; gap: 10px; justify-items: center; animation: sgPop .5s cubic-bezier(.2,.8,.2,1.4) both; }
.sg-ready-ico { width: 64px; height: 64px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 0 10px #dcfce7; }
@media (max-width: 960px) { .sg-grid { grid-template-columns: minmax(0, 560px); } .sg-aside { display: none; } }
@media (max-width: 520px) { .sg-card { padding: 22px 18px; } .sg-row { grid-template-columns: 1fr; } .sg-otp input { width: 42px; height: 52px; font-size: 1.3rem; } .sg-otp { gap: 6px; } .sg-dot-label { font-size: .72rem; } }
/* قنواتُ التواصل في التذييل */
.site-social { display: flex; gap: 8px; margin-top: 10px; }
.site-social a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1rem; color: var(--ink-2); text-decoration: none; transition: all .15s; }
.site-social a:hover { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.site-phones { display: grid; gap: 6px; }
.site-phones a { display: flex; gap: 8px; align-items: center; text-decoration: none; }
.site-phones .fl { font-size: .78rem; color: var(--muted); min-width: 4.5em; }

/* صفحةُ تجهيزِ الشركة: خطٌّ زمنيٌّ عموديٌّ بوصفِ كلِّ خطوةٍ وزمنِها */
.sg-status-head { margin-bottom: 14px; }
.sg-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .86rem; color: var(--muted); margin-top: -8px; }
.sg-meta i { color: var(--brand); margin-inline-end: 4px; }
.sg-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sg-timeline { list-style: none; padding: 0; margin: 22px auto 10px; max-width: 560px; text-align: start; position: relative; display: grid; gap: 4px; }
.sg-timeline::before { content: ""; position: absolute; top: 18px; bottom: 18px; inset-inline-start: 19px; width: 2px; background: var(--line); border-radius: 2px; }
.sg-timeline li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 8px 6px; border-radius: 12px; transition: background .3s; }
.sg-timeline li.is-now { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.sg-tl-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); color: var(--muted); font-size: 1.05rem; position: relative; z-index: 1; transition: all .3s; }
.sg-timeline li.is-now .sg-tl-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent); }
.sg-timeline li.is-done .sg-tl-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.sg-tl-title { font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-timeline li.is-now .sg-tl-title, .sg-timeline li.is-done .sg-tl-title { color: var(--ink); }
.sg-tl-state { font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.sg-timeline li.is-now .sg-tl-state { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.sg-timeline li.is-done .sg-tl-state { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.sg-tl-desc { font-size: .86rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.sg-timeline li:not(.is-now):not(.is-done) .sg-tl-desc { opacity: .75; }
.sg-tl-time { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 10px; min-width: 3em; text-align: end; }
.sg-spin { display: inline-block; animation: sgSpin 1s linear infinite; }
@keyframes sgSpin { to { transform: rotate(360deg); } }
.sg-now { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); margin: 6px 0 14px; }
.sg-now > i { animation: sgSpin 1.4s linear infinite; }
.sg-dots i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-inline-start: 3px; animation: sgDot 1.2s ease-in-out infinite; }
.sg-dots i:nth-child(2) { animation-delay: .2s; } .sg-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sgDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sg-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.sg-tip { display: flex; gap: 10px; align-items: flex-start; text-align: start; font-size: .82rem; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; line-height: 1.5; }
.sg-tip i { color: var(--brand); font-size: 1.05rem; flex: none; margin-top: 1px; }
@media (max-width: 640px) { .sg-tips { grid-template-columns: 1fr; } .sg-tl-time { display: none; } .sg-timeline li { grid-template-columns: 40px minmax(0, 1fr); } }

/* ═══════════════════════════════════════════════════════════════════════
   الموقعُ العامّ v2 (٢٧/١٠/٢٠٢٦): حركاتٌ وظهورٌ عند التمرير، بطلٌ أعمق، صفحةُ الذكاءِ الاصطناعيّ.
   كلُّ حركةٍ تُطفأ مع prefers-reduced-motion، والحالةُ النهائيّةُ تُرى بلا JavaScript.
   ═══════════════════════════════════════════════════════════════════════ */
:root { --sky: #88cef5; --sky-ink: #0e5f93; --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* ── الظهورُ عند التمرير (data-reveal) - site-public.js يضيف is-in ── */
[data-reveal] { --i: 0; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
html.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); filter: blur(6px); will-change: opacity, transform; }
/* البطل: ظهورٌ عند التحميل */
.up { animation: siteUp .9s var(--ease-out) both; }
.up.d1 { animation-delay: .1s; } .up.d2 { animation-delay: .22s; } .up.d3 { animation-delay: .34s; } .up.d4 { animation-delay: .46s; }
@keyframes siteUp { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ── الترويسةُ تنكمش عند التمرير ── */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(17,17,19,.5); background: rgba(255,255,255,.96); }
.site-header .site-container { transition: min-height .3s; }
.site-header.is-scrolled .site-container { min-height: 58px; }
.site-nav .nav-ai { display: inline-flex; align-items: center; gap: 6px; }
.site-nav .nav-ai i { color: var(--brand); font-size: .9em; animation: siteTwinkle 2.6s ease-in-out infinite; }
@keyframes siteTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.25) rotate(12deg); opacity: .7; } }

/* ── الأزرار: لمعةٌ عند المرور وحجمٌ كبير ── */
.btn-brand, .btn-ghost { position: relative; overflow: hidden; transition: transform .2s var(--ease-out), box-shadow .2s, filter .2s; }
.btn-brand::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease-out); }
.btn-brand:hover::after { transform: translateX(120%); }
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px var(--brand); }
.btn-ghost:hover { transform: translateY(-1px); }
.btn-brand.lg, .btn-ghost.lg { padding: 12px 22px; font-size: 1.02rem; border-radius: 12px; }
.btn-brand.sm, .btn-ghost.sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-glass { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 12px 22px; border-radius: 12px; text-decoration: none; color: #fff !important; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); transition: background .2s, transform .2s var(--ease-out); }
.btn-glass:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }

/* ── البطلُ v2: شبكةٌ وهالتان تتنفّسان ── */
.hero-v2 { padding: 84px 0 72px; background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-bg span:nth-child(1) { width: 520px; height: 520px; inset-inline-end: -120px; top: -160px; background: color-mix(in srgb, var(--sky) 55%, transparent); animation: heroDrift 18s ease-in-out infinite; }
.hero-bg span:nth-child(2) { width: 420px; height: 420px; inset-inline-start: -160px; bottom: -200px; background: color-mix(in srgb, var(--brand) 22%, transparent); animation: heroDrift 22s ease-in-out -8s infinite reverse; }
.hero-bg .grid { inset: 0; width: auto; height: auto; border-radius: 0; filter: none; opacity: 1; background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); animation: none; }
@keyframes heroDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 24px) scale(1.08); } }
.hero-v2 h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero-v2 .hero-note { display: flex; gap: 8px; align-items: center; }
.hero-v2 .hero-note i { color: #15803d; }

/* اللوحةُ المصغَّرة v2: أعمدةٌ تنمو، وصفوفٌ تدخل، وبطاقتان طافيتان */
.mock-v2 { position: relative; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease-out); }
[dir="ltr"] .mock-v2 { transform: perspective(1200px) rotateY(6deg) rotateX(2deg); }
.mock-v2:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock-v2 .mock-bar { align-items: center; }
.mock-v2 .mock-bar em { font-style: normal; font-size: .75rem; color: #a3a3ad; margin-inline-start: auto; }
.mock-v2 .mock-kpi { animation: siteUp .7s var(--ease-out) both; animation-delay: calc(.5s + var(--i) * .12s); }
.mock-v2 .mock-chart span { height: var(--h); transform-origin: bottom; transform: scaleY(0); animation: barGrow .9s var(--ease-out) forwards; animation-delay: calc(.7s + var(--i) * 60ms); }
@keyframes barGrow { to { transform: scaleY(1); } }
.mock-v2 .mock-chart span.hi { background: linear-gradient(180deg, var(--sky), var(--brand)); }
.mock-v2 .mock-rows div { animation: siteUp .6s var(--ease-out) both; animation-delay: calc(1.3s + var(--i) * .15s); align-items: center; gap: 10px; }
.mock-v2 .mock-rows div > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.mock-v2 .mock-rows div > span:first-child i { color: var(--sky); }
.mock-v2 .mock-rows em { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-style: normal; margin-inline-start: auto; }
.mock-v2 .mock-rows em.ok { background: #14532d; color: #4ade80; } .mock-v2 .mock-rows em.wait { background: #3b2f0a; color: #fbbf24; } .mock-v2 .mock-rows em.ai { background: color-mix(in srgb, var(--brand) 60%, #000); color: var(--sky); }
.mock-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 9px 14px; border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(17,17,19,.45), 0 0 0 1px var(--line); animation: siteFloat 4s ease-in-out infinite, siteUp .8s var(--ease-out) 1.6s both; }
.mock-float i { color: var(--brand); font-size: 1.1rem; }
.mock-float.f1 { top: 36px; inset-inline-start: -28px; }
.mock-float.f2 { bottom: 52px; inset-inline-end: -22px; animation-delay: -2s, 1.8s; }
.mock-float.f2 i { color: #25d366; }
@keyframes siteFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 920px) { .mock-float { display: none; } .mock-v2, [dir="ltr"] .mock-v2 { transform: none; } }

/* ── شريطُ الشركاء: متحرّكٌ بلا نهاية، يتوقّف عند المرور ── */
.trust-v2 .site-container { flex-direction: column; gap: 14px; }
.marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; align-items: center; animation: marquee 28s linear infinite; padding-block: 4px; }
[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 30px; width: auto; opacity: .75; transition: opacity .2s, transform .2s; filter: grayscale(1); }
.marquee-track img:hover { opacity: 1; filter: none; transform: scale(1.06); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ── شريطُ الأرقام ── */
.stats { padding: 34px 0 6px; }
.stats .site-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 18px 10px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.stat b { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat > span { font-size: 1.4rem; font-weight: 800; color: var(--brand); }
.stat small { display: block; color: var(--muted); font-weight: 700; margin-top: 6px; }
@media (max-width: 760px) { .stats .site-container { grid-template-columns: repeat(2, 1fr); } }

/* ── الوحداتُ v2: بطاقةٌ تضيء من زاويتها ── */
.modules-v2 .module { position: relative; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s; }
.modules-v2 .module::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset-inline-end: -70px; top: -70px; background: radial-gradient(circle, color-mix(in srgb, var(--sky) 45%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.modules-v2 .module:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px var(--brand); }
.modules-v2 .module:hover::before { opacity: 1; }
.modules-v2 .module-icon { transition: transform .3s var(--ease-out), background .3s; }
.modules-v2 .module:hover .module-icon { transform: rotate(-8deg) scale(1.08); background: color-mix(in srgb, var(--brand) 18%, transparent); }
.module-more { margin-top: auto; padding-top: 14px; font-size: .86rem; font-weight: 700; color: var(--brand); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.modules-v2 .module:hover .module-more { opacity: 1; transform: none; }
.module-ai { background: linear-gradient(160deg, color-mix(in srgb, var(--sky) 18%, var(--paper)), var(--paper) 60%); }
.module-ai .module-icon { background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; }
.highlights-v2 .hl-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: 1.3rem; }
.highlights-v2 .highlight i { font-size: inherit; }

/* ── ثلاثُ خطوات ── */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: how; position: relative; }
.how li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 22px; }
.how-n { position: absolute; top: -14px; inset-inline-start: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 0 0 5px var(--paper); }
.how li > i { font-size: 1.6rem; color: var(--brand); }
.how h3 { font-size: 1.05rem; font-weight: 800; margin: 10px 0 6px; }
.how p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 800px) { .how { grid-template-columns: 1fr; } }

/* ═══ الذكاءُ الاصطناعيّ: الشفقُ والمحادثةُ (مشتركةٌ بين الرئيسيّة وصفحة /ai) ═══ */
.ai-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 800; letter-spacing: .3px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.ai-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ai-aurora span { position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; filter: blur(80px); opacity: .5; mix-blend-mode: screen; }
.ai-aurora span:nth-child(1) { background: var(--sky); inset-inline-end: -20%; top: -30%; animation: aurora 26s ease-in-out infinite; }
.ai-aurora span:nth-child(2) { background: #6d5bff; inset-inline-start: -25%; bottom: -40%; animation: aurora 30s ease-in-out -9s infinite reverse; opacity: .35; }
.ai-aurora span:nth-child(3) { background: #22c3b5; inset-inline-start: 30%; top: 50%; width: 30vw; height: 30vw; animation: aurora 34s ease-in-out -17s infinite; opacity: .22; }
@keyframes aurora { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-6%, 8%) scale(1.12); } 66% { transform: translate(5%, -6%) scale(.94); } }
.ai-teaser, .ai-hero { position: relative; overflow: hidden; color: #fff; background: #151847; background-image: radial-gradient(800px 400px at 50% 110%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); }
.ai-teaser .site-container, .ai-hero .site-container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ai-teaser { padding: 80px 0; }
.ai-teaser h2, .ai-hero h1 { font-weight: 800; line-height: 1.3; }
.ai-teaser h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 12px; }
.ai-teaser p, .ai-lead { color: #c9cbe3; font-size: 1.08rem; max-width: 34em; }
.ai-teaser .ai-kicker, .ai-hero .ai-kicker { background: rgba(255,255,255,.1); color: var(--sky); border: 1px solid rgba(255,255,255,.14); }
.ai-ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.ai-ticks li { display: flex; gap: 10px; align-items: center; color: #e4e5f3; font-size: .95rem; }
.ai-ticks i { color: var(--sky); font-size: 1.05rem; }
@media (max-width: 920px) { .ai-teaser .site-container, .ai-hero .site-container { grid-template-columns: 1fr; } .ai-teaser-mock, .ai-hero-mock { max-width: 520px; } }

/* المحادثةُ المصغَّرة */
.ai-chat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; backdrop-filter: blur(12px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); overflow: hidden; font-size: .92rem; }
.ai-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ai-chat-head b { display: block; font-size: .95rem; }
.ai-chat-head small { color: #a5a8c8; display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.ai-chat-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; font-size: 1.1rem; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: aiPing 1.8s ease-out infinite; display: inline-block; }
@keyframes aiPing { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.ai-chat-body { padding: 16px; display: grid; gap: 10px; min-height: 250px; align-content: start; }
.ai-bub { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.65; }
.ai-bub.bot { background: rgba(255,255,255,.1); border-start-start-radius: 4px; justify-self: start; }
.ai-bub.user { background: var(--brand); color: #fff; border-start-end-radius: 4px; justify-self: end; }
.ai-bub.sm { font-size: .86rem; }
.ai-bub.think { color: #c9cbe3; display: inline-flex; gap: 8px; align-items: center; }
.ai-dots i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-inline-end: 3px; animation: aiDot 1.2s ease-in-out infinite; }
.ai-dots i:nth-child(2) { animation-delay: .2s; } .ai-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-tool { font-size: .78rem; color: var(--sky); display: inline-flex; gap: 6px; align-items: center; padding-inline-start: 6px; }
.ai-tool i { animation: aiSpin 1.6s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-mini { margin-top: 8px; display: grid; gap: 4px; }
.ai-mini div { display: flex; justify-content: space-between; gap: 12px; background: rgba(0,0,0,.2); border-radius: 8px; padding: 5px 10px; font-size: .84rem; }
.ai-mini .warn { color: #fbbf24; }
.ai-chat-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); color: #a5a8c8; font-size: .9rem; min-height: 44px; }
.ai-chat-input span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-chat-input span.is-typing { color: #fff; }
.ai-chat-input span.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--sky); margin-inline-start: 2px; vertical-align: -2px; animation: aiCaret 1s steps(2) infinite; }
@keyframes aiCaret { 50% { opacity: 0; } }
.ai-chat-input i { color: var(--sky); }
/* الحركةُ على المحادثة: الأجزاءُ تظهر تباعًا (JS يضبط data-step) */
[data-ai-chat] [data-ai-q], [data-ai-chat] [data-ai-tool], [data-ai-chat] [data-ai-think], [data-ai-chat] [data-ai-a] { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
[data-ai-chat][data-step] [data-ai-q], [data-ai-chat][data-step] [data-ai-tool], [data-ai-chat][data-step] [data-ai-think], [data-ai-chat][data-step] [data-ai-a] { opacity: 0; transform: translateY(8px); position: absolute; pointer-events: none; }
[data-ai-chat][data-step="1"] [data-ai-q], [data-ai-chat][data-step="2"] [data-ai-q], [data-ai-chat][data-step="3"] [data-ai-q], [data-ai-chat][data-step="4"] [data-ai-q] { opacity: 1; transform: none; position: static; }
[data-ai-chat][data-step="2"] [data-ai-tool], [data-ai-chat][data-step="3"] [data-ai-tool] { opacity: 1; transform: none; position: static; }
[data-ai-chat][data-step="3"] [data-ai-think] { opacity: 1; transform: none; position: static; }
[data-ai-chat][data-step="4"] [data-ai-a] { opacity: 1; transform: none; position: static; }
[data-ai-chat] [data-ai-think] { display: none; }
[data-ai-chat][data-step] [data-ai-think] { display: inline-flex; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-chips span { font-size: .8rem; color: #e4e5f3; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px; animation: siteUp .7s var(--ease-out) both; animation-delay: calc(1s + var(--i) * .15s); }

/* ═══ صفحةُ /ai ═══ */
.ai-hero { padding: 86px 0 70px; }
.ai-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 16px 0 14px; }
.ai-hero h1 em { font-style: normal; color: var(--sky); }
.ai-hero-note { margin-top: 12px; font-size: .88rem; color: #a5a8c8; }
.ai-strip { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 58px; z-index: 40; }
.ai-strip .site-container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.ai-strip .site-container::-webkit-scrollbar { display: none; }
.ai-strip a { flex: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.ai-strip a i { color: var(--brand); }
.ai-strip a:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--ink); }
.ai-feature .site-container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-feature.rev .ai-copy { order: 2; }
.ai-feature { scroll-margin-top: 120px; }
.ai-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 12px; }
.ai-copy > p { color: var(--ink-2); font-size: 1.05rem; max-width: 36em; }
.ai-bullets { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ai-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.ai-bullets i { color: #fff; background: var(--brand); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: .75rem; flex: none; margin-top: 3px; }
@media (max-width: 920px) { .ai-feature .site-container { grid-template-columns: 1fr; gap: 28px; } .ai-feature.rev .ai-copy { order: 0; } .ai-strip { top: 0; } }

/* نوافذُ العرض (المحاكاة) */
.ai-win { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 40px 80px -48px rgba(17,17,19,.5); display: grid; gap: 12px; }
.ai-win-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .92rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ai-win-bar i { color: var(--brand); }
.ai-win-foot { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--brand); font-weight: 700; }
.ai-delta { font-size: .8rem; font-weight: 800; color: #15803d; background: #dcfce7; padding: 2px 10px; border-radius: 999px; }
.ai-delta.soft { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.ai-pill { font-size: .74rem; font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ai-results { display: grid; gap: 8px; }
.ai-res { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: .9rem; opacity: 0; transform: translateX(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(.3s + var(--i) * .14s); }
[dir="ltr"] .ai-res { transform: translateX(-14px); }
.is-in .ai-res { opacity: 1; transform: none; }
.ai-res > i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); flex: none; }
.ai-res div { flex: 1; min-width: 0; display: grid; }
.ai-res b { font-size: .92rem; } .ai-res small { color: var(--muted); font-size: .78rem; }
.ai-res .num { font-weight: 800; } .ai-res .warn { color: #b45309; } .ai-res .up { color: #15803d; font-size: .82rem; }
/* مخطّطُ المقارنة */
.ai-chart { height: 170px; display: flex; align-items: flex-end; gap: 14px; padding: 10px 6px 0; }
.ai-bar-pair { flex: 1; display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.ai-bar-pair span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease-out); }
.ai-bar-pair .a { background: #c7cbe0; } .ai-bar-pair .b { background: linear-gradient(180deg, var(--sky), var(--brand)); transition-delay: .15s; }
.is-in .ai-bar-pair span { transform: scaleY(1); }
.ai-legend { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); }
.ai-legend span { display: inline-flex; gap: 6px; align-items: center; }
.ai-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ai-legend i.a { background: #c7cbe0; } .ai-legend i.b { background: var(--brand); } .ai-legend i.dash { border-top: 2px dashed var(--brand); height: 0; width: 16px; border-radius: 0; }
.ai-win .ai-bub.bot { background: var(--paper-2); color: var(--ink-2); font-size: .88rem; }
.ai-win .ai-bub.user { font-size: .88rem; }
/* بطاقةُ التأكيد */
.ai-confirm { border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--brand) 4%, var(--paper)); }
.ai-confirm-head { display: flex; gap: 8px; align-items: center; font-size: .92rem; margin-bottom: 10px; }
.ai-confirm-head i { color: var(--brand); font-size: 1.1rem; }
.ai-confirm-head .ai-pill { margin-inline-start: auto; }
.ai-confirm dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: .88rem; }
.ai-confirm dt { color: var(--muted); font-weight: 600; } .ai-confirm dd { margin: 0; text-align: end; }
.ai-confirm dd.strong { font-weight: 800; color: var(--brand); }
.ai-confirm-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-confirm-actions small { margin-inline-start: auto; color: var(--muted); font-size: .78rem; display: inline-flex; gap: 4px; align-items: center; }
.ai-confirm-actions .btn-brand.sm { animation: aiGlow 2.4s ease-in-out infinite; }
@keyframes aiGlow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); } }
/* قواعدُ الأتمتة */
.ai-rules { display: grid; gap: 8px; }
.ai-rule { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: .88rem; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(.3s + var(--i) * .16s); }
.is-in .ai-rule { opacity: 1; transform: none; }
.ai-when { display: inline-flex; gap: 6px; align-items: center; font-size: .76rem; font-weight: 800; color: var(--brand); }
.ai-rule small { color: var(--muted); font-size: .78rem; }
.ai-log { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); padding-top: 6px; border-top: 1px dashed var(--line); }
/* مراحلُ الاعتماد */
.ai-stages { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 0; position: relative; }
.ai-stages::before { content: ""; position: absolute; top: 18px; bottom: 18px; inset-inline-start: 17px; width: 2px; background: var(--line); }
.ai-stages li { display: flex; gap: 12px; align-items: center; padding: 8px 0; position: relative; }
.ai-stages li > i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); color: var(--muted); z-index: 1; transition: all .4s; }
.ai-stages li.done > i { background: #16a34a; border-color: #16a34a; color: #fff; }
.ai-stages li.now > i { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent); animation: aiGlow 2s ease-in-out infinite; }
.ai-stages b { display: block; font-size: .9rem; } .ai-stages small { color: var(--muted); font-size: .78rem; }
.ai-stages li:not(.done):not(.now) { opacity: .6; }
/* قراءةُ المستند */
.ai-scan { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.ai-doc { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; font-size: .8rem; box-shadow: 0 30px 60px -40px rgba(17,17,19,.5); display: grid; gap: 6px; align-content: start; }
.ai-doc b { font-size: .9rem; } .ai-doc small { color: var(--muted); }
.ai-doc-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.ai-doc-row.tot { font-weight: 800; border-bottom: 0; }
.ai-qr { margin-top: 8px; font-size: 2.2rem; color: var(--ink); line-height: 1; }
.ai-scanline { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sky) 55%, transparent) 60%, var(--brand)); opacity: 0; }
.is-in .ai-scanline { animation: aiScan 2.2s ease-in-out .3s 2; }
@keyframes aiScan { 0% { top: -60px; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.ai-fields { display: grid; gap: 8px; align-content: start; }
.ai-field { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .84rem; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .5s; transition-delay: calc(1.4s + var(--i) * .5s); }
[dir="ltr"] .ai-field { transform: translateX(10px); }
.is-in .ai-field { opacity: 1; transform: none; border-color: color-mix(in srgb, #16a34a 40%, var(--line)); }
.ai-field span { color: var(--muted); } .ai-field b { text-align: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-field i { color: #16a34a; }
.ai-scan-state { position: relative; min-height: 24px; font-size: .84rem; font-weight: 700; }
.ai-scan-state span { position: absolute; inset-inline-start: 0; top: 0; display: inline-flex; gap: 6px; align-items: center; transition: opacity .4s; }
.ai-scan-state .reading { color: var(--brand); } .ai-scan-state .ready { color: #15803d; opacity: 0; }
.is-in .ai-scan-state .reading { animation: aiHide .4s 4.2s forwards; } .is-in .ai-scan-state .ready { animation: aiShow .4s 4.2s forwards; }
@keyframes aiHide { to { opacity: 0; } } @keyframes aiShow { to { opacity: 1; } }
@media (max-width: 520px) { .ai-scan { grid-template-columns: 1fr; } }
/* التنبّؤ */
.ai-line { width: 100%; height: 150px; display: block; }
.ai-actual, .ai-forecast { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ai-forecast { stroke-dasharray: 6 6; opacity: .7; }
.ai-now { fill: #fff; stroke: var(--brand); stroke-width: 3; }
.ai-area { opacity: 0; transition: opacity 1s .8s; }
.is-in .ai-area { opacity: 1; }
.ai-actual { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s var(--ease-out) .2s; }
.ai-forecast { stroke-dasharray: 6 6; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s 1.5s; }
.is-in .ai-actual { stroke-dashoffset: 0; }
.is-in .ai-forecast { opacity: .7; }
.ai-reorder { display: flex; gap: 12px; align-items: center; background: var(--paper-2); border-radius: 12px; padding: 10px 12px; font-size: .88rem; }
.ai-reorder > i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); flex: none; }
.ai-reorder div { flex: 1; display: grid; } .ai-reorder small { color: var(--muted); font-size: .78rem; }
/* القنواتُ والضمانات */
.ai-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-channel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s var(--ease-out), box-shadow .25s; }
.ai-channel:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px var(--brand); }
.ai-channel h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; } .ai-channel p { color: var(--muted); font-size: .93rem; margin: 0; }
.ai-guard { background: radial-gradient(700px 300px at 50% 0%, color-mix(in srgb, var(--sky) 20%, transparent), transparent 70%); }
.ai-guards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-guard-item { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ai-guard-item > i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; font-size: 1.2rem; flex: none; }
.ai-guard-item h3 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; } .ai-guard-item p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .ai-channels, .ai-guards { grid-template-columns: 1fr; } }

/* ── احترامُ تفضيلِ تقليلِ الحركة: كلُّ شيءٍ ساكنٌ في حالتِه النهائيّة ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
    [data-reveal] { opacity: 1; transform: none; filter: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .mock-v2, [dir="ltr"] .mock-v2 { transform: none; }
    [data-ai-chat][data-step] [data-ai-q], [data-ai-chat][data-step] [data-ai-a] { opacity: 1; transform: none; position: static; }
}

/* ── باقةُ التجربة في الخطوةِ الثالثة من التسجيل (المالك ٢٩/١٠): بطاقاتٌ راديو، المختارةُ مضاءةٌ بعلامةِ صحّ، والسعرُ وأبرزُ الحدودِ من المصفوفة ── */
.sg-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-plan { position: relative; display: grid; gap: 6px; border: 2px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; cursor: pointer; background: var(--paper); transition: border-color .15s, box-shadow .15s, transform .15s; }
.sg-plan input { position: absolute; opacity: 0; pointer-events: none; }
.sg-plan:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.sg-plan.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--paper)); box-shadow: 0 14px 30px -24px var(--brand); }
.sg-plan.pop { animation: sgPlanPop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes sgPlanPop { 0% { transform: scale(.97); } 60% { transform: scale(1.015); } 100% { transform: none; } }
.sg-plan-badge { position: absolute; top: -10px; inset-inline-start: 12px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; line-height: 1.4; }
.sg-plan-badge--ent { background: var(--night); display: inline-flex; gap: 4px; align-items: center; }
.sg-plan-name { font-weight: 800; font-size: 1rem; margin-top: 2px; }
.sg-plan-price { display: flex; align-items: baseline; gap: 4px; color: var(--ink-2); min-height: 22px; }
.sg-plan-price b { font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1; }
.sg-plan-price small { font-size: .78rem; color: var(--muted); font-weight: 700; }
.sg-plan-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sg-plan-keys li { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.sg-plan-keys li b { color: var(--ink-2); font-weight: 700; }
.sg-plan-tick { position: absolute; top: 10px; inset-inline-end: 10px; color: var(--brand); font-size: 1.1rem; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s; }
.sg-plan.is-on .sg-plan-tick { opacity: 1; transform: none; }
.sg-plan.is-custom.is-on { border-color: var(--night); background: color-mix(in srgb, var(--night) 6%, var(--paper)); box-shadow: 0 14px 30px -24px var(--night); }
.sg-plan.is-custom .sg-plan-tick { color: var(--night); }
[data-sg-plans-field] .form-text { display: block; line-height: 1.6; }
[data-sg-plans-field] .form-text i { margin-inline-end: 4px; }
[data-sg-plans-field] .form-text i { color: var(--brand); }
[data-sg-plans-field] .form-text a { color: var(--brand); font-weight: 700; text-decoration: none; }
.sg-aside-plan { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 9px 12px; margin: 0 0 16px; font-size: .9rem; color: #e4e4e7; animation: sgPerk .4s ease both; }
.sg-aside-plan i { color: #fbbf24; }
.sg-aside-plan b { color: #fff; font-weight: 800; }
@media (max-width: 480px) { .sg-plans { grid-template-columns: 1fr; } }
/* بطاقاتُ الأسعار: زرُّ التجربةِ على شريطِ «الأعمال بلا حدود» */
.plan-ent-cta .plan-ent-try { display: inline-flex; gap: 6px; align-items: center; color: #fff; opacity: .85; font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }
.plan-ent-cta .plan-ent-try:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════
   المرحلة ٣ للموقع (المالك ٣٠/١٠/٢٠٢٦): المنتجات (POS/HR/CRM) والقطاعات (/sectors)،
   القوائم المنسدلة، أيقونة التواصل العائمة، شعار «ذكيّ · سهل · شامل»، وقسم «شامل».
   ═══════════════════════════════════════════════════════════════════════ */

/* ── القوائم المنسدلة في الترويسة: تُفتح بالمرور وبالنقر (اللمس) وبالتركيز ── */
.site-dd { position: relative; }
.site-dd-btn { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.site-dd-btn i { font-size: .68rem; transition: transform .2s; }
.site-dd:hover .site-dd-btn, .site-dd.is-open .site-dd-btn, .site-dd.is-active .site-dd-btn { background: var(--paper-2); color: var(--ink); }
.site-dd:hover .site-dd-btn i, .site-dd.is-open .site-dd-btn i { transform: rotate(180deg); }
.site-dd-menu { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 30px 60px -30px rgba(17,17,19,.35), 0 8px 24px -16px rgba(17,17,19,.2); padding: 10px; z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .22s var(--ease-out), visibility 0s .2s; }
.site-dd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.site-dd:hover .site-dd-menu, .site-dd.is-open .site-dd-menu, .site-dd:focus-within .site-dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-dd-products { width: 350px; display: grid; gap: 2px; }
.site-dd-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.site-dd-item:hover, .site-dd-item.is-on { background: var(--paper-2); }
.site-dd-item > i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: 1.1rem; flex: none; }
.site-dd-item span { display: grid; line-height: 1.35; }
.site-dd-item b { font-size: .93rem; } .site-dd-item small { color: var(--muted); font-size: .78rem; }
.site-dd-ai > i { background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; }
.site-dd-sectors { width: min(900px, calc(100vw - 40px)); padding: 18px 18px 12px; }
.site-dd-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.site-dd-col h5 { font-size: .8rem; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.site-dd-col h5 i { color: var(--brand); }
.site-dd-col a { display: block; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: 5px 8px; border-radius: 8px; }
.site-dd-col a:hover { background: var(--paper-2); color: var(--brand); }
.site-dd-all { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; font-size: .88rem; color: var(--brand); text-decoration: none; }
@media (max-width: 1100px) { .site-dd-sectors { width: min(720px, calc(100vw - 40px)); } .site-dd-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
    .site-dd-menu, .site-dd:hover .site-dd-menu, .site-dd:focus-within .site-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 6px; display: none; width: auto; }
    .site-dd.is-open .site-dd-menu { display: grid; }
    .site-dd-btn { width: 100%; justify-content: space-between; }
    .site-dd:hover .site-dd-btn i { transform: none; } .site-dd.is-open .site-dd-btn i { transform: rotate(180deg); }
    .site-dd-cols { grid-template-columns: 1fr; gap: 10px; }
    .site-dd-item { padding: 8px 10px; }
}

/* ── الشعارُ الثلاثيّ «ذكيّ · سهل · شامل» ── */
.hero-tagline { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 16px; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: .98rem;
    background: color-mix(in srgb, var(--brand) 8%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
.hero-tagline span { display: inline-flex; align-items: center; gap: 6px; }
.hero-tagline .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.footer-tagline { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; color: var(--brand); font-size: .9rem; }
.footer-tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); opacity: .5; }
.site-footer .cols-5 { grid-template-columns: 1.6fr 1fr 1fr .9fr 1.2fr; }
@media (max-width: 1000px) { .site-footer .cols-5 { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .site-footer .cols-5 { grid-template-columns: 1fr 1fr; } }

/* ── شامل: الأساسُ + الإضافات ── */
.allin-grid { display: grid; grid-template-columns: 1.05fr auto 1.45fr; gap: 18px; align-items: stretch; }
.allin-label { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .4px; color: var(--muted); margin-bottom: 10px; }
.allin-core { text-decoration: none; background: var(--night); color: #fff !important; border-radius: 22px; padding: 28px; display: flex; flex-direction: column;
    background-image: radial-gradient(420px 220px at 90% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); }
.allin-core .allin-label { color: var(--sky); }
.allin-core h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 8px; }
.allin-core p { color: #c9cbe3; font-size: .95rem; }
.allin-core ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; }
.allin-core li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .95rem; }
.allin-core li i { color: var(--sky); }
.allin-plus { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--brand); font-size: 1.1rem; align-self: center; box-shadow: 0 10px 24px -14px var(--brand); }
.allin-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.allin-addons .allin-label { grid-column: 1 / -1; margin-bottom: 0; }
.allin-addon { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center;
    transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s; }
.allin-addon:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 20px 36px -28px var(--brand); }
.allin-addon > i { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: 1.15rem; }
.allin-addon b { font-size: .98rem; } .allin-addon small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.allin-addon.is-ai > i { background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; }
.allin-foot { text-align: center; color: var(--muted); max-width: 60em; margin: 26px auto 0; font-size: .95rem; }
@media (max-width: 900px) { .allin-grid { grid-template-columns: 1fr; } .allin-plus { justify-self: center; } }
@media (max-width: 520px) { .allin-addons { grid-template-columns: 1fr; } }

/* ── شرائحُ القطاعات (الرئيسيّة، صفحةُ القطاع، صفحةُ المنتج) ── */
.sec-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sec-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink-2);
    transition: border-color .2s, color .2s, transform .2s var(--ease-out); }
.sec-chip i { color: var(--brand); }
.sec-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.sec-chip-all { background: var(--brand); color: #fff !important; border-color: var(--brand); }
.sec-chip-all i { color: #fff; }
.sec-related .sec-chips { justify-content: flex-start; margin-top: 10px; }

/* ── فهرسُ القطاعات ── */
.sec-index-hero { padding: 64px 0 36px; background: linear-gradient(180deg, var(--paper-2), var(--paper)); text-align: center; }
.sec-index-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 10px 0; }
.sec-index-hero p { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 auto; }
.sec-group { padding: 48px 0; }
.sec-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-group-head h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.sec-group-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-size: 1.2rem; }
.sec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-card { text-decoration: none; display: flex; flex-direction: column; }
.sec-card .module-more, .sec-sol .module-more { opacity: 1; transform: none; }
@media (max-width: 900px) { .sec-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sec-cards { grid-template-columns: 1fr; } }

/* ── صفحةُ القطاع ── */
.sec-hero { position: relative; overflow: hidden; padding: 44px 0 56px; background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.sec-hero-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; }
.sec-hero-bg span:nth-child(1) { width: 420px; height: 420px; background: var(--sky); inset-inline-end: -120px; top: -160px; }
.sec-hero-bg span:nth-child(2) { width: 320px; height: 320px; background: color-mix(in srgb, var(--brand) 40%, transparent); inset-inline-start: -120px; bottom: -180px; }
.sec-hero .site-container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.site-crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.site-crumbs a { text-decoration: none; } .site-crumbs a:hover { color: var(--brand); } .site-crumbs i { font-size: .65rem; }
.sec-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; margin: 8px 0 12px; line-height: 1.3; }
.sec-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 36em; }
.sec-modules { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sec-modules-label { font-size: .82rem; font-weight: 800; color: var(--muted); margin-inline-end: 4px; }
.sec-module { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.sec-module i { color: var(--brand); } .sec-module:hover { border-color: var(--brand); color: var(--brand); }
.sec-hero-mock .ai-win { box-shadow: 0 40px 80px -40px rgba(17,17,19,.45); }
@media (max-width: 920px) { .sec-hero .site-container { grid-template-columns: 1fr; } .sec-hero-mock { max-width: 520px; } }
.sec-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-pain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid #f59e0b; }
.sec-pain-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #fef3c7; color: #b45309; font-size: 1.2rem; margin-bottom: 12px; }
.sec-pain h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; } .sec-pain p { color: var(--muted); font-size: .93rem; margin: 0; }
.sec-sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sec-sol { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s; }
.sec-sol:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 24px 40px -28px var(--brand); }
.sec-sol h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; } .sec-sol p { color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.sec-features-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.sec-features-grid h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 10px; }
.sec-bullets { grid-template-columns: 1fr 1fr; margin: 0; }
.sec-logos { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .sec-pain-grid, .sec-sol-grid, .sec-features-grid, .sec-bullets { grid-template-columns: 1fr; } .sec-features-grid { gap: 20px; } }

/* ── الأسئلةُ الشائعة ── */
.site-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.site-faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.site-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 800; font-size: 1rem; }
.site-faq-item summary::-webkit-details-marker { display: none; }
.site-faq-item summary i { color: var(--brand); transition: transform .25s var(--ease-out); flex: none; }
.site-faq-item[open] summary i { transform: rotate(45deg); }
.site-faq-item[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.site-faq-item p { margin: 0; padding: 0 0 18px; color: var(--ink-2); line-height: 1.8; }

/* ── صفحةُ المنتج ── */
.pd-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-guards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .pd-guards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pd-guards { grid-template-columns: 1fr; } }
.pd-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-kpi { background: var(--paper-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(.3s + var(--i) * .12s); }
.is-in .pd-kpi { opacity: 1; transform: none; }
.pd-kpi small { color: var(--muted); font-size: .78rem; } .pd-kpi b { font-size: 1.25rem; font-weight: 800; }
.pd-kpi.up b { color: #15803d; } .pd-kpi.warn b { color: #b45309; }

/* محاكياتُ البطل (زجاجٌ على الليل) */
.pm { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; backdrop-filter: blur(12px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); overflow: hidden; font-size: .9rem; color: #fff; }
.pm-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 800; }
.pm-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.pm-online { margin-inline-start: auto; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--sky); display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 999px; }
.pm [style*="--i"] { animation: pmIn .6s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * .12s); }
@keyframes pmIn { from { opacity: 0; transform: translateY(10px); } }
.pm-pos-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; padding: 12px; }
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.pm-tile { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 8px; display: grid; justify-items: center; gap: 4px; font-size: .78rem; text-align: center; }
.pm-tile i { font-size: 1.3rem; color: var(--sky); } .pm-tile b { font-size: .85rem; }
.pm-ticket { background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.pm-ticket-head { display: flex; justify-content: space-between; font-weight: 800; font-size: .82rem; color: #c9cbe3; padding-bottom: 6px; border-bottom: 1px dashed rgba(255,255,255,.2); }
.pm-line { display: flex; justify-content: space-between; font-size: .84rem; } .pm-line small { color: #a5a8c8; }
.pm-line-add { color: #fde68a; } .pm-line-add i { font-size: .75rem; margin-inline-end: 4px; }
.pm-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.2); }
.pm-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.pm-pay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; border-radius: 9px; background: rgba(255,255,255,.1); font-size: .8rem; font-weight: 700; }
.pm-pay-btn.is-on { background: var(--sky); color: #0e2a44; }
.pm-qr { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: #a5a8c8; margin-top: 2px; } .pm-qr i { font-size: 1.1rem; color: #fff; }
.pm-hr-body { padding: 12px; display: grid; gap: 10px; }
.pm-emp { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.pm-emp div { display: grid; flex: 1; } .pm-emp b { font-size: .95rem; } .pm-emp small { color: #a5a8c8; font-size: .78rem; }
.pm-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--brand)); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.pm-chip { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.pm-chip.ok { background: #dcfce7; color: #15803d; } .pm-chip.wait { background: #fef3c7; color: #b45309; }
.pm-punches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pm-punch { background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px; display: grid; gap: 2px; text-align: center; font-size: .78rem; }
.pm-punch small { color: #a5a8c8; } .pm-punch.late b:first-of-type { color: #fde68a; }
.pm-payroll { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; display: grid; gap: 8px; }
.pm-payroll-head { display: flex; justify-content: space-between; font-weight: 800; }
.pm-payroll-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.pm-payroll-bar i { width: var(--w); display: block; }
.pm-payroll-bar .base, .pm-payroll-legend .base { background: var(--sky); } .pm-payroll-bar .allow, .pm-payroll-legend .allow { background: #a78bfa; } .pm-payroll-bar .ded, .pm-payroll-legend .ded { background: #fb7185; }
.pm-payroll-legend { display: flex; gap: 14px; font-size: .74rem; color: #c9cbe3; } .pm-payroll-legend span { display: inline-flex; gap: 5px; align-items: center; } .pm-payroll-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.pm-req { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.pm-req > i { font-size: 1.3rem; color: var(--sky); } .pm-req div { flex: 1; display: grid; } .pm-req b { font-size: .9rem; } .pm-req small { color: #a5a8c8; font-size: .76rem; }
.pm-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 12px 6px; }
.pm-col { background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.pm-col-head { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 800; color: #c9cbe3; padding: 0 2px 4px; } .pm-col-head b { background: rgba(255,255,255,.12); border-radius: 999px; padding: 0 7px; }
.pm-card { background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px; display: grid; gap: 6px; font-size: .78rem; }
.pm-card-foot { display: flex; justify-content: space-between; align-items: center; color: #a5a8c8; font-size: .74rem; } .pm-card-foot i { color: var(--sky); }
.pm-wa { display: flex; align-items: center; gap: 12px; margin: 0 12px 12px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.3); border-radius: 14px; padding: 10px 12px; }
.pm-wa > i { font-size: 1.4rem; color: #25d366; } .pm-wa div { flex: 1; display: grid; } .pm-wa b { font-size: .88rem; } .pm-wa small { color: #c9cbe3; font-size: .76rem; }
@media (max-width: 480px) { .pm-pos-body { grid-template-columns: 1fr; } }

/* ── أيقونةُ التواصلِ المباشر في الركن ── */
.site-fab { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 70; display: grid; justify-items: end; gap: 12px; }
.site-fab-btn { position: relative; border: 0; height: 58px; padding: 0 20px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), #4e52d9); color: #fff; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer;
    box-shadow: 0 18px 40px -16px var(--brand); transition: transform .2s var(--ease-out), box-shadow .2s; }
.site-fab-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px var(--brand); }
.site-fab-btn i { font-size: 1.35rem; }
.site-fab-btn .close-ico { display: none; }
.site-fab.is-open .site-fab-btn .open-ico { display: none; } .site-fab.is-open .site-fab-btn .close-ico { display: inline; }
.site-fab.is-open .site-fab-label { display: none; }
.site-fab.is-open .site-fab-btn { padding: 0; width: 58px; justify-content: center; }
.site-fab-pulse { position: absolute; inset: 0; border-radius: 999px; animation: fabPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.site-fab.is-open .site-fab-pulse { animation: none; }
.site-fab-panel { width: min(340px, calc(100vw - 44px)); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(17,17,19,.5); overflow: hidden; animation: fabIn .25s var(--ease-out); }
.site-fab-panel[hidden] { display: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.site-fab-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: linear-gradient(135deg, var(--night), #26295f); color: #fff; }
.site-fab-head div { display: grid; line-height: 1.35; } .site-fab-head b { font-size: 1rem; } .site-fab-head small { color: #c9cbe3; font-size: .8rem; }
.site-fab-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.3rem; color: var(--sky); flex: none; }
.site-fab-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; border-top: 1px solid var(--line); transition: background .15s; }
.site-fab-item:hover { background: var(--paper-2); }
.site-fab-item > i:first-child { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); flex: none; }
.site-fab-item.wa > i:first-child { background: #dcfce7; color: #15803d; }
.site-fab-item.cta > i:first-child { background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; }
.site-fab-item span { display: grid; flex: 1; min-width: 0; line-height: 1.35; } .site-fab-item b { font-size: .92rem; } .site-fab-item small { color: var(--muted); font-size: .78rem; }
.site-fab-go { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .site-fab { inset-inline-end: 14px; bottom: 14px; } .site-fab-label { display: none; } .site-fab-btn { width: 58px; padding: 0; justify-content: center; } }

@media (prefers-reduced-motion: reduce) { .pm [style*="--i"] { animation: none; } .site-fab-pulse { animation: none; } .pd-kpi { opacity: 1; transform: none; } .site-fab-panel { animation: none; } }

/* ── محادثةُ الموقع (المالك ٣٠/١٠: كمحادثةِ قيود، والمساعدُ يردّ أوّلًا) ── */
.site-fab-item.chat { border-top: 0; cursor: pointer; width: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent); font: inherit; text-align: start; }
.site-fab-item.chat > i:first-child { background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; }
.site-fab.is-chat .site-fab-panel { width: min(390px, calc(100vw - 44px)); }
.site-chat { display: flex; flex-direction: column; height: min(540px, calc(100vh - 130px)); }
.site-chat[hidden] { display: none; }
.site-chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: linear-gradient(135deg, var(--night), #26295f); color: #fff; }
.site-chat-head > div { display: grid; line-height: 1.3; flex: 1; min-width: 0; } .site-chat-head b { font-size: .95rem; }
.site-chat-head small { color: #c9cbe3; font-size: .76rem; display: flex; align-items: center; gap: 6px; }
.site-chat-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.site-chat[data-status="waiting"] .site-chat-head small::before { background: #f59e0b; }
.site-chat[data-status="closed"] .site-chat-head small::before { background: #9ca3af; }
.site-chat-back { border: 0; background: transparent; color: #fff; font-size: 1.15rem; cursor: pointer; padding: 4px; }
.site-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); scroll-behavior: smooth; }
.sc-b { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; animation: scIn .25s var(--ease-out); }
.sc-visitor { align-self: flex-end; background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.sc-assistant, .sc-agent { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-end-start-radius: 4px; }
.sc-agent small { display: block; font-size: .72rem; color: var(--brand); font-weight: 800; margin-bottom: 2px; }
.sc-system { align-self: center; background: transparent; color: var(--muted); font-size: .78rem; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.site-chat-typing { padding: 4px 14px; background: var(--paper-2); } .site-chat-typing[hidden] { display: none; }
.site-chat-typing .ai-dots { display: inline-flex; gap: 4px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.site-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.site-chat-form[hidden] { display: none; }
.site-chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: .92rem; }
.site-chat-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.site-chat-form button { border: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1rem; cursor: pointer; flex: none; }
.site-chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 14px 10px; font-size: .74rem; color: var(--muted); background: var(--paper); }
.site-chat-foot button { border: 0; background: transparent; color: var(--brand); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; padding: 0; white-space: nowrap; }
.site-chat-foot button[hidden] { display: none; }
.site-chat-contact { padding: 10px 14px; border-top: 1px solid var(--line); background: #fffbeb; display: grid; gap: 6px; }
.site-chat-contact[hidden] { display: none; }
.site-chat-contact small { font-weight: 700; color: #92400e; }
.site-chat-contact input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .86rem; }
.site-chat-contact .btn-brand.sm { padding: 6px 12px; font-size: .86rem; justify-self: start; }
@keyframes scIn { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 560px) { .site-chat { height: min(72vh, 560px); } }

/* شرحُ صفٍّ في المقارنة (رصيدُ الذكاء): ⓘ تُظهر صندوقًا عند المرور أو التركيز */
.cmp-hint { position: relative; display: inline-block; color: var(--brand, #1f4fa8); cursor: help; margin-inline-start: 4px; }
.cmp-hint-box { display: none; position: absolute; inset-inline-start: 50%; bottom: calc(100% + 8px); transform: translateX(50%); width: min(280px, 80vw); padding: 10px 12px; border-radius: 10px; background: #102a43; color: #fff; font-size: .85rem; font-weight: 500; line-height: 1.6; text-align: start; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
[dir="ltr"] .cmp-hint-box { transform: translateX(-50%); }
.cmp-hint:hover .cmp-hint-box, .cmp-hint:focus .cmp-hint-box { display: block; }
