/* ================================================================
   الصفحات العامة: التعريف، الأسعار، التسجيل — مستقلة عن Bootstrap.
   نفس هوية النظام (كحلي + ذهبي)، وضع فاتح/داكن، RTL، تعمل من 320px.
   ================================================================ */

:root {
    --bg: #f5f7fa;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f9fb;
    --line: #dfe5ed;
    --line-soft: #eef2f7;
    --fg: #16202e;
    --fg-soft: #4a5a70;
    --fg-muted: #66758a;

    --navy-900: #0c1626;
    --navy-800: #11203a;
    --navy-700: #1a2f4f;
    --navy-fg: #a9bad2;

    --gold: #cda233;
    --gold-strong: #b98f21;
    --gold-soft: #f6efd9;
    --on-gold: #1a1405;

    --ok: #14794b;
    --ok-soft: #e6f4ec;
    --danger: #b42318;
    --danger-soft: #fdeceb;
    --info: #175cd3;

    --hero-a: #11203a;
    --hero-b: #1d3557;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(12, 22, 38, .06), 0 1px 3px rgba(12, 22, 38, .07);
    --shadow-md: 0 2px 4px rgba(12, 22, 38, .05), 0 10px 24px rgba(12, 22, 38, .09);
    --shadow-lg: 0 10px 20px rgba(12, 22, 38, .10), 0 30px 60px rgba(12, 22, 38, .18);
    --ease: cubic-bezier(.22, 1, .36, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1320;
        --bg-alt: #0f1a2b;
        --surface: #132137;
        --surface-2: #0f1b2e;
        --line: #24364f;
        --line-soft: #1b2b42;
        --fg: #e8edf5;
        --fg-soft: #b8c4d6;
        --fg-muted: #8a9ab0;
        --gold-soft: #3a2f12;
        --ok-soft: #0f3324;
        --danger-soft: #3d1512;
        --hero-a: #08111e;
        --hero-b: #13284a;
        --info: #7fb0ff;
        --shadow-md: 0 2px 4px rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .35);
        --shadow-lg: 0 10px 20px rgba(0, 0, 0, .3), 0 30px 60px rgba(0, 0, 0, .45);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b1320;
    --bg-alt: #0f1a2b;
    --surface: #132137;
    --surface-2: #0f1b2e;
    --line: #24364f;
    --line-soft: #1b2b42;
    --fg: #e8edf5;
    --fg-soft: #b8c4d6;
    --fg-muted: #8a9ab0;
    --gold-soft: #3a2f12;
    --ok-soft: #0f3324;
    --danger-soft: #3d1512;
    --hero-a: #08111e;
    --hero-b: #13284a;
    --info: #7fb0ff;
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, .3), 0 30px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

/* ───────── أساسيات ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.pub {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Segoe UI", "Noto Kufi Arabic", "Dubai", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}
.pub img, .pub svg { max-width: 100%; }
.pub a { color: var(--info); text-decoration: none; }
.pub a:hover { text-decoration: underline; }
.pub h1, .pub h2, .pub h3 { line-height: 1.35; margin: 0 0 .5em; color: var(--fg); letter-spacing: -.01em; }
.pub p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--fg-muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 2px; }

/* ───────── أزرار ───────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--r-sm); border: 1.5px solid transparent;
    font: inherit; font-weight: 700; font-size: 15px; line-height: 1.4; cursor: pointer;
    text-decoration: none !important; transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-gold { background: var(--gold); color: var(--on-gold) !important; box-shadow: 0 6px 18px rgba(205, 162, 51, .28); }
.btn-gold:hover { background: var(--gold-strong); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--fg) !important; border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); background: var(--gold-soft); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 17px; border-radius: var(--r-md); }
.btn-block { display: flex; width: 100%; }

/* ───────── الشريط العلوي ───────── */
.pub-top {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--navy-800) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.pub-top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 800; font-size: 17px; text-decoration: none !important; }
.pub-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; flex: none; }
.pub-brand-mark svg { width: 20px; height: 20px; }
.pub-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.pub-nav a:not(.btn) { color: var(--navy-fg); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; text-decoration: none; }
.pub-nav a:not(.btn):hover, .pub-nav a.on { color: #fff; background: rgba(255, 255, 255, .07); }
.pub-nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .12); margin: 0 6px; }
.theme-btn { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: var(--navy-fg); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
    :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; width: 38px; height: 38px; border-radius: 10px; color: #fff; cursor: pointer; place-items: center; border: 1px solid rgba(255, 255, 255, .14); margin-inline-start: auto; }
.nav-burger svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
    .nav-burger { display: grid; }
    .pub-nav {
        display: none; position: absolute; top: 64px; inset-inline: 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
        background: var(--navy-800); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg);
    }
    .pub-nav a:not(.btn) { padding: 11px 12px; }
    .pub-nav .btn { margin-top: 6px; }
    .pub-nav-sep { display: none; }
    .nav-toggle:checked ~ .pub-nav { display: flex; }
    .pub-brand span:last-child { font-size: 15px; }
}

/* ───────── البطل ───────── */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 480px at 10% -10%, rgba(205, 162, 51, .18), transparent 60%),
        radial-gradient(1000px 600px at 90% 0%, var(--hero-b), transparent 65%),
        linear-gradient(180deg, var(--hero-a), var(--navy-900));
    padding: 64px 0 88px;
}
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.hero .eyebrow { background: rgba(205, 162, 51, .12); border: 1px solid rgba(205, 162, 51, .3); padding: 5px 12px; border-radius: 99px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(205, 162, 51, .2); }
.hero h1 { color: #fff; font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; line-height: 1.25; }
.hero h1 .hl { color: var(--gold); }
.hero .lead { color: #c4d1e3; font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #a9bad2; font-size: 14px; }
.hero-notes li { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--gold); }

/* لقطات مرسومة بـ CSS */
.hero-art { position: relative; min-height: 420px; min-width: 0; }
.mock-win {
    position: absolute; inset-inline-end: 0; top: 10px; width: 92%;
    background: #f5f7fa; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
    color: #16202e; transform: perspective(1400px) rotateY(6deg) rotateX(2deg); transform-origin: left center;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #e7ecf2; font-size: 12px; color: #66758a; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d2de; }
.mock-bar i:nth-child(1) { background: #f17b6f; } .mock-bar i:nth-child(2) { background: #f4c552; } .mock-bar i:nth-child(3) { background: #5cc489; }
.mock-bar span { margin-inline-start: auto; }
.mock-body { display: flex; min-height: 300px; }
.mock-side { width: 54px; background: #11203a; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.mock-side b { display: block; height: 10px; border-radius: 4px; background: rgba(169, 186, 210, .25); }
.mock-side b.on { background: var(--gold); }
.mock-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { background: #fff; border: 1px solid #dfe5ed; border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.mock-kpis small { font-size: 10px; color: #66758a; }
.mock-kpis strong { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-kpis em { font-style: normal; font-size: 10px; color: #66758a; }
.mock-kpis em.up { color: #14794b; }
.mock-chart { background: #fff; border: 1px solid #dfe5ed; border-radius: 9px; height: 110px; padding: 12px; display: flex; align-items: flex-end; gap: 6%; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #24405f, #11203a); }
.mock-chart span:nth-last-child(3) { background: linear-gradient(180deg, #e0bb57, var(--gold)); }
.mock-rows { background: #fff; border: 1px solid #dfe5ed; border-radius: 9px; padding: 6px 10px; }
.mock-rows p { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid #eef2f7; }
.mock-rows p:last-child { border: 0; }
.mock-rows i { width: 18px; height: 18px; border-radius: 6px; background: #eef2f7; flex: none; }
.mock-rows b { height: 8px; width: var(--w); border-radius: 4px; background: #dfe5ed; }
.mock-rows em { margin-inline-start: auto; font-style: normal; font-size: 10px; color: #14794b; background: #e6f4ec; padding: 1px 8px; border-radius: 99px; }
.mock-rows em.warn { color: #a5620a; background: #fdf2e2; }

.mock-phone {
    position: absolute; inset-inline-start: 0; bottom: -20px; width: 200px;
    background: #fff; color: #16202e; border-radius: 28px; padding: 26px 12px 14px;
    border: 7px solid #0c1626; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 9px;
}
.mock-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 60px; height: 6px; border-radius: 6px; background: #0c1626; }
.mock-menu-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mock-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), #e8c766); flex: none; }
.mock-chips { display: flex; gap: 5px; }
.mock-chips span { font-size: 10px; padding: 2px 9px; border-radius: 99px; background: #eef2f7; color: #4a5a70; white-space: nowrap; }
.mock-chips span.on { background: #11203a; color: #fff; }
.mock-dish { display: flex; align-items: center; gap: 8px; background: #f7f9fb; border-radius: 10px; padding: 6px; }
.mock-dish p { margin: 0; display: flex; flex-direction: column; line-height: 1.4; }
.mock-dish b { font-size: 12px; }
.mock-dish small { font-size: 10px; color: var(--gold-strong); font-weight: 700; }
.img { display: block; width: 42px; height: 42px; border-radius: 8px; flex: none; }
.img.i1 { background: radial-gradient(circle at 35% 35%, #e9a15b, #a24a1d); }
.img.i2 { background: radial-gradient(circle at 35% 35%, #f3c46a, #c26a1a); }
.img.i3 { background: radial-gradient(circle at 35% 35%, #9bd27a, #3f8a3a); }
.img.i4 { background: radial-gradient(circle at 35% 35%, #f6d48a, #b5701e); }
.mock-qr {
    position: absolute; inset-inline-start: 170px; top: 18px; background: #fff; color: #16202e; padding: 10px; border-radius: 12px;
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px;
}
.mock-qr span {
    width: 62px; height: 62px;
    background:
        linear-gradient(90deg, #11203a 50%, transparent 0) 0 0 / 12px 12px,
        linear-gradient(#11203a 50%, transparent 0) 0 0 / 12px 12px;
    -webkit-mask: conic-gradient(from 90deg, #000 25%, transparent 0 50%, #000 0 75%, transparent 0) 0 0 / 15px 15px;
    mask: conic-gradient(from 90deg, #000 25%, transparent 0 50%, #000 0 75%, transparent 0) 0 0 / 15px 15px;
    outline: 5px solid #11203a; outline-offset: -5px; border-radius: 3px;
}

/* ───────── شريط المزايا ───────── */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { padding: 22px 18px; display: flex; flex-direction: column; border-inline-start: 1px solid var(--line-soft); }
.strip-in > div:first-child { border-inline-start: 0; }
.strip strong { font-size: 16px; }
.strip span { color: var(--fg-muted); font-size: 14px; }

/* ───────── أقسام ───────── */
.sec { padding: 84px 0; }
.sec.pt-0 { padding-top: 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2, .show-copy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.sec-head p { color: var(--fg-soft); font-size: 17px; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.feat h3 { font-size: 18px; margin-top: 14px; }
.feat p { color: var(--fg-soft); font-size: 15px; margin: 0; }
.feat-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; }
.feat-ic svg { width: 26px; height: 26px; }
.c1 { background: #fdf3dc; color: #a37a12; } .c2 { background: #e5efff; color: #175cd3; } .c3 { background: #e8f1fb; color: #0b5fa5; }
.c4 { background: #efe9fd; color: #6941c6; } .c5 { background: #e6f4ec; color: #14794b; } .c6 { background: #fdeee6; color: #b54708; }
.c7 { background: #e9eef6; color: #24405f; }
:root[data-theme="dark"] .feat-ic { background: rgba(255, 255, 255, .06); filter: brightness(1.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feat-ic { background: rgba(255, 255, 255, .06); filter: brightness(1.5); } }
.feat-cta { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); border-color: transparent; color: #fff; display: flex; flex-direction: column; }
.feat-cta h3 { color: #fff; margin-top: 0; }
.feat-cta p { color: #c4d1e3; flex: 1; margin-bottom: 18px; }
.feat-cta .btn { align-self: flex-start; }

/* عرض بصورة */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show.rev .show-copy { order: 2; }
.show-copy { min-width: 0; }
.show-art { position: relative; min-height: 380px; display: grid; place-items: center; min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-soft); }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--ok); background: var(--ok-soft); border-radius: 50%; padding: 4px; margin-top: 2px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow svg { width: 18px; height: 18px; }
.mock-phone.big { position: relative; inset: auto; width: 250px; bottom: auto; }
.mock-cover { height: 80px; border-radius: 12px; background: linear-gradient(135deg, #11203a, #24405f); position: relative; margin-bottom: 14px; }
.mock-cover .mock-logo { position: absolute; bottom: -14px; inset-inline-start: 12px; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 12px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-grid div { background: #f7f9fb; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; font-size: 12px; line-height: 1.5; }
.mock-grid .img { width: 100%; height: 64px; margin-bottom: 4px; }
.mock-grid small { color: var(--gold-strong); font-weight: 700; font-size: 11px; }

/* مخطط العمل بلا إنترنت */
.flow { width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flow-node {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 8px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow-sm); font-size: 14px;
}
.flow-node small { color: var(--fg-muted); font-size: 12px; }
.flow-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-soft); }
.flow-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-node.hub, .flow-node.cloud { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 12px; text-align: start; }
.flow-node.hub { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.flow-node.hub .flow-ic { background: var(--gold-soft); color: var(--gold-strong); }
.flow-node.cloud { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #fff; border-color: transparent; }
.flow-node.cloud small { color: var(--navy-fg); }
.flow-node.cloud .flow-ic { background: rgba(255, 255, 255, .1); color: #fff; }
.flow-line { grid-column: 1 / -1; height: 28px; position: relative; display: grid; place-items: center; }
.flow-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid var(--gold); }
.flow-line.dashed::before { border-left-style: dashed; border-color: var(--fg-muted); }
.flow-line em { position: relative; font-style: normal; font-size: 12px; color: var(--fg-muted); background: var(--bg); padding: 0 8px; }
.sec-alt .flow-line em { background: var(--bg-alt); }

/* خطوات */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; position: relative; }
.steps li > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--fg-soft); margin: 0; font-size: 15px; }

/* أسئلة */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-strong); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--fg-soft); padding-bottom: 6px; }

/* دعوة أخيرة */
.final { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(205, 162, 51, .16), transparent); pointer-events: none; }
.final-in { position: relative; }
.final h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); }
.final p { color: #c4d1e3; font-size: 17px; margin-bottom: 24px; }

/* تذييل */
.pub-foot { background: var(--navy-900); color: var(--navy-fg); padding: 40px 0 20px; }
.pub-foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pub-foot .muted { color: #7f93b1; margin-top: 10px; max-width: 360px; }
.pub-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.pub-foot-links a { color: var(--navy-fg); }
.pub-copy { border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 24px; padding-top: 16px; font-size: 13px; color: #6f83a1; }

/* ───────── رأس الصفحة (الأسعار) ───────── */
.page-head { padding: 64px 0 48px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
.page-head .lead { color: var(--fg-soft); font-size: 18px; max-width: 640px; margin: 0 auto; }

.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold); color: var(--on-gold); font-size: 13px; font-weight: 800; padding: 3px 14px; border-radius: 99px; white-space: nowrap; }
.plan h2 { font-size: 22px; margin-bottom: 4px; }
.plan-desc { color: var(--fg-muted); font-size: 14px; min-height: 3.5em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.plan-price strong { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.plan-price span { color: var(--fg-muted); font-size: 15px; }
.plan-free { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 14px; background: var(--ok-soft); padding: 3px 12px; border-radius: 99px; align-self: flex-start; margin-bottom: 20px; }
.plan-free svg { width: 16px; height: 16px; }
.plan-feats { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; font-size: 15px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan-feats svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 3px; }
.plan-feats li.off { color: var(--fg-muted); }
.plan-feats li.off span:first-of-type { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--fg-muted) 50%, transparent); }
.plan-feats li.off svg { color: var(--fg-muted); opacity: .6; }
.plan-feats li.lim { font-weight: 600; }
.pricing-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pricing-notes > div { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 20px; }
.pricing-notes h3 { font-size: 17px; }
.pricing-notes p { color: var(--fg-soft); font-size: 15px; margin: 0; }
.empty { text-align: center; color: var(--fg-muted); }

/* ───────── التسجيل ───────── */
.auth { padding: 48px 0 72px; }
.auth-in { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.auth-side { position: sticky; top: 96px; min-width: 0; }
.auth-side h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); min-width: 0; }
.auth-card fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.auth-card legend { font-weight: 800; font-size: 17px; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 14px; min-width: 0; }
.field > label:not(.check) { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--fg-soft); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .slug-box {
    width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface-2);
    border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .slug-box:focus-within { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); background: var(--surface); }
.field input.input-validation-error { border-color: var(--danger); }
.slug-box { display: flex; align-items: center; padding: 0; overflow: hidden; }
.slug-prefix { padding: 10px 0 10px 12px; color: var(--fg-muted); font-size: 14px; white-space: nowrap; flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.slug-box input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 10px 12px 10px 2px !important; }
.slug-status { font-size: 13px; min-height: 1.4em; margin-top: 4px; font-weight: 600; }
.slug-status.ok { color: var(--ok); }
.slug-status.bad { color: var(--danger); }
.slug-status.wait { color: var(--fg-muted); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--info); text-decoration: underline; cursor: pointer; }
.help { font-size: 13px; color: var(--fg-muted); margin-top: 4px; }
.err, .field-validation-error { display: block; color: var(--danger); font-size: 13px; margin-top: 4px; }
.field-validation-valid { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--gold-strong); flex: none; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface-2); height: 100%; transition: border-color .15s, background .15s; }
.pick small { color: var(--fg-muted); font-size: 12px; }
.pick input:checked + span { border-color: var(--gold); background: var(--gold-soft); }
.pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--gold) 60%, transparent); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.auth-card form { position: relative; }
.alert { border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 15px; }
.alert:empty, .alert.validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-inline-start: 18px; }
.alert-err { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }

.center-card { text-align: center; padding: 40px 32px; }
.center-card h1 { font-size: 26px; }
.center-card .lead { color: var(--fg-soft); }
.big-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--gold-soft); color: var(--gold-strong); }
.big-ic.warn { background: var(--danger-soft); color: var(--danger); }
.big-ic svg { width: 36px; height: 36px; }
.ticks.left { text-align: start; max-width: 380px; margin: 18px auto 24px; }
.resend { max-width: 380px; margin: 0 auto 16px; text-align: start; }
.resend .btn { width: 100%; }

/* ───────── شاشات أصغر ───────── */
@media (max-width: 1080px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .hero { padding: 44px 0 56px; }
    .hero-in, .show, .auth-in { grid-template-columns: 1fr; gap: 36px; }
    .hero-art { min-height: 380px; max-width: 560px; width: 100%; margin: 0 auto; }
    .show.rev .show-copy { order: 0; }
    .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
    .pricing-notes { grid-template-columns: 1fr; }
    .auth-side { position: static; }
    .strip-in { grid-template-columns: repeat(2, 1fr); }
    .strip-in > div:nth-child(3) { border-inline-start: 0; }
    .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
    .sec { padding: 56px 0; }
    .feat-grid, .steps { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .hero-art { min-height: 340px; }
    .mock-win { width: 100%; transform: none; }
    .mock-kpis strong { font-size: 13px; }
    .mock-phone { width: 168px; bottom: -10px; }
    .mock-phone.big { width: 230px; }
    .mock-qr { inset-inline-start: auto; inset-inline-end: 8px; top: auto; bottom: 0; }
    .row2 { grid-template-columns: 1fr; }
    .auth { padding: 28px 0 48px; }
    .auth-card { padding: 20px 16px; }
    .center-card { padding: 28px 18px; }
    .plan { padding: 26px 20px; }
    .page-head { padding: 44px 0 32px; }
}
@media (max-width: 380px) {
    .strip-in { grid-template-columns: 1fr; }
    .strip-in > div { border-inline-start: 0 !important; border-top: 1px solid var(--line-soft); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ───────── الأسعار: أقسام النظام ───────── */
.mods { max-width: 1080px; margin: 0 auto; }
.mods-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 20px; }
.mt-big { margin-top: 64px; }
.mods-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 18px; }
.mod { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mod:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.mod.on { border-color: var(--gold); box-shadow: var(--shadow-md); }
.mod input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mod input:focus-visible ~ .mod-tick { outline: 3px solid var(--info); outline-offset: 2px; }
.mod-tick { position: absolute; top: 18px; inset-inline-end: 18px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; background: var(--surface); }
.mod-tick svg { width: 16px; height: 16px; }
.mod.on .mod-tick { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.mod-name { font-size: 21px; font-weight: 800; padding-inline-end: 36px; }
.mod-price { color: var(--fg-muted); font-size: 14px; }
.mod-price strong { color: var(--fg); font-size: 22px; font-variant-numeric: tabular-nums; }
.mod-sum { color: var(--fg-soft); font-size: 14px; }
.mod-feats { list-style: none; padding: 12px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; font-size: 14px; }
.mod-feats li { display: flex; gap: 8px; align-items: flex-start; }
.mod-feats svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.mods-total { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy-800); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; }
.mods-sel { font-weight: 700; color: var(--navy-fg); }
.mods-price strong { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mods-was { color: var(--navy-fg); margin-inline-start: 8px; }
.mods-save { color: var(--gold); font-weight: 700; font-size: 15px; }
.mods-note { text-align: center; color: var(--fg-muted); font-size: 14px; margin-top: 14px; }
.plan-save { color: var(--ok); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.plan-save s { color: var(--fg-muted); font-weight: 400; }
@media (max-width: 860px) {
    .mods-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
    .mods-total { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ───────── كلمة المرور في التسجيل ───────── */
.pw-box { position: relative; }
.pw-box input { padding-inline-start: 64px !important; }
.pw-eye { position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--info); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: var(--r-sm); cursor: pointer; }
.pw-eye:hover { background: var(--surface-2); }
.pw-eye:focus-visible { outline: 2px solid var(--info); outline-offset: 1px; }
.pw-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 6px; }
.pw-note { font-size: 13px; font-weight: 600; color: var(--ok); }
