/* أي عنصر مخفي يبقى مخفياً مهما كان تنسيقه */
[hidden] { display: none !important; }

/* =========================================================
   Remap.ly — التصميم العام
   ملف واحد بدون أدوات بناء. RTL، متجاوب، يدعم الوضع الليلي.
   ========================================================= */

:root {
    --bg:          #f4f5f8;
    --surface:     #ffffff;
    --surface-2:   #f8f9fb;
    --border:      #e5e7ee;
    --text:        #141824;
    --text-soft:   #5b6275;
    --text-faint:  #8a91a3;

    --side-bg:     #0e1220;
    --side-text:   #aab1c4;
    --side-active: #ffffff;

    --accent:      #ff5b22;   /* برتقالي الأداء */
    --accent-dark: #e2470f;
    --accent-soft: #fff1eb;

    --ok:   #0f9f6e;  --ok-soft:   #e6f7f0;
    --warn: #c98200;  --warn-soft: #fff6e0;
    --info: #1a73d9;  --info-soft: #e8f1fc;
    --bad:  #d6334a;  --bad-soft:  #fdecef;
    --pur:  #5b4fd6;  --pur-soft:  #eeecfc;

    --radius:    14px;
    --radius-sm: 10px;
    --shadow:    0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
    --side-w:    264px;
    --font:      "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
        --bg:         #0b0e17;
        --surface:    #131826;
        --surface-2:  #181e2e;
        --border:     #232a3d;
        --text:       #eef0f6;
        --text-soft:  #a3abc0;
        --text-faint: #6f7890;
        --side-bg:    #080a12;
        --accent-soft:#2a1810;
        --ok-soft:#0d2a21; --warn-soft:#2b2210; --info-soft:#0f2036; --bad-soft:#2f1219; --pur-soft:#1d1a3a;
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
}
/* بدون جافاسكربت: نتبع إعداد الجهاز */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
            --bg:         #0b0e17;
            --surface:    #131826;
            --surface-2:  #181e2e;
            --border:     #232a3d;
            --text:       #eef0f6;
            --text-soft:  #a3abc0;
            --text-faint: #6f7890;
            --side-bg:    #080a12;
            --accent-soft:#2a1810;
            --ok-soft:#0d2a21; --warn-soft:#2b2210; --info-soft:#0f2036; --bad-soft:#2f1219; --pur-soft:#1d1a3a;
            --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: embed; }
.muted { color: var(--text-soft); }
.faint { color: var(--text-faint); font-size: 13px; }

/* ---------------- أيقونات ---------------- */
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- أزرار ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-wa:hover { background: #18914b; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ---------------- نماذج ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.input {
    width: 100%; height: 46px; padding: 0 14px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid { border-color: var(--bad); }
.error { color: var(--bad); font-size: 13px; margin-top: 5px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ---------------- تنبيهات ---------------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.alert-ok  { background: var(--ok-soft);  color: var(--ok); }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-warn .link { color: inherit; text-decoration: underline; font-weight: 700; }

/* ---------------- شارات الحالة ---------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-slate   { background: var(--surface-2); color: var(--text-soft); }
.badge-amber   { background: var(--warn-soft); color: var(--warn); }
.badge-sky     { background: var(--info-soft); color: var(--info); }
.badge-indigo  { background: var(--pur-soft);  color: var(--pur); }
.badge-emerald { background: var(--ok-soft);   color: var(--ok); }
.badge-rose    { background: var(--bad-soft);  color: var(--bad); }

/* =========================================================
   صفحات الدخول والتسجيل
   ========================================================= */
.auth {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-art {
    position: relative; overflow: hidden;
    background: var(--side-bg); color: #fff;
    padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art::before {
    content: ""; position: absolute; inset: auto -20% -40% auto; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,91,34,.35), transparent 65%);
}
.auth-art::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { font-size: 34px; max-width: 420px; }
.auth-art h2 span { color: var(--accent); }
.auth-art p { color: #aab1c4; margin-top: 14px; max-width: 400px; }
.auth-points { display: grid; gap: 12px; margin-top: 28px; }
.auth-points div { display: flex; align-items: center; gap: 10px; color: #d6dae6; }
.auth-points .i { color: var(--accent); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 26px; margin-bottom: 6px; }
.auth-box .sub { color: var(--text-soft); margin-bottom: 28px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--text-soft); font-size: 14px; }
.auth-foot a { color: var(--accent); font-weight: 600; }

/* ---------------- الشعار ---------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; direction: ltr; }
.logo-mark { width: 38px; height: 38px; display: block; flex: none; }
.logo-svg { width: 100%; height: 100%; display: block; }
.logo b { color: var(--accent); }

/* =========================================================
   هيكل اللوحة (القائمة الجانبية + المحتوى)
   ========================================================= */
.app { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed; inset: 0 0 0 auto; width: var(--side-w);
    background: var(--side-bg); color: var(--side-text);
    display: flex; flex-direction: column; padding: 22px 14px;
    z-index: 40;
}
.sidebar .logo { color: #fff; padding: 0 10px; margin-bottom: 28px; }
.nav-label { font-size: 11.5px; letter-spacing: .04em; color: #646c82; padding: 0 12px; margin: 18px 0 6px; }
.nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px; margin-bottom: 2px;
    font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active { background: rgba(255,91,34,.14); color: var(--side-active); }
.nav a.active .i { color: var(--accent); }
.nav a .count { margin-inline-start: auto; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.nav a.soon { opacity: .45; pointer-events: none; }

.side-user {
    margin-top: auto; display: flex; align-items: center; gap: 10px;
    padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04);
}
.avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: none;
    background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.side-user .who { flex: 1; min-width: 0; }
.side-user .who strong { display: block; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 12px; }
.side-user button { background: none; border: 0; color: var(--side-text); cursor: pointer; padding: 6px; border-radius: 8px; }
.side-user button:hover { color: #fff; background: rgba(255,255,255,.06); }

.main { flex: 1; margin-inline-start: var(--side-w); min-width: 0; overflow-x: clip; }
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    padding: 18px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
}
.topbar h1 { font-size: 22px; }
.topbar .actions { margin-inline-start: auto; display: flex; gap: 10px; }
.topbar .mobile-logo { display: none; }
.content { padding: 8px 32px 40px; max-width: 1200px; }

/* شريط سفلي للموبايل */
.bottom-nav { display: none; }

/* =========================================================
   مكونات المحتوى
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-soft); font-size: 14px; }
.stat-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.stat-ico.o { background: var(--accent-soft); color: var(--accent); }
.stat-ico.g { background: var(--ok-soft);     color: var(--ok); }
.stat-ico.b { background: var(--info-soft);   color: var(--info); }
.stat-ico.y { background: var(--warn-soft);   color: var(--warn); }
.stat-ico.p { background: var(--pur-soft);    color: var(--pur); }
.stat-val { font-size: 28px; font-weight: 700; margin-top: 10px; }
.stat-val small { font-size: 14px; color: var(--text-soft); font-weight: 500; }
.stat-val.neg { color: var(--bad); }
.stat-val.pos { color: var(--ok); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 16px; }
.card-head a { color: var(--accent); font-size: 14px; font-weight: 600; }
.card-body { padding: 20px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.grid-2 > * { min-width: 0; }
.grid-2 > .card { margin-bottom: 0; }

/* قائمة الطلبات (تشتغل جدول على الكمبيوتر وبطاقات على الموبايل) */
.olist { list-style: none; margin: 0; padding: 0; }
.olist li { border-bottom: 1px solid var(--border); }
.olist .o-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.olist .o-row.is-link { transition: background .15s; }
.olist .o-row.is-link:hover { background: var(--surface-2); }
.olist li:last-child { border-bottom: 0; }
.olist .o-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-soft); flex: none; }
.olist .o-main { flex: 1; min-width: 0; }
.olist .o-main strong { display: block; font-size: 14.5px; }
.olist .o-main > span { color: var(--text-soft); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olist .o-side { text-align: end; display: grid; gap: 4px; justify-items: end; }
.olist .o-price { font-weight: 700; font-size: 14px; }

.empty { text-align: center; padding: 40px 20px; color: var(--text-soft); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--text-faint); }
.empty p { margin-bottom: 16px; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: start; color: var(--text-soft); font-weight: 600; font-size: 13px; padding: 12px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 13px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }

/* بانر الترحيب */
.hello {
    position: relative; overflow: hidden;
    background: var(--side-bg); color: #fff; border-radius: var(--radius);
    padding: 26px 28px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hello::before { content: ""; position: absolute; inset: -60% -10% auto auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,91,34,.35), transparent 65%); }
.hello > * { position: relative; }
.hello h2 { font-size: 22px; }
.hello p { color: #aab1c4; margin-top: 4px; }

/* =========================================================
   الصفحة الرئيسية العامة
   ========================================================= */
.steps { display: grid; gap: 14px; margin-top: 18px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05); }
.step b { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; flex: none; font-size: 14px; }
.step strong { display: block; }
.step span { color: #aab1c4; font-size: 13.5px; }

.section { max-width: 1200px; margin: 0 auto; padding: 0 32px 64px; }
.section h2 { font-size: 28px; margin-bottom: 8px; }
.section > p { color: var(--text-soft); margin-bottom: 28px; }
.svc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.svc .stat-ico { width: 34px; height: 34px; }
.svc strong { display: block; font-size: 14.5px; }
.svc span { color: var(--text-faint); font-size: 12.5px; direction: ltr; display: block; text-align: end; }
/* =========================================================
   الموبايل والتابلت
   ========================================================= */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }

    .sidebar { display: none; }
    .main { margin-inline-start: 0; padding-bottom: 76px; }
    .topbar { padding: 14px 16px; }
    .topbar h1 { font-size: 18px; }
    .topbar .mobile-logo { display: inline-flex; }
    .topbar .actions .btn span:not(.bell-count) { display: none; }
    .topbar .actions .btn { padding: 0 12px; }
    .content { padding: 4px 16px 24px; }

    .bottom-nav {
        display: flex; position: fixed; inset: auto 0 0 0; z-index: 40;
        background: var(--surface); border-top: 1px solid var(--border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        font-size: 11.5px; color: var(--text-faint); padding: 6px 2px; border-radius: 10px;
    }
    .bottom-nav a.active { color: var(--accent); }
    .bottom-nav a.soon { opacity: .4; pointer-events: none; }
    .bottom-nav form { flex: 1; display: flex; }
    .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; font: inherit; font-size: 11.5px; color: var(--text-faint); padding: 6px 2px; }

    .stats { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
    .stat { padding: 14px; }
    .stat-val { font-size: 22px; }
    .hello { padding: 20px; }
    .hello h2 { font-size: 19px; }
    .olist .o-row { padding: 12px 16px; gap: 12px; }
    .card-head { padding: 14px 16px; }
    .section { padding: 0 16px 40px; }
}

@media (max-width: 420px) {
    .stat-val { font-size: 20px; }
}

/* الاستشارات */
.olist .o-ico.is-consult { background: var(--pur-soft); color: var(--pur); }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; letter-spacing: .03em; }
pre.codes { margin: 0; font: 600 14px/1.7 ui-monospace, Consolas, monospace; white-space: pre-wrap; direction: ltr; text-align: right; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; }
.answer-box { display: grid; gap: 12px; margin: 10px 0; }
.answer-text { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; white-space: pre-line; line-height: 1.9; }
.answer-audio { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.answer-audio span { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--pur); }
.answer-audio audio { width: 100%; }
.recorder { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.recorder audio { height: 40px; max-width: 100%; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--bad); }
.btn.rec-on { border-color: var(--bad); color: var(--bad); animation: pulse 1.4s infinite; }

/* شعار كبير في صفحة الدخول */
.auth-logo-big { width: 72px; height: 72px; margin-bottom: 22px; }

/* الخطوة 7 */
.photo-pick { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border: 2px dashed var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; font-weight: 600; color: var(--text-soft); }
.photo-pick:hover { border-color: var(--accent); color: var(--accent); }
.photo-pick.is-invalid { border-color: var(--bad); }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-preview, .photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-preview img, .photo-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.photo-strip { margin-top: 0; }
.overdue { color: var(--bad) !important; font-weight: 700; }
.inline-more { margin: 0; border: 0; padding: 0; }
.inline-more summary { list-style: none; }
.inline-more summary::-webkit-details-marker { display: none; }
.inline-more .more-body { min-width: 260px; }
table.t td.wrap { white-space: normal; min-width: 160px; }
table.t tfoot td { border-top: 2px solid var(--border); background: var(--surface-2); }
.print-head { display: none; }
@media print {
    .sidebar, .bottom-nav, .topbar .actions, .no-print { display: none !important; }
    .main { margin: 0 !important; }
    .print-head { display: block; margin-bottom: 12px; font-size: 16px; }
    body { background: #fff; }
    .card, .stat { box-shadow: none; }
}

/* عناصر قريباً */
.btn[aria-disabled="true"], a.btn[title="قريباً"] { opacity: .55; cursor: not-allowed; }
@media (max-width: 860px) { .desk-title { display: none; } }

/* =========================================================
   الخطوة 3: الطلبات
   ========================================================= */
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: 18px 50%, 13px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 34px; }
.ltr-input { direction: ltr; text-align: right; }
.ltr-input::placeholder { text-align: right; }
.link { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.form-side { position: sticky; top: 84px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 13px; margin-inline-end: 6px; }

.chip-group { margin-bottom: 18px; }
.chip-group h4 { font-size: 13.5px; color: var(--text-soft); font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .15s; user-select: none; }
.chip span:hover { border-color: var(--text-faint); }
.chip .chip-check { width: 16px; height: 16px; display: none; }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip input:checked + span .chip-check { display: block; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.chip em { font-style: normal; font-size: 11px; background: var(--pur-soft); color: var(--pur); padding: 1px 7px; border-radius: 99px; }

.verify-box { margin-top: 6px; padding: 16px; border-radius: var(--radius-sm); background: var(--pur-soft); display: grid; gap: 12px; }
.verify-box strong { display: flex; align-items: center; gap: 8px; color: var(--pur); }
.file-plain { height: auto; padding: 10px; background: var(--surface); }

.dropzone { position: relative; display: block; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-invalid { border-color: var(--bad); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; text-align: center; }
.dz-empty .i { width: 34px; height: 34px; color: var(--accent); margin-bottom: 4px; }
.dz-file { display: flex; align-items: center; gap: 12px; padding: 18px; }
.dz-file .i { width: 30px; height: 30px; color: var(--accent); }
.dz-file > div { flex: 1; min-width: 0; }
.dz-file strong { display: block; word-break: break-all; text-align: start; }
.dz-change { color: var(--accent); font-weight: 600; font-size: 14px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 6px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
#progress-text { margin-bottom: 12px; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 8px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.tabs a.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; }

.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.order-head h2 { font-size: 24px; }
.action-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid transparent; }
.action-card > .i { width: 28px; height: 28px; margin-top: 2px; }
.action-card .grow { flex: 1; min-width: 0; }
.action-card h3 { font-size: 18px; margin-bottom: 4px; }
.action-card p { color: var(--text-soft); }
.tone-info { background: var(--info-soft); } .tone-info > .i { color: var(--info); }
.tone-warn { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } .tone-warn > .i { color: var(--accent); }
.tone-pur  { background: var(--pur-soft); }  .tone-pur > .i  { color: var(--pur); }
.tone-ok   { background: var(--ok-soft); }   .tone-ok > .i   { color: var(--ok); }
.tone-bad  { background: var(--bad-soft); }  .tone-bad > .i  { color: var(--bad); }
.big-price { font-size: 34px; font-weight: 700; margin: 6px 0 12px; }
.big-price small { font-size: 16px; color: var(--text-soft); }
.note-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; color: var(--text) !important; white-space: pre-line; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--text-soft); }
.kv dd { margin: 0; min-width: 0; }
.kv.bank { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.kv.bank dd { font-weight: 700; }
.ltr-cell { direction: ltr; text-align: right; }
.copy-btn { margin-inline-start: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 2px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 26px; bottom: 0; inset-inline-start: 11px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); position: relative; z-index: 1; }
.timeline .dot .i { width: 14px; height: 14px; stroke-width: 3; }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.done::before { background: var(--ok); }
.timeline li.current .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li.current strong { color: var(--accent); }
.timeline li.todo strong { color: var(--text-faint); font-weight: 500; }
.timeline strong { display: block; font-size: 14.5px; }
.flip { transform: rotate(180deg); }

@media (max-width: 1024px) {
    .form-layout { grid-template-columns: minmax(0, 1fr); }
    .form-side { position: static; }
}
@media (max-width: 860px) {
    .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .action-card { padding: 18px; gap: 12px; }
    .big-price { font-size: 28px; }
    .btn-row .btn, .btn-row form, .btn-row form .btn { width: 100%; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .action-card > .i { display: none; }
}

/* =========================================================
   الخطوة 4: المهندس ومراجعة القسائم
   ========================================================= */
a.stat { display: block; transition: border-color .15s; }
a.stat:hover { border-color: var(--accent); }
.wa-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.wa-strip strong { display: block; color: var(--ok); }
.wa-strip.pulse { animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 25%, transparent); } }

.price-form { margin-top: 14px; }
.form-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 120px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; transition: all .15s; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

details.more { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 12px; }
details.more summary { cursor: pointer; color: var(--text-soft); font-size: 14px; font-weight: 600; }
.more-body { display: grid; gap: 12px; margin-top: 12px; }

.receipt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.receipt-grid .card { margin-bottom: 0; }

@media (max-width: 860px) {
    .form-grid.two { grid-template-columns: minmax(0, 1fr); }
    .wa-strip { flex-direction: column; align-items: stretch; }
    .receipt-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   الخطوة 5: لوحة الأدمن
   ========================================================= */
.narrow { max-width: 820px; }
.side-user a.who:hover strong { color: var(--accent); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: var(--border); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { inset-inline-start: 21px; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

.search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar .input { flex: 1; }
.search-bar.filters select.input { flex: 0 1 200px; }

table.t tr.row-off td { opacity: .5; }
table.t tr.row-link { cursor: pointer; }
table.t tr.row-link:hover td { background: var(--surface-2); }
table.t .badge { margin-inline-start: 6px; }
.as-btn { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }

.seg.vertical { flex-direction: column; }
.seg.vertical label { min-width: 0; }
.grid-2.wide-first { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

@media (max-width: 1024px) {
    .grid-2.wide-first { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .search-bar { flex-wrap: wrap; }
    .search-bar .input, .search-bar.filters select.input { flex: 1 1 100%; }
    .search-bar .btn { flex: 1; }
}

/* =========================================================
   الخطوة 6: الإشعارات وصفحات الأخطاء
   ========================================================= */
.topbar { max-width: 1200px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--accent); font-weight: 600; cursor: pointer; }

.bell { position: relative; }
.bell summary { list-style: none; }
.bell summary::-webkit-details-marker { display: none; }
.bell-btn { position: relative; width: 44px; padding: 0; }
.bell-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.bell-count.ping { animation: ping .6s ease-out 2; }
@keyframes ping { 50% { transform: scale(1.35); } }
.bell-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 360px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px -12px rgba(16,24,40,.25); z-index: 60; overflow: hidden; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.bell-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.bell-item:hover { background: var(--surface-2); }
.bell-item.unread { background: var(--accent-soft); }
.bell-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.bell-ico .i { width: 18px; height: 18px; }
.bell-text { min-width: 0; display: grid; }
.bell-text strong { font-size: 14px; font-weight: 600; }
.bell-text span { font-size: 12.5px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-empty { padding: 28px 16px; text-align: center; color: var(--text-soft); }
.bell-all { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: 14px; color: var(--accent); }
.bell-list .bell-item:last-child { border-bottom: 0; }

.err { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; }
.err-code { font-size: 88px; font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -2px; }
.err h1 { font-size: 24px; }

@media (max-width: 860px) {
    .bell-menu { position: fixed; top: 64px; inset-inline: 12px; width: auto; }
}

/* ===== شاشة الزبون المبسّطة ===== */
.big-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.big-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.big-choice:hover { transform: translateY(-2px); border-color: var(--accent); }
.big-choice strong { font-size: 19px; }
.big-choice > span:last-child { color: var(--text-soft); font-size: 14px; }
.big-choice .bc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.big-choice .bc-ico .i { width: 24px; height: 24px; }
.big-choice.hot { background: linear-gradient(135deg, #ff5b22, #e0400c); border-color: transparent; color: #fff; }
.big-choice.hot > span:last-child { color: rgba(255,255,255,.85); }
.big-choice.hot .bc-ico { background: rgba(255,255,255,.18); color: #fff; }
a.need-you { color: inherit; text-decoration: none; align-items: center; }
a.need-you p { margin: 0; }
.check-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--accent); }
details.order-more > summary { list-style: none; cursor: pointer; border-bottom: 0; }
details.order-more > summary::-webkit-details-marker { display: none; }
details.order-more > summary .i { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .2s; color: var(--text-soft); }
details.order-more[open] > summary .i { transform: rotate(90deg); }
details.order-more[open] > summary { border-bottom: 1px solid var(--border); }
@media (max-width: 640px) {
    .big-choices { grid-template-columns: 1fr; gap: 12px; }
    .big-choice { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 18px; column-gap: 14px; }
    .big-choice .bc-ico { margin: 0; grid-row: span 2; }
    .big-choice strong { font-size: 17px; }
    .big-choice > span:last-child { flex-basis: 100%; }
    a.need-you .btn { display: none; }
}

/* تقسيم السعر عند المهندس */
.split-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split-box > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2, var(--surface)); }
.split-box b { font-size: 16px; direction: ltr; text-align: start; }
.split-box > div:first-child b { color: var(--ok); }
.split-box.one { grid-template-columns: 1fr; }

/* =========================================================
   2026 — تحسينات عامة لكل الصفحات
   ========================================================= */
:root { --radius: 16px; --radius-sm: 12px; --ease: cubic-bezier(.2,.8,.2,1); }
html { scroll-behavior: smooth; }
body { -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, a, label, summary { touch-action: manipulation; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn { border-radius: 12px; transition: background .2s var(--ease), border-color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn-primary { background: linear-gradient(180deg, #ff6a35, var(--accent)); box-shadow: 0 6px 18px -6px rgba(255,91,34,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: linear-gradient(180deg, #ff5b22, var(--accent-dark)); box-shadow: 0 10px 24px -8px rgba(255,91,34,.7); }
.btn:active { transform: scale(.97); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }

.card, .stat { border-radius: var(--radius); }
.card { transition: box-shadow .2s; }
.input { border-radius: 12px; }

/* الشريط العلوي زجاجي في لوحات التحكم */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }

/* صفحات الدخول بارتفاع الشاشة الحقيقي على الموبايل */
.auth { min-height: 100vh; min-height: 100dvh; }

@media (max-width: 860px) {
    /* منع التكبير التلقائي في الآيفون عند الكتابة */
    .input, select.input, textarea.input { font-size: 16px; }

    /* النوتش والجزيرة الديناميكية وشريط الإيماءات */
    .topbar { padding-top: max(14px, env(safe-area-inset-top)); padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
    .content { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
    .main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

    .bottom-nav {
        inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
        padding: 6px; border: 1px solid var(--border); border-radius: 22px;
        background: color-mix(in srgb, var(--surface) 84%, transparent);
        backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
        box-shadow: 0 10px 30px -10px rgba(16,24,40,.25);
    }
    .bottom-nav a, .bottom-nav button { min-height: 52px; justify-content: center; border-radius: 16px; transition: background .2s, color .2s; }
    .bottom-nav a.active { background: var(--accent-soft); }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
}

/* الشاشات الصغيرة (Galaxy A / S بعرض 360) */
@media (max-width: 380px) {
    body { font-size: 14.5px; }
    .bottom-nav a, .bottom-nav button { font-size: 10.5px; }
    .stats { grid-template-columns: minmax(0,1fr); }
    .big-choice { padding: 16px; }
}

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

/* =========================================================
   2026 — الصفحة الرئيسية (Landing)
   ========================================================= */
body.lp { background: #0a0d18; color: #eef0f6; overflow-x: hidden; }
.lp .logo { color: #fff; }
.lp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }

.lp-head { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.lp-head.scrolled { background: rgba(10,13,24,.72); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-color: rgba(255,255,255,.07); }
.lp-head-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.lp-head nav { display: flex; gap: 8px; }

.lp-hero { position: relative; overflow: hidden; padding-top: calc(110px + env(safe-area-inset-top)); }
.lp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); }
.lp-glow { position: absolute; width: 900px; height: 900px; inset: -380px auto auto -200px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255,91,34,.30), rgba(255,91,34,.08) 40%, transparent 65%); filter: blur(10px); animation: lp-float 14s ease-in-out infinite alternate; }
.lp-glow.small { width: 520px; height: 520px; inset: -260px -120px auto auto; }
@keyframes lp-float { to { transform: translate(80px, 60px) scale(1.08); } }

.lp-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #d6dae6; }
.lp-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.lp-hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.12; letter-spacing: -.5px; margin: 20px 0 18px; font-weight: 700; }
.grad { background: linear-gradient(90deg, #ffb48f, #ff5b22 45%, #ff2d55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: clamp(16px, 1.6vw, 19px); color: #aab1c4; max-width: 540px; }
.lp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.lp-ctas.center { justify-content: center; }
.lp-trust { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.lp-trust div { display: flex; flex-direction: column; }
.lp-trust b { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.1; }
.lp-trust b small { font-size: 16px; color: var(--accent); margin-inline-start: 2px; }
.lp-trust span { font-size: 13px; color: #8790a6; }

/* شكل التلفون */
.lp-device { position: relative; justify-self: center; margin-block: 44px 34px; animation: lp-rise .9s var(--ease) both .1s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.lp-phone { width: 300px; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #2a3045, #12162a); box-shadow: 0 40px 90px -30px rgba(255,91,34,.45), 0 0 0 1px rgba(255,255,255,.08) inset; position: relative; }
.lp-island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.lp-screen { background: #f4f5f8; color: #141824; border-radius: 36px; padding: 58px 18px 20px; min-height: 520px; display: flex; flex-direction: column; gap: 14px; }
.lp-scr-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.lp-chip { font-size: 12px; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.lp-chip.ok { background: #e6f7f0; color: #0f9f6e; }
.lp-car { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 2px 10px rgba(16,24,40,.06); }
.lp-car .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff1eb; color: var(--accent); }
.lp-car strong { display: block; font-size: 14.5px; direction: ltr; text-align: end; }
.lp-car span { font-size: 12px; color: #8a91a3; direction: ltr; display: block; text-align: end; }
.lp-tags { display: flex; gap: 6px; flex-wrap: wrap; direction: ltr; justify-content: flex-end; }
.lp-tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid #e5e7ee; }
.lp-track { list-style: none; margin: 0; padding: 14px; background: #fff; border-radius: 18px; display: grid; gap: 12px; font-size: 13.5px; }
.lp-track li { display: flex; align-items: center; gap: 10px; color: #5b6275; position: relative; }
.lp-track i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cfd3de; flex: none; }
.lp-track .done i { background: #0f9f6e; border-color: #0f9f6e; }
.lp-track .now { color: #141824; font-weight: 700; }
.lp-track .now i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255,91,34,.18); }
.lp-dl { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; color: #fff; font-weight: 700;
    background: linear-gradient(180deg, #ff6a35, #ff5b22); box-shadow: 0 8px 20px -8px rgba(255,91,34,.7); }
.lp-dl .i { width: 18px; height: 18px; }

.lp-toast { position: absolute; z-index: 3; inset-inline-end: -64px; top: -46px; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 18px; border-radius: 18px;
    background: rgba(24,30,46,.78); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); animation: lp-pop .7s var(--ease) both .7s; min-width: 230px; }
.lp-toast.two { top: auto; bottom: -34px; inset-inline-end: auto; inset-inline-start: -64px; animation-delay: 1.1s; }
@keyframes lp-pop { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.lp-toast strong { display: block; font-size: 13.5px; color: #fff; }
.lp-toast span { font-size: 12px; color: #8790a6; }
.lp-toast-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.lp-toast-ico.wa { background: #1faa59; }
.lp-toast-ico .i { width: 18px; height: 18px; }

/* شريط الماركات المتحرك */
.lp-marquee { position: relative; z-index: 1; border-block: 1px solid rgba(255,255,255,.07); padding: 18px 0; overflow: hidden; direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-marquee-track { display: flex; gap: 44px; width: max-content; animation: lp-marq 50s linear infinite; }
.lp-marquee span { font-weight: 700; font-size: 17px; color: #5f6880; white-space: nowrap; letter-spacing: .3px; }
@keyframes lp-marq { to { transform: translateX(-50%); } }

/* الأقسام */
.lp-sec { padding-top: 96px; }
.lp-sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: rgba(255,91,34,.1); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.lp-sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.3px; }
.lp-sec-head p { color: #8790a6; margin-top: 10px; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08);
    transition: transform .3s var(--ease), border-color .3s; }
a.bento-card:hover { transform: translateY(-4px); border-color: rgba(255,91,34,.5); }
.bento-card h3 { font-size: 19px; }
.bento-card p { color: #98a0b5; font-size: 14.5px; }
.b-main { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 80% at 100% 0%, rgba(255,91,34,.28), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.b-main h3 { font-size: 26px; margin-top: 8px; }
.b-main p { font-size: 16px; max-width: 440px; }
.b-wide { grid-column: span 2; }
.b-consult { grid-column: span 2; background: radial-gradient(100% 90% at 0% 100%, rgba(91,79,214,.32), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.b-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,91,34,.15); color: #ff8a5c; }
.b-ico.pur { background: rgba(91,79,214,.2); color: #a99ff5; }
.b-ico.ok { background: rgba(15,159,110,.18); color: #3fd39c; }
.b-ico.wa { background: rgba(31,170,89,.18); color: #4ade80; }
.b-ico.info { background: rgba(26,115,217,.2); color: #6fb0ff; }
.b-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; direction: ltr; justify-content: flex-end; }
.b-tags span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); color: #d6dae6; }
.b-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; margin-top: 8px; }
.b-go .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a.bento-card:hover .b-go .i { transform: translateX(-4px); }
.b-codes { display: flex; gap: 8px; justify-content: flex-end; }
.b-codes span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: rgba(214,51,74,.16); color: #ff8a9b; }
.b-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 6px; }
.b-wave i { flex: 1; height: var(--h); border-radius: 3px; background: linear-gradient(180deg, #a99ff5, #5b4fd6); opacity: .85; animation: lp-wave 1.4s ease-in-out infinite alternate; }
.b-wave i:nth-child(odd) { animation-delay: -.6s; }
@keyframes lp-wave { to { transform: scaleY(.45); } }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; counter-reset: s; }
.lp-steps li { position: relative; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 6px; }
.lp-steps b { font-size: 34px; font-weight: 700; line-height: 1; background: linear-gradient(180deg, #ff8a5c, rgba(255,91,34,.25)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.lp-steps strong { font-size: 17px; }
.lp-steps span { color: #8790a6; font-size: 14px; }

.lp-svc { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.lp-svc-group { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.lp-svc-group h3 { font-size: 15px; color: #aab1c4; margin-bottom: 14px; }
.lp-svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-svc-chips span { font-size: 14px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #e2e5ee; }

.lp-final { position: relative; overflow: hidden; margin-top: 96px; padding: 64px 24px; border-radius: 32px; text-align: center;
    background: linear-gradient(135deg, #1a1f33, #0f1322); border: 1px solid rgba(255,255,255,.08); }
.lp-final > :not(.lp-glow) { position: relative; z-index: 1; }
.lp-final h2 { font-size: clamp(28px, 4vw, 44px); }
.lp-final p { color: #98a0b5; margin-top: 10px; }

.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 40px calc(40px + env(safe-area-inset-bottom)); color: #6f7890; font-size: 13px; }
.lp-sticky { display: none; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .lp-steps .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .lp-steps .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .lp-steps .reveal:nth-child(4) { transition-delay: .24s; }

/* تابلت */
@media (max-width: 1024px) {
    .lp-hero-in { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .lp-lead { margin-inline: auto; }
    .lp-ctas, .lp-trust { justify-content: center; }
    .bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .lp-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .lp-toast { inset-inline-end: -40px; }
    .lp-toast.two { inset-inline-start: -40px; }
    .b-wide { grid-column: span 1; }
}

/* موبايل: آيفون 11–17، جالاكسي A و S */
@media (max-width: 640px) {
    .lp-head-in { height: 60px; }
    .lp-hero { padding-top: calc(92px + env(safe-area-inset-top)); }
    .lp-hero-in { padding-bottom: 48px; gap: 40px; }
    .lp-hero h1 { margin: 16px 0 14px; }
    .lp-ctas { flex-direction: column; align-items: stretch; }
    .lp-ctas .btn { width: 100%; }
    .lp-trust { gap: 0; justify-content: space-between; margin-top: 30px; padding: 16px 4px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
    .lp-trust div { flex: 1; align-items: center; text-align: center; }
    .lp-trust div + div { border-inline-start: 1px solid rgba(255,255,255,.08); }
    .lp-trust b { font-size: 22px; }
    .lp-trust span { font-size: 11.5px; }

    .lp-phone { width: min(270px, 74vw); border-radius: 40px; }
    .lp-screen { min-height: 460px; border-radius: 30px; padding: 52px 14px 16px; }
    .lp-toast { inset-inline-end: -14px; top: -40px; min-width: 0; max-width: 230px; padding: 8px 12px; }
    .lp-toast.two { inset-inline-start: -14px; bottom: -26px; }
    .lp-device { margin-bottom: 20px; }
    .lp-toast strong { font-size: 12.5px; }

    .lp-sec { padding-top: 72px; }
    .lp-sec-head { margin-bottom: 28px; }
    .bento { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .b-main, .b-consult, .b-wide { grid-column: auto; grid-row: auto; }
    .bento-card { padding: 22px; border-radius: 22px; }
    .b-main h3 { font-size: 22px; }

    /* الخطوات: سحب أفقي */
    .lp-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -20px; padding-inline: 20px; padding-bottom: 6px; scrollbar-width: none; }
    .lp-steps::-webkit-scrollbar { display: none; }
    .lp-steps li { flex: 0 0 78%; scroll-snap-align: center; }

    .lp-svc { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .lp-final { margin-top: 72px; padding: 44px 20px; border-radius: 26px; }
    .lp-foot { justify-content: center; text-align: center; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

    .lp-sticky { display: block; position: fixed; inset: auto 0 0 0; z-index: 40; padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, transparent, rgba(10,13,24,.92) 35%); transform: translateY(110%); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .35s, visibility .35s; }
    body.lp-scrolled .lp-sticky { transform: none; opacity: 1; visibility: visible; }
}

@media (max-width: 380px) {
    .lp-head nav .btn-glass { display: none; }
    .lp-trust b { font-size: 19px; }
    .lp-toast.two { display: none; }
}

@media (max-width: 860px) {
    .auth-form { padding-top: max(32px, calc(env(safe-area-inset-top) + 20px)); padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px)); align-items: flex-start; }
}

/* =========================================================
   زر الوضع الفاتح / المظلم
   ========================================================= */
.theme-btn { position: relative; width: 44px; padding: 0; overflow: hidden; }
.theme-btn .i { position: absolute; transition: transform .45s var(--ease), opacity .3s; }
.theme-btn .t-sun  { transform: rotate(0) scale(1); opacity: 1; }
.theme-btn .t-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-btn .t-sun  { transform: rotate(90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-btn .t-moon { transform: rotate(0) scale(1); opacity: 1; }
.lp .theme-btn { height: 36px; width: 36px; }
.auth-theme { position: absolute; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; z-index: 5; }
.auth-form { position: relative; }
html { transition: background-color .3s; }

/* =========================================================
   الصفحة الرئيسية في الوضع الفاتح
   ========================================================= */
:root[data-theme="light"] body.lp { background: #f6f7fb; color: #141824; }
:root[data-theme="light"] .lp .lp-head .logo, :root[data-theme="light"] .lp .lp-foot .logo { color: #141824; }
:root[data-theme="light"] .lp-head.scrolled { background: rgba(246,247,251,.78); border-color: rgba(16,24,40,.08); }
:root[data-theme="light"] .lp .btn-glass { background: rgba(255,255,255,.7); color: #141824; border-color: rgba(16,24,40,.12); }
:root[data-theme="light"] .lp .btn-glass:hover { background: #fff; }
:root[data-theme="light"] .lp-hero::after { background-image: linear-gradient(rgba(16,24,40,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,40,.05) 1px, transparent 1px); }
:root[data-theme="light"] .lp-glow { background: radial-gradient(circle, rgba(255,91,34,.22), rgba(255,91,34,.06) 40%, transparent 65%); }
:root[data-theme="light"] .lp-pill { background: #fff; border-color: #e5e7ee; color: #5b6275; box-shadow: 0 2px 8px rgba(16,24,40,.05); }
:root[data-theme="light"] .lp-lead, :root[data-theme="light"] .lp-sec-head p { color: #5b6275; }
:root[data-theme="light"] .lp-trust b { color: #141824; }
:root[data-theme="light"] .lp-trust span { color: #8a91a3; }
:root[data-theme="light"] .lp-toast { background: rgba(255,255,255,.88); border-color: #e5e7ee; box-shadow: 0 20px 40px -16px rgba(16,24,40,.25); }
:root[data-theme="light"] .lp-toast strong { color: #141824; }
:root[data-theme="light"] .lp-toast span { color: #8a91a3; }
:root[data-theme="light"] .lp-phone { box-shadow: 0 40px 90px -30px rgba(255,91,34,.35), 0 0 0 1px rgba(255,255,255,.08) inset; }
:root[data-theme="light"] .lp-marquee { border-color: rgba(16,24,40,.08); }
:root[data-theme="light"] .lp-marquee span { color: #a0a7b8; }
:root[data-theme="light"] .bento-card, :root[data-theme="light"] .lp-steps li, :root[data-theme="light"] .lp-svc-group {
    background: #fff; border-color: #e8eaf0; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.1); }
:root[data-theme="light"] .b-main { background: radial-gradient(120% 80% at 100% 0%, rgba(255,91,34,.14), transparent 60%), #fff; }
:root[data-theme="light"] .b-consult { background: radial-gradient(100% 90% at 0% 100%, rgba(91,79,214,.14), transparent 60%), #fff; }
:root[data-theme="light"] .bento-card p, :root[data-theme="light"] .lp-steps span { color: #5b6275; }
:root[data-theme="light"] .b-tags span, :root[data-theme="light"] .lp-svc-chips span { background: #f4f5f8; border-color: #e5e7ee; color: #2a3042; }
:root[data-theme="light"] .lp-svc-group h3 { color: #5b6275; }
:root[data-theme="light"] .b-ico { background: #fff1eb; color: #ff5b22; }
:root[data-theme="light"] .b-ico.pur { background: #eeecfc; color: #5b4fd6; }
:root[data-theme="light"] .b-ico.ok { background: #e6f7f0; color: #0f9f6e; }
:root[data-theme="light"] .b-ico.wa { background: #e7f8ee; color: #18914b; }
:root[data-theme="light"] .b-ico.info { background: #e8f1fc; color: #1a73d9; }
:root[data-theme="light"] .b-codes span { background: #fdecef; color: #d6334a; }
:root[data-theme="light"] .lp-foot { color: #8a91a3; }
@media (max-width: 640px) {
    :root[data-theme="light"] .lp-trust { background: #fff; border-color: #e8eaf0; }
    :root[data-theme="light"] .lp-trust div + div { border-color: #eef0f4; }
    :root[data-theme="light"] .lp-sticky { background: linear-gradient(180deg, transparent, rgba(246,247,251,.95) 35%); }
}
.theme-seg span { gap: 8px; }
.theme-seg .i { width: 18px; height: 18px; }

/* رقم الطلب في خطوة الدفع */
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; padding: 12px 16px;
    border: 2px dashed var(--accent); border-radius: 14px; background: var(--accent-soft); }
.code-box span { display: block; font-size: 13px; color: var(--text-soft); }
.code-box strong { display: block; font-size: 24px; letter-spacing: 1px; color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; text-align: start; }

/* البحث برقم الطلب في صفحة القسائم */
.code-search { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 10px; padding-inline-start: 16px; margin-bottom: 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.code-search > .i { color: var(--accent); }
.code-search .input { border: 0; box-shadow: none; height: 44px; padding: 0 4px; background: transparent; font-size: 16px; }
.code-search .input:focus { box-shadow: none; }
.found-box { margin-bottom: 24px; }
.receipt.is-found { border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }

/* =========================================================
   بطاقة حساب التحويل
   ========================================================= */
.bank-card { margin: 4px 0 14px; border-radius: 18px; overflow: hidden; color: #fff;
    background: radial-gradient(120% 120% at 100% 0%, rgba(255,91,34,.45), transparent 55%), linear-gradient(135deg, #1a2036, #0e1220);
    box-shadow: 0 14px 30px -14px rgba(14,18,32,.6); }
.bank-card-top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; }
.bank-card-top strong { font-size: 16px; }
.bank-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.bank-ico .i { width: 18px; height: 18px; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.bank-row[hidden] { display: none; }
.bank-val { min-width: 0; }
.bank-val span { display: block; font-size: 12px; color: #aab1c4; }
.bank-val b { display: block; font-size: 15px; font-weight: 600; word-break: break-all; text-align: start; }
.bc-number-row .bank-val b { font-size: 22px; letter-spacing: 1px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.copy-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
    transition: background .2s, transform .1s; }
.copy-chip:active { transform: scale(.95); }
.copy-chip .i { width: 16px; height: 16px; }
.copy-chip.copied { background: #0f9f6e; border-color: #0f9f6e; }
.copy-chip.copied span { font-size: 0; }
.copy-chip.copied span::after { content: "تم ✓"; font-size: 14px; }
.bc-number-row .copy-chip { background: var(--accent); border-color: var(--accent); }
.bank-preview { margin-top: 18px; padding: 16px; border-radius: 16px; border: 1px dashed var(--border); background: var(--surface-2); max-width: 460px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
    padding: 10px 18px; border-radius: 99px; background: #141824; color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
:root[data-theme="dark"] .toast { background: #eef0f6; color: #141824; }
@media (min-width: 861px) { .toast { bottom: 32px; } }
.bc-iban-row .bank-val b { font-size: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* طلب ملف أصلي */
.olist .o-ico.is-original { background: var(--warn-soft); color: var(--warn); }
.big-choice .bc-ico.amber { background: var(--warn-soft); color: var(--warn); }
.big-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .big-choices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .big-choices { grid-template-columns: 1fr; } .big-choices .big-choice.hot { grid-column: auto; } }
.hint-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; font-size: 14px;
    background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.hint-link b { color: var(--warn); }
.hint-link .i { color: var(--warn); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* =========================================================
   اختيار وحدة التحكم + الإكمال التلقائي
   ========================================================= */
.field.ac { position: relative; }
.sugg { position: absolute; z-index: 25; top: 100%; left: 0; right: 0; margin-top: -10px; max-height: 260px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(16,24,40,.3); padding: 4px; }
.sugg button { width: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: start; padding: 10px 12px; border: 0; border-radius: 9px;
    background: transparent; color: var(--text); font: inherit; cursor: pointer; min-height: 44px; }
.sugg button:hover, .sugg button:focus { background: var(--accent-soft); }
.sugg button b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; letter-spacing: .5px; }
.sugg button span { font-size: 12px; color: var(--text-faint); }
.sugg button i { margin-inline-start: auto; font-style: normal; color: var(--ok); font-weight: 700; }
.ecu-hint { font-size: 13px; color: var(--text-faint); margin-top: -4px; }
.ecu-hint b { color: var(--text-soft); }
.ecu-match { margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--ok-soft); color: var(--ok); }
.ecu-types { display: flex; flex-wrap: wrap; gap: 8px; }
.ecu-type { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.ecu-type b { font-size: 13.5px; } .ecu-type span { font-size: 11.5px; color: var(--text-faint); }
.ecu-type.off { opacity: .45; text-decoration: line-through; }

/* =========================================================
   الرصيد المسبق للعميل
   ========================================================= */
.wallet-hero { border-radius: var(--radius); padding: 22px; margin-bottom: 20px; color: #fff;
    background: radial-gradient(120% 120% at 100% 0%, rgba(255,91,34,.5), transparent 55%), linear-gradient(135deg, #1a2036, #0e1220); }
.wallet-hero > span { font-size: 14px; color: #aab1c4; }
.wallet-hero > strong { display: block; font-size: 40px; font-weight: 700; margin: 4px 0 14px; }
.wallet-hero > strong small { font-size: 16px; color: #aab1c4; font-weight: 500; }
.wallet-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-sub div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; }
.wallet-sub span { display: block; font-size: 12px; color: #aab1c4; } .wallet-sub b { font-size: 17px; }
.wallet-hero p { font-size: 13px; color: #aab1c4; margin-top: 12px; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.quick-amounts button { flex: 1; min-width: 70px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.quick-amounts button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.topup-row { display: flex; gap: 8px; } .topup-row .input { flex: 1; }
.stmt { list-style: none; margin: 0; padding: 0; }
.stmt li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); }
.stmt li:first-child { border-top: 0; }
.st-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.st-ico .i { width: 18px; height: 18px; }
.st-ico.in { background: var(--ok-soft); color: var(--ok); } .st-ico.out { background: var(--bad-soft); color: var(--bad); }
.st-ico.tr { background: var(--info-soft); color: var(--info); } .st-ico.wait { background: var(--warn-soft); color: var(--warn); }
.st-main { flex: 1; min-width: 0; } .st-main strong { display: block; font-size: 14.5px; }
.st-main > span { font-size: 12.5px; color: var(--text-faint); }
.st-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
.st-amt b { font-size: 16px; } .st-amt b.pos { color: var(--ok); } .st-amt b.neg { color: var(--bad); }
.st-amt .faint { font-size: 11.5px; }
.pay-title { font-weight: 700; margin: 6px 0 8px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { position: relative; }
.pay-opt button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: start; padding: 14px; border-radius: 14px; cursor: pointer;
    border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; min-height: 64px; transition: border-color .2s, box-shadow .2s; }
.pay-opt.best button { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pay-opt button:disabled { opacity: .55; cursor: not-allowed; }
.po-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.po-txt b { display: block; font-size: 15px; } .po-txt small { font-size: 12px; color: var(--text-faint); }
.po-link { display: inline-block; font-size: 13px; margin-top: 6px; }
@media (max-width: 640px) { .pay-options { grid-template-columns: 1fr; } .wallet-hero > strong { font-size: 34px; } .stmt li { padding: 12px 16px; } }
.cust-wallet { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 8px 0 12px; border-radius: 12px; background: var(--info-soft); color: var(--text); font-size: 13.5px; }
.cust-wallet > .i { color: var(--info); margin-top: 2px; } .cust-wallet b { color: var(--info); }
.cust-wallet span { display: block; font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.sec-title { font-size: 17px; margin: 6px 0 12px; }
.balance-strip { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.balance-strip > .i { color: var(--accent); } .balance-strip b { font-size: 17px; }
.balance-strip em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: var(--accent); font-weight: 600; }
.fin-form { margin-top: 12px; display: grid; gap: 10px; }
.refund-box > summary { cursor: pointer; list-style: none; } .refund-box > summary h3 { color: var(--bad); }

/* قائمة "المزيد" في الموبايل: كل الصفحات اللي ما وسعهاش الشريط السفلي */
.more-sheet { display: none; }
@media (max-width: 860px) {
    .bottom-nav button.active { color: var(--accent); background: var(--accent-soft); }
    .more-sheet.open { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(8,10,18,.45); }
    .more-panel {
        position: absolute; inset: auto 10px calc(84px + env(safe-area-inset-bottom)) 10px;
        background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 8px;
        display: grid; grid-template-columns: 1fr 1fr; gap: 6px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35);
        max-height: 70vh; overflow-y: auto;
    }
    .more-panel a, .more-panel button {
        display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px;
        font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 0; width: 100%; text-align: start;
    }
    .more-panel a.active { color: var(--accent); background: var(--accent-soft); }
    .more-panel form { display: flex; }
    .more-panel button { color: var(--bad); }
}

/* البحث الذكي (اختيار الماركة ونوع البوكس بالكتابة) */
.smart { position: relative; }
.smart .smart-native { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.smart .sugg { margin-top: 4px; }
.smart .sugg button b, .sugg.plain button b { font-family: inherit; letter-spacing: 0; font-weight: 600; }
.sugg button.on { background: var(--accent-soft); }
.sugg-empty { padding: 12px; font-size: 14px; color: var(--text-faint); }
.car-row { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 10px; align-items: start; }
@media (max-width: 640px) { .car-row { grid-template-columns: 130px minmax(0,1fr); } .car-row .btn { grid-column: 1 / -1; } }

/* زر الرجوع وعنوان الصفحة في الصفحات الداخلية */
.back-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); margin-inline-end: 10px; }
.back-btn:active { transform: scale(.95); }
.mobile-title { display: none; }
.btn-wa.wa-top { background: #25d366; border-color: #25d366; color: #fff; }
@media (max-width: 860px) {
    .topbar.inner .mobile-logo { display: none; }
    .topbar.inner .mobile-title { display: block; font-size: 17px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar .actions { gap: 8px; }
    .topbar .actions .btn { min-width: 44px; justify-content: center; }
}
.back-btn svg { transform: scaleX(-1); } /* في العربي الرجوع لليمين */

/* تفاصيل التعديلات المختارة */
#svc-opts { display: grid; gap: 10px; margin: 6px 0 14px; }
.svc-opt { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.svc-opt h5 { font-size: 14.5px; margin-bottom: 4px; color: var(--accent); }
.svc-opt .faint { margin-bottom: 8px; font-size: 13px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.opt-grid .field { margin-bottom: 0; }
.unit-in { position: relative; }
.unit-in span { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--text-faint); direction: ltr; pointer-events: none; }
.unit-in input { padding-inline-start: 52px; }
.seg-4 label { min-width: 70px; }
.svc-d { display: block; font-size: 12.5px; line-height: 1.7; color: var(--text-soft); font-weight: 500; margin-top: 2px; }
.svc-list { display: grid; gap: 6px; }
.svc-list > div { background: var(--accent-soft); border-radius: 10px; padding: 6px 10px; }
.svc-list b { color: var(--accent); font-size: 13.5px; }

/* طلب بوكس: بيانات التوصيل */
.ship-box { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin: 10px 0; font-size: 14px; line-height: 1.7; }
.ship-box b { font-size: 15px; }

/* ---------------- سعر الاستشارة ---------------- */
.consult-price { text-align: center; padding: 14px; border-radius: var(--radius-sm); background: var(--accent-soft); margin-bottom: 12px; }
.consult-price-val { font-size: 30px; line-height: 1.3; margin: 2px 0; }
.consult-price-val b { font-weight: 800; color: var(--accent); }
.consult-price-val span { font-size: 15px; color: var(--text-soft); }
.consult-bands { list-style: none; margin: 0 0 10px; padding: 0; font-size: 13.5px; }
.consult-bands li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text-soft); }
.consult-bands li:last-child { border-bottom: 0; }
.consult-bal { font-size: 14px; color: var(--text-soft); }

/* ---------------- صفحة عامة + فحص الشاصي ---------------- */
.pub { max-width: 820px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 40px; }
.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.pub-head nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pub-title { font-size: 24px; margin: 0 0 14px; }
.pub-foot { text-align: center; color: var(--text-soft); font-size: 13px; margin-top: 28px; }
.pub-foot a { color: inherit; text-decoration: underline; }
.vin-page { max-width: 820px; }
.vin-label { display: block; font-weight: 700; margin-bottom: 8px; }
.vin-row { display: flex; gap: 8px; }
.vin-row .btn { flex: none; }
.vin-input { flex: 1; min-width: 0; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.vin-meta { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; font-size: 13px; }
.vin-meta #vin-count { flex: none; font-weight: 700; color: var(--text-soft); }
.vin-meta #vin-count.ok { color: var(--ok); }
.vin-meta #vin-count.bad { color: var(--bad); }
.vin-intro p { line-height: 1.9; }
.vin-car-head { display: flex; gap: 12px; align-items: center; }
.vin-car-head h2 { font-size: 20px; margin: 0 0 4px; }
.vin-car-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.vin-car-ico .i { width: 26px; height: 26px; }
.vin-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vin-code b { font-size: 15px; overflow-wrap: anywhere; }
.vin-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vin-chips span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--text-soft); }
.vin-chips b { color: var(--text); }
.vin-specs, .vin-gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 14px 0 0; }
.vin-specs div, .vin-gloss div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; min-width: 0; }
.vin-specs dt, .vin-gloss dt { font-size: 12px; color: var(--text-soft); }
.vin-specs dd, .vin-gloss dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.vin-gloss dd { font-weight: 500; }
.vin-gloss dt { font-weight: 700; color: var(--text); font-size: 13px; text-align: start; }
.vin-sites { display: grid; gap: 8px; }
.vin-site { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.vin-site:hover { border-color: var(--accent); background: var(--accent-soft); }
.vin-site .grow, .vin-car-head .grow { flex: 1; min-width: 0; }
.vin-site strong { display: block; text-align: start; }
.vin-site span { display: block; font-size: 13px; color: var(--text-soft); line-height: 1.6; }
.vin-site em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 99px; }
.vin-site em.paid { color: var(--warn); background: var(--warn-soft); }
.vin-site > .i { flex: none; color: var(--text-soft); }
.vin-note { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 14px; font-size: 14px; line-height: 1.9; }
.vin-cta .card-body { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.vin-cta span { flex: 1 1 260px; color: var(--text-soft); font-size: 14px; }
.vin-toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 9px 16px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.vin-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
    .vin-input { font-size: 16px; letter-spacing: .04em; }
    .pub-title { font-size: 20px; }
}
.lp-vin { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 14px; text-decoration: none; max-width: 100%; }
.lp-vin:hover { background: rgba(255,255,255,.14); }
.lp-vin span { min-width: 0; }
.lp-vin .i { flex: none; width: 18px; height: 18px; }

/* ---- تثبيت التطبيق وإشعارات الهاتف ---- */
.pwa-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 20px; }
.pwa-ico img { width: 48px; height: 48px; border-radius: 12px; display: block; }
.pwa-body { flex: 1; min-width: 0; }
.pwa-body strong { display: block; font-size: 15px; margin-bottom: 4px; }
.pwa-body p { margin: 0 0 10px; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.pwa-steps { margin: 0 0 12px; padding-inline-start: 20px; color: var(--text); font-size: 14px; line-height: 1.9; }
.pwa-share { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--info-soft); vertical-align: middle; }
.pwa-share svg { width: 16px; height: 16px; fill: none; stroke: var(--info); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pwa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pwa-actions .btn .i { width: 16px; height: 16px; }
.push-state { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.push-state .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-faint); flex: none; }
.push-state.on .dot { background: var(--ok); }
.push-state.bad .dot { background: var(--bad); }
@media (max-width: 480px) { .pwa-card { padding: 14px; gap: 12px; } .pwa-ico img { width: 40px; height: 40px; } }
/* نافذة التثبيت تظهر من أسفل الشاشة (فوق كل شيء) */
.pwa-card { position: fixed; z-index: 90; margin: 0; bottom: 16px; inset-inline-start: 16px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgba(16,24,40,.22); animation: pwa-up .35s var(--ease, ease) both; }
.pwa-back { position: fixed; inset: 0; z-index: 89; background: rgba(8,10,18,.45); }
@keyframes pwa-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) {
    .pwa-card { inset-inline: 0; bottom: 0; width: auto; border-radius: 20px 20px 0 0; border: 0; border-top: 4px solid var(--accent); padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
    .pwa-actions { flex-direction: column; }
    .pwa-actions .btn { width: 100%; justify-content: center; }
}
html.pwa-open, html.pwa-open body { overflow: hidden; }

/* ---- تقييم المهندس ---- */
.stars { color: #f5a524; font-size: 20px; letter-spacing: 2px; unicode-bidi: isolate; }
.stars i { font-style: normal; color: var(--border); }
.stars.sm { font-size: 14px; letter-spacing: 1px; }
.rate-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { font-size: 36px; line-height: 1; color: var(--border); cursor: pointer; transition: color .12s, transform .12s; padding: 2px; }
.star-pick label:active { transform: scale(.9); }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f5a524; }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.rate-word { min-height: 20px; font-weight: 600; }
.rating-chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #b77900; white-space: nowrap; }
.rating-chip::before { content: '★'; color: #f5a524; }
.invoice-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rate-row:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-ico.y { color: #f5a524; font-size: 18px; }
.card-head h3 > .i { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; margin-inline-end: 4px; }

/* ---- اختيار نوع الحساب عند التسجيل ---- */
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-pick label { cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick span { display: grid; gap: 2px; justify-items: start; height: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, background .15s; }
.type-pick span .i { width: 22px; height: 22px; color: var(--text-faint); }
.type-pick b { font-size: 15px; }
.type-pick small { color: var(--text-soft); font-size: 12px; line-height: 1.5; }
.type-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.type-pick input:checked + span .i { color: var(--accent); }
.type-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bank-fields { border-top: 1px solid var(--border); margin: 6px 0 16px; padding-top: 16px; }
.bank-fields h4 { margin: 0 0 10px; font-size: 15px; }

/* ---- عروض الرابش ---- */
.offer-card.best { border-color: var(--ok); }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.offer-price { font-size: 26px; font-weight: 700; line-height: 1.2; }
.offer-price small { font-size: 14px; color: var(--text-soft); font-weight: 500; }
.offer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; }
.offer-meta .i { width: 16px; height: 16px; vertical-align: -3px; color: var(--text-faint); }
.dev-note { display: flex; gap: 10px; align-items: flex-start; background: var(--info-soft); color: var(--info); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: 14px; line-height: 1.7; }
.dev-note .i { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.req-row { display: grid; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.req-row:last-child { border-bottom: 0; }
.req-row:hover { background: var(--surface-2); }
.req-row .req-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-row .req-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-soft); font-size: 13px; }
.o-extra { padding: 0 18px 12px; margin-top: -6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.rate-form { display: flex; gap: 6px; align-items: center; }
.rate-form .input { width: 76px; height: 36px; padding: 0 8px; }
@media (max-width: 380px) { .lp-head nav a.lp-login { display: inline-flex; } .lp-head nav .btn { padding: 0 12px; } .hide-xs { display: none; } }
