/* ==========================================================================
   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; }
.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: 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; }
