@font-face { font-family: "Baloo"; src: url("/fonts/BalooBhaijaan2-0.woff2") format("woff2"); font-weight: 800; font-display: swap; }
.brand-name, .hero h1, .splash .t { font-family: "Baloo", "Cairo", sans-serif; }
/* ============================================================
   «على الباب» — 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: 'Baloo Bhaijaan 2', 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; }
