/* Plus Jakarta Sans (SIL Open Font License), served from this site: no calls to Google, faster first load */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/pjs-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/pjs-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/pjs-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/pjs-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/pjs-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/pjs-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/pjs-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/pjs-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/pjs-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/pjs-ext-800.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Gombe360 design system — one stylesheet for the customer site, business dashboard and admin.
   Colours are tokens on :root; dark mode swaps the tokens. No build step: edit and upload,
   then raise ?v= in resources/views/partials/head.blade.php. */

/* ---------- Tokens ---------- */
:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-2: #eef3f3;
  --surface-3: #e3ebeb;
  --text: #0b1a1c;
  --text-2: #334446;
  --muted: #627476;
  --line: #e0e8e8;
  --line-2: #ccd9d9;
  --brand: #045960;
  --brand-2: #03484e;
  --brand-ink: #ffffff;
  --brand-soft: #e0eff0;
  --brand-text: #045960;
  --accent: #f58634;
  --accent-2: #e0721f;
  --accent-soft: #feeee2;
  --accent-text: #a64d0b;
  --ok: #138a5e;  --ok-soft: #e0f4ea;
  --warn: #a86a00; --warn-soft: #fdf1d6;
  --bad: #c03a26;  --bad-soft: #fde6e1;
  --info: #1f63c7; --info-soft: #e3edfc;
  --star: #f2a40c;
  --hero-1: #033d42; --hero-2: #045960; --hero-3: #0a7379;
  --shadow-sm: 0 1px 2px rgba(11, 26, 28, .06);
  --shadow: 0 1px 2px rgba(11, 26, 28, .05), 0 6px 18px -6px rgba(11, 26, 28, .12);
  --shadow-lg: 0 20px 50px -18px rgba(11, 26, 28, .35);
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --wrap: 1240px;
  --hdr: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071214; --surface: #0d1b1d; --surface-2: #122426; --surface-3: #192e31;
    --text: #e6f0f0; --text-2: #c1d2d3; --muted: #8ca3a5; --line: #1d3134; --line-2: #294346;
    --brand: #2fb0b4; --brand-2: #4cc4c7; --brand-ink: #032224; --brand-soft: rgba(47, 176, 180, .15); --brand-text: #64d0d3;
    --accent: #f7944a; --accent-2: #f9a96b; --accent-soft: rgba(247, 148, 74, .15); --accent-text: #fbae74;
    --ok: #3cc58c; --ok-soft: rgba(60, 197, 140, .14); --warn: #f0b23a; --warn-soft: rgba(240, 178, 58, .14);
    --bad: #ff7a64; --bad-soft: rgba(255, 122, 100, .14); --info: #7aa7ff; --info-soft: rgba(122, 167, 255, .14);
    --hero-1: #03272a; --hero-2: #053f45; --hero-3: #07565c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071214; --surface: #0d1b1d; --surface-2: #122426; --surface-3: #192e31;
  --text: #e6f0f0; --text-2: #c1d2d3; --muted: #8ca3a5; --line: #1d3134; --line-2: #294346;
  --brand: #2fb0b4; --brand-2: #4cc4c7; --brand-ink: #032224; --brand-soft: rgba(47, 176, 180, .15); --brand-text: #64d0d3;
  --accent: #f7944a; --accent-2: #f9a96b; --accent-soft: rgba(247, 148, 74, .15); --accent-text: #fbae74;
  --ok: #3cc58c; --ok-soft: rgba(60, 197, 140, .14); --warn: #f0b23a; --warn-soft: rgba(240, 178, 58, .14);
  --bad: #ff7a64; --bad-soft: rgba(255, 122, 100, .14); --info: #7aa7ff; --info-soft: rgba(122, 167, 255, .14);
  --hero-1: #03272a; --hero-2: #053f45; --hero-3: #07565c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 800; }
h2 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
small, .small { font-size: .86rem; }
.xs { font-size: .78rem; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.ic { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.page { padding-top: 22px; padding-bottom: 56px; min-height: 60vh; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-nw { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cols-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.line2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 14px; }
.sticky { position: sticky; top: calc(var(--hdr) + 16px); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand); --bi: var(--brand-ink); --bh: var(--brand-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  background: var(--b); color: var(--bi); font: 650 .93rem/1 var(--font); letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--bh); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 9px; gap: 6px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 13px; }
.btn.block { width: 100%; }
.btn.icon { width: 42px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn.gold { --b: var(--accent); --bi: #261a00; --bh: var(--accent-2); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn.soft { background: var(--brand-soft); color: var(--brand-text); }
.btn.soft:hover { background: var(--surface-3); }
.btn.quiet { background: transparent; color: var(--text-2); }
.btn.quiet:hover { background: var(--surface-2); }
.btn.danger { --b: var(--bad); --bi: #fff; --bh: #a52f1d; }
.btn.danger-soft { background: var(--bad-soft); color: var(--bad); }
.btn.danger-soft:hover { background: var(--bad); color: #fff; }
.btn.white { background: #fff; color: #0d1b18; }
.btn.white:hover { background: #eef4f2; }
.btn.wa { --b: #1fa855; --bi: #fff; --bh: #178a45; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--bad); }
.inline { display: inline; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--text); }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url],
input[type=date], input[type=datetime-local], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--surface); color: var(--text); font: 500 .95rem/1.35 var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364746f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[disabled] { background: var(--surface-2); color: var(--muted); }
input[type=file] { font: inherit; font-size: .88rem; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); width: 100%; color: var(--muted); }
input[type=file]::file-selector-button { font: 650 .85rem var(--font); border: 0; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; margin-right: 10px; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.error { color: var(--bad); font-weight: 500; font-size: .84rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.setrow { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.setrow:last-child { border-bottom: 0; }
.choice { display: grid; gap: 10px; }
.choice label { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface); font-weight: 500; transition: border-color .15s, background .15s; }
.choice label:hover { border-color: var(--brand); }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { margin-top: 3px; }
.choice label.is-disabled { opacity: .55; cursor: not-allowed; }
.choice label.is-disabled:hover { border-color: var(--line-2); }
.choice b { display: block; font-size: 1rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; height: 42px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.qty input { width: 64px; border: 0; text-align: center; border-radius: 0; min-height: 42px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card.pad-lg { padding: 28px; }
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { display: flex; align-items: center; gap: 8px; }
.panel { background: var(--surface-2); border-radius: var(--r); padding: 14px 16px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 42px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); background: var(--surface); }
.empty .ic { color: var(--brand); opacity: .8; }
.empty b { color: var(--text); font-size: 1.02rem; }

/* ---------- Badges, pills, notices ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font: 650 .74rem/1 var(--font); letter-spacing: .01em; background: var(--surface-3); color: var(--text-2); white-space: nowrap; text-transform: capitalize; }
.pill.brand, .pill.live, .pill.approved, .pill.open, .pill.visible, .pill.active, .pill.published, .pill.done, .pill.collected, .pill.ready { background: var(--ok-soft); color: var(--ok); }
.pill.gold, .pill.pending, .pill.waiting, .pill.more_needed, .pill.draft, .pill.new, .pill.placed { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .pill.declined, .pill.suspended, .pill.hidden, .pill.cancelled, .pill.blocked, .pill.deleted { background: var(--bad-soft); color: var(--bad); }
.pill.info, .pill.sold, .pill.closed, .pill.read { background: var(--info-soft); color: var(--info); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 .7rem/1 var(--font); }
.vt { display: inline-flex; align-items: center; gap: 3px; color: var(--info); font-weight: 650; font-size: .8rem; white-space: nowrap; }
.vt .ic { color: var(--info); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-weight: 500; font-size: .92rem; border: 1px solid transparent; }
.notice .ic { margin-top: 1px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.info { background: var(--info-soft); color: var(--info); flex-direction: row; gap: 10px; }
.notice a { color: inherit; text-decoration: underline; }
.flash { margin-bottom: 16px; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem; color: var(--text); }
.rating .ic { color: var(--star); }
.rating small { color: var(--muted); font-weight: 500; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-weight: 750; font-size: .95rem; flex: none; overflow: hidden; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.2rem; }
.avatar.sq { border-radius: 12px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--text); color: var(--bg); text-align: center; font-size: .85rem; font-weight: 600; padding: 8px 16px; }
.announce a { color: inherit; text-decoration: underline; }
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none !important; flex: none; }
.logo-img { display: block; width: 91px; height: 48px; background: url(../img/brand/logo-green.webp) left center / contain no-repeat; }
@media (min-width: 1001px) { .hdr .logo-img { width: 106px; height: 56px; } }
.logo.full .logo-img { width: 137px; height: 72px; background-image: url(../img/brand/logo-full-green.webp); }
.logo.on-dark .logo-img, .ftr .logo-img, .auth-art .logo-img { background-image: url(../img/brand/logo-white.webp); }
.logo.full.on-dark .logo-img, .ftr .logo.full .logo-img { background-image: url(../img/brand/logo-full-white.webp); }
:root[data-theme="dark"] .logo-img { background-image: url(../img/brand/logo-white.webp); }
:root[data-theme="dark"] .logo.full .logo-img { background-image: url(../img/brand/logo-full-white.webp); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-img { background-image: url(../img/brand/logo-white.webp); }
  :root:not([data-theme="light"]) .logo.full .logo-img { background-image: url(../img/brand/logo-full-white.webp); }
}
.logo small { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; }
.hsearch { flex: 1; min-width: 220px; max-width: 560px; display: flex; align-items: center; height: 44px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.hsearch:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.hsearch .ic { margin-left: 13px; color: var(--muted); }
.hsearch input { border: 0; background: transparent; min-height: 0; height: 42px; padding: 0 10px; box-shadow: none !important; }
.hsearch select { border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background-color: transparent; width: auto; min-height: 0; height: 26px; padding: 0 30px 0 12px; font-size: .86rem; color: var(--text-2); box-shadow: none !important; }
.hsearch button { height: 36px; margin: 3px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--brand); color: var(--brand-ink); font: 650 .88rem var(--font); cursor: pointer; }
.mainnav { display: flex; align-items: center; gap: 2px; }
.mainnav a { padding: 8px 11px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.mainnav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.mainnav a.on { color: var(--brand-text); background: var(--brand-soft); }
.hdr-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; text-decoration: none !important; }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn .count { position: absolute; top: 3px; right: 2px; border: 2px solid var(--surface); }
/* The button shows the theme you would switch to: a moon in light mode, a sun in dark mode */
.theme-toggle .t-light, .theme-toggle .t-dark { display: none; }
:root[data-theme="light"] .theme-toggle .t-dark, :root:not([data-theme]) .theme-toggle .t-dark, :root[data-theme="dark"] .theme-toggle .t-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .t-dark { display: none; }
  :root:not([data-theme]) .theme-toggle .t-light { display: block; }
}
.menu-btn { display: none; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--text); font: 550 .9rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-menu .head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.subnav { border-bottom: 1px solid var(--line); background: var(--surface); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 6px 12px; border-radius: 99px; color: var(--text-2); font-weight: 600; font-size: .86rem; }
.subnav a:hover { background: var(--surface-2); text-decoration: none; }
.subnav a.all { color: var(--brand-text); display: inline-flex; gap: 6px; align-items: center; }

/* Mobile drawer + bottom tabs */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(5, 12, 10, .5); }
.drawer .sheet { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--surface); padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg); animation: slidein .2s ease-out; }
.drawer .sheet button.nav { width: 100%; background: none; border: 0; font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.drawer .sheet .nav { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; color: var(--text); font-weight: 600; }
.drawer .sheet .nav:hover { background: var(--surface-2); text-decoration: none; }
@keyframes slidein { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.ftr { background: #04292d; color: #b6cacc; padding: 56px 0 28px; margin-top: 40px; }
:root[data-theme="dark"] .ftr { background: #041315; }
.ftr .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ftr .logo { color: #fff; display: inline-flex; padding: 0; }
.ftr b { display: block; color: #fff; font-size: .92rem; margin-bottom: 12px; }
.ftr a { display: block; color: #b6cacc; padding: 4px 0; font-size: .92rem; }
.ftr a:hover { color: #fff; }
.ftr .social { display: flex; gap: 8px; margin-top: 16px; }
.ftr .social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); padding: 0; }
.ftr .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .84rem; }

/* ---------- Breadcrumb + section heads ---------- */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand-text); }
.crumb .ic { opacity: .6; }
.sec { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.sec:first-child { margin-top: 0; }
.sech { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sech p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.sech .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: .9rem; white-space: nowrap; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead p { color: var(--muted); margin-top: 4px; }
.eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px 48px; color: #fff; background:
  radial-gradient(1200px 400px at 110% -20%, rgba(245, 134, 52, .32), transparent 60%),
  radial-gradient(800px 500px at -10% 120%, rgba(18, 154, 131, .55), transparent 60%),
  linear-gradient(135deg, var(--hero-1), var(--hero-2)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: .8rem; font-weight: 650; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.05; letter-spacing: -.035em; margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 520px; }
.bigsearch { margin-top: 26px; display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); max-width: 640px; }
.bigsearch .ic { color: #64746f; margin-left: 10px; }
.bigsearch input { border: 0 !important; box-shadow: none !important; background: transparent; color: #0d1b18; font-size: 1rem; min-height: 48px; }
.bigsearch select { border: 0 !important; border-left: 1px solid #e2e8e5 !important; border-radius: 0; width: auto; box-shadow: none !important; background-color: transparent; color: #33433f; min-height: 30px; font-size: .9rem; }
.bigsearch .btn { height: 48px; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: .86rem; color: rgba(255,255,255,.75); }
.chips a { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: .82rem; }
.chips a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; }
.hero-stats b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.hero-stats span { color: rgba(255,255,255,.7); font-size: .84rem; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-art a { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.hero-art a:nth-child(2) { transform: translateY(24px); }
.hero-art a:nth-child(4) { transform: translateY(24px); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-art a:hover img { transform: scale(1.05); }
.hero-art span { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(8, 20, 17, .72); backdrop-filter: blur(6px); color: #fff; border-radius: 10px; padding: 7px 10px; font-size: .78rem; font-weight: 650; }
.hero-art span b { display: block; color: var(--accent); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.trust div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.trust .ic { color: var(--brand); background: var(--brand-soft); padding: 8px; width: 38px; height: 38px; border-radius: 10px; }
.trust b { display: block; font-size: .9rem; }
.trust span { color: var(--muted); font-size: .8rem; }

/* ---------- Event banners ---------- */
.evband { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-radius: var(--r-xl); overflow: hidden; color: #fff; background: linear-gradient(120deg, #3b1d5e, #7b2f6b 55%, #c9821a); min-height: 180px; text-decoration: none !important; margin-top: 22px; }
.evband .tx { padding: 28px 32px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.evband .when { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.evband b { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; }
.evband .ad { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 650; }
.evband img { width: 100%; height: 100%; object-fit: cover; }
.evband .cta { align-self: flex-start; margin-top: 6px; background: #fff; color: #3b1d5e; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: .88rem; }
.carousel { position: relative; }
.carousel > .slide:not(.on) { display: none; }
.carousel .dots { position: absolute; left: 32px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.carousel .dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; }
.carousel .dots button.on { width: 22px; background: #fff; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cat .img { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.cat .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover .img img { transform: scale(1.06); }
.cat .img.ph { display: grid; place-items: center; color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); }
.cat .t { padding: 11px 13px 12px; }
.cat b { display: block; font-size: .9rem; line-height: 1.25; }
.cat small { color: var(--muted); font-size: .76rem; }
.cats.lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.catpills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.catpills::-webkit-scrollbar { display: none; }
.catpills a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .86rem; }
.catpills a img, .catpills a .ph { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.catpills a.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.catpills a:hover { text-decoration: none; border-color: var(--line-2); }

/* ---------- Product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.pgrid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard > a { display: flex; flex-direction: column; color: inherit; text-decoration: none !important; flex: 1; }
.pcard .img { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.pcard:hover .img img { transform: scale(1.05); }
.pcard .img.ph { display: grid; place-items: center; color: var(--line-2); }
.pcard .body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.pcard .price { font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.pcard .price small { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pcard .title { font-size: .9rem; font-weight: 550; color: var(--text-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard .meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; font-size: .78rem; color: var(--muted); }
.pcard .meta .loc { display: inline-flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.tagchip { padding: 4px 8px; border-radius: 7px; font: 700 .68rem/1 var(--font); letter-spacing: .02em; text-transform: uppercase; background: rgba(255,255,255,.92); color: #0d1b18; box-shadow: var(--shadow-sm); }
.tagchip.new { background: var(--accent); color: #261a00; }
.tagchip.feat { background: var(--brand); color: #fff; }
.tagchip.sold { background: #0d1b18; color: #fff; }
.tagchip.used { background: rgba(255,255,255,.92); }
.heart { position: absolute; top: 9px; right: 9px; z-index: 3; margin: 0; }
.heart button, .heart a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: #33433f; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s, color .15s; }
.heart button:hover, .heart a:hover { transform: scale(1.08); color: #e0384f; }
.heart .on { color: #e0384f; }
.pcard.sold .img img { filter: grayscale(.7); opacity: .75; }

/* ---------- Business / service / place cards ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.bcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.bcard .cv { position: relative; height: 112px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-3)); overflow: hidden; }
.bcard .cv img { width: 100%; height: 100%; object-fit: cover; }
.bcard .cv .type { position: absolute; top: 10px; left: 10px; }
.bcard .lg { width: 58px; height: 58px; border-radius: 16px; background: var(--surface); border: 3px solid var(--surface); box-shadow: var(--shadow); margin: -30px 0 0 16px; position: relative; display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--brand-text); font-size: 1.3rem; }
.bcard .lg img { width: 100%; height: 100%; object-fit: cover; }
.bcard .body { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bcard .name { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 1rem; color: var(--text); min-width: 0; }
.bcard .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .cat-n { color: var(--muted); font-size: .84rem; }
.bcard .bfacts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); min-width: 0; }
.bcard .bfacts span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bcard .bfacts span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
.bcard .bfacts span:first-child .ic { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.bcard .bfacts span + span { flex: none; }
.bcard .bfacts .ic { color: var(--muted); }
.bcard .from { font-weight: 700; color: var(--text); }
/* Compact row version for side lists */
.brow { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.brow:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.brow .lg { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; color: var(--brand-text); font-weight: 800; flex: none; }
.brow .lg img { width: 100%; height: 100%; object-fit: cover; }
.brow b { display: flex; align-items: center; gap: 5px; font-size: .95rem; }
.brow .sub { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Food pre-order card ---------- */
.fcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fcard .img { aspect-ratio: 16 / 10; background: var(--accent-soft); position: relative; overflow: hidden; }
.fcard .img img { width: 100%; height: 100%; object-fit: cover; }
.fcard .day { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--text); border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; box-shadow: var(--shadow-sm); }
.fcard .body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; }
.fcard b { font-size: 1rem; }
.bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---------- News card ---------- */
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ncard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.ncard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ncard .img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); overflow: hidden; display: grid; place-items: center; color: var(--brand); }
.ncard .img img { width: 100%; height: 100%; object-fit: cover; }
.ncard .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ncard b { font-size: 1.05rem; line-height: 1.3; }
.ncard p { color: var(--muted); font-size: .9rem; }

/* ---------- Home: misc blocks ---------- */
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.howto div { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 8px; }
.howto .n { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.howto b { font-size: 1.05rem; }
.howto span { color: var(--muted); font-size: .92rem; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 36px 40px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--accent-soft), var(--brand-soft)); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.cta-band p { color: var(--text-2); margin-top: 6px; }

/* ---------- Browse layout + filters ---------- */
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr) + 16px); display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.filters h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.filters .cats-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.filters .cats-list a { padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: .9rem; font-weight: 550; }
.filters .cats-list a:hover { background: var(--surface-2); text-decoration: none; }
.filters .cats-list a.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.filters .cats-list a.sub { padding-left: 22px; font-size: .86rem; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fdrawer-btn { display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h1 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.toolbar .count-t { color: var(--muted); font-size: .9rem; font-weight: 500; margin-left: 6px; }
.toolbar select { width: auto; min-width: 180px; }
.activef { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.activef a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-size: .82rem; font-weight: 650; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.gal { display: flex; flex-direction: column; gap: 12px; }
.gal .main { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gal .main img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.viewer { position: fixed; inset: 0; z-index: 120; background: rgba(4, 10, 9, .94); display: grid; place-items: center; padding: 48px 12px; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.viewer button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.viewer button:hover, .viewer button:focus-visible { background: rgba(255,255,255,.28); }
.viewer .vclose { top: 12px; right: 12px; }
.viewer .vprev { left: 12px; top: 50%; transform: translateY(-50%); }
.viewer .vnext { right: 12px; top: 50%; transform: translateY(-50%); }
.viewer .vcount { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; background: rgba(255,255,255,.14); padding: 4px 12px; border-radius: 99px; }
.gal .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #0d1b18; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gal .nav.prev { left: 12px; } .gal .nav.next { right: 12px; }
.gal .pcount { position: absolute; bottom: 12px; right: 12px; background: rgba(8, 20, 17, .7); color: #fff; border-radius: 99px; padding: 4px 10px; font-size: .78rem; font-weight: 650; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumbs button { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumbs button.on, .thumbs button:hover { border-color: var(--brand); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { display: flex; flex-direction: column; gap: 16px; }
.info h1 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem); }
.bigp { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts > div { background: var(--surface); padding: 11px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 600; }
.facts > div .ic { color: var(--brand); margin-top: 1px; }
.facts small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.contact-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-box textarea { min-height: 84px; }
.seller { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface-2); color: inherit; text-decoration: none !important; }
.seller:hover { background: var(--surface-3); }
.actions-row { display: flex; gap: 6px; flex-wrap: wrap; }
.actions-row > * { flex: 1; }
.actions-row .btn { width: 100%; }
.desc { white-space: pre-line; color: var(--text-2); }
.safety { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--warn-soft); color: var(--text-2); font-size: .88rem; }
.safety .ic { color: var(--warn); }
.safety b { color: var(--text); }
.mobile-cta { display: none; }

/* ---------- Business profile ---------- */
.profile-cover { position: relative; height: 260px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, var(--hero-1), var(--hero-3)); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)); }
.profile-head { display: flex; gap: 20px; align-items: flex-start; padding: 0 24px; margin-top: -54px; position: relative; z-index: 2; flex-wrap: wrap; }
.profile-logo { width: 116px; height: 116px; border-radius: 28px; background: var(--surface); border: 5px solid var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; font-size: 2.6rem; font-weight: 800; color: var(--brand-text); flex: none; }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-title { flex: 1; min-width: 240px; padding-top: 66px; display: flex; flex-direction: column; gap: 6px; }
.profile-title h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-title .sub { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; }
.profile-title .sub span { display: inline-flex; align-items: center; gap: 5px; }
.profile-acts { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 66px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 12px 14px; color: var(--muted); font-weight: 650; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--brand-text); border-color: var(--brand); }
.tabs .pill { height: 20px; padding: 0 7px; font-size: .7rem; }
.seg { display: inline-flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 11px; }
.seg a, .seg button { padding: 7px 12px; border-radius: 8px; color: var(--muted); font: 650 .85rem var(--font); border: 0; background: none; cursor: pointer; }
.seg a.on, .seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg a:hover { text-decoration: none; color: var(--text); }
.infolist { display: flex; flex-direction: column; }
.infolist > div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; align-items: flex-start; }
.infolist > div:last-child { border-bottom: 0; }
.infolist .ic { color: var(--brand); margin-top: 2px; }
.infolist small { display: block; color: var(--muted); font-size: .78rem; }
.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16/10; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }
.map-embed a { font-weight: 650; }
.rating-sum { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.rating-sum .big { text-align: center; }
.rating-sum .big b { display: block; font-size: 2.8rem; letter-spacing: -.04em; line-height: 1; }
.rbars { display: flex; flex-direction: column; gap: 6px; }
.rbars div { display: grid; grid-template-columns: 26px 1fr 30px; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.rbars .bar i { background: var(--star); }
.rev { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rev:last-child { border-bottom: 0; }
.rev .who { display: flex; align-items: center; gap: 10px; }
.rev .reply { margin-top: 6px; padding: 10px 14px; border-radius: 0 12px 12px 12px; background: var(--surface-2); font-size: .9rem; border-left: 3px solid var(--brand); }
.starpick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.starpick input { position: absolute; opacity: 0; width: 0; }
.starpick label { font-size: 1.9rem; color: var(--line-2); cursor: pointer; line-height: 1; font-weight: 400; }
.starpick label:hover, .starpick label:hover ~ label, .starpick input:checked ~ label { color: var(--star); }
.starpick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--hdr) - 80px); min-height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list .top { padding: 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.chat-list .items { overflow-y: auto; flex: 1; }
.chat-item { display: flex; gap: 12px; padding: 13px 16px; color: inherit; text-decoration: none !important; border-bottom: 1px solid var(--line); align-items: center; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.on { background: var(--brand-soft); }
.chat-item .t { flex: 1; min-width: 0; }
.chat-item .t b { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.chat-item .t b time { font-weight: 500; font-size: .74rem; color: var(--muted); flex: none; }
.chat-item .t p { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.unread .t p { color: var(--text); font-weight: 650; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head .back { display: none; }
.chat-about { display: flex; gap: 10px; align-items: center; margin: 12px 18px 0; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: .85rem; color: inherit; }
.chat-about img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.bubble { max-width: min(76%, 520px); padding: 9px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.45; word-wrap: break-word; position: relative; }
.bubble .tx { white-space: pre-wrap; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 5px; }
.bubble time { display: block; font-size: .68rem; opacity: .65; margin-top: 3px; text-align: right; }
.hours { display: flex; flex-direction: column; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hours-row input[type="time"] { min-width: 0; padding-left: 8px; padding-right: 6px; font-size: .9rem; }
@media (max-width: 480px) { .hours-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .hours-row > .small.strong { grid-column: 1 / -1; } .hours-row > .muted.small { display: none; } }
.bubble.pending { opacity: .6; white-space: pre-wrap; }
.bubble img { border-radius: 10px; margin: 2px 0 4px; max-height: 280px; width: auto; }
.bubble .ref { display: block; padding: 6px 9px; margin-bottom: 6px; border-radius: 9px; background: rgba(0,0,0,.08); font-size: .8rem; color: inherit; }
.bubble.flag { box-shadow: 0 0 0 2px var(--warn); }
.daysep { align-self: center; font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; margin: 8px 0; }
.chat-warn { margin: 0 18px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { min-height: 44px; max-height: 140px; resize: none; border-radius: 14px; padding: 11px 14px; }
.composer .attach { position: relative; overflow: hidden; }
.composer .attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }

/* ---------- Account / auth ---------- */
.acct { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.amenu { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; position: sticky; top: calc(var(--hdr) + 16px); }
.amenu a, .amenu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font: 600 .92rem var(--font); border: 0; background: none; width: 100%; cursor: pointer; text-align: left; }
.amenu a:hover, .amenu button:hover { background: var(--surface-2); text-decoration: none; }
.amenu a.on { background: var(--brand-soft); color: var(--brand-text); }
.amenu .count { margin-left: auto; }
.authwrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background:
  radial-gradient(700px 400px at 100% 0%, rgba(245, 134, 52, .32), transparent 60%),
  linear-gradient(150deg, var(--hero-1), var(--hero-2) 70%, var(--hero-3)); }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .logo { color: #fff; }
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; max-width: 460px; }
.auth-art ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth-art li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.9); }
.auth-art li .ic { background: rgba(255,255,255,.14); border-radius: 10px; padding: 7px; width: 34px; height: 34px; }
.auth-art .foot { color: rgba(255,255,255,.75); font-size: .86rem; }
.auth-art .foot a { color: #fff; text-decoration: underline; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth-form .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-form .top { display: flex; justify-content: space-between; align-items: center; }
.auth-form h1 { font-size: 1.75rem; }
.codebox input { text-align: center; font-size: 1.6rem; letter-spacing: .5em; font-weight: 800; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); }
.steps i.on { background: var(--brand); }

/* ---------- Prose (news, pages) ---------- */
.prose { max-width: 760px; font-size: 1.02rem; line-height: 1.75; color: var(--text-2); }
.prose h1 { margin-bottom: 8px; color: var(--text); }
.prose h2 { margin: 28px 0 10px; color: var(--text); }
.prose h3 { margin: 22px 0 8px; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--text); }
.prose img { border-radius: var(--r); margin: 18px 0; }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--brand); color: var(--muted); }
.prose a { text-decoration: underline; }
.pagehero { padding: 44px 0 32px; background: linear-gradient(180deg, var(--brand-soft), transparent); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.pagehero h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); letter-spacing: -.03em; }
.pagehero p { color: var(--muted); max-width: 640px; margin-top: 10px; font-size: 1.05rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feature p { color: var(--muted); font-size: .93rem; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(5, 12, 10, .6); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal { position: relative; width: min(100%, 460px); background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
.modal .x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.modal .poster { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: linear-gradient(120deg, #3b1d5e, #c9821a); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.modal .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: block; }
.table .t-title { font-weight: 650; color: var(--text); }
.table .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }

/* ---------- Dashboard shell (business + admin) ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.side .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side .grp { font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.side nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.side nav a.on { background: var(--brand-soft); color: var(--brand-text); }
.side nav a .count, .side nav a .pill { margin-left: auto; }
.side nav a .ic { opacity: .85; }
.side .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.bizcard { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.bizcard b { font-size: .9rem; display: flex; gap: 4px; align-items: center; }
.side .addbiz { font-weight: 700; min-height: 40px; padding: 8px 12px; justify-content: center; margin-bottom: 8px; }
.notice + .kpis, .notice + section, .notice + .grid3, .notice + .card { margin-top: 16px; }
.bizcard small { color: var(--muted); font-size: .76rem; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .menu-toggle, .side .brand .menu-toggle, .side-scrim { display: none; }
.topbar .title { font-weight: 700; color: var(--muted); font-size: .9rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.content { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm); }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi .lbl .ic { color: var(--brand); background: var(--brand-soft); border-radius: 9px; padding: 6px; width: 30px; height: 30px; }
.kpi b { font-size: 1.65rem; letter-spacing: -.03em; line-height: 1.1; }
.kpi .delta { font-size: .78rem; font-weight: 650; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--bad); }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); font-weight: 600; font-size: .9rem; }
.work a:hover { border-color: var(--brand); text-decoration: none; }
.work a b { font-size: 1.3rem; }
.work a.zero b { color: var(--muted); }
.work a:not(.zero) b { color: var(--warn); }
.todo { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.todo li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.todo li:last-child { border-bottom: 0; }
.todo li .ic { color: var(--accent); }
.progress { height: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filterbar input[type=search] { max-width: 320px; }
.filterbar select { width: auto; }
.bulkbar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--surface-2); border-radius: var(--r); margin-bottom: 12px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 550; word-break: break-word; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph form { position: absolute; top: 6px; right: 6px; }
.photo-grid .ph .cover { position: absolute; left: 6px; bottom: 6px; }
.log { display: flex; flex-direction: column; }
.log div { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.log div:last-child { border-bottom: 0; }
.log time { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.dash-auth { min-height: 100vh; }

/* ---------- Charts (inline SVG) ---------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart .area { fill: var(--brand); opacity: .12; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.b { stroke: var(--accent); }
.chart .dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.chart .bar-r { fill: var(--brand); }
.chart .bar-r:hover { fill: var(--brand-2); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--brand); }
.legend i.b { background: var(--accent); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbars > div { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 10px; font-size: .86rem; align-items: center; }
.hbars .bar { grid-column: 1 / -1; height: 8px; }
.hbars .bar i { background: var(--brand); }


/* ---------- Small additions ---------- */
.vt-ic { color: var(--info); flex: none; }
.choice span span, .choice small { display: block; color: var(--muted); font-size: .86rem; font-weight: 500; }
.seg label { flex-direction: row; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 8px; color: var(--muted); font: 650 .85rem var(--font); cursor: pointer; }
.seg label:has(input:checked), .seg label.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: .9rem; }
a.pill:hover { text-decoration: none; background: var(--brand-soft); color: var(--brand-text); }
.profile-title h1 .vt { font-size: .85rem; }
.rating a, a.rating { color: var(--text); }
.chat-msgs > #end { display: block; height: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .hdr .hsearch-wrap select { display: none; }
}
@media (max-width: 1300px) {
  .mainnav { display: none; }
}
@media (max-width: 1180px) {
  .pgrid.five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero-art { display: none; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 85; max-height: 85vh; overflow-y: auto; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .filters.open { transform: none; }
  .fdrawer-btn { display: inline-flex; }
  .detail, .cols-main, .cols-2, .split2 { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .side .brand .menu-toggle { display: inline-grid; border: 1px solid var(--line-2); background: var(--surface-2); }
  .side.open + .side-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(4, 18, 20, .5); }
  .topbar { padding: 0 16px; }
  .topbar .menu-toggle { display: inline-grid; }
  .content { padding: 20px 16px 80px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct { grid-template-columns: 1fr; }
  .amenu { position: static; flex-direction: row; overflow-x: auto; }
  .amenu a, .amenu button { flex: none; width: auto; }
  .authwrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - var(--hdr) - 130px); }
  .chat.has-current .chat-list { display: none; }
  .chat:not(.has-current) .chat-pane { display: none; }
  .chat-head .back { display: inline-grid; }
}
@media (max-width: 760px) {
  :root { --hdr: 60px; }
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .page { padding-top: 14px; }
  .hdr .wrap { gap: 10px; }
  .hdr .hsearch-wrap { display: none; }
  .hdr .hide-sm { display: none !important; }
  .menu-btn { display: inline-grid; }
  .mobile-search { display: block; padding: 0 16px 12px; }
  .hero { padding: 30px 20px; border-radius: 0 0 var(--r-xl) var(--r-xl); margin: -14px -16px 0; }
  .hero h1 { margin-top: 12px; }
  .hero-stats { gap: 18px; }
  .bigsearch input { min-width: 0; flex: 1; }
  body.home .mobile-search { display: none; }
  .bigsearch select { display: none; }
  .bigsearch .btn { padding: 0 14px; }
  .bigsearch .btn span { display: none; }
  .evband { grid-template-columns: 1fr; }
  .evband img { display: none; }
  .evband .tx { padding: 46px 20px 34px; }
  .pgrid, .pgrid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard .body { padding: 10px 11px 12px; }
  .pcard .price { font-size: 1rem; }
  .pcard .title { font-size: .85rem; }
  .bgrid, .ngrid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat .t { padding: 8px 9px 9px; }
  .cat b { font-size: .8rem; }
  .cat small { display: none; }
  .howto, .feature-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust div { padding: 12px; }
  .trust span { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 26px 22px; }
  .grid2, .grid3, .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .profile-cover { height: 170px; border-radius: 0; margin: -14px -16px 0; }
  .profile-head { padding: 0 4px; margin-top: -44px; gap: 12px; }
  .profile-logo { width: 88px; height: 88px; border-radius: 22px; font-size: 2rem; border-width: 4px; }
  .profile-title { order: 3; flex-basis: 100%; min-width: 0; padding-top: 0; }
  .profile-acts { margin-left: auto; padding-top: 52px; }
  .rating-sum { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -10px rgba(0,0,0,.2); }
  .mobile-cta .btn { flex: 1; }
  .has-mobile-cta { padding-bottom: 72px; }
  .has-mobile-cta .contact-box { display: none; }
  .ftr .cols { grid-template-columns: 1fr; gap: 22px; }
  .kpis, .kpis.six, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi b { font-size: 1.35rem; }
  .work { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 8px; }
  .toolbar select { min-width: 0; }
  .chat { border-radius: 0; margin: -14px -16px 0; border-left: 0; border-right: 0; height: calc(100vh - var(--hdr) - 64px); min-height: 0; }
  .bubble { max-width: 86%; }
  .table .hide-sm { display: none; }
}
@media (min-width: 761px) { .mobile-search { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .hdr, .ftr, .tabbar, .side, .topbar, .mobile-cta { display: none !important; } body { background: #fff; } }
/* Aliases kept for older admin pages */
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.imgprev { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; background: var(--surface-2); display: block; }
.imgprev.wide { width: 260px; height: 100px; }
.tick { color: var(--info); }
.table .thumb { max-width: none; flex: none; }
.table .t-title { display: inline-block; min-width: 180px; }
.side { min-height: 100vh; }
.table span.thumb { display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.table span.thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-admin .reply { margin-top: 10px; padding: 10px 14px; border-radius: 0 12px 12px 12px; background: var(--surface-2); border-left: 3px solid var(--brand); }
.muted-card { opacity: .72; }
.chat-admin { padding: 0; overflow: hidden; }
.chat-admin .chat-msgs { max-height: 72vh; gap: 10px; }
.adm-msg { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.adm-msg.business { align-items: flex-end; }
.adm-msg .bubble { max-width: min(520px, 90%); }
.inboxlist { display: flex; flex-direction: column; }
.inboxlist > a { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; }
.inboxlist > a:last-child { border-bottom: 0; }
.inboxlist > a:hover { background: var(--surface-2); text-decoration: none; }
.inboxlist > a.unread b { color: var(--brand-text); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.55; }
.toggles { display: flex; flex-direction: column; }
.toggle { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i, .switchbtn { flex: none; position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); transition: background .2s; border: 0; padding: 0; cursor: pointer; display: inline-block; }
.toggle i::after, .switchbtn span { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.toggle input:checked + i, .switchbtn.on { background: var(--brand); }
.toggle input:checked + i::after, .switchbtn.on span { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.savebar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); display: flex; justify-content: flex-end; }
.areagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.areagrid input[type=text] { padding: 7px 10px; }
.decide { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.decide input { flex: 1; min-width: 160px; max-width: 320px; padding: 7px 10px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, var(--brand-soft), transparent 50%), var(--bg); }
.admin-login > .card { width: 100%; max-width: 410px; padding: 28px; box-shadow: var(--shadow); }
.bulkbar select { width: auto; min-width: 200px; } .bulkbar .btn { flex: none; }

/* Packages */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.plan.hot { border: 2px solid var(--brand); }
.plan.on { background: var(--brand-soft); }
.plan-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-h b { font-size: 1.1rem; }
.plan-price strong { font-size: 1.7rem; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-size: .9rem; margin-left: 2px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list svg { flex: none; margin-top: 3px; color: var(--brand); }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.adband { background: linear-gradient(120deg, #0b4d3f, #137a5f 55%, #c9821a); grid-template-columns: minmax(0, 1fr) 46%; }

.cookiebar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 720px; margin: 0 auto; display: flex; gap: 12px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18); font-size: .88rem; }
.cookiebar[hidden] { display: none; }
.cookiebar p { margin: 0; flex: 1 1 320px; }
.has-mobile-cta .cookiebar { bottom: 84px; }
/* Blog */
.blog-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 28px; }
.blog-lead .img { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); color: var(--muted); }
.blog-lead .img img { width: 100%; height: 100%; object-fit: cover; }
.blog-lead h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.03em; line-height: 1.12; }
.blog-lead h2 a, .ncard .ntitle a { color: inherit; text-decoration: none; }
.ncard .ntitle { font-size: 1.02rem; line-height: 1.3; margin: 0; }
article.ncard .img { display: grid; }
.blog-article { max-width: 760px; margin: 0 auto; }
.blog-article h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); letter-spacing: -.035em; line-height: 1.08; }
.blog-article .lead { font-size: 1.12rem; }
.blog-article .cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); margin: 22px 0; }
.blog-article .prose { font-size: 1.08rem; line-height: 1.75; }
@media (max-width: 760px) { .blog-lead { grid-template-columns: 1fr; gap: 14px; } }
/* Grid columns may shrink below their content on small phones (no sideways scrolling) */
.browse > *, .cols-main > *, .detail > *, .cols-2 > * { min-width: 0; }
.prose { overflow-wrap: break-word; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 14px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.toolbar select { max-width: 100%; }
@media (max-width: 480px) {
  body.blog .hdr-acts .btn.gold { display: none; }
  .bizpub .hdr .logo small { display: none; }
  .bizpub .hdr .wrap { gap: 10px; }
}
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
code { overflow-wrap: anywhere; }

/* "Get the app" banner on Android phones (partials/app-banner) */
.appbar { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); padding: 10px 8px 10px 12px; }
.appbar[hidden] { display: none; }
.appbar img { border-radius: 10px; flex: none; }
.appbar p { margin: 0; flex: 1; display: flex; flex-direction: column; font-size: .82rem; line-height: 1.3; color: var(--muted); min-width: 0; }
.appbar p b { color: var(--text); font-size: .9rem; }
.appbar .btn { flex: none; }
@media (min-width: 761px) { .appbar { display: none !important; } }
