/* ==========================================================================
   Trend C — design tokens & components (logical properties: works LTR & RTL)
   ========================================================================== */
:root {
  --brand: #1B3A8C;
  --brand-strong: #142C6B;
  --brand-soft: #E8EEFB;
  --accent: #E3A812;
  --accent-strong: #C99307;
  --ink: #111827;
  --ink-2: #1f2937;
  --ink-soft: #374151;
  --muted: #6b7280;
  --paper: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --wa: #16a34a;
  --wa-strong: #15803d;
  --focus: #2563eb;

  --font: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(17 24 39 / 0.06);
  --shadow: 0 1px 2px rgb(17 24 39 / 0.04), 0 10px 28px -10px rgb(17 24 39 / 0.16);
  --shadow-lg: 0 24px 64px -16px rgb(17 24 39 / 0.35);
  --container: 1280px;
  --gutter: clamp(14px, 3.5vw, 28px);
}
:lang(ar) { --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h3, .h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.block { display: block; }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.eyebrow svg { width: 16px; height: 16px; }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 200px; }
.prose { max-width: 60em; }
.icon { width: 20px; height: 20px; flex: none; }
small .icon, .small .icon, .muted .icon { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-inline-end: 3px; }
.loading { padding: 64px; text-align: center; color: var(--muted); }
.spinner { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.search { flex: 1; display: flex; max-width: 640px; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 18px; background: transparent; outline: none; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 18px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--brand-strong); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.icon-link, .menu-pop > summary { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; cursor: pointer; list-style: none; }
.menu-pop > summary::-webkit-details-marker { display: none; }
.icon-link:hover, .menu-pop > summary:hover { background: var(--paper); color: var(--ink); }
.icon-link .icon, .menu-pop > summary .icon { width: 22px; height: 22px; }
.count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #111; font-size: 0.68rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.menu-pop { position: relative; }
.menu-pop .pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: grid; z-index: 50; }
.menu-pop .pop a, .menu-pop .pop button { text-align: start; padding: 8px 10px; border-radius: 6px; text-decoration: none; border: 0; background: none; cursor: pointer; font-size: 0.92rem; }
.menu-pop .pop a:hover, .menu-pop .pop button:hover { background: var(--paper); }
.menu-pop .pop [aria-current="true"] { color: var(--brand); font-weight: 700; }
.pop-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 8px 10px 4px; }
.catbar { border-top: 1px solid var(--line); background: var(--surface); }
.catbar .container { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catbar .container::-webkit-scrollbar { display: none; }
.catbar a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: 0.88rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap; }
.catbar a:hover { color: var(--brand); }
.catbar a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.catbar a.all { font-weight: 700; color: var(--ink); }
.catbar .icon { width: 18px; height: 18px; }
.hide-sm { display: inline; }
@media (max-width: 820px) {
  .header-main { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hide-sm { display: none; }
  .brand { font-size: 1.15rem; }
}

/* ---------------------------------------------------------------- Footer */
.site-footer { margin-top: 64px; background: #0E1F4D; color: #C9D3EA; padding: 48px 0 28px; font-size: 0.92rem; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 0.95rem; color: #fff; margin-bottom: 12px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid a { color: #C9D3EA; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin: 12px 0; max-width: 32em; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / 0.08); display: grid; place-items: center; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgb(255 255 255 / 0.1); margin-top: 32px; padding-top: 20px; }
.footer-bottom .legal { margin: 0; font-size: 0.84rem; color: #93A0C2; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Buttons */
.btn { --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s; }
.btn:hover { --btn-bg: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; transform: none; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-accent { --btn-bg: var(--brand); --btn-border: var(--brand); }
.btn-accent:hover { --btn-bg: var(--brand-strong); --btn-border: var(--brand-strong); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--surface-2); --btn-border: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-soft); --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--paper); }
.quick-stars { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.quick-stars .star-input { margin: 0; }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-border: #fecaca; }
.btn-danger:hover { --btn-bg: var(--danger-soft); }
.btn-danger-solid { --btn-bg: var(--danger); --btn-border: var(--danger); }
.btn-danger-solid:hover { --btn-bg: #b91c1c; }
.btn-wa { --btn-bg: var(--wa); --btn-border: var(--wa); }
.btn-wa:hover { --btn-bg: var(--wa-strong); --btn-border: var(--wa-strong); }
.btn .icon { width: 19px; height: 19px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-soft); }
.icon-round:hover { border-color: var(--ink); }
.see-all { font-weight: 600; color: var(--brand); text-decoration: none; font-size: 0.92rem; }
.see-all:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Forms */
.field { display: grid; gap: 6px; align-content: start; }
.field > span, .label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.textarea { min-height: 110px; resize: vertical; }
.textarea.short { min-height: 64px; }
.select-sm { min-height: 36px; padding: 4px 10px; width: auto; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(27 58 140 / 0.2); }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-strong); border-inline-end: 0; border-start-start-radius: var(--r-sm); border-end-start-radius: var(--r-sm); color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.input-group .input { border-start-start-radius: 0; border-end-start-radius: 0; min-width: 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.gap-top { margin-top: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-error { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; padding: 10px 14px; border-radius: var(--r-sm); font-size: 0.9rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; padding: 0; }
.notice { padding: 12px 16px; border-radius: var(--r); background: var(--brand-soft); color: var(--ink-soft); font-size: 0.9rem; }
.pido-map { border: 0; border-radius: 12px; width: 100%; height: 340px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.ticks li { padding-inline-start: 26px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }
.narrow { max-width: 420px; }

/* ---------------------------------------------------------------- Cards, badges, chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(16px, 2.6vw, 26px); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef0f3; color: var(--ink-soft); white-space: nowrap; text-decoration: none; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-sale { background: var(--danger); color: #fff; }
.badge-ink { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on .muted { color: #D6E0F7; }
.verified { display: inline-flex; vertical-align: middle; }
.verified .icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Toast */
.toasts { position: fixed; z-index: 90; inset-inline-start: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
[dir="rtl"] .toasts { transform: translateX(50%); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: 0.92rem; animation: toast-in 0.2s ease-out; }
.toast a { color: #fff; font-weight: 700; margin-inline-start: auto; }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- Sections */
.section { padding-block: 26px; }
.section.tight { padding-block: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; }
.list-head { padding: 8px 0 16px; }
.list-head h1 { margin-bottom: 4px; }
.empty-state { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-state h1, .empty-state h2 { color: var(--ink); }
.empty-state > svg.icon { width: 48px; height: 48px; margin: 0 auto 12px; }
.empty-state .btn { margin-top: 8px; }

/* Hero carousel */
.hero-carousel { padding: 20px 0 6px; }
.slides { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(120deg, #1B3A8C, #0E1F4D); min-height: 320px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 24px; padding: clamp(24px, 5vw, 56px); color: #fff; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; }
.slide.on { opacity: 1; visibility: visible; position: relative; }
.slide h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); color: #fff; }
.slide p { font-size: 1.08rem; color: #DCE4F7; max-width: 34em; }
.slide .btn-accent { --btn-bg: var(--accent); --btn-border: var(--accent); --btn-fg: #111; }
.slide .btn-accent:hover { --btn-bg: #F2C744; }
.slide-art img { width: min(100%, 300px); height: auto; aspect-ratio: 1; margin-inline: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: var(--line-strong); cursor: pointer; transition: width 0.2s; padding: 0; }
.dots button[aria-pressed="true"] { width: 26px; background: var(--brand); }
@media (max-width: 720px) { .slide { grid-template-columns: 1fr; } .slide-art { display: none; } }

/* Category tiles */
.cat-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cat-tile { display: grid; justify-items: center; gap: 8px; text-decoration: none; text-align: center; font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.cat-tile img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card { display: flex; gap: 14px; align-items: center; padding: 12px; text-decoration: none; }
.cat-card img { width: 84px; height: 84px; border-radius: var(--r); object-fit: cover; }
.cat-card > span { display: grid; gap: 2px; }
.cat-card:hover { border-color: var(--brand); }

/* Brands strip */
.brand-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 14px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; }
.brand-bubble { display: grid; justify-items: center; gap: 8px; text-decoration: none; text-align: center; font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.brand-bubble span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface); }
.store-logo.mono { display: grid; place-items: center; background: var(--accent, #1B3A8C); color: #fff; font-weight: 800; font-size: 1.3rem; }
.store-logo.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 0.85rem; }
.store-logo.lg { width: 80px; height: 80px; border-radius: 50%; font-size: 1.8rem; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.store-logo.xl { width: 88px; height: 88px; border-radius: 22px; font-size: 2.2rem; }

/* Product cards & grids */
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.rail-btn:hover { border-color: var(--ink); }
[dir="rtl"] .rail-btn svg, [dir="rtl"] .gallery-nav svg, [dir="rtl"] .lb-prev svg, [dir="rtl"] .lb-next svg, [dir="rtl"] .btn-ghost > svg:first-child { transform: scaleX(-1); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-media { position: relative; aspect-ratio: 1; background: #eef0f2; display: block; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media .badge { position: absolute; top: 10px; inset-inline-start: 10px; }
.fav-btn { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.92); box-shadow: var(--shadow-sm); display: grid; place-items: center; cursor: pointer; color: var(--ink-soft); }
.fav-btn svg, .fav-round svg { width: 19px; height: 19px; }
.fav-btn[aria-pressed="true"], .fav-round[aria-pressed="true"] { color: #e11d48; }
.fav-btn[aria-pressed="true"] svg, .fav-round[aria-pressed="true"] svg { fill: currentColor; }
.pcard-body { padding: 10px 12px 14px; display: grid; gap: 3px; }
.pcard-store { font-size: 0.74rem; color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-store:hover { color: var(--brand); }
.pcard-title { font-weight: 600; font-size: 0.92rem; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; line-height: 1.45; }
.pcard-title:hover { color: var(--brand); }
.price-line { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 0.92rem; }
.price-line .now { font-weight: 800; color: var(--ink); }
.price-line .on-request { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.price-line .from { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.price-line s { color: var(--muted); font-size: 0.8rem; }
.m2 { font-weight: 500; color: var(--muted); font-size: 0.82em; }

/* Store cards */
.store-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.scard { display: flex; gap: 14px; padding: 16px; text-decoration: none; align-items: flex-start; }
.scard:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.scard-body { display: grid; gap: 4px; min-width: 0; }
.scard-name { display: flex; gap: 6px; align-items: center; }
.scard-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.open-badge.on { background: var(--ok-soft); color: var(--ok); }
.open-badge.off { background: #f3f4f6; color: var(--muted); }
.open-badge .hours { font-weight: 500; opacity: 0.85; }
.market-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.market-card { display: grid; gap: 8px; text-decoration: none; align-content: start; }
.market-card:hover { border-color: var(--brand); }
.market-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.market-icon svg { width: 26px; height: 26px; }
.market-card .badge { justify-self: start; }

/* Reels */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.reel { position: relative; aspect-ratio: 9 / 14; border-radius: 18px; overflow: hidden; background: #0E1F4D; text-decoration: none; color: #fff; }
.reel img, .reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-info { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgb(0 0 0 / 0.75)); display: grid; gap: 2px; font-size: 0.88rem; }
.reel-info .m2 { color: #d1d5db; }

/* Departments */
.dept-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dept-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; aspect-ratio: 1; display: block; }
.dept-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dept-tile:hover img { transform: scale(1.06); }
.dept-tile span { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgb(0 0 0 / 0.65)); }
.cta-band { background: linear-gradient(120deg, #0E1F4D, #0E1F4D); color: #fff; border-radius: 22px; padding: clamp(24px, 5vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D3EA; margin: 0; }
.cta-band .btn-accent { --btn-bg: var(--accent); --btn-border: var(--accent); --btn-fg: #111; }

/* Browse */
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 130px; }
.filters summary { list-style: none; font-weight: 700; display: flex; gap: 8px; align-items: center; cursor: pointer; margin-bottom: 12px; }
.filters summary::-webkit-details-marker { display: none; }
.brand-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.price-range { flex-wrap: nowrap; }
.price-range .input { min-width: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input[type="search"] { max-width: 300px; }
.toolbar.card { margin-bottom: 12px; }
.toolbar.card .select { width: auto; }
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-inner:not([open]) summary { margin: 0; }
}
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); text-decoration: none; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.pager a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager span { border: 0; background: none; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.84rem; color: var(--muted); padding: 16px 0 8px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs.light { color: rgb(255 255 255 / 0.8); }
.breadcrumbs.light li + li::before { color: rgb(255 255 255 / 0.4); }

/* Store page */
.store-cover { background: linear-gradient(120deg, var(--accent, #1B3A8C), color-mix(in srgb, var(--accent, #1B3A8C) 55%, #000)); color: #fff; padding-bottom: 28px; margin-bottom: 20px; }
.store-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.store-head h1 { color: #fff; display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.store-head p { margin: 0 0 10px; color: rgb(255 255 255 / 0.85); }
.store-head .store-logo { border: 3px solid rgb(255 255 255 / 0.9); }
.store-head .store-logo.mono { background: rgb(255 255 255 / 0.18); }
.store-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.86rem; }
.store-meta a, .store-meta span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.store-meta .badge { background: rgb(255 255 255 / 0.16); color: #fff; }
.store-meta .open-badge.on { background: #dcfce7; color: var(--ok); }
.store-meta .open-badge.off { background: rgb(255 255 255 / 0.16); color: #fff; }
.store-meta .icon { width: 16px; height: 16px; }
.store-about { color: var(--ink-soft); }

/* ---------------------------------------------------------------- Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 130px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
@media (max-width: 900px) { .gallery { position: static; grid-template-columns: 1fr; } }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; padding-bottom: 4px; } }
.gallery-thumbs button { position: relative; flex: none; width: 72px; height: 72px; padding: 0; border-radius: var(--r); overflow: hidden; border: 2px solid transparent; background: #eef0f2; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / 0.35); }
.thumb-play svg { width: 28px; height: 28px; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #eef0f2; cursor: zoom-in; touch-action: pan-y; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gallery-main video { object-fit: contain; background: #000; cursor: default; }
.gallery-main img { transition: transform 0.25s ease-out; transform-origin: 50% 50%; }
.gallery-main.zooming img { transform: scale(2.2); transition: transform 0.1s linear; }
.gallery-hint { position: absolute; inset-inline-end: 14px; bottom: 14px; display: inline-flex; gap: 6px; align-items: center; font-size: 0.76rem; font-weight: 600; background: rgb(255 255 255 / 0.92); padding: 6px 10px; border-radius: 999px; pointer-events: none; color: var(--ink-soft); }
.gallery-hint svg { width: 14px; height: 14px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.92); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s; }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
@media (hover: none) { .gallery-nav { opacity: 1; } }
.gallery-nav.prev { inset-inline-start: 12px; } .gallery-nav.next { inset-inline-end: 12px; }
.gallery-nav svg { width: 18px; height: 18px; }
.sale-flag { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 1; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 14 20 / 0.95); color: #fff; }
.lightbox::backdrop { background: rgb(8 14 20 / 0.8); }
.lightbox-stage { position: absolute; inset: 56px 64px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.lightbox-stage.zoomed { cursor: zoom-out; }
.lightbox-stage img { width: auto; height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.2s ease-out; border-radius: 12px; }
.lightbox-stage.zoomed img { transform: scale(2.5); transition: transform 0.08s linear; }
.lightbox-bar { position: absolute; top: 0; inset-inline: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 0.9rem; color: #cbd5e1; }
.lightbox .icon-btn { width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: #fff; }
.lightbox .icon-btn:hover { background: rgb(255 255 255 / 0.2); color: #fff; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { inset-inline-start: 12px; } .lightbox .lb-next { inset-inline-end: 12px; }
@media (max-width: 600px) { .lightbox-stage { inset: 56px 8px 72px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; transform: none; } }

.pdp-info .store-link { display: inline-flex; gap: 8px; align-items: center; font-size: 0.86rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.pdp-info .store-link .icon { width: 16px; height: 16px; }
.pdp-info h1 { margin: 10px 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pdp-info .subtitle { color: var(--ink-soft); margin-bottom: 8px; }
.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 0; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-block .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-block .price .m2 { font-size: 0.5em; }
.price-block s { font-size: 1rem; color: var(--muted); }
.price-block .note { width: 100%; font-size: 0.8rem; color: var(--muted); }
.price-bump { animation: bump 0.35s ease-out; }
@keyframes bump { 40% { color: var(--brand); } }
.opt-group { border: 0; margin: 20px 0 0; padding: 0; }
.opt-group legend { font-size: 0.92rem; font-weight: 700; margin-bottom: 10px; display: flex; gap: 6px; width: 100%; }
.opt-group legend .chosen { font-weight: 400; color: var(--ink-soft); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch, .size-opt { position: relative; }
.swatch input, .size-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch label { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--line-strong); transition: border-color 0.15s, transform 0.1s; }
.swatch label svg { width: 32px; height: 32px; border-radius: 50%; }
.swatch label:hover { transform: scale(1.06); }
.swatch input:checked + label { border-color: var(--brand); box-shadow: none; }
.swatch input:focus-visible + label, .size-opt input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatch.unavailable label::after, .size-opt.unavailable label::after { content: ''; position: absolute; inset: 50% 4px auto; height: 2px; background: var(--muted); transform: rotate(-45deg); opacity: 0.8; }
.size-opt label { display: grid; justify-items: center; min-width: 64px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; transition: border-color 0.15s, background 0.15s; line-height: 1.3; }
.size-opt label small { font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.size-opt label:hover { border-color: var(--ink); }
.size-opt input:checked + label { border-color: var(--brand); background: var(--brand); color: #fff; }
.size-opt input:checked + label small { color: #D6E0F7; }
.size-opt.unavailable label { color: var(--muted); }
.stock-line { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; font-weight: 700; margin: 20px 0 12px; }
.stock-line.ok { color: var(--ok); } .stock-line.low { color: var(--warn); } .stock-line.out { color: var(--danger); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.2rem; cursor: pointer; border-radius: var(--r); }
.qty button:hover { background: var(--paper); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-actions { display: grid; gap: 10px; margin-top: 10px; }
.store-box { margin-top: 20px; padding: 14px 16px; display: grid; gap: 12px; }
.store-box a { text-decoration: none; }
.wa-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: #ecfdf3; border: 1px solid #bbf7d0; }
.wa-card svg.wa-logo { width: 34px; height: 34px; }
.wa-card p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.wa-card strong { display: block; font-size: 0.92rem; }
.wa-card .btn { margin-inline-start: auto; }
@media (max-width: 480px) { .wa-card { flex-wrap: wrap; } .wa-card .btn { width: 100%; margin: 0; } }
.protect { margin-top: 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.protect h2 { font-size: 0.98rem; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.protect h2 svg { width: 22px; height: 22px; color: var(--ok); }
.protect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.protect li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.88rem; }
.protect li svg { width: 22px; height: 22px; color: var(--brand); }
.protect li strong { display: block; }
.protect li span { color: var(--muted); }
.pay-methods { margin-top: 16px; }
.pay-methods .label { display: block; margin-bottom: 8px; font-size: 0.8rem; color: var(--muted); }
.pay-icons { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pay-icons li { width: 54px; height: 34px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pay-icons svg { width: 100%; height: 100%; }
.details { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 900px) { .details { grid-template-columns: 1fr; } }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--muted); }
.accordion details[open] summary::after { content: '–'; }
.accordion .content { padding-bottom: 18px; color: var(--ink-soft); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 500; color: var(--muted); padding-inline-end: 16px; }
.sticky-buy { position: fixed; inset-inline: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(17 24 39 / 0.2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; transform: translateY(100%); transition: transform 0.25s; }
.sticky-buy.show { transform: none; }
.sticky-buy .price { font-weight: 800; font-size: 1.05rem; }
.sticky-buy .meta { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy > div { min-width: 0; flex: 1; }
@media (max-width: 900px) { .sticky-buy { display: flex; } body.has-sticky .site-footer { padding-bottom: 96px; } }

/* ---------------------------------------------------------------- Cart & checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px; align-items: start; padding-top: 8px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 130px; display: grid; gap: 12px; }
.store-group + .store-group { margin-top: 18px; }
.store-group-head { display: flex; gap: 8px; align-items: center; font-weight: 700; padding-bottom: 6px; border-bottom: 2px solid var(--brand-soft); }
.store-group-head a { text-decoration: none; }
.store-group-head .icon { width: 18px; height: 18px; color: var(--brand); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; background: #eef0f2; }
.line-item .meta { font-size: 0.8rem; color: var(--muted); }
.line-item .controls { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.line-item .controls .select { min-height: 32px; width: auto; padding: 2px 8px; font-size: 0.85rem; }
.line-item .badge { justify-self: start; }
.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-item .num { display: grid; justify-items: end; }
.totals { display: grid; gap: 8px; font-size: 0.94rem; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 1.15rem; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); }
.pay-choice { display: grid; gap: 10px; }
.pay-choice label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.pay-choice label:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pay-choice label:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.pay-choice input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-choice .logos { display: flex; gap: 6px; }
.pay-choice .logos svg { width: 42px; height: 26px; border: 1px solid var(--line); border-radius: 4px; }
.secure-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.secure-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.success-panel { text-align: center; max-width: 620px; margin: 40px auto; }
.check-circle { width: 72px; height: 72px; margin: 0 auto 16px; color: var(--ok); }
.check-circle svg { width: 100%; height: 100%; }
.order-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }

/* ---------------------------------------------------------------- Account & info */
.account-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.order-card { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.order-card header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wallet-balance { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.danger-zone { border-color: #fecaca; }
.kpi .label .icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
a.kpi { text-decoration: none; }
a.kpi:hover { border-color: var(--brand); }
.info-page .prose-page { max-width: 820px; margin-inline: auto; }
.prose-page h2 { font-size: 1.1rem; margin-top: 1.4em; }
.prose-page p { color: var(--ink-soft); }
.contact-channels { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

/* ---------------------------------------------------------------- Auth */
.auth-wrap { display: grid; place-items: center; padding: 40px var(--gutter); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 760px; }
.demo-box { margin-top: 18px; padding: 12px 14px; background: var(--brand-soft); border-radius: var(--r); font-size: 0.85rem; color: var(--ink-soft); }
.demo-box code { background: rgb(255 255 255 / 0.7); padding: 1px 5px; border-radius: 4px; }
.demo-box button { background: none; border: 0; padding: 0; color: var(--brand-strong); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: start; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--surface-2); }
.table .stock-input { width: 84px; min-height: 36px; padding: 4px 8px; text-align: end; }
.thumb-sm { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* ---------------------------------------------------------------- Merchant panel */
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 110px); }
.dash-side { background: #0E1F4D; color: #C9D3EA; padding: 18px 14px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; height: calc(100vh - 110px); overflow-y: auto; }
.dash-side .select { background: #16295F; border-color: #2A3F7A; color: #fff; }
.dash-side .role { font-size: 0.8rem; color: #93A0C2; padding: 0 4px; }
/* Subscription line in the merchant sidebar; warns before the end and while paused. */
.sub-note { font-size: 0.8rem; color: #C9D3EA; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / 0.05); display: grid; gap: 8px; line-height: 1.5; }
.sub-note.is-warn { background: var(--warn-soft); color: #7c2d12; }
.sub-note.is-danger { background: #fee2e2; color: #7f1d1d; }
.sub-note .btn { justify-self: start; }
/* Plans above the admin subscriptions table. */
.plan-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.plan-card { display: grid; gap: 4px; }
.nowrap { white-space: nowrap; }
/* The plan a subscription link opens, above the store form. */
.plan-claim { display: grid; gap: 4px; }
.plan-claim-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink); }
.plan-claim-head svg { width: 20px; height: 20px; color: var(--ok); }
.dash-nav { display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #C9D3EA; font-size: 0.94rem; }
.dash-nav a svg { width: 19px; height: 19px; }
.dash-nav a:hover { background: rgb(255 255 255 / 0.06); color: #fff; }
.dash-nav a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 700; }
.dash-nav a .count { position: static; margin-inline-start: auto; }
.dash-side .foot { margin-top: auto; font-size: 0.84rem; }
.dash-side .foot a { color: #C9D3EA; display: inline-flex; gap: 6px; align-items: center; }
.dash-side .foot svg { width: 14px; height: 14px; }
.dash-main { padding: clamp(18px, 3vw, 32px); min-width: 0; }
.dash-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-size: 1.6rem; margin: 0; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; }
  .dash-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .dash-side .foot { display: none; }
}
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 22px; }
.kpi { padding: 16px 18px; }
.kpi .label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .value .m2 { font-size: 0.55em; }
.kpi .delta { font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--danger); }
a.delta { color: var(--brand); }
.dash-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h2 { font-size: 1rem; margin: 0; }
.chart { width: 100%; height: 240px; }
.chart .bar { fill: var(--brand); }
.chart .bar:hover { fill: var(--accent); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.bar-list { display: grid; gap: 12px; }
.bar-list .item { display: grid; gap: 4px; font-size: 0.88rem; }
.bar-list .top { display: flex; justify-content: space-between; gap: 8px; }
.bar-list .track { height: 6px; border-radius: 3px; background: #eef0f2; overflow: hidden; }
.bar-list .fill { height: 100%; background: var(--brand); border-radius: 3px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } }
.editor .card + .card { margin-top: 18px; }
.sticky-col { position: sticky; top: 130px; }
@media (max-width: 1100px) { .sticky-col { position: static; } }
.lang-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.lang-tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lang-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.opt-editor { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--surface-2); margin-bottom: 12px; }
.opt-editor .head { display: grid; grid-template-columns: 1fr 1fr 160px auto; gap: 8px; margin-bottom: 10px; }
.val-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 110px 42px 42px 104px auto; gap: 6px; align-items: center; margin-bottom: 8px; }
.val-row.size { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 110px auto; }
.val-row input[type="color"] { width: 42px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.val-row .input, .val-row .select, .opt-editor .head .input, .opt-editor .head .select { min-height: 40px; padding: 6px 10px; }
@media (max-width: 760px) { .val-row, .val-row.size, .opt-editor .head { grid-template-columns: 1fr 1fr; } }
.spec-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; margin-bottom: 8px; }
.media-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.media-grid figure { position: relative; margin: 0; }
.media-grid img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.media-grid .icon-btn { position: absolute; top: 4px; inset-inline-end: 4px; background: rgb(255 255 255 / 0.92); }
.upload-btn { position: relative; }
.video-row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.preview-img { border-radius: var(--r-lg); overflow: hidden; background: #eef0f2; aspect-ratio: 1; }
.preview-img img { width: 100%; height: 100%; object-fit: cover; }
input[type="color"] { cursor: pointer; }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; inset-inline-start: auto; width: min(560px, 100%); height: 100%; max-height: none; max-width: none; margin: 0; border: 0; padding: 0; background: var(--paper); box-shadow: var(--shadow-lg); }
.drawer::backdrop { background: rgb(17 24 39 / 0.45); }
.drawer-head { position: sticky; top: 0; background: var(--paper); display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); z-index: 1; }
.drawer-head h2 { margin: 0; }
.drawer-body { padding: 22px; display: grid; gap: 20px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: 0.9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.perm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.perm-grid ul { margin: 8px 0 0; padding-inline-start: 18px; font-size: 0.86rem; color: var(--ink-soft); }
.site-footer .brand-mark path:first-child { fill: #2B54C8; }

/* ---------------------------------------------------------------- Demo bar, panels, timelines (stage 1) */
.demo-bar { background: linear-gradient(90deg, #0E1F4D, #1B3A8C); color: #fff; font-size: 0.84rem; }
.demo-bar .container { display: flex; gap: 12px; align-items: center; min-height: 34px; flex-wrap: wrap; }
.demo-bar svg { width: 16px; height: 16px; color: var(--accent); }
.demo-bar a { color: var(--accent); font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px; padding-inline-start: 26px; font-size: 0.88rem; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ''; position: absolute; inset-inline-start: 10px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--brand); }
.timeline li.now::before { background: var(--accent); box-shadow: 0 0 0 4px rgb(227 168 18 / 0.25); }
.timeline li.fail::before { background: var(--danger); }
.timeline .when { color: var(--muted); font-size: 0.78rem; display: block; }
.otp-box { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--brand-soft); border: 1px dashed var(--brand); font-weight: 700; }
.otp-box strong { font-size: 1.5rem; letter-spacing: 0.3em; color: var(--brand); font-variant-numeric: tabular-nums; }
.pay-box { padding: 16px; border-radius: var(--r-lg); border: 1px solid #b7e4c7; background: #f0fbf4; display: grid; gap: 10px; text-align: start; }
.pay-box .acct { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.04em; }
.pay-box img.qr { width: 160px; height: 160px; border-radius: 8px; background: #fff; }
.qr-box svg { width: 200px; height: 200px; background: #fff; border-radius: 8px; padding: 6px; }
.job-card { display: grid; gap: 10px; }
.job-card header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.job-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.job-card .addr { font-size: 0.9rem; }
.job-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.big-num { font-size: 1.6rem; font-weight: 800; }
.role-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.role-card { display: grid; gap: 10px; align-content: start; padding: 22px; }
.role-card .role-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.role-card .role-icon svg { width: 28px; height: 28px; }
.receipt-img { max-width: 100%; max-height: 70vh; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; }
.narrow-center { max-width: 640px; margin-inline: auto; }

/* ---------------------------------------------------------------- Brand guidelines page */
.brand-page .bi { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; }
@media (max-width: 760px) { .brand-page .bi { grid-template-columns: 1fr; } }
.logo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.logo-tile { margin: 0; overflow: hidden; }
.logo-tile .logo-art { height: 170px; display: grid; place-items: center; padding: 20px; background: #fff; }
.logo-tile.dark .logo-art { background: #0E1F4D; }
.logo-tile img { max-height: 120px; max-width: 100%; }
.logo-tile figcaption { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.logo-tile figcaption .btn { margin-inline-start: auto; }
.swatch-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.color-card { overflow: hidden; }
.chip-color { height: 96px; }
.type-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.type-sample { font-size: 1.8rem; font-weight: 800; margin: 8px 0; line-height: 1.3; }
.type-sample.jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }
.type-sample.inter { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.4rem; }
.type-sample.plex { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 1.5rem; font-weight: 700; }
.rules { list-style: none; padding: 0; display: grid; gap: 10px; }
.rules li { padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.rules li.do { border-inline-start: 4px solid var(--ok); }
.rules li.dont { border-inline-start: 4px solid var(--danger); }
h1, h2, .brand { font-family: 'Plus Jakarta Sans', var(--font); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) .brand { font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', sans-serif; }

/* ---------------------------------------------------------------- Reviews, tiers and merchant performance */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .star .icon { width: 18px; height: 18px; fill: var(--line-strong); stroke: none; }
.stars.sm .star .icon { width: 14px; height: 14px; }
.stars .star.on .icon { fill: var(--accent); }
.stars .star.half .icon { fill: var(--accent); opacity: 0.55; }
.rating-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.store-cover .rating-inline .muted, .on-dark .muted { color: inherit; opacity: 0.85; }
.on-dark { color: inherit; text-decoration: none; }
.scard-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; }
.star-mini { color: var(--accent); }
.tier-badge { display: inline-flex; align-items: center; gap: 4px; }
.tier-badge .icon { width: 14px; height: 14px; }
.tier-new, .tier-bronze { background: var(--surface-2); color: var(--ink-soft); }
.tier-silver { background: #eef1f5; color: #3f4b5b; }
.tier-gold { background: #fdf3d3; color: #7a5300; }
.tier-platinum { background: #e6ecfb; color: var(--brand-strong); }

.store-reviews { display: grid; gap: 14px; }
.rev-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; max-width: 560px; }
.rev-score { display: grid; justify-items: center; gap: 4px; }
.rev-score strong { font-size: 2.6rem; line-height: 1; }
.rev-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.82rem; }
.rev-bars li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: 4px; }
.review-list { display: grid; gap: 12px; }
.review { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); display: grid; gap: 8px; }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review p { margin: 0; }
.review-reply { border-inline-start: 3px solid var(--brand); background: var(--brand-soft); padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.92rem; }
.review-reply p { margin-top: 2px; }
.review-tools { display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.row.wrap { flex-wrap: wrap; }
.order-review { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.star-input { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.star-input legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; width: 100%; }
.star-input label { cursor: pointer; display: inline-grid; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input .icon { width: 30px; height: 30px; fill: var(--line-strong); stroke: none; transition: fill .1s; }
/* Every star up to the one chosen lights up (RTL and LTR alike, by DOM order). */
.star-input:has(input:checked) label .icon { fill: var(--accent); }
.star-input label:has(input:checked) ~ label .icon { fill: var(--line-strong); }
.star-input input:focus-visible + span .icon { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.perf-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.perf-top .label { color: var(--muted); font-size: 0.85rem; }
.perf-number { display: block; font-size: 2.4rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.perf-number span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.perf-tip { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.perf-tip .icon { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; }
.perf-criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perf-criteria li { display: grid; gap: 6px; }
.perf-criteria li.is-off { opacity: 0.6; }
.perf-criteria .bar > span { background: var(--brand); }
@media (max-width: 560px) { .rev-summary { grid-template-columns: 1fr; justify-items: start; } }

/* ------------------------------------------------------------------ Restaurant and café menus (menu-ui.js) */
.menu { margin-block: 18px 8px; }
.menu-info { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.menu-info > span { display: inline-flex; align-items: center; gap: 6px; }
.menu-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--paper); scrollbar-width: thin; }
.menu-nav .chip { flex: none; }
.menu-section { scroll-margin-top: 64px; margin-top: 18px; }
.menu-section h2 { font-size: 1.2rem; margin: 0 0 10px; display: flex; gap: 10px; align-items: baseline; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.menu-item { position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: start; padding: 14px; cursor: pointer; font: inherit; color: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
.menu-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.menu-item[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.mi-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mi-desc { color: var(--muted); font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.mi-price { color: var(--ink); }
.mi-img { width: 96px; height: 96px; border-radius: var(--r); object-fit: cover; flex: none; background: var(--surface-2); }
.mi-add { position: absolute; inset-inline-end: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.mi-add .icon { width: 16px; height: 16px; }
.diet { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.menu-dialog .menu-hero { width: 100%; height: auto; max-height: 240px; object-fit: cover; border-radius: var(--r); }
.mod-group { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin: 0; }
.mod-group legend { font-weight: 600; padding: 0 6px; }
.mod-group.is-missing legend .muted { color: var(--warn); }
.mod-opt { display: flex; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mod-opt:last-child { border-bottom: 0; }
.mod-opt.is-off { opacity: .55; cursor: not-allowed; }
.mod-opt input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.mod-opt > .muted { white-space: nowrap; }
.menu-buy { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding-top: 10px; background: var(--surface); }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }
.mods { color: var(--ink-soft); }
.item-note { color: var(--muted); font-style: italic; }
/* The menu editor */
.row.wrap { flex-wrap: wrap; }
.field.narrow, .input.narrow { max-width: 120px; min-width: 90px; }
.switch { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 0.86rem; }
.switch input { width: 34px; height: 20px; accent-color: var(--ok); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.thumb { border-radius: var(--r-sm); object-fit: cover; flex: none; }
tr.is-off td { color: var(--muted); }
.mod-card .table { margin-block: 8px; }
.quick-stars .star-input legend { font-size: 0.86rem; }
@media (max-width: 560px) {
  .mi-img { width: 76px; height: 76px; }
  .menu-section h2 { flex-wrap: wrap; }
}
.menu-table { table-layout: fixed; min-width: 640px; }
.menu-table th:nth-child(1) { width: 42%; } .menu-table th:nth-child(2) { width: 12%; } .menu-table th:nth-child(3) { width: 22%; }
.menu-table th:nth-child(4) { width: 14%; } .menu-table th:nth-child(5) { width: 10%; }
.store-cover .open-badge .hours { color: inherit; opacity: .8; }

/* ------------------------------------------------------------------ Offline and install (offline.js) */
.offline-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--ink); color: #fff; font-size: 0.88rem; text-align: center; }
.offline-bar.is-sending { background: var(--brand); }
.offline-bar .icon { width: 16px; height: 16px; flex: none; }
.install-btn { margin-top: 8px; color: inherit; border-color: currentColor; background: transparent; }
.install-steps { padding-inline-start: 1.2rem; display: grid; gap: 10px; }
.offline-page { max-width: 640px; padding-block: 48px; display: grid; gap: 20px; }
.offline-links { display: flex; flex-wrap: wrap; gap: 10px; }
/* Cassion Pro connection (merchant-integration.js) */
.int-intro { display: flex; gap: 18px; align-items: flex-start; }
.int-intro h2 { margin: 0 0 6px; }
.int-flow { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.int-flow li { display: flex; gap: 8px; align-items: center; }
.secret-box code { background: var(--surface); padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 0.86rem; }
.break { word-break: break-all; }
[data-int-root] > * + * { margin-top: 16px; }

/* ------------------------------------------------------------------ Developers (/developers) */
.dev-hero { max-width: 820px; margin-bottom: 22px; display: grid; gap: 10px; }
.dev-hero h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.dev-hero .lead { font-size: 1.1rem; margin: 0; }
.dev-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.dev-nav { position: sticky; top: 12px; display: grid; gap: 4px; max-height: calc(100vh - 24px); overflow: auto; font-size: 0.86rem; }
.dev-nav strong { margin-top: 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dev-nav a { text-decoration: none; display: flex; gap: 6px; align-items: center; padding: 3px 0; }
.dev-body { display: grid; gap: 16px; min-width: 0; }
.dev-tag { display: grid; gap: 10px; }
.dev-tag h2 { margin: 12px 0 0; }
.op > summary { display: flex; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; flex-wrap: wrap; }
.op[open] > summary { border-bottom: 1px solid var(--line); }
.op-body { padding: 14px; display: grid; gap: 10px; min-width: 0; }
.op-body h4 { margin: 6px 0 0; }
.method { display: inline-block; min-width: 52px; text-align: center; font: 700 0.72rem/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; border-radius: 6px; color: #fff; }
.m-get { background: #15803d; } .m-post { background: #1d4ed8; } .m-put { background: #b45309; } .m-delete { background: #b91c1c; }
pre.code { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: var(--r); overflow: auto; font-size: 0.82rem; line-height: 1.55; margin: 0; text-align: left; }
.table.schema td { vertical-align: top; }
.schema-name { margin: 4px 0; }
.model > summary { cursor: pointer; padding: 6px 0; }
.steps { display: grid; gap: 10px; padding-inline-start: 1.2rem; }
@media (max-width: 900px) { .dev-grid { grid-template-columns: 1fr; } .dev-nav { position: static; max-height: 260px; } }

/* ------------------------------------------------------------------ The platform for sale (/platform, landing.js) */
.landing .lead { font-size: 1.12rem; color: var(--ink-soft); }
.lp-hero { background: radial-gradient(1200px 500px at 85% 10%, var(--brand-soft), transparent 60%), var(--surface); border-bottom: 1px solid var(--line); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 56px 48px; }
.lp-hero-text { display: grid; gap: 16px; }
.lp-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; }
.lp-hero-shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); }
.lp-hero-shot img, .lp-shot img { display: block; width: 100%; height: auto; }
.lp-ctas { gap: 10px; }
.lp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-block: 26px 0; }
.lp-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 2px; text-align: center; }
.lp-stats strong { font-size: 1.7rem; color: var(--brand); }
.lp-stats span { color: var(--muted); font-size: 0.88rem; }
.lp-h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 22px; text-align: center; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-card h3, .lp-feature h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.lp-card p, .lp-feature p { margin: 0; color: var(--ink-soft); }
.lp-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.lp-icon .icon { width: 22px; height: 22px; }
.lp-band { background: var(--surface); border-block: 1px solid var(--line); }
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px 28px; }
.lp-feature { display: flex; gap: 14px; align-items: flex-start; }
.lp-feature h3 { margin-top: 2px; }
.lp-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.lp-shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.lp-shot figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--ink-soft); }
.lp-shot.is-phone img { max-height: 520px; width: auto; margin-inline: auto; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.lp-steps li { background: var(--paper); border-radius: var(--r-lg); padding: 18px; }
.lp-steps h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.lp-steps p { margin: 0; color: var(--ink-soft); }
.lp-step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 900px; margin-inline: auto; }
.lp-plan h3 { margin: 0; }
.lp-plan.is-featured { border-color: var(--brand); box-shadow: var(--shadow); }
.lp-price { margin: 8px 0 0; } .lp-price strong { font-size: 1.8rem; }
.lp-buy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 28px; background: linear-gradient(135deg, #0E1F4D, #1B3A8C); color: #fff; border: 0; }
.lp-buy h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lp-buy .lead, .lp-buy .ticks li { color: #dbe4fb; }
.lp-contact { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; align-content: start; }
.lp-contact h3 { margin: 0; }
.lp-phone { font-size: 1.6rem; font-weight: 800; color: var(--brand); text-decoration: none; }
.lp-faq { max-width: 820px; display: grid; gap: 10px; }
.lp-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.lp-faq details p { padding: 0 16px 14px; margin: 0; color: var(--ink-soft); }
.lp-wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 40; }
.lp-wa-float .wa-logo { width: 30px; height: 30px; }
.center { text-align: center; justify-content: center; }
@media (max-width: 900px) {
  .lp-hero-grid, .lp-buy { grid-template-columns: 1fr; }
  .lp-hero-grid { padding-block: 32px; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lp-wa-float { background: var(--wa); color: #fff; }
.lp-wa-float:hover { background: var(--wa-strong); }
.lp-buy .ticks li::before { color: var(--accent); }
/* Cash collected on delivery (lib/cash.js) */
.cash-card { margin-bottom: 16px; border-color: var(--warn); }
.cash-card h2 { margin: 0 0 4px; }
.cash-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kpi .delta.warn { color: var(--warn); font-weight: 600; }
.job-grid > .courier-perf { grid-column: 1 / -1; display: grid; gap: 16px; }

/* ==========================================================================
   QASIOUN DUSK — storefront redesign layer (2026-10-26)
   Concept: Mount Qasioun at dusk over the city. Night indigo + city-light amber,
   soft "pillowed" shapes with no hard boxes, and products that float on tinted
   stages instead of sitting inside bordered squares.
   Original stylesheet kept as css/app.backup-20261026.css — delete this block to revert.
   ========================================================================== */
:root {
  --brand: #2A3FB8;          /* dusk indigo */
  --brand-strong: #1C2A86;
  --brand-soft: #ECEEFC;
  --night: #0F1640;          /* sky after sunset */
  --night-2: #1A2366;
  --accent: #F5B23C;         /* city lights */
  --accent-strong: #E09A1D;
  --ink: #141A33;
  --ink-2: #222a4a;
  --ink-soft: #3E4566;
  --muted: #6E7493;
  --paper: #F3F4FA;          /* cool mist */
  --surface: #ffffff;
  --surface-2: #F7F8FC;
  --stage: #EEF0F8;          /* product stage */
  --line: #E4E6F1;
  --line-strong: #CFD3E6;
  --focus: #2A3FB8;
  --font-display: 'Plus Jakarta Sans', 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 1px 2px rgb(20 26 51 / 0.05);
  --shadow: 0 2px 6px rgb(42 63 184 / 0.06), 0 18px 40px -18px rgb(42 63 184 / 0.32);
  --shadow-lg: 0 30px 70px -24px rgb(15 22 64 / 0.45);
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.07' d='M0 140V70c90-14 170-40 270-30s150 38 240 30 140-58 250-60 170 46 270 44 150-40 230-36 130 26 180 30v122z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.10' d='M0 140V98c120-10 200-34 320-28s170 30 280 22 170-48 290-46 180 40 300 40 180-24 250-20v74z'/%3E%3C/svg%3E");
}
:lang(ar) { --font-display: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }

body { background: var(--paper); }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; }
:lang(ar) h1, :lang(ar) h2 { font-weight: 700; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* ---------------- Header: frosted, floating ---------------- */
.demo-bar { background: var(--night); }
.demo-bar .container { min-height: 32px; font-size: 0.8rem; }
.site-header { background: rgb(255 255 255 / 0.82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 0; box-shadow: 0 1px 0 rgb(20 26 51 / 0.06); }
.header-main { min-height: 72px; gap: 22px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; }
.search { border: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.2s, background 0.2s; padding: 5px; }
.search:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand), 0 8px 24px -12px rgb(42 63 184 / 0.45); }
.search input { padding: 8px 16px; }
.search button { border-radius: 999px; width: 44px; height: 40px; padding: 0; background: var(--brand); }
.icon-link, .menu-pop > summary { border-radius: 999px; padding: 9px 12px; }
.icon-link:hover, .menu-pop > summary:hover { background: var(--brand-soft); color: var(--brand); }
.icon-link.signin { background: var(--ink); color: #fff; padding-inline: 16px; }
.icon-link.signin:hover { background: var(--brand); color: #fff; }
.count { background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.menu-pop .pop { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 10px; }
.menu-pop .pop a, .menu-pop .pop button { border-radius: 12px; }

/* Category bar: pills instead of underlined tabs */
.catbar { border-top: 0; background: transparent; }
.catbar .container { gap: 6px; padding-block: 4px 12px; }
.catbar a { border: 0; border-radius: 999px; padding: 8px 15px; background: transparent; color: var(--ink-soft); transition: background 0.15s, color 0.15s; }
.catbar a:hover { background: var(--brand-soft); color: var(--brand); }
.catbar a.on { background: var(--ink); color: #fff; border: 0; }
.catbar a.all { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.catbar a.all.on { background: var(--ink); box-shadow: none; }

/* ---------------- Dusk band: category / list headers ---------------- */
.breadcrumbs { padding: 18px 0 10px; }
.list-head {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 4px 0 26px; padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px) clamp(44px, 6vw, 72px);
  border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(3px 3px at 18% 78%, #FFD27A 60%, transparent 61%),
    radial-gradient(2px 2px at 31% 84%, #FFE3A8 60%, transparent 61%),
    radial-gradient(3px 3px at 57% 80%, #FFD27A 60%, transparent 61%),
    radial-gradient(2px 2px at 74% 86%, #FFE3A8 60%, transparent 61%),
    radial-gradient(2px 2px at 88% 79%, #FFD27A 60%, transparent 61%),
    radial-gradient(120% 140% at 85% -20%, #4757D6 0%, transparent 55%),
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 70%);
}
.list-head::after { content: ''; position: absolute; inset: auto 0 0 0; height: 56%; background: var(--ridge) bottom / 100% 100% no-repeat; z-index: -1; pointer-events: none; }
.list-head h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.02; margin-bottom: 12px; max-width: 16ch; }
.list-head p, .list-head .muted { color: #C8CDF0; margin: 0; font-size: 0.95rem; }
.list-head [data-count] { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------------- Product cards: floating on a stage ---------------- */
@media (min-width: 481px) { .product-grid { gap: clamp(12px, 1.8vw, 22px); grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); } }
.list-head [data-count] { border-radius: 18px; }
.pcard { border: 0; border-radius: var(--r-lg); background: var(--surface); padding: 8px; box-shadow: var(--shadow-sm); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-media { border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: var(--stage); aspect-ratio: 1; }
.pcard-media img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.pcard-media img[src^="data:"] { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-media .badge { top: 12px; inset-inline-start: 12px; padding: 5px 10px; font-size: 0.76rem; }
.badge-sale { background: var(--accent); color: var(--night); }
.fav-btn { top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; background: rgb(255 255 255 / 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 14px -6px rgb(20 26 51 / 0.35); opacity: 0.92; transition: transform 0.15s, opacity 0.15s; }
.fav-btn:hover { transform: scale(1.08); opacity: 1; }
.pcard-body { padding: 12px 8px 8px; gap: 4px; }
.pcard-store { font-size: 0.74rem; font-weight: 600; color: var(--brand); }
.pcard-title { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.price-line { margin-top: 6px; font-size: 1rem; }
.price-line .now { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
.price-line .on-request { font-family: var(--font); display: inline-flex; padding: 4px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 0.78rem; font-weight: 700; letter-spacing: 0; }
.price-line s { color: #A0A5BE; }

/* ---------------- Browse: filters as a soft panel ---------------- */
@media (min-width: 901px) { .browse { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; } }
.filters.card { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); top: 150px; }
.filters summary { font-family: var(--font-display); font-size: 1.05rem; }
.brand-list { gap: 2px; max-height: 280px; padding-inline-end: 4px; }
.brand-list .check { align-items: center; padding: 8px 10px; border-radius: 12px; transition: background 0.15s; }
.brand-list .check:hover { background: var(--paper); }
.brand-list .check:has(input:checked) { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.brand-list .check input { margin: 0; }
.brand-list .check .muted { margin-inline-start: auto; font-size: 0.75rem; background: var(--paper); padding: 1px 8px; border-radius: 999px; }
.brand-list .check:has(input:checked) .muted { background: var(--surface); }
.toolbar { justify-content: flex-end; }
.select-sm { border-radius: 999px; padding-inline: 14px; border-color: var(--line); background-color: var(--surface); }
.pager a, .pager span { border-radius: 999px; border: 0; box-shadow: var(--shadow-sm); }
.pager a:hover { background: var(--brand-soft); color: var(--brand); }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; }
.pager span { box-shadow: none; }

/* ---------------- Shared controls ---------------- */
.btn { border-radius: 999px; font-weight: 700; }
.btn-sm { border-radius: 999px; padding: 0 16px; }
.btn-accent { --btn-bg: var(--brand); --btn-border: var(--brand); }
.input, .select, .textarea { border-radius: 14px; border-color: var(--line); background-color: var(--surface-2); }
.input:focus, .select:focus, .textarea:focus { background-color: var(--surface); box-shadow: 0 0 0 4px rgb(42 63 184 / 0.14); }
.check input { accent-color: var(--brand); }
.card { border: 0; box-shadow: var(--shadow-sm); }
.chip { border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.chip.on { background: var(--ink); box-shadow: none; }
.rail-btn { border: 0; box-shadow: var(--shadow-sm); width: 40px; height: 40px; }
.rail-btn:hover { background: var(--ink); color: #fff; }
.see-all { padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); }
.see-all:hover { text-decoration: none; background: var(--brand); color: #fff; }
.section-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }

/* ---------------- Home ---------------- */
.slides { border-radius: var(--r-xl); min-height: 380px;
  background: radial-gradient(110% 130% at 90% -10%, #4757D6 0%, transparent 55%), linear-gradient(160deg, var(--night-2), var(--night)); }
.slides::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: var(--ridge) bottom / 100% 100% no-repeat; pointer-events: none; }
.slide { z-index: 1; }
.slide h1 { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.04; max-width: 14ch; }
.slide .btn-accent { --btn-bg: var(--accent); --btn-border: var(--accent); --btn-fg: var(--night); }
.slide-art img { border-radius: var(--r-xl); }
.dots button[aria-pressed="true"] { background: var(--ink); }
.cat-tiles { grid-auto-columns: 118px; gap: 14px; }
.cat-tile img { width: 96px; height: 96px; border-radius: 30px; border: 0; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.cat-tile:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-logo.lg { border-radius: 26px; }
.scard { border-radius: var(--r-lg); }
.scard:hover { box-shadow: var(--shadow); }
.dept-tile, .reel { border-radius: var(--r-lg); }
.cta-band { border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 130% at 90% -10%, #4757D6 0%, transparent 55%), linear-gradient(160deg, var(--night-2), var(--night)); }
.cta-band::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60%; background: var(--ridge) bottom / 100% 100% no-repeat; z-index: -1; }
.cta-band .btn-accent { --btn-bg: var(--accent); --btn-border: var(--accent); --btn-fg: var(--night); }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; margin-top: 88px; background: var(--night); padding-top: 56px; }
.site-footer::before { content: ''; position: absolute; inset: -60px 0 auto 0; height: 61px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%230F1640' d='M0 60V40c120-8 220-30 340-24s180 24 300 18 190-34 320-30 200 30 300 28 130-10 180-8v36z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none; }
.social a { border-radius: 14px; }

@media (max-width: 900px) {
  .filters.card { top: auto; }
}
@media (max-width: 480px) {
  .pcard { padding: 6px; border-radius: 20px; }
  .pcard-media { border-radius: 15px; }
  .pcard-body { padding: 10px 6px 6px; }
  .fav-btn { top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; }
  .list-head { border-radius: 26px; }
  .catbar .container { padding-bottom: 10px; }
}

/* ---------------- Side ads: posters in the wide-screen margins (js/side-ads.js) ---------------- */
.side-ads { display: none; }
@media (min-width: 1680px) {
  .side-ads { display: block; }
  .side-ad {
    position: fixed; z-index: 30; top: var(--side-ads-top, 150px);
    width: clamp(180px, calc((100vw - var(--container)) / 2 - 48px), 290px);
    display: grid; gap: 10px;
    /* When the footer comes up, the posters ride up with it (js/side-ads.js) instead of covering it. */
    transform: translateY(var(--side-ads-shift, 0px));
  }
  .side-ad-start { inset-inline-start: 24px; }
  .side-ad-end { inset-inline-end: 24px; }
}
.side-ad-tag { justify-self: start; font-size: 0.7rem; font-weight: 600; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.side-ad-stack { display: grid; }
.side-ad-card {
  grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: #fff;
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate; position: relative;
  max-height: calc(100vh - var(--side-ads-top, 150px) - 70px);
  background:
    radial-gradient(120% 70% at 80% 0%, #4757D6 0%, transparent 60%),
    linear-gradient(170deg, var(--night-2), var(--night));
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: scale(0.98); transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
}
.side-ad-card.on { opacity: 1; visibility: visible; transform: none; }
.side-ad-card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 38%; background: var(--ridge) bottom / 100% 100% no-repeat; z-index: -1; pointer-events: none; }
.side-ad-media { margin: 10px 10px 0; border-radius: calc(var(--r-xl) - 10px); background: #fff; aspect-ratio: 4 / 5; overflow: hidden; display: block; min-height: 0; }
.side-ad-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.side-ad-media.own { background: transparent; }
.side-ad-media.own img { object-fit: cover; padding: 0; }
.side-ad-card:hover .side-ad-media img { transform: scale(1.06); }
.side-ad-text { display: grid; gap: 4px; align-content: start; padding: 16px 18px 22px; }
.side-ad-sub { font-size: 0.75rem; color: #C8CDF0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-ad-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-ad-price { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.side-ad-cta { justify-self: start; margin-top: 10px; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: var(--night); font-weight: 800; font-size: 0.85rem; transition: transform 0.15s; }
.side-ad-card:hover .side-ad-cta { transform: translateY(-1px); background: #FFC75A; }
.side-ad-dots { display: flex; gap: 6px; justify-content: center; }
.side-ad-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width 0.3s, background 0.3s; }
.side-ad-dots span.on { width: 18px; background: var(--ink); }
@media (max-height: 760px) { .side-ad-text { padding: 12px 14px 16px; } .side-ad-media { aspect-ratio: 1; } }

/* ---------------- Category bar: fade where more categories are hidden ---------------- */
.catbar .container { --fade: 56px; }
.catbar .container.more-end { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--fade)); mask-image: linear-gradient(to left, transparent 0, #000 var(--fade)); }
.catbar .container.more-start { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade)); mask-image: linear-gradient(to right, transparent 0, #000 var(--fade)); }
.catbar .container.more-start.more-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); }
[dir="rtl"] .catbar .container.more-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade)); mask-image: linear-gradient(to right, transparent 0, #000 var(--fade)); }
[dir="rtl"] .catbar .container.more-start { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--fade)); mask-image: linear-gradient(to left, transparent 0, #000 var(--fade)); }

.side-ad-media img[src^="data:"] { object-fit: cover; padding: 0; }

/* ---------------- Notifications, price alerts, memory (js/engagement-ui.js) ---------------- */
.link-btn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.tiny { font-size: 0.72rem; }
.bell-pop { width: min(380px, calc(100vw - 24px)); padding: 0; gap: 0; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.bell-list { max-height: min(460px, 70vh); overflow-y: auto; display: grid; }
.menu-pop .pop a.bell-item { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; padding: 12px 16px; border-radius: 0; }
.bell-item img, .bell-dot { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; background: var(--stage); display: grid; place-items: center; color: var(--brand); }
.bell-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.bell-item strong { font-size: 0.88rem; line-height: 1.3; }
.bell-item .small { color: var(--ink-soft); }
.bell-item.unread { background: var(--brand-soft); }
.bell-item.unread strong::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-inline-end: 6px; vertical-align: 1px; }
.bell-empty { padding: 18px 16px; margin: 0; }
.price-alert { margin-top: 10px; }
.price-alert .icon, .price-alert svg { width: 18px; height: 18px; flex: none; }
.price-alert-form > summary { list-style: none; display: inline-flex; }
.price-alert-form > summary::-webkit-details-marker { display: none; }
.price-alert-form form { margin-top: 10px; align-items: end; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.price-alert-on, .price-alert-held { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-strong); font-size: 0.9rem; }
.price-alert-held { background: #FFF4DC; color: #7A4E00; }
.alert-list { display: grid; gap: 10px; }
.alert-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px; border-radius: var(--r); background: var(--surface-2); }
.alert-row img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: var(--stage); }
.alert-row a { text-decoration: none; }
.pcard-reason { font-size: 0.74rem; color: #7A4E00; background: #FFF4DC; padding: 2px 9px; border-radius: 999px; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Pickup network map (js/pickup-map.js, /pickup-points, /pickup-partner, checkout) ---------------- */
.pmap { position: relative; z-index: 0; background: #E9ECF6; font-family: var(--font); }
.pmap .leaflet-tile-pane { filter: saturate(0.7) contrast(1.04) brightness(1.03) hue-rotate(-8deg); }
.pmap .leaflet-control-zoom { border: 0; box-shadow: var(--shadow); border-radius: 16px; overflow: hidden; }
.pmap .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; font-size: 18px; color: var(--ink); border: 0; }
.pmap .leaflet-control-zoom a:hover { background: var(--brand-soft); color: var(--brand); }
.pmap .leaflet-control-attribution { background: rgb(255 255 255 / 0.8); border-radius: 10px 0 0 0; font-size: 10px; }
[dir="rtl"] .pmap .leaflet-control-attribution { direction: ltr; }
.pmap-picking .leaflet-container, .pmap-picking { cursor: crosshair; }
.pmap-pin { background: none; border: 0; }
.pmap-pin-body { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgb(15 22 64 / 0.6), 0 0 0 3px #fff; transition: transform 0.15s, background 0.15s; }
.pmap-pin-body svg { width: 19px; height: 19px; transform: rotate(45deg); }
.pmap-pin:hover .pmap-pin-body { transform: rotate(-45deg) scale(1.08); }
.pmap-pin.on .pmap-pin-body { background: var(--accent); color: var(--night); }
.pmap-pin.full .pmap-pin-body { background: #9AA0BD; }
.pmap-cluster { background: none; }
.pmap-cluster span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night-2); color: #fff; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 0 0 4px rgb(245 178 60 / 0.75), 0 0 0 9px rgb(245 178 60 / 0.22), 0 8px 20px -8px rgb(15 22 64 / 0.7); }
.pmap-you span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #1E88FF; border: 4px solid #fff; box-shadow: 0 0 0 8px rgb(30 136 255 / 0.2); }
.pmap-popup .leaflet-popup-content-wrapper { border-radius: 20px; box-shadow: var(--shadow-lg); padding: 2px; }
.pmap-popup .leaflet-popup-content { margin: 14px 16px; font: 400 14px/1.5 var(--font); color: var(--ink); }
.pmap-popup .leaflet-popup-tip { box-shadow: none; }
.pmap-pop { display: grid; gap: 4px; text-align: start; }
.pmap-pop strong { font-size: 1rem; }
.pmap-popup .pmap-pop p { margin: 0; color: var(--ink-soft); }
.pmap-pop-kind { display: flex; gap: 6px; align-items: center; font-size: 0.76rem; font-weight: 700; color: var(--brand); }
.pmap-pop-kind svg { width: 16px; height: 16px; }
.pmap-pop-kind em { font-style: normal; font-weight: 600; color: #7A4E00; background: #FFF4DC; padding: 1px 8px; border-radius: 999px; margin-inline-start: auto; }
.pmap-pop-meta { font-size: 0.8rem; color: var(--muted) !important; }
.pmap-pop-full { color: var(--danger) !important; font-weight: 600; font-size: 0.82rem; }
.pmap-pop-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pmap-pop-actions .btn { color: inherit; }
.pmap-pop-actions .btn-accent, .pmap-pop-actions .btn:not(.btn-ghost) { color: #fff; }

.pickup-hero .pickup-lead { font-size: 1.05rem; max-width: 46em; color: #DCE1FA; }
.pickup-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.pickup-tools .chips { flex: 1; }
.pickup-tools .chip { cursor: pointer; font: inherit; }
.pickup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: stretch; }
.pickup-map-wrap { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.pickup-map { height: clamp(420px, 68vh, 680px); width: 100%; }
.pickup-map.short { height: 380px; border-radius: var(--r-lg); overflow: hidden; }
.pickup-list { border-radius: var(--r-xl); padding: 18px 12px 12px; max-height: clamp(420px, 68vh, 680px); overflow-y: auto; }
.pickup-list h2 { padding-inline: 8px; }
.pickup-item { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; text-align: start; padding: 10px 8px; border: 0; border-radius: 16px; background: none; cursor: pointer; font: inherit; color: inherit; }
.pickup-item:hover, .pickup-item:focus-visible { background: var(--paper); }
.pickup-item-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pickup-item-icon svg { width: 22px; height: 22px; }
.pickup-item-text { display: grid; gap: 2px; min-width: 0; }
.pickup-item-text .small { color: var(--ink-soft); }
.pickup-steps { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pickup-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 20px; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.pickup-step-n { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--night); font-family: var(--font-display); font-weight: 800; }
.pickup-steps p { margin: 4px 0 0; }
.pickup-cta { margin-top: 8px; }
@media (max-width: 960px) {
  .pickup-layout { grid-template-columns: 1fr; }
  .pickup-list { max-height: none; }
  .pickup-steps { grid-template-columns: 1fr; }
}
.partner-form { margin-top: 18px; }
.partner-grid { display: grid; gap: 18px; }
.partner-points { display: grid; gap: 14px; }
.partner-point { padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); display: grid; gap: 10px; }
.parcel-list { display: grid; gap: 8px; }
.parcel { padding: 12px; border-radius: 14px; background: var(--surface); display: grid; gap: 8px; box-shadow: var(--shadow-sm); }
.parcel.arrived { box-shadow: inset 0 0 0 2px var(--accent); }
.parcel-handover { align-items: end; }
.parcel-handover .field { max-width: 200px; }
.point-pick { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-soft); }
.point-chosen { display: grid; gap: 2px; }
.pmap-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.pmap-dialog::backdrop { background: rgb(15 22 64 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pmap-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; }
.pmap-dialog-head h2 { margin: 0; }
.pmap-dialog .pickup-map { height: min(70vh, 620px); }

/* ---------------- Phone / social sign-in and captain sign-up (js/phone-auth.js, /courier/join) ---------------- */
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 0.82rem; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-buttons { display: grid; gap: 10px; }
.social-btn { justify-content: center; background: var(--surface); }
.social-btn svg { width: 20px; height: 20px; }
.phone-auth-send { display: grid; gap: 10px; }
.phone-auth-send .btn svg, .btn-wa svg { width: 20px; height: 20px; }
.code-input { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; font-family: var(--font-display); font-weight: 700; }
.courier-hero .pickup-lead { max-width: 40em; }
.courier-perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.courier-perks li { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.courier-perks li::before { content: ''; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 8px; }
.courier-flow { max-width: 720px; margin-inline: auto; }
.courier-card h2 { margin-bottom: 14px; }
.vehicle-pick legend { font-size: 0.95rem; }
.vehicle-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vehicle-option input { position: absolute; opacity: 0; pointer-events: none; }
.vehicle-card { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow 0.15s, background 0.15s, transform 0.15s; text-align: center; }
.vehicle-card svg { width: 52px; height: 52px; fill: none; stroke: var(--ink-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-option:hover .vehicle-card { transform: translateY(-2px); }
.vehicle-option input:checked + .vehicle-card { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.vehicle-option input:checked + .vehicle-card svg { stroke: var(--brand); }
.vehicle-option input:focus-visible + .vehicle-card { outline: 3px solid var(--accent); outline-offset: 2px; }
.courier-status.ok { box-shadow: inset 0 0 0 2px var(--ok); }
.courier-status.bad { box-shadow: inset 0 0 0 2px var(--danger-soft); }
.captain-review { margin-bottom: 14px; }
.captain-review.rejected { background: var(--danger-soft); color: #991b1b; }
.captain-review a { margin-inline-start: 8px; font-weight: 700; }
.share-fb, .share-wa { text-decoration: none; }
.share-fb svg, .share-wa svg { width: 19px; height: 19px; }
.share-fb:hover { color: #1877F2; border-color: #1877F2; }
.share-wa:hover { color: var(--wa); border-color: var(--wa); }
@media (max-width: 640px) {
  .courier-perks { grid-template-columns: 1fr; }
  .vehicle-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- Promo carousel in the dusk banner (js/promo-banner.js) ---------------- */
.list-head.promo { padding: 0; min-height: clamp(300px, 30vw, 360px); display: grid; }
.promo-track { display: grid; }
.promo-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: clamp(28px, 4.5vw, 52px) clamp(22px, 4vw, 48px) clamp(64px, 6vw, 80px);
  opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s; }
[dir="rtl"] .promo-slide { transform: translateX(-24px); }
.promo-slide.on { opacity: 1; visibility: visible; transform: none; }
.promo-text { display: grid; gap: 12px; justify-items: start; max-width: 640px; }
.promo-title, .list-head .promo-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.8vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: #fff; }
:lang(ar) .promo-title { letter-spacing: 0; font-weight: 700; line-height: 1.2; }
.promo-sub, .list-head .promo-sub { margin: 0; color: #D3D8F5; font-size: 1.02rem; max-width: 40em; }
.promo-tag { font-size: 0.78rem; font-weight: 700; color: var(--night); background: var(--accent); padding: 4px 12px; border-radius: 999px; }
.promo-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.promo-cta { --btn-bg: var(--accent); --btn-border: var(--accent); --btn-fg: var(--night); }
.promo-cta:hover { --btn-bg: #FFC75A; --btn-border: #FFC75A; }
.promo-ghost { --btn-fg: #fff; --btn-border: rgb(255 255 255 / 0.35); }
.promo-ghost:hover { --btn-bg: rgb(255 255 255 / 0.1); }
.promo-foot, .list-head .promo-foot { margin: 0; font-size: 0.74rem; color: #A9B0DA; }
.promo-art { width: clamp(150px, 20vw, 250px); }
.promo-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35)); }
.promo-product { aspect-ratio: 1; border-radius: var(--r-xl); background: #fff; padding: 18px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); }
.promo-product img { width: 100%; height: 100%; object-fit: contain; }
.promo-slide.on .promo-art { animation: promo-float 0.9s cubic-bezier(.2,.7,.2,1); }
@keyframes promo-float { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
.promo-slide.on .promo-product { animation: none; }
.promo-nav { position: absolute; inset-inline: 0; bottom: 16px; display: flex; justify-content: center; align-items: center; gap: 12px; z-index: 2; }
.promo-arrow { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(255 255 255 / 0.12); color: #fff; }
.promo-arrow:hover { background: rgb(255 255 255 / 0.25); }
.promo-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .promo-arrow svg { transform: scaleX(-1); }
.promo-dots { display: flex; gap: 6px; }
.promo-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgb(255 255 255 / 0.35); cursor: pointer; transition: width 0.25s, background 0.25s; }
.promo-dots button[aria-pressed="true"] { width: 24px; background: var(--accent); }
.promo-page h1 { margin-bottom: 12px; }
@media (max-width: 720px) {
  .promo-slide { grid-template-columns: 1fr; }
  .promo-art { display: none; }
}
.slide-art-plain img { box-shadow: none; border-radius: 0; aspect-ratio: auto; height: auto; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35)); }
.side-ad-media.art { background: transparent; display: grid; place-items: center; }
.side-ad-media.art img { object-fit: contain; padding: 14%; filter: drop-shadow(0 14px 24px rgb(0 0 0 / 0.35)); }

/* ---------------- Rides (/ride) and the captain's ride panel (js/driver-rides.js) ---------------- */
.ride-page { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; padding: 16px var(--gutter) 0; max-width: 1600px; margin-inline: auto; }
.ride-map { height: calc(100vh - 190px); min-height: 520px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.ride-panel { border-radius: var(--r-xl); padding: 20px; max-height: calc(100vh - 190px); overflow-y: auto; display: grid; align-content: start; gap: 14px; }
.ride-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ride-tabs .chip { cursor: pointer; font: inherit; }
.ride-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; position: relative; }
.ride-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 10px; border-radius: var(--r); }
.ride-steps li.now { background: var(--brand-soft); }
.ride-steps p { margin: 2px 0 6px; }
.ride-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 4px var(--surface); }
.ride-dot.from { background: #1E88FF; }
.ride-dot.to { background: var(--accent); border-radius: 4px; }
.input-sm { min-height: 38px; padding: 6px 10px; font-size: 0.9rem; margin-top: 4px; }
.ride-services { display: grid; gap: 8px; margin-bottom: 12px; }
.ride-service { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; text-align: start; padding: 10px 12px; border: 0; border-radius: var(--r-lg);
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font: inherit; color: inherit; }
.ride-service.on { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.ride-service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); }
.ride-service-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ride-service-text { display: grid; gap: 2px; }
.ride-service-fare { font-family: var(--font-display); font-weight: 800; }
.ride-parcel { margin-bottom: 10px; }
.ride-pin { background: none; }
.ride-pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgb(0 0 0 / 0.6); }
.ride-pin.from span { background: #1E88FF; }
.ride-pin.to span { background: var(--accent); }
.ride-pin.driver span { border-radius: 50%; transform: none; background: var(--night); box-shadow: 0 0 0 4px var(--accent), 0 0 0 10px rgb(245 178 60 / 0.25); }
.ride-status { display: grid; gap: 12px; }
.ride-status h2 { margin: 0; }
.ride-eta { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--brand); margin: 0; }
.ride-driver { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--surface-2); }
.ride-code { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ride-code strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.3em; color: var(--brand); }
.ride-fare strong { font-family: var(--font-display); font-size: 1.2rem; }
.ride-radar { position: relative; width: 84px; height: 84px; margin: 4px auto; }
.ride-radar span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--brand); opacity: 0; animation: radar 2.4s ease-out infinite; }
.ride-radar span:nth-child(2) { animation-delay: 0.8s; }
.ride-radar span:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(1); opacity: 0; } }
.ride-stars { display: flex; gap: 6px; }
.ride-stars button { font-size: 2rem; line-height: 1; border: 0; background: none; color: var(--line-strong); cursor: pointer; padding: 0 2px; }
.ride-stars button:hover, .ride-stars button:hover ~ button { color: var(--line-strong); }
.ride-stars:hover button { color: var(--accent); }
.ride-stars button:hover ~ button { color: var(--line-strong); }
@media (max-width: 900px) {
  .ride-page { grid-template-columns: 1fr; padding-top: 10px; }
  .ride-map { height: 48vh; min-height: 320px; }
  .ride-panel { max-height: none; }
}
.driver-rides { display: grid; gap: 10px; margin-bottom: 18px; }
.driver-rides h2 { margin: 0; }
.driver-on { color: var(--ok); font-weight: 600; }
.driver-on .dot { color: var(--ok); }
.driver-offer, .driver-trip { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--brand-soft); }
.driver-offer { box-shadow: inset 0 0 0 2px var(--accent); background: #FFF8E8; animation: toast-in 0.25s ease-out; }
.driver-timer { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--danger); }
.driver-leg { display: flex; gap: 10px; align-items: center; }
.driver-leg span:nth-child(2) { flex: 1; }

/* Self-service trial (pages/auth.js, merchant.js): the subscription-link box becomes a small optional extra. */
.claim-optional > h2, .claim-optional > p, .claim-optional > .btn-wa { display: none; }
.claim-optional { background: transparent; box-shadow: none; padding: 0; }

/* Admin → Autopilot (pages/autopilot-admin.js) */
.ap-agents { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 16px 0; }
.ap-agent { display: grid; gap: 6px; align-content: start; }
.ap-agent.ap-error { box-shadow: inset 0 0 0 2px var(--danger, #c0392b); }
.ap-agent-head, .ap-agent-stats { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ap-agent .btn { justify-self: start; }
.ap-list { list-style: none; margin: 0; padding: 0 0 8px; }
.ap-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); }
.ap-posts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ap-post { display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.ap-post img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; }
.ap-caption { white-space: pre-wrap; font: inherit; font-size: 0.85rem; margin: 0; }
.ap-post-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* On the way (pages/onway.js) */
.ow-head { display: grid; gap: 4px; }
.ow-head p { margin: 0; }
.ow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ow-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface-2); }
.ow-card { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.ow-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ow-code { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r); background: var(--brand-soft); }
.ow-code strong { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.2em; }
.ow-code.muted { background: var(--surface-2); }
.ow-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ow-carry { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); }
.ow-carry .btn { justify-self: start; }
.ow-code-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ow-code-form .input { width: 12em; }
.ow-sizes { display: flex; gap: 6px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.ow-sizes legend { width: 100%; margin-bottom: 6px; font-weight: 600; }
.ow-sizes .chip { cursor: pointer; }
.ow-price { margin: 0; font-size: 1.3rem; font-family: var(--font-display); }
.ow-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.ow-slots label { display: grid; gap: 4px; font-size: 0.85rem; }
.ow-slots .input { width: 5em; }
.star-btn { border: 0; background: none; font-size: 1.4rem; color: var(--accent); cursor: pointer; padding: 0 2px; }
.ride-driver .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.ow-photo { display: grid; gap: 4px; }
.ow-photo input { font-size: 0.85rem; }
.ow-point { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); background: var(--surface); margin-top: 6px; }

/* Data & backups (/merchant#/data) */
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.data-grid h2, .dash-main .card h2 { display: flex; align-items: center; gap: 8px; }
.data-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.data-counts strong { font-size: 1.25rem; }
.data-steps { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.data-file { cursor: pointer; justify-content: center; }
.data-errors { max-height: 360px; overflow: auto; }

/* ------------------------------------------------------------------ Messages (js/chat-ui.js) */
.chat-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; } }
.chat-convs { list-style: none; margin: 0; padding: 0; }
.chat-convs a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.chat-convs a:hover, .chat-convs a.active { background: var(--brand-soft); }
.chat-convs a > span.muted { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-convs .count { background: var(--accent); color: #111; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; align-self: center; }
.chat-thread { display: flex; flex-direction: column; min-height: 380px; }
.chat-head { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.chat-list { flex: 1; overflow-y: auto; max-height: 55vh; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.chat-msg { max-width: min(78%, 520px); align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; overflow-wrap: anywhere; }
.chat-msg p { margin: 0 0 4px; }
.chat-own { align-self: flex-end; background: var(--brand-soft); border-color: transparent; }
.chat-meta { display: block; font-size: 11px; color: var(--muted); }
.chat-media { display: block; max-width: 240px; max-height: 240px; border-radius: 10px; margin: 4px 0; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: vertical; min-height: 42px; max-height: 160px; }
.chat-empty { text-align: center; margin: auto; }
.account-grid section { scroll-margin-top: 180px; }
@media (max-width: 760px) { .account-grid section { scroll-margin-top: 310px; } }

/* Staff banners (admin#/banners): a photo in the hero slider, and a row of small banners */
.slide-art-photo img { width: min(100%, 560px); aspect-ratio: 2 / 1; object-fit: cover; }
@media (max-width: 720px) { .slide-art.slide-art-photo { display: block; order: -1; } .slide-art-photo img { aspect-ratio: 3 / 2; width: 100%; } }
.banner-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.banner-tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg, 16px); aspect-ratio: 7 / 3; background: var(--surface); text-decoration: none; color: #fff; }
.banner-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.banner-tile:hover img { transform: scale(1.04); }
.banner-tile-text { position: absolute; inset: 0; display: grid; align-content: end; gap: 2px; padding: 14px 16px; background: linear-gradient(to top, rgb(0 0 0 / .62), rgb(0 0 0 / 0) 70%); }
.banner-tile-text strong { font-size: 1.05rem; }
.banner-tile-text span { font-size: .85rem; opacity: .9; }
.banner-tile-text em { font-style: normal; font-weight: 600; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .banner-tile img { transition: none; } }
.subcat-chips { margin-bottom: 16px; }
.banner-thumb { object-fit: cover; border-radius: 6px; }
.banner-preview { max-width: 320px; border-radius: 8px; margin-top: 6px; }
.banner-preview-sm { max-width: 160px; }
/* endless scrolling under a product grid (infiniteList in common.js) */
.infinite-foot { display: grid; justify-items: center; gap: 10px; margin: 28px 0 8px; min-height: 48px; text-align: center; }
.infinite-foot [data-more][hidden] { display: none; }

/* ------------------------------------------------------------ Stories and live selling (docs/LIVE-AND-STORIES.md) */
.stories-rail-wrap { padding: 14px 0 4px; }
.stories-rail { display: flex; gap: 14px; overflow-x: auto; list-style: none; margin: 0; padding: 4px 2px 8px; scrollbar-width: thin; }
.story-bubble { position: relative; display: grid; justify-items: center; gap: 6px; width: 76px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; color: inherit; font: inherit; }
.story-ring { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--accent, #E3A812), var(--brand, #1B3A8C), var(--accent, #E3A812)); }
.story-ring > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); overflow: hidden; }
.story-bubble.is-seen .story-ring { background: var(--line-strong, #ccd); }
.story-bubble.is-live .story-ring { background: var(--danger, #d92d20); animation: live-pulse 1.6s ease-in-out infinite; }
.story-live-badge { position: absolute; top: 58px; padding: 1px 6px; border-radius: 4px; background: var(--danger, #d92d20); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.story-name { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.story-bubble:focus-visible .story-ring { outline: 3px solid var(--brand); outline-offset: 2px; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 5px rgb(217 45 32 / .25); } }

.story-viewer { width: min(100vw, 460px); height: min(100dvh, 860px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 14px; background: #000; color: #fff; overflow: hidden; }
.story-viewer::backdrop { background: rgb(0 0 0 / .86); }
.story-frame { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; height: 100%; }
.story-bars { display: flex; gap: 4px; padding: 10px 10px 0; }
.story-bars progress { flex: 1; height: 3px; appearance: none; border: 0; border-radius: 2px; background: rgb(255 255 255 / .35); overflow: hidden; }
.story-bars progress::-webkit-progress-bar { background: rgb(255 255 255 / .35); }
.story-bars progress::-webkit-progress-value { background: #fff; }
.story-bars progress::-moz-progress-bar { background: #fff; }
.story-bars progress.is-running::-webkit-progress-value { animation: story-fill 6s linear forwards; }
.story-bars progress.is-running::-moz-progress-bar { animation: story-fill 6s linear forwards; }
.story-bars progress.is-paused::-webkit-progress-value { animation-play-state: paused; }
.story-bars progress.is-paused::-moz-progress-bar { animation-play-state: paused; }
@keyframes story-fill { from { width: 0; } to { width: 100%; } }
.story-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.story-store { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.story-btn { min-width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; }
.story-media { position: relative; display: grid; place-items: center; min-height: 0; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: contain; }
.story-zone { position: absolute; top: 0; bottom: 0; width: 35%; border: 0; background: none; cursor: pointer; }
.story-zone-prev { inset-inline-start: 0; }
.story-zone-next { inset-inline-end: 0; }
.story-caption { margin: 0; padding: 8px 14px; font-size: .95rem; }
.story-products { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 8px 12px 14px; }
.story-products a { display: flex; align-items: center; gap: 8px; min-width: 210px; padding: 6px 10px 6px 6px; border-radius: 12px; background: #fff; color: var(--ink, #141a33); text-decoration: none; font-size: .85rem; }
.story-products img { border-radius: 8px; object-fit: cover; }
.story-products span { display: grid; }
.story-product-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.story-products em { margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .story-bubble.is-live .story-ring { animation: none; } }

.badge-live { background: var(--danger, #d92d20); color: #fff; font-weight: 800; letter-spacing: .04em; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.live-card { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.live-card-head { display: flex; align-items: center; justify-content: space-between; }
.live-room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding-block: 18px; }
@media (max-width: 900px) { .live-room { grid-template-columns: 1fr; } }
.live-stage, .live-host-stage { position: relative; overflow: hidden; border-radius: 16px; background: #0b1020; aspect-ratio: 9 / 16; max-height: calc(100dvh - 140px); margin-inline: auto; width: 100%; }
@media (min-width: 901px) { .live-stage { aspect-ratio: 16 / 10; } }
.live-host-stage { aspect-ratio: 16 / 9; }
.live-stage video, .live-host-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-overlay-top { position: absolute; inset: 10px 10px auto; display: flex; align-items: center; gap: 8px; color: #fff; }
.live-store { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.live-count { padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / .45); color: #fff; font-size: .8rem; }
.live-host-stage .live-count { position: absolute; bottom: 10px; inset-inline-start: 10px; }
.live-host-stage .badge-live { position: absolute; top: 10px; inset-inline-start: 10px; }
.live-message { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #fff; text-align: center; font-weight: 600; }
.live-message[hidden] { display: none; }
.live-sound { position: absolute; top: 54px; inset-inline-end: 10px; }
.live-reactions { position: absolute; inset: auto 10px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.live-reactions button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .45); font-size: 1.25rem; cursor: pointer; transition: transform .12s; }
.live-reactions button:active { transform: scale(1.25); }
.live-floats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.live-float { position: absolute; bottom: 60px; font-size: 1.8rem; animation: live-float 2.6s ease-out forwards; }
.live-float.is-big { font-size: 3.2rem; }
.live-float.lane-0 { inset-inline-end: 6%; }
.live-float.lane-1 { inset-inline-end: 12%; }
.live-float.lane-2 { inset-inline-end: 18%; }
.live-float.lane-3 { inset-inline-end: 24%; }
.live-float.lane-4 { inset-inline-end: 9%; }
@keyframes live-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1); } 100% { transform: translateY(-340px) translateX(-20px) scale(1.1); opacity: 0; } }
.live-gift-banner { position: absolute; top: 56px; inset-inline-start: 50%; translate: -50% 0; padding: 8px 16px; border-radius: 999px; background: linear-gradient(90deg, #E3A812, #d92d20); color: #fff; font-weight: 700; opacity: 0; transition: opacity .3s; white-space: nowrap; }
[dir="rtl"] .live-gift-banner { translate: 50% 0; }
.live-gift-banner.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .live-float { animation-duration: .01s; } }
.live-side { display: grid; align-content: start; gap: 14px; }
.live-stars { display: flex; gap: 4px; }
.live-stars button { border: 0; background: none; font-size: 1.8rem; color: var(--line-strong, #ccd); cursor: pointer; line-height: 1; }
.live-stars button.on { color: #E3A812; }
.live-gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.live-gift { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; font-size: .82rem; }
.live-gift:hover { border-color: var(--brand); }
.live-gift-icon { font-size: 1.6rem; }
.live-products { display: grid; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.live-products a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; background: var(--surface); text-decoration: none; color: inherit; font-size: .88rem; }
.live-products img { border-radius: 8px; object-fit: cover; }
.live-products span { display: grid; }
.live-host { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .live-host { grid-template-columns: 1fr; } }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 280px; overflow: auto; }
.pick { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; cursor: pointer; }
.pick img { border-radius: 6px; object-fit: cover; }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft, #eef2fb); }
.story-preview img, .story-preview video { max-width: 220px; max-height: 360px; border-radius: 12px; }
.my-stories { display: grid; gap: 10px; list-style: none; padding: 0; }
.my-stories li { display: flex; align-items: center; gap: 12px; }
.my-stories img, .my-stories video { width: 64px; height: 100px; object-fit: cover; border-radius: 8px; background: #000; }
.my-stories button { margin-inline-start: auto; }
.story-ring .store-logo { width: 100%; height: 100%; border-radius: 50%; box-shadow: none; border: 3px solid var(--surface); font-size: 1.5rem; }
.live-overlay-top .store-logo, .story-store .store-logo { border-radius: 50%; }
[dir="rtl"] .story-bars progress { transform: scaleX(-1); }
/* potential merchants (admin#/leads) */
.leads { display: grid; gap: 8px; list-style: none; padding: 0; }
.lead-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; }
.lead-cats { flex-basis: 100%; }
.lead.is-dnc { opacity: .7; }
.lead-body { padding-top: 12px; }
.leads-filters { flex-wrap: wrap; gap: 10px; }
/* The field app's review desk (js/pages/field-admin.js) */
.field-modes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); margin: 16px 0 0; }
.field-modes legend { padding: 0 6px; font-weight: 700; }
.field-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.field-mode:has(input:checked) { border-color: var(--accent); }
.field-mode input { margin-top: 4px; }
.field-mode span { display: grid; gap: 2px; }
.field-mode small { color: var(--muted); }
.field-sub { display: grid; gap: 14px; grid-template-columns: minmax(96px, 208px) minmax(0, 1fr); align-items: start; }
.field-thumbs { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: #fff; }
.field-reject .input { flex: 1 1 220px; }
.field-add { flex-wrap: wrap; gap: 10px; }
.field-add .input { flex: 1 1 180px; }
.field-password { border: 2px solid var(--accent); margin-top: 12px; }
.field-password-value { font-size: 1.5rem; letter-spacing: .08em; margin: 6px 0 0; user-select: all; }
@media (max-width: 640px) { .field-sub { grid-template-columns: 1fr; } .field-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
button.kpi { text-align: start; border: 0; cursor: pointer; font: inherit; }
button.kpi[aria-pressed="true"] { outline: 2px solid var(--brand); }
/* imported products (merchant #/imported) */
.imported-tabs { flex-wrap: wrap; gap: 8px; }
.imported-bulk { flex-wrap: wrap; gap: 10px; align-items: center; }
.imported-table .input-sm, .imported-table .select-sm { min-width: 0; }
.imported-table td.num .input-sm { width: 6.5em; text-align: end; }
.imported-title { max-width: 320px; }
.imported-table tr.is-dirty { background: var(--brand-soft, #eef2fb); }
.input.is-invalid { border-color: var(--danger, #d92d20); }
.bulk-group { display: inline-flex; align-items: center; gap: 6px; }
.bulk-group .input-sm { width: 6em; }
/* fare table (admin#/rides): widths here, not inline, so the security policy allows them */
.input-fare { width: 6em; }
.input-pct { width: 5em; }

/* admin on phones: a section drop-down instead of the sideways strip */
.dash-jump { display: none; }
@media (max-width: 900px) {
  .dash-jump { display: block; }
  .dash-nav.has-jump { display: none; }
}

/* the floating WhatsApp button (landing page) must not cover the copyright line */
body:has(.lp-wa-float) .footer-bottom { padding-inline-end: 80px; }
@media (max-width: 640px) { body:has(.lp-wa-float) .footer-bottom { padding-inline-end: 0; padding-bottom: 76px; } }

/* phones and small tablets: only the search box and categories stay pinned (common.js measures --header-hide) */
@media (max-width: 820px) { .site-header { top: calc(-1 * var(--header-hide, 0px)); } }

/* ---------------------------------------------------------------- Pre-launch gate (public/js/prelaunch.js) */
.pl-locked, .pl-locked body { overflow: hidden; }
.pl-gate { position: fixed; inset: 0; z-index: 200; color: #fff; isolation: isolate;
  background: linear-gradient(160deg, rgb(14 31 77 / .78), rgb(27 58 140 / .62) 55%, rgb(14 31 77 / .82));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  animation: pl-in .5s ease both; }
.pl-gate.pl-leaving { animation: pl-out .4s ease both; }
@keyframes pl-in { from { opacity: 0; } }
@keyframes pl-out { to { opacity: 0; transform: scale(1.02); } }
/* the brand, faint and repeated, under everything */
.pl-watermark { position: absolute; inset: -20%; z-index: -1; pointer-events: none; overflow: hidden; opacity: .045;
  background: url("/brand/cassion-mark.svg") 0 0 / 120px 120px repeat; transform: rotate(-14deg); }
.pl-watermark span { position: absolute; inset-inline-start: 0; width: 100%; text-align: center; white-space: nowrap;
  font: 800 clamp(64px, 14vw, 200px)/1 "Plus Jakarta Sans", "IBM Plex Sans Arabic", var(--font); color: #fff; letter-spacing: -.02em; }
.pl-watermark span:nth-child(1) { top: 18%; } .pl-watermark span:nth-child(2) { top: 48%; } .pl-watermark span:nth-child(3) { top: 78%; }
.pl-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 5vh, 56px) var(--gutter) 40px; display: grid; justify-items: center; align-content: start; gap: 56px; }
.pl-preview { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgb(227 168 18 / .18); color: #FCE7A8; font-size: .85rem; }
.pl-preview a { color: #fff; font-weight: 600; margin-inline-start: 8px; }
.pl-hero, .pl-merchants { width: min(100%, 860px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.pl-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem "Plus Jakarta Sans", "IBM Plex Sans Arabic", var(--font); }
.pl-eyebrow { margin: 18px 0 0; color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.pl-hero h1 { margin: 0; font: 800 clamp(1.9rem, 5vw, 3.4rem)/1.12 "Plus Jakarta Sans", "IBM Plex Sans Arabic", var(--font); letter-spacing: -.02em; max-width: 16ch; }
.pl-merchants h2 { margin: 0; font: 800 clamp(1.5rem, 3.6vw, 2.4rem)/1.15 "Plus Jakarta Sans", "IBM Plex Sans Arabic", var(--font); }
.pl-lead { margin: 0; max-width: 58ch; color: #D6E0F7; font-size: 1.05rem; line-height: 1.6; }
/* countdown */
.pl-count { display: flex; gap: clamp(8px, 2vw, 16px); margin: 18px 0 6px; direction: ltr; }
.pl-unit { display: grid; justify-items: center; gap: 6px; min-width: clamp(68px, 17vw, 112px); padding: clamp(12px, 2.4vw, 20px) 8px;
  border-radius: 18px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 18px 40px -20px rgb(0 0 0 / .5); }
.pl-num { font: 800 clamp(2rem, 6vw, 3.6rem)/1 "Plus Jakarta Sans", var(--font); color: var(--accent); font-variant-numeric: tabular-nums; }
.pl-num.pl-flip { animation: pl-flip .45s ease; }
@keyframes pl-flip { from { transform: translateY(-30%); opacity: .2; } }
.pl-label { font-size: .78rem; color: #C9D3EA; text-transform: uppercase; letter-spacing: .1em; }
.pl-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 700 1rem var(--font); cursor: pointer; text-decoration: none; border: 0; transition: transform .15s, box-shadow .15s, background .15s; }
.pl-btn:hover { transform: translateY(-1px); }
.pl-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.pl-btn-gold { background: var(--accent); color: #0E1F4D; box-shadow: 0 12px 30px -10px rgb(227 168 18 / .7); }
.pl-btn-gold:hover { background: #F0B92A; }
.pl-btn-glass { background: rgb(255 255 255 / .1); color: #fff; border: 1px solid rgb(255 255 255 / .35); }
.pl-btn-glass:hover { background: rgb(255 255 255 / .18); }
.pl-gate :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* merchant section */
.pl-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; width: 100%; margin-top: 10px; text-align: start; }
.pl-value { padding: 20px; border-radius: 18px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .15); }
.pl-value h3 { margin: 12px 0 6px; font-size: 1.02rem; }
.pl-value p { margin: 0; color: #C9D3EA; font-size: .92rem; line-height: 1.5; }
.pl-value-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgb(227 168 18 / .16); color: var(--accent); }
.pl-plans { width: 100%; padding: 18px 20px; border-radius: 18px; background: rgb(14 31 77 / .45); border: 1px solid rgb(227 168 18 / .3); }
.pl-plans h3 { margin: 0 0 10px; font-size: .95rem; color: var(--accent); }
.pl-plans ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.pl-plans li { display: grid; gap: 2px; } .pl-plans li span { color: #C9D3EA; font-size: .88rem; }
.pl-trial { margin: 10px 0 0; color: #FCE7A8; font-weight: 600; }
/* survey */
.pl-survey { width: min(100%, 720px); scroll-margin-top: 20px; }
.pl-card { padding: clamp(18px, 4vw, 32px); border-radius: 24px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6); text-align: start; }
.pl-survey-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pl-survey-head h2 { margin: 0; font-size: 1.3rem; }
.pl-step { color: #C9D3EA; font-size: .88rem; }
.pl-progress { height: 6px; border-radius: 999px; background: rgb(255 255 255 / .14); margin: 14px 0 20px; overflow: hidden; }
.pl-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s; }
.pl-progress span.pl-progress-1 { width: 25%; } .pl-progress span.pl-progress-2 { width: 50%; } .pl-progress span.pl-progress-3 { width: 75%; } .pl-progress span.pl-progress-4 { width: 100%; }
.pl-card fieldset { border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pl-card legend { font-weight: 700; font-size: 1.08rem; margin-bottom: 10px; padding: 0; }
.pl-hint, .pl-sub { margin: 0; color: #C9D3EA; font-size: .9rem; } .pl-sub { margin-top: 6px; color: #fff; font-weight: 600; }
.pl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-choices-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pl-choice { position: relative; cursor: pointer; }
.pl-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pl-choice span { display: grid; gap: 4px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .06); transition: background .15s, border-color .15s; }
.pl-choice-big span { padding: 18px; border-radius: 16px; }
.pl-choice small { color: #C9D3EA; font-size: .85rem; font-weight: 400; }
.pl-choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #0E1F4D; }
.pl-choice input:checked + span small { color: #3B3000; }
.pl-choice input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.pl-field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.pl-field input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .95); color: var(--ink); font: 500 1rem var(--font); }
.pl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #D6E0F7; margin-top: 4px; }
.pl-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.pl-error { min-height: 1.2em; margin: 0 0 8px; color: #FECACA; font-weight: 600; }
.pl-nav { display: flex; justify-content: space-between; gap: 12px; }
.pl-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 10px 0; }
.pl-done h2 { margin: 6px 0 0; font-size: 1.7rem; } .pl-done p { margin: 0; color: #D6E0F7; max-width: 46ch; }
.pl-foot { margin: 0; } .pl-link { background: none; border: 0; color: #C9D3EA; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 520px) { .pl-btn { width: 100%; } .pl-ctas { width: 100%; } .pl-unit { min-width: 0; flex: 1; } .pl-count { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .pl-gate, .pl-gate.pl-leaving, .pl-num.pl-flip { animation: none; } .pl-btn, .pl-progress span { transition: none; } }

/* ---------------------------------------------------------------- Gold product stars (goldStarsHtml in common.js) */
.gold-rating { display: inline-flex; align-items: center; gap: 1px; font-size: .8rem; line-height: 1; color: var(--muted); }
.gold-rating .gstar { display: inline-grid; position: relative; }
.gold-rating svg { width: 14px; height: 14px; fill: #E5E1D6; stroke: #C99A0E; stroke-width: .6; }
.gold-rating .gstar.on svg { fill: #F2B705; filter: drop-shadow(0 1px 0 rgb(176 124 0 / .35)); }
.gold-rating .gstar.half svg + svg { position: absolute; inset: 0; fill: #F2B705; clip-path: inset(0 50% 0 0); }
[dir="rtl"] .gold-rating .gstar.half svg + svg { clip-path: inset(0 0 0 50%); }
.gold-rating strong { margin-inline-start: 5px; color: var(--ink); font-weight: 700; }
.gold-rating .gcount { margin-inline-start: 3px; }
.pcard-body .gold-rating { margin: 2px 0; }
.gold-rating.lg { font-size: 1rem; gap: 2px; }
.gold-rating.lg svg { width: 20px; height: 20px; }
.pdp-rating { display: inline-flex; text-decoration: none; margin: 4px 0 2px; }
.pdp-rating:hover strong { text-decoration: underline; }

/* ---------------------------------------------------------------- Admin console sections (js/pages/console-sections.js) */
.console-ro { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); }
.console-ro svg { width: 14px; height: 14px; }
.console-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.console-tiers .card { padding: 14px 16px; }
.console-tiers p { margin: 4px 0 0; }
.console-secret { padding: 14px 16px; border-radius: 12px; background: #FFF8E1; border: 1px solid #F5D77A; }
.console-secret p { margin: 0 0 8px; }
.console-secret code { font-size: 1.05rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: #fff; user-select: all; }
.narrow-form { max-width: 560px; }
.console-setting { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.console-setting:last-child { border-bottom: 0; }
.console-setting .field-label { font-weight: 600; font-size: .92rem; }
.console-setting-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.console-setting-row .input { flex: 1 1 240px; max-width: 420px; }
.console-setting p { margin: 0; }
.console-segs { flex-wrap: wrap; margin-top: 10px; }
.console-segs .count { margin-inline-start: 4px; font-size: .78rem; opacity: .7; }
.console-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"] .muted { color: #D6E0F7; }
.chip-sm { padding: 3px 9px; font-size: .78rem; }
.badge-soft { background: var(--paper); color: var(--ink-soft); font-weight: 600; }
.kpi .value-sm { font-size: 1.15rem; }
.kpi .value.down { color: var(--danger, #b91c1c); }
.console-sub { margin: 18px 0 8px; font-size: 1.05rem; }
.console-notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.console-notes li { padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.console-notes p { margin: 4px 0; white-space: pre-wrap; }
.console-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.console-timeline li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.console-timeline li:last-child { border-bottom: 0; }
.console-timeline .ev-login { opacity: .7; }
.console-timeline .ev-note > div { padding-inline-start: 8px; border-inline-start: 3px solid #E3A812; }
.console-new summary { cursor: pointer; }
.console-grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin-top: 12px; }
.console-grid-form .form-error { grid-column: 1 / -1; }
.console-pager { justify-content: center; align-items: center; }
.console-detail { max-width: 360px; overflow-wrap: anywhere; }
.console-qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 640px) { .console-timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------- Search by photo, QR code or barcode (js/visual-search.js) */
.search .search-cam { background: transparent; color: var(--ink-soft); width: 40px; }
.search .search-cam:hover { background: var(--paper); color: var(--brand); }
.search .search-cam svg { width: 22px; height: 22px; }
.vs-pick { justify-content: center; gap: 8px; cursor: pointer; }
.vs-pick svg { width: 20px; height: 20px; }
.vs-pick:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.vs-preview { display: grid; place-items: center; }
.vs-preview canvas { max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.vs-status { margin: 0; min-height: 1.4em; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vs-status:empty { display: none; }
.vs-code { border-top: 1px solid var(--line); padding-top: 14px; }
.vs-terms { flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }

/* ---------------------------------------------------------------- Admin console: one store (console-sections.js storeView) */
.console-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); display: block; }
.console-thumb-none { display: grid; place-items: center; color: var(--ink-soft); }
.console-thumb-none svg { width: 22px; height: 22px; }
.console-products td { vertical-align: middle; }

/* ---------------------------------------------------------------- Guided merchant sign-up (js/pages/onboarding.js) */
.ob { max-width: 640px; padding-block: 20px 48px; }
.ob-progress { height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.ob-progress-bar { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .3s ease; }
.ob-step { margin: 8px 0 12px; font-size: .9rem; }
.ob-card h1 { font-size: 1.5rem; margin: 0; }
.ob-card .input-lg, .ob-card .btn-lg { min-height: 52px; font-size: 1.05rem; }
.ob-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.ob-actions [data-next] { flex: 1 1 220px; }
.ob-choices, .ob-tiles { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.ob-choices { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ob-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ob-choices legend, .ob-tiles legend { margin-bottom: 8px; font-weight: 600; }
.ob-choice, .ob-tile { position: relative; cursor: pointer; }
.ob-choice input, .ob-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ob-choice > span, .ob-tile > span { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); min-height: 56px; align-content: center; }
.ob-choice > span svg { width: 26px; height: 26px; color: var(--brand); }
.ob-choice input:checked + span, .ob-tile input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.ob-choice input:focus-visible + span, .ob-tile input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.ob-tile > span { text-align: center; font-weight: 600; font-size: .95rem; }
.ob-gps { width: 100%; justify-content: center; gap: 8px; }
.ob-gps svg { width: 22px; height: 22px; }
.ob-map { height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.ob-region { margin: 0; font-weight: 600; display: flex; gap: 6px; align-items: center; min-height: 1.4em; }
.ob-region svg { width: 18px; height: 18px; color: var(--brand); }
.ob-hours .field { flex: 1 1 140px; }
.ob-logo { width: 140px; height: 140px; border-radius: 24px; border: 2px dashed var(--line); display: grid; place-items: center; overflow: hidden; margin-inline: auto; color: var(--ink-soft); background: var(--paper); }
.ob-logo img { width: 100%; height: 100%; object-fit: cover; }
.ob-logo svg { width: 48px; height: 48px; }
.ob-photo-btns { justify-content: center; }
.ob-summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ob-sum-row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ob-sum-row:last-child { border-bottom: 0; }
.ob-done { text-align: center; }
.ob-done-mark { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: color-mix(in srgb, #1a9b5a 14%, var(--surface)); color: #1a9b5a; }
.ob-done-mark svg { width: 40px; height: 40px; }
.ob-next { text-align: start; display: grid; gap: 10px; padding-inline-start: 22px; margin: 0; }
.ob-next a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.ob-next svg { width: 18px; height: 18px; }
.ob-next code { display: block; font-size: .85rem; margin-top: 4px; overflow-wrap: anywhere; }
.voucher-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 520px) { .ob-sum-row { grid-template-columns: 1fr auto; } .ob-sum-row .muted { grid-column: 1 / -1; } .ob-map { height: 280px; } }

/* ---------------------------------------------------------------- Regional hubs (js/pages/regions.js, region.js) */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.region-card { display: grid; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.region-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgb(27 58 140 / .45); }
.region-card-img { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #2a5bd7); color: #fff; }
.region-card-img img { width: 100%; height: 100%; object-fit: cover; }
.region-card-img svg { width: 34px; height: 34px; opacity: .9; }
.region-card-text { display: grid; gap: 2px; padding: 12px 14px; }
.region-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 220px; display: grid; align-items: end; background: linear-gradient(135deg, var(--brand), #2a5bd7 60%, #E3A812); color: #fff; margin-bottom: 8px; }
.region-hero.has-photo { min-height: 340px; background: #0d1b3d; }
.region-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region-hero.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(5 12 30 / .78), rgb(5 12 30 / .05) 60%); }
.region-hero-text { position: relative; z-index: 1; padding: 28px; max-width: 760px; }
.region-hero-text h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; }
.region-hero-text p { margin: 0; font-size: 1.05rem; opacity: .95; }
.region-hero-mark svg { width: 40px; height: 40px; }
.region-thumbs { position: absolute; z-index: 1; inset-inline-end: 16px; top: 16px; display: flex; gap: 6px; }
.region-thumbs button { width: 54px; height: 40px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid rgb(255 255 255 / .6); cursor: pointer; background: none; }
.region-thumbs button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #E3A812; }
.region-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.region-credit { position: absolute; z-index: 1; inset-inline-end: 14px; bottom: 10px; font-size: .72rem; opacity: .8; }
.region-filters { flex-wrap: wrap; margin-bottom: 14px; }
.region-filters .chip svg { width: 14px; height: 14px; }
.region-map { height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
@media (max-width: 640px) { .region-hero.has-photo { min-height: 260px; } .region-hero-text { padding: 20px; } .region-thumbs { display: none; } }

/* ---------------------------------------------------------------- Console: vouchers and areas (js/pages/growth-admin.js) */
.voucher-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; letter-spacing: .06em; user-select: all; }
.region-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.region-photo { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.region-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

/* ---------------------------------------------------------------- A store's own design (lib/store-theme.js, js/pages/store.js) */
.store-themed .store-cover { color: var(--on-accent, #fff); background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.store-themed .store-cover.hdr-solid { background: var(--accent); }
.store-themed .store-cover.hdr-photo { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 82%, transparent), color-mix(in srgb, var(--accent-2) 55%, transparent)), var(--cover) center / cover no-repeat; color: #fff; }
.store-themed .store-cover.hdr-light { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--ink); border-bottom: 4px solid var(--accent); }
.store-themed .store-cover h1, .store-themed .store-cover p, .store-themed .store-cover .breadcrumbs a { color: inherit; }
.store-themed .store-cover.hdr-light .breadcrumbs.light a, .store-themed .store-cover.hdr-light .breadcrumbs.light li { color: var(--ink-soft); }
.store-themed .chip.on { background: var(--accent); color: var(--on-accent, #fff); }
.store-themed .product-card .btn, .store-themed .btn-accent { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.store-themed.crn-square .product-card, .store-themed.crn-square .card, .store-themed.crn-square .chip, .store-themed.crn-square .btn, .store-themed.crn-square .product-card img { border-radius: 2px; }
.store-themed.crn-soft .product-card, .store-themed.crn-soft .card, .store-themed.crn-soft .product-card img { border-radius: 8px; }
.store-themed.crd-large .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ---------------------------------------------------------------- Merchant: store assistant and design (js/merchant-assistant-ui.js) */
.ai-wrap { display: grid; grid-template-rows: 1fr auto auto; min-height: 60vh; max-height: calc(100vh - 220px); overflow: hidden; }
.ai-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-hello { margin: auto; max-width: 460px; text-align: center; }
.ai-msg { max-width: min(640px, 88%); padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; line-height: 1.55; }
.ai-me { align-self: flex-end; background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.ai-bot { align-self: flex-start; background: var(--paper); border-end-start-radius: 4px; }
.ai-card { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); white-space: normal; display: grid; gap: 8px; }
.ai-card-head { font-weight: 700; font-size: .85rem; display: flex; gap: 6px; align-items: center; color: var(--brand); }
.ai-card-head svg { width: 16px; height: 16px; }
.ai-card blockquote { margin: 0; padding: 8px 12px; border-inline-start: 3px solid var(--brand); background: var(--paper); border-radius: 6px; }
.ai-card p { margin: 0; }
.ai-diff { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ai-diff th { text-align: start; font-weight: 500; padding: 4px 6px 4px 0; }
.ai-diff td { padding: 4px 6px; white-space: nowrap; }
.ai-diff svg { width: 14px; height: 14px; opacity: .6; }
[dir="rtl"] .ai-diff svg { transform: scaleX(-1); }
.ai-swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); }
.ai-suggest { padding: 0 16px 10px; flex-wrap: wrap; }
.ai-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.ai-input textarea { flex: 1; resize: none; }
.ai-off { margin: 0 16px 10px; }
.design-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.design-opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.design-opts legend { width: 100%; margin-bottom: 6px; font-weight: 600; }
.design-opts .chip input { margin-inline-end: 4px; }
.design-palettes { display: flex; flex-wrap: wrap; gap: 8px; }
.design-pal { display: flex; width: 54px; height: 30px; border-radius: 999px; overflow: hidden; border: 2px solid var(--line); padding: 0; cursor: pointer; background: none; }
.design-pal span { flex: 1; }
.design-pal:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.design-ok { color: #1a7f4b; }
input[type="color"] { width: 64px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.design-preview { --accent: #1B3A8C; --accent-2: #2A5BD7; --on-accent: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dp-cover { display: flex; gap: 12px; align-items: center; padding: 22px 16px; color: var(--on-accent); background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.design-preview.hdr-solid .dp-cover { background: var(--accent); }
.design-preview.hdr-photo .dp-cover { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 82%, transparent), color-mix(in srgb, var(--accent-2) 55%, transparent)), var(--cover) center / cover; color: #fff; }
.design-preview.hdr-light .dp-cover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--ink); border-bottom: 4px solid var(--accent); }
.dp-cover small { display: block; opacity: .85; }
.dp-logo { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--accent); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.dp-logo img { width: 100%; height: 100%; object-fit: cover; }
.dp-body { padding: 14px; display: grid; gap: 10px; }
.dp-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--paper); font-size: .8rem; margin-inline-end: 6px; }
.dp-chip.on { background: var(--accent); color: var(--on-accent); }
.dp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.design-preview.crd-large .dp-cards { grid-template-columns: 1fr; }
.dp-card { border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; gap: 6px; }
.dp-img { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--paper)), var(--paper)); }
.dp-btn { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .85rem; }
.design-preview.crn-square .dp-card, .design-preview.crn-square .dp-img, .design-preview.crn-square .dp-btn, .design-preview.crn-square .dp-chip { border-radius: 2px; }
.design-preview.crn-soft .dp-card, .design-preview.crn-soft .dp-img { border-radius: 6px; }
@media (max-width: 860px) { .design-grid { grid-template-columns: 1fr; } .ai-wrap { max-height: none; min-height: 70vh; } }

/* Console → Pickup points (js/pages/pickup-admin.js) */
.notice-warn { background: var(--warn-soft); color: var(--warn); margin-bottom: 12px; }
.pa-filters { gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.pa-filters .input { width: auto; min-width: 180px; }
.pa-actions { gap: 6px; flex-wrap: wrap; }
.pa-actions .input { min-width: 140px; flex: 1; }
.pa-form { margin-bottom: 16px; display: grid; gap: 14px; }
.pa-parcels-row > td { background: var(--paper, #f7f8fa); }
.pa-parcels-row .parcel { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pa-coords { gap: 8px; flex-wrap: wrap; }
.pa-coords .input { flex: 1 1 14rem; min-width: 0; }

/* Account → Invite friends (js/referrals-ui.js) */
.ref-link { gap: 8px; flex-wrap: wrap; }
.ref-link .input { flex: 1 1 16rem; min-width: 0; }
.ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 8px; }
.ref-stats > div { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-sm, 8px); background: var(--paper, #f7f8fa); text-align: center; }
.ref-stats strong { font-size: 1.15rem; }
@media (max-width: 640px) { .ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ref-recent { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.ref-recent li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 0.9rem; }

/* Captain screen (js/driver-rides.js): large targets, one main action, thumb-reachable */
.dr-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.dr-switch .dr-knob { width: 52px; height: 30px; border-radius: 999px; background: #c9ced6; position: relative; transition: background .2s; flex: none; }
.dr-switch .dr-knob::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: inset-inline-start .2s; }
.dr-switch.on { border-color: var(--ok); }
.dr-switch.on .dr-knob { background: var(--ok); }
.dr-switch.on .dr-knob::after { inset-inline-start: 25px; }
.dr-big { font-size: 1.1rem; }
.dr-fare { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; margin: 0; }
.dr-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0 0 4px; counter-reset: st; }
.dr-stages li { counter-increment: st; font-size: .78rem; text-align: center; padding: 6px 4px; border-radius: 8px; background: var(--paper, #f1f3f6); color: var(--ink-soft); }
.dr-stages li::before { content: counter(st) '. '; font-weight: 700; }
.dr-stages li.done { background: var(--ok-soft); color: var(--ok); }
.dr-stages li.now { background: var(--accent); color: var(--night, #111); font-weight: 700; }
.dr-target { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--surface); }
.dr-nav { gap: 8px; flex-wrap: wrap; }
.dr-nav .btn { flex: 1 1 10rem; min-height: 48px; }
.dr-map { height: 220px; border-radius: var(--r-lg); overflow: hidden; margin: -6px 0 12px; }
.dr-actions { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 8px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg, #fff) 30%); }
.dr-main { min-height: 64px; font-size: 1.25rem; font-weight: 800; border-radius: 16px; width: 100%; }
.dr-cancel { justify-self: center; color: var(--danger); }
.driver-offer[role="alert"] { animation: dr-pulse 1.2s ease-in-out infinite alternate; }
@keyframes dr-pulse { from { box-shadow: inset 0 0 0 2px var(--accent); } to { box-shadow: inset 0 0 0 4px var(--accent); } }
@media (prefers-reduced-motion: reduce) { .driver-offer[role="alert"] { animation: none; } .dr-switch .dr-knob, .dr-switch .dr-knob::after { transition: none; } }

/* Console → Users drawer (js/pages/users-admin.js) */
.ua-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.ua-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 0.88rem; }
.ua-temp { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ua-temp code { white-space: nowrap; font-size: clamp(1rem, 4.5vw, 1.4rem); font-weight: 800; letter-spacing: 0.06em; padding: 8px 12px; border-radius: 10px; background: var(--paper, #f1f3f6); user-select: all; }
.ua-edit { border-top: 1px solid var(--line); padding-top: 12px; }
