.brand-name, .hero h1, .splash .t { font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.01em; }
/* ============================================================
   «على الباب» — design system v2
   Warm cream surfaces, deep green brand, gold accents.
   Mobile first, RTL, one palette per <html data-theme>.
   ============================================================ */

:root,
html[data-theme="teal"] {
    --brand: #0b3b31;
    --brand-2: #14604f;
    --brand-wash: #e8f1ed;
    --brand-door: #f7ede2;
    --brand-house: #f7ede2;
    --gold: #c08a3e;
    --gold-soft: #f3e3c8;
    --ink: #12211d;
    --ink2: #5a6a64;
    --ink4: #a6b1ac;
    --line: #e9e3d9;
    --page: #fffdf9;
    --raised: #faf5ec;
    --card: #ffffff;
    --red: #c22b38;
    --red-wash: #fdecee;
    --teal: var(--brand);
    --teal-wash: var(--brand-wash);
    --radius: 20px;
    --radius-sm: 14px;
    --shadow-1: 0 1px 2px rgba(18, 33, 29, 0.05), 0 8px 24px -18px rgba(18, 33, 29, 0.45);
    --shadow-2: 0 2px 6px rgba(18, 33, 29, 0.06), 0 18px 40px -24px rgba(18, 33, 29, 0.5);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-theme="clay"] {
    --brand: #a8411f;
    --brand-2: #c4552b;
    --brand-wash: #fbeee4;
    --brand-door: #fff6ec;
    --brand-house: #fff6ec;
    --gold: #b8791f;
    --gold-soft: #f6e3c8;
    --ink: #241a15;
    --ink2: #6b5a50;
    --ink4: #bfaea3;
    --line: #efe2d7;
    --page: #fffdfa;
    --raised: #fbf1e9;
    --card: #ffffff;
}

html[data-theme="olive"] {
    --brand: #1a4a33;
    --brand-2: #246b4a;
    --brand-wash: #eaf2ea;
    --brand-door: #d9a441;
    --brand-house: #fbf3e4;
    --gold: #c79a3f;
    --gold-soft: #f2e4c6;
    --ink: #16211b;
    --ink2: #5d6b60;
    --ink4: #a8b3aa;
    --line: #e4e8e0;
    --page: #fcfdfb;
    --raised: #f1f4ee;
    --card: #ffffff;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--raised);
    color: var(--ink);
    font-family: "Cairo", -apple-system, "Segoe UI", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

/* ---------- shell ---------- */
.app {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--page);
    padding: 10px 16px calc(122px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.bare .app { padding-bottom: 40px; }

/* ---------- brand bar ---------- */
.brandbar { padding-top: 8px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
}

.brand .mark { display: block; flex: 0 0 auto; filter: drop-shadow(0 6px 12px rgba(11, 59, 49, 0.18)); }
.brand .brand-mark { display: block; flex: 0 0 auto; width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(11, 59, 49, 0.18)); }

.brand-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.015em; }
.brand-place {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--ink2);
    letter-spacing: 0.01em;
}
.brand-place::before {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: var(--gold);
}

.userline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: -4px;
}

.who { color: var(--ink2); font-size: 13px; }
.who .dot { margin: 0 6px; opacity: 0.5; }

.link {
    border: 0;
    background: transparent;
    color: var(--ink2);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 8px;
}

/* ---------- headings ---------- */
.h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 2px; letter-spacing: -0.02em; }
.h2 { font-size: 18px; margin: 20px 0 6px; letter-spacing: -0.01em; }
.meta { margin: 2px 0; color: var(--ink2); font-size: 13px; }
.empty { color: var(--ink2); font-size: 14px; padding: 6px 2px; }
.name { font-weight: 700; }
.price { font-weight: 700; color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: 22px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.hero-lockup { display: flex; align-items: center; gap: 14px; }
.hero-lockup .mark { display: block; flex: 0 0 auto; filter: drop-shadow(0 10px 20px rgba(11, 59, 49, 0.2)); }
.hero-lockup .hero-mark { display: block; flex: 0 0 auto; width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(11, 59, 49, 0.2)); }
.hero h1 { font-size: 30px; margin: 0; line-height: 1.2; letter-spacing: -0.025em; }
.hero .hero-place {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 3px 0 0;
    color: var(--ink2);
    font-size: 13px;
}
.hero .hero-place::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--gold);
}
.hero p { margin: 0; color: var(--ink2); font-size: 14.5px; }

/* banner card on the shops home */
.hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    animation: rise 0.5s var(--ease);
}
.hero-card img { display: block; width: 100%; height: 210px; object-fit: cover; }
.hero-card .scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 32, 26, 0.92) 4%, rgba(6, 32, 26, 0.42) 40%, rgba(6, 32, 26, 0.06) 76%);
}
.hero-card .cap {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px 18px 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-card .cap .t { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.hero-card .cap .s { font-size: 13px; opacity: 0.88; }
.hero-card .cap .pill {
    align-self: flex-start;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

/* ---------- cards ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--card);
    box-shadow: var(--shadow-1);
}

.card h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }

.list { display: flex; flex-direction: column; gap: 10px; }

.shop, .row, .order {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-1);
}

.shop {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 11px;
    text-decoration: none;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
    animation: rise 0.45s var(--ease);
}
.shop:active { transform: scale(0.985); box-shadow: var(--shadow-2); }

.shop-media {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-wash);
    display: grid;
    place-items: center;
}
.shop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shop-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.shop-body .name { font-size: 16.5px; }

.tile {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 16px;
    background: linear-gradient(150deg, var(--brand-2), var(--brand));
    color: #fff;
    font-weight: 800;
    font-size: 26px;
}

.tile.big { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }

.shop-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; align-items: center; }

/* shop cover on the shop page */
.cover {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
    animation: rise 0.45s var(--ease);
}
.cover img { display: block; width: 100%; height: 168px; object-fit: cover; }
.cover .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6, 32, 26, 0.94) 4%, rgba(6, 32, 26, 0.55) 34%, rgba(6, 32, 26, 0.08) 74%);
}
.cover .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 14px 16px 16px; color: #fff; }
.cover .cap .t { display: block; font-size: 21px; font-weight: 800; }
.cover .cap .s { display: block; margin-top: 3px; font-size: 12.5px; opacity: 0.9; }

/* ---------- rows ---------- */
.row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    flex-wrap: wrap;
    animation: rise 0.4s var(--ease);
}

.row-body { flex: 1 1 140px; display: flex; flex-direction: column; min-width: 0; }

.item-thumb {
    width: 56px; height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--brand-wash);
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.order { padding: 13px; display: flex; flex-direction: column; gap: 3px; animation: rise 0.4s var(--ease); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.actions form { display: inline-flex; }
.actions form.price-accept { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
.actions form.price-accept .btn { align-self: flex-start; }

/* ---------- chips ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--raised);
    color: var(--ink2);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.chip.is-new { background: var(--brand-wash); color: var(--brand); }
.chip.is-accepted, .chip.is-way { background: #eef1f7; color: #3f4a72; }
.chip.is-rejected { background: var(--red-wash); color: var(--red); }
.chip.is-done { background: var(--gold-soft); color: #8a5f18; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 22px -14px rgba(11, 59, 49, 0.9);
    transition: transform 0.14s var(--ease), filter 0.14s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); filter: brightness(0.96); }

.btn.small { min-height: 40px; padding: 0 15px; font-size: 14px; border-radius: 12px; }
.btn.ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}
.btn:disabled { opacity: 0.45; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); font-weight: 600; }

input, select {
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(20, 96, 79, 0.14);
}

.actions select { min-height: 40px; font-size: 14px; }

/* ---------- notices ---------- */
.notice, .error {
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    animation: rise 0.35s var(--ease);
}

.notice { background: var(--brand-wash); color: var(--brand); }
.error { background: var(--red-wash); color: var(--red); }

.banner { border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; line-height: 1.55; animation: rise 0.35s var(--ease); }
.banner.warn { background: #fff4e0; color: #8a5a00; border: 1px solid #f3dcb0; }
.banner.danger { background: var(--red-wash); color: var(--red); border: 1px solid #f2c9cd; }
.banner strong { font-weight: 800; }

/* ---------- totals / cart ---------- */
.totals { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); padding-top: 12px; }
.totals .line { display: flex; justify-content: space-between; gap: 10px; color: var(--ink2); font-size: 14px; }
.totals .line.total { color: var(--ink); font-weight: 800; font-size: 17px; }

.cartbar {
    position: sticky;
    bottom: calc(84px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.92);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-2);
}

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.qty button { width: 42px; height: 40px; border: 0; background: transparent; font-size: 19px; cursor: pointer; color: var(--brand); font-weight: 700; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

.stat { display: flex; gap: 26px; }
.stat > div { display: flex; flex-direction: column; }
.stat-num { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }

/* ---------- bottom navigation ---------- */
.bottomnav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--page) 55%, rgba(255, 253, 249, 0.65));
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
}

.bottomnav .inner {
    display: flex;
    width: 100%;
    max-width: 560px;
    gap: 4px;
}

.bn-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 4px 5px;
    border-radius: 14px;
    color: var(--ink2);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 700;
    position: relative;
    transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.bn-item svg { width: 23px; height: 23px; display: block; }
.bn-item.is-on { color: var(--brand); background: var(--brand-wash); }
.bn-item:active { transform: scale(0.97); }

.bn-count {
    position: absolute;
    top: 3px;
    inset-inline-end: 26%;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    display: grid;
    place-items: center;
}

/* ---------- splash ---------- */
.splash { display: none; }

html.splash-on .splash {
    display: grid;
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    background:
        radial-gradient(120% 80% at 50% 0%, #1a6a56 0%, #0b3b31 55%, #072a23 100%);
    color: #fff;
    animation: splash-out 0.55s var(--ease) 1.15s forwards;
    pointer-events: none;
}
.splash .lock { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: pop 0.7s var(--ease) both; }
.splash .lock img { width: 136px; height: 136px; padding: 12px; box-sizing: border-box; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6); }
.splash .t { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.splash .s { font-size: 13px; opacity: 0.8; display: flex; align-items: center; gap: 8px; }
.splash .s::before, .splash .s::after { content: ""; width: 18px; height: 1px; background: rgba(255, 255, 255, 0.5); }

/* ---------- misc ---------- */
.foot { margin-top: auto; padding-top: 26px; color: var(--ink4); font-size: 12px; text-align: center; }
.back { color: var(--ink2); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.back::before { content: "‹"; font-size: 20px; line-height: 1; }

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes pop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: none; }
}

@keyframes splash-out {
    to { opacity: 0; visibility: hidden; }
}

/* list rows reveal immediately: no delay, no backwards fill, so a row is never blank before it animates */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
    .splash { display: none; }
}

@media (min-width: 600px) {
    .app { margin: 20px auto; border-radius: 26px; min-height: auto; padding: 20px 24px 100px; box-shadow: 0 30px 80px -50px rgba(18, 33, 29, 0.6); }
    .bottomnav { position: fixed; }
}

/* admin wallet cards */
.wallet-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-1);
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: rise 0.4s var(--ease);
}
.wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wallet-nums > div { display: flex; flex-direction: column; background: var(--raised); border-radius: 12px; padding: 7px 9px; }
.wallet-nums .wn { font-weight: 800; font-size: 15px; color: var(--brand); letter-spacing: -0.01em; }
.wallet-nums .wl { font-size: 11px; color: var(--ink2); }
.wallet-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.wallet-form input { min-height: 40px; font-size: 14px; padding: 0 10px; min-width: 0; width: 100%; }
.wallet-form .btn { white-space: nowrap; }
.wallet-form .btn { min-height: 40px; }

/* area picker chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 4px; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-pick {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink2);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.chip-pick.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

.docs-box { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.doc-pick { display: flex; flex-direction: column; gap: 6px; font-weight: 700; position: relative; border: 2px dashed var(--brand, #0f5c4d); border-radius: 14px; padding: 14px; text-align: center; color: var(--brand, #0f5c4d); cursor: pointer; background: #fff; }
.doc-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 14px; }
.doc-prev { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid #e6e1d8; }
.doc-prev.small { width: calc(33% - 6px); max-height: 120px; }
.doc-thumbs { display: flex; gap: 8px; }
.doc-cam { width: 100%; border-radius: 16px; background: #000; transform: scaleX(-1); max-height: 360px; object-fit: cover; }
.doc-step { font-weight: 800; font-size: 18px; text-align: center; color: #0E6E63; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.doc-grid a { display: flex; flex-direction: column; gap: 4px; text-align: center; text-decoration: none; }
.doc-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid #e6e1d8; }
.btn[disabled] { opacity: .45; }
.form-error { color: #b3202e; font-weight: 700; }

.code-box { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 10px 0 4px; padding: 14px; border-radius: 16px; background: #E9F3F0; border: 2px dashed #0E6E63; text-align: center; }
.code-box b { font-size: 40px; letter-spacing: 10px; color: #0B3B31; font-family: system-ui, -apple-system, sans-serif; direction: ltr; }
.code-form input { width: 150px; text-align: center; font-weight: 800; font-size: 16px; }
.code-form input:not(:placeholder-shown) { letter-spacing: 6px; font-size: 20px; }
.consent { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-top: 8px; }
.consent input { width: 22px; height: 22px; }

textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line, #e6e1d6); border-radius: var(--radius-sm, 12px); background: #fff; resize: vertical; min-height: 110px; }
.list-text { white-space: pre-wrap; background: var(--brand-wash); border-radius: 10px; padding: 8px 10px; margin: 2px 0; font-size: 14px; }
.actions input { max-width: 170px; }

.emo { font-size: 26px; width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--brand-wash); border-radius: 12px; }
.search { width: 100%; margin: 6px 0 2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip-pick { white-space: nowrap; flex: none; }
.cat-head { font-size: 14px; font-weight: 800; color: var(--muted, #6b6a63); margin: 14px 4px 2px; }
.prow .pprice { width: 74px; flex: none; text-align: center; padding: 8px 6px; }
.prow .preq { display: flex; gap: 4px; align-items: center; flex: none; font-size: 11px; font-weight: 700; color: var(--muted, #6b6a63); cursor: pointer; }
.prow .preq input { width: auto; margin: 0; }
.prow .pbtn { flex: none; min-width: 74px; }
.prow.is-on { background: var(--brand-wash); }
.prow.is-off { opacity: 0.6; }
.prow.is-off .name { text-decoration: line-through; }
[data-row][hidden], [data-head][hidden] { display: none !important; }
.prow { flex-wrap: nowrap; gap: 8px; }
.prow .row-body { min-width: 0; flex: 1; }
.prow .name { font-size: 14px; line-height: 1.35; }
.prow .pprice { width: 64px; }
.prow .pbtn { min-width: 68px; padding-inline: 8px; font-size: 13px; }

/* shop onboarding checklist */
.onboard .steps { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.onboard .steps li.is-done { color: var(--ink-3, #6b6b6b); }

/* help assistant */
.help-fab { position: fixed; inset-inline-start: 10px; bottom: 84px; z-index: 40; background: var(--brand, #0f5c4d); color: #fff; width: 34px; height: 34px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.18); opacity: .78; }
body.bare .help-fab { bottom: 18px; }
body:has(form.form) .help-fab, body:has(input:focus, textarea:focus, select:focus) .help-fab { display: none; }
.help-chat { display: grid; gap: 10px; max-height: 340px; overflow-y: auto; }
.bubble { padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.7; max-width: 92%; }
.bubble.bot { background: var(--brand-wash, #e9f3f0); justify-self: start; }
.bubble.me { background: #f1efe9; justify-self: end; font-weight: 700; }
.bubble .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.help-ask { display: flex; gap: 8px; margin: 10px 0; }
.help-ask input { flex: 1; }
.faq-q { text-align: start; padding: 12px 14px; background: #fff; border: 1px solid #e7e3da; border-radius: 12px; font: inherit; font-weight: 700; margin-bottom: 8px; width: 100%; cursor: pointer; }

/* ratings + tracking */
.rating { color: #b7791f; font-weight: 800; }
.track { display: flex; list-style: none; padding: 0; margin: 10px 0; gap: 4px; }
.track li { flex: 1; text-align: center; font-size: 11px; color: #9a958a; position: relative; }
.track li i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #ddd8cc; margin: 0 auto 4px; }
.track li.done i, .track li.now i { background: var(--brand, #0f5c4d); }
.track li.now { color: var(--brand, #0f5c4d); font-weight: 800; }
.track li.now i { box-shadow: 0 0 0 4px rgba(15,92,77,.18); }
.ratebox { display: grid; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e0dbd0; }
.ratebox-row { display: flex; align-items: center; justify-content: space-between; }
.starpick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 28px; color: #d9d3c4; cursor: pointer; line-height: 1; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: #e0a100; }

/* offers, credit, media, family order */
.offer { background: #fff4d6; color: #7a5200; border: 1px solid #f0d48a; border-radius: 12px; padding: 9px 12px; margin: 8px 0; font-weight: 800; }
.offer.small { display: inline-block; padding: 3px 9px; margin: 4px 0 0; font-size: 12px; }
.card.credit { background: #eef7f3; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.check input { width: auto; }
.media-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-media { max-width: 100%; border-radius: 12px; margin: 6px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.install-bar { position: static; margin: 0 0 10px; background: #fff; border: 1px solid #e0dbd0; border-radius: 16px; padding: 12px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.10); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.push-bar { background: #0b5e4f; color: #fff; border: 0; }
.push-bar .meta { color: #fff; margin: 0; }
.push-bar .btn { background: #fff; color: #0b5e4f; border: 0; font-weight: 800; }
.push-bar .push-x { background: none; border: 0; color: #fff; font-size: 15px; opacity: .85; }
.install-bar .meta { margin: 0; }

/* service tiles (hub + shops page) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.tile-link { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: inherit; text-decoration: none; }
.tile-link:active { transform: scale(.98); }
.tile-link .e { font-size: 22px; }
.tile-link .t { font-weight: 700; }
.form label.check { flex-direction: row; align-items: center; }
/* Sample shops & couriers: visibly illustrative, muted, no interaction */
.shop.is-sample { opacity: .72; cursor: default; border-style: dashed; }
.shop.is-sample:active { transform: none; box-shadow: none; }
.sample-note { margin-top: 10px; }
.courier-strip { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 14px; background: var(--card); margin: 10px 0; }
.courier-avatars { display: flex; flex-wrap: wrap; gap: 4px; }
.avatar-sample { width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; opacity: .75; }

/* admin stats dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat-box { border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat-box .how, .card .how { font-size: 11px; opacity: .72; line-height: 1.55; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 8px; }
.bars .bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 0; }
.bars .bar-group { flex: 1; display: flex; align-items: flex-end; gap: 1px; height: 100%; }
.bars-x { display: flex; gap: 3px; margin-top: 4px; }
.bars-x span { flex: 1; font-size: 9px; text-align: center; opacity: .6; overflow: hidden; }
.legend { display: flex; gap: 12px; font-size: 12px; flex-wrap: wrap; margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; }
.cmp { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.cmp-row { display: flex; align-items: center; gap: 8px; }
.cmp-row .meta { min-width: 96px; }
.cmp-track { flex: 1; background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 4px; height: 14px; overflow: hidden; }
.cmp-track .bar { height: 100%; border-radius: 4px; }

/* RideSharingModule («اطلب مشوارك»): long Arabic text must wrap, and the page keeps clear of the floating help button. */
.ride-page { padding-bottom: 96px; }
.ride-page .order, .ride-page .card, .ride-page p, .ride-page h1, .ride-page h2, .ride-page label {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}
.ride-page .chips { flex-wrap: wrap; overflow: visible; }
.ride-page .order-head { flex-wrap: wrap; }
.ride-page .order-head .name { min-width: 0; }

/* perf+design: photo-less shop cover uses a gradient instead of a 99KB stock photo */
.cover.cover-plain { background: linear-gradient(135deg,#0b3b31 0%,#12574a 55%,#1b6b57 100%); }
.cover.cover-plain::after { content:""; position:absolute; inset:0; background:
  radial-gradient(circle at 88% 18%, rgba(192,138,62,.30), transparent 55%),
  radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 45%); }
.cover.cover-plain .cap { position:relative; z-index:2; }
.cover.cover-plain { height:132px; display:flex; align-items:flex-end; }
.cover.cover-plain .cap .t { font-size:23px; }
/* tighter, calmer product rows */
.list .row { align-items:center; }
.row .name { font-size:15px; }
.row .price { font-size:13px; color:#6b6357; }
.row .btn.small { min-width:64px; }

/* ===== v2 design layer: one icon set, one radius scale, one type scale ===== */
:root{--ink:#14201d;--muted:#6d6459;--line:#ece5d9;--card:#fff;--r-xl:22px;--r-lg:18px;--r-md:14px;--r-sm:10px}
.h1{font-size:24px;font-weight:800;letter-spacing:-.02em;margin:2px 0 10px}
.h2{font-size:17px;font-weight:800;letter-spacing:-.01em;margin:18px 0 10px;display:flex;align-items:center;gap:8px}
.searchbar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:0 14px;height:46px;box-shadow:0 1px 2px rgba(18,32,28,.04);margin:6px 0 12px}
.searchbar svg{width:19px;height:19px;stroke:#9a9186;flex:0 0 auto}
.searchbar input{border:0;background:transparent;outline:0;font:inherit;font-size:15px;width:100%;color:var(--ink)}
.searchbar input::placeholder{color:#a49a8e}
.pills{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
.pills::-webkit-scrollbar{display:none}
.pills .chip-pick{flex:0 0 auto;border:1px solid var(--line);background:#fff;color:#4a443c;border-radius:999px;padding:8px 15px;font-size:13.5px;font-weight:700;text-decoration:none}
.pills .chip-pick.is-on{background:#17332b;border-color:#17332b;color:#fff}
.catgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:4px 0 6px}
.cat{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:inherit}
.cat .ic{width:100%;aspect-ratio:1/1;border-radius:var(--r-lg);background:#f4efe6;display:grid;place-items:center;border:1px solid var(--line)}
.cat .ic svg{width:26px;height:26px;stroke:#17332b}
.cat .ic img{width:100%;height:100%;object-fit:cover;border-radius:var(--r-lg)}
.cat .lbl{font-size:12px;font-weight:700;text-align:center;line-height:1.25;color:#3d3831}
.cat .badge{position:relative;margin-top:-26px;margin-bottom:8px;background:var(--gold);color:#fff;font-size:10.5px;font-weight:800;border-radius:999px;padding:2px 8px}
.joinwrap{display:grid;gap:10px;margin:6px 0 4px}
.joincard{display:block;text-decoration:none;border-radius:var(--r-xl);padding:16px 16px 14px;border:1px solid transparent}
.joincard.is-courier{background:linear-gradient(160deg,#e8f3ee,#dcefe6);border-color:#cfe6da}
.joincard.is-shop{background:linear-gradient(160deg,#fdf3e2,#fbe9cf);border-color:#f0dcbd}
.joincard .jc-t{display:block;font-size:17px;font-weight:800;color:#17332b;letter-spacing:-.01em}
.joincard .jc-s{display:block;font-size:13px;line-height:1.45;color:#5b554c;margin:5px 0 12px}
.joincard .jc-btn{display:inline-block;background:#17332b;color:#fff;font-weight:800;font-size:14px;padding:10px 18px;border-radius:var(--r-md)}
.joincard.is-shop .jc-btn{background:var(--gold)}
.shop{border-radius:var(--r-lg);border:1px solid var(--line);background:#fff;box-shadow:0 1px 2px rgba(18,32,28,.04)}
.shop .tile{border-radius:var(--r-md);background:linear-gradient(150deg,#17332b,#2a5a4b);color:#fff;font-weight:800}
.shop .shop-media{border-radius:var(--r-md);overflow:hidden}
.shop .name{font-size:15.5px;font-weight:800}
.shop .meta{font-size:12.5px;color:var(--muted)}
.row{border-radius:var(--r-lg)}
.skel{background:linear-gradient(90deg,#f1ece3 25%,#f8f5ef 37%,#f1ece3 63%);background-size:400% 100%;animation:sk 1.2s ease-in-out infinite;border-radius:var(--r-sm)}
@keyframes sk{0%{background-position:100% 0}100%{background-position:0 0}}
.skel-card{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;margin-bottom:10px}
.skel-card .a{width:56px;height:56px;border-radius:var(--r-md)}
.skel-card .b{flex:1;display:grid;gap:8px;align-content:center}
.skel-card .b i{display:block;height:11px;border-radius:6px}
.emptystate{text-align:center;padding:26px 18px;border:1px dashed var(--line);border-radius:var(--r-xl);background:#fff}
.emptystate .em{font-size:34px;line-height:1}
.emptystate .t{display:block;font-weight:800;font-size:16px;margin:10px 0 4px}
.emptystate .s{display:block;font-size:13px;color:var(--muted);margin-bottom:14px}
@media (max-width:360px){.catgrid{grid-template-columns:repeat(3,1fr)}.joincard .jc-t{font-size:16px}}
/* every screen with the fixed bottom nav must clear it, incl. the last form button */
.app{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
body.bare .app{padding-bottom:16px}
form.form, .form{padding-bottom:8px}
@media (max-width:360px){.app{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}}
/* WhatsApp gate: one thing on screen until the number is confirmed */
.lockwrap{min-height:calc(100vh - 24px);display:block;padding:6px 16px 16px;background:linear-gradient(180deg,#f7f3ea,#fffdf9)}
.lockcard{margin:0 auto;width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);padding:22px 18px;text-align:center;box-shadow:0 6px 24px rgba(18,32,28,.06)}
.lockcard .lockem{font-size:34px;line-height:1}
.lockcard .h1{margin:8px 0 6px}
.lockcard .code-box{margin:14px 0 10px;background:#f7f3ea;border:1px dashed var(--line)}
.lockcard .btn{width:100%;margin-top:12px}
.lockcard .meta{line-height:1.6}
/* offers banner + photo category tiles */
.offer-banner{display:block;text-decoration:none;border-radius:var(--r-xl);padding:0;margin:0 0 12px;background:linear-gradient(135deg,#0b3b31 0%,#175a4b 60%,#1f6f59 100%);color:#fff;position:relative;overflow:hidden;box-shadow:0 6px 18px rgba(11,59,49,.18)}
.offer-banner::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 88% 12%,rgba(192,138,62,.45),transparent 55%)}
.offer-banner>*{position:relative;z-index:1}
.ob-tag{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);font-size:11.5px;font-weight:800;padding:3px 10px;border-radius:999px}
.ob-t{display:block;font-size:19px;font-weight:800;line-height:1.35;margin:9px 0 3px}
.ob-s{display:block;font-size:12.5px;opacity:.85}
.ob-btn{display:inline-block;margin-top:12px;background:var(--gold);color:#fff;font-weight:800;font-size:14px;padding:10px 18px;border-radius:var(--r-md)}
.cat .ic img{width:100%;height:100%;object-fit:cover;border-radius:var(--r-lg)}
.cat .badge{margin-top:-13px;margin-bottom:5px;background:#fff;color:#17332b;border:1px solid var(--line);box-shadow:0 2px 6px rgba(18,32,28,.10)}

/* ---------- illustrated empty states ---------- */
.emptystate.is-art{border:0;background:transparent;padding:14px 10px 30px;text-align:center}
.emptystate.is-art .art{display:block;width:148px;height:148px;margin:0 auto}
.emptystate.is-art .art svg{display:block;width:100%;height:100%}
.emptystate.is-art .t{margin:4px 0 16px;font-size:15px;font-weight:700;color:var(--ink2)}
.emptystate.is-art .btn{display:inline-flex;align-items:center;justify-content:center;min-width:176px}

/* ---------- place / delivery picker ---------- */
.placebar{position:relative;margin:2px 0 10px}
.placebar>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);cursor:pointer;box-shadow:0 1px 2px rgba(18,32,28,.04)}
.placebar>summary::-webkit-details-marker{display:none}
.placebar .pin{width:34px;height:34px;flex:0 0 auto;border-radius:50%;background:var(--brand-wash);color:var(--brand);display:grid;place-items:center}
.placebar .pin svg{width:19px;height:19px}
.placebar .pb-l{display:block;font-size:11px;font-weight:700;color:var(--muted);line-height:1.3}
.placebar .pb-v{display:block;font-size:14px;font-weight:800;color:var(--ink);line-height:1.4}
.placebar .chev{margin-inline-start:auto;flex:0 0 auto;color:var(--muted);transition:transform .16s ease}
.placebar[open] .chev{transform:rotate(180deg)}
.place-sheet{position:absolute;z-index:80;inset-inline:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:0 18px 40px rgba(11,59,49,.16);padding:8px;max-height:56vh;overflow:auto}
.place-sheet .ps-h{font-size:12px;font-weight:800;color:var(--muted);padding:6px 10px 8px}
.place-sheet a{display:flex;align-items:center;gap:8px;padding:11px 10px;border-radius:12px;font-size:14px;font-weight:700;color:var(--ink)}
.place-sheet a.is-on{background:var(--brand-wash);color:var(--brand)}
.place-sheet a .tick{margin-inline-start:auto;color:var(--brand);width:18px;height:18px}

/* ---------- map picker ---------- */
.mappick{margin-top:4px}
.mp-map{position:relative;height:210px;border-radius:var(--r-lg);overflow:hidden;background:#eef1ef;border:1px solid var(--line);cursor:crosshair}
.mp-tiles{position:absolute;inset:0;width:768px;height:768px}
.mp-tiles img{position:absolute;width:256px;height:256px;display:block}
.mp-pin{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);color:var(--brand);width:34px;height:34px;filter:drop-shadow(0 3px 6px rgba(11,59,49,.35))}
.mp-pin svg{width:34px;height:34px}
.mp-bar{display:flex;align-items:center;gap:10px;margin:8px 0}
.mp-bar .meta{margin-inline-start:auto;font-size:12px}
.mp-form .btn{width:100%}
.placebar .chev{width:20px;height:20px;display:block}
.placebar summary .pb-txt{min-width:0;flex:1 1 auto}

/* map fallback */
.mp-note{display:none;margin:8px 0 0;padding:10px 12px;border-radius:12px;background:#fff4e0;color:#7a4b00;font-size:13px;line-height:1.6}
.mappick.mp-dead .mp-note{display:block}
.mappick.mp-dead .mp-map{opacity:.5}
.mp-areas{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.mp-ah{font-size:12.5px;color:var(--muted,#6b7280)}
.mp-chips{display:flex;flex-wrap:wrap;gap:8px}
.mp-chip{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.12);font-size:13px;color:inherit;text-decoration:none;background:#fff}
.mp-chip.on{background:var(--green,#0f5132);color:#fff;border-color:transparent}
.mp-attr{position:absolute;bottom:4px;top:auto;inset-inline-end:6px;font-size:9.5px;color:#5b6472;background:rgba(255,255,255,.75);padding:1px 5px;border-radius:6px;text-decoration:none;z-index:3}

.mappick .mp-map{position:relative}
.mappick .mp-attr{top:auto;bottom:5px}
.mp-zoom{position:absolute;display:flex;flex-direction:column;gap:6px;top:8px;left:8px;z-index:4;width:34px}
.mp-zoom button{width:34px;height:34px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;font-size:20px;line-height:1;color:#222;cursor:pointer}
.mp-tiles{left:0!important;right:auto!important;top:0!important;bottom:auto!important;height:768px}

.ob-car{overflow:hidden;touch-action:pan-y}
.ob-car::after{z-index:0;pointer-events:none}
.ob-track{display:flex;width:100%;will-change:transform}
.ob-slide{flex:0 0 100%;min-width:0;display:block;box-sizing:border-box;padding:18px;color:#fff;text-decoration:none;position:relative;z-index:1}
.ob-car[data-n]:not([data-n="1"]) .ob-slide{padding-bottom:30px}
.ob-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:6px;z-index:2;pointer-events:none}
.ob-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);transition:all .3s}
.ob-dots i.on{width:18px;border-radius:3px;background:#fff}
.ob-t{min-height:2.7em}

.live-call{display:inline-block;background:var(--gold,#c08a3e);color:#fff;font-weight:800;font-size:13px;padding:7px 14px;border-radius:10px;text-decoration:none}
.live-call[hidden]{display:none}
.geo-gate{margin:0 0 12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.geo-gate p{margin:0;flex:1 1 220px}
.geo-gate[data-state="ok"]{background:#eef7f1;border-color:#cfe6d7}
.geo-gate[data-state="bad"]{background:#fdeceb;border-color:#f0b8b3}
.geo-gate[data-state="bad"] p{color:#8a1f17;font-weight:700}
form[data-needs-loc].is-locked button[type=submit]{opacity:.45}
.loc-lock{margin:8px 0 0;padding:9px 11px;border-radius:10px;background:#fdeceb;color:#8a1f17;font-size:13px;font-weight:700;line-height:1.6}
.loc-lock .btn{margin-inline-start:6px}
.ob-t{overflow-wrap:anywhere}

.live.neutral .live-dot{display:none}
