/* ==========================================================================
   Bazaar Zero — design system
   Light-first marketplace UI. Zero external dependencies.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --brand: #3457ff;
  --brand-600: #2743e6;
  --brand-050: #eef2ff;
  --brand-100: #dfe6ff;
  --accent: #7c3aed;
  --accent-050: #f5f0ff;
  --ink: #0c1524;
  --ink-2: #1e2a3d;
  --muted: #62708a;
  --muted-2: #8b97ac;
  --line: #e6e9f2;
  --line-2: #eef1f7;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --success: #079669;
  --success-050: #e8f9f2;
  --warn: #c47a06;
  --warn-050: #fff7e6;
  --danger: #d92d3f;
  --danger-050: #fdeef0;
  --info: #0d7bb8;
  --info-050: #eaf6fd;
  --shadow-sm: 0 1px 2px rgba(12, 21, 36, .05), 0 1px 3px rgba(12, 21, 36, .04);
  --shadow: 0 6px 18px rgba(12, 21, 36, .06), 0 2px 6px rgba(12, 21, 36, .04);
  --shadow-lg: 0 24px 60px rgba(12, 21, 36, .12), 0 8px 24px rgba(12, 21, 36, .06);
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --font: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side-w: 240px;
  --top-h: 66px;
}

[data-theme="dark"] {
  --brand: #6d86ff;
  --brand-600: #8ba0ff;
  --brand-050: #1a2340;
  --brand-100: #223061;
  --accent: #a78bfa;
  --accent-050: #241d3d;
  --ink: #eef2fb;
  --ink-2: #d7deee;
  --muted: #94a1ba;
  --muted-2: #6f7d97;
  --line: #243049;
  --line-2: #1c2740;
  --bg: #0a1120;
  --surface: #111a2c;
  --surface-2: #0e1728;
  --success: #34d399;
  --success-050: #0d2a24;
  --warn: #fbbf24;
  --warn-050: #2a2110;
  --danger: #fb7185;
  --danger-050: #2c1520;
  --info: #38bdf8;
  --info-050: #0c2536;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg.ic { flex: none; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, h5 { font-family: var(--display); margin: 0; line-height: 1.22; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd6e4; border-radius: 99px; border: 3px solid var(--bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2c3a56; border-color: var(--bg); }

/* ------------------------------------------------------------ utilities */
.muted { color: var(--muted); }
.tiny { font-size: 11.5px; }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.semibold { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upper { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; color: var(--muted); }
.mt0 { margin-top: 0 } .mt4 { margin-top: 4px } .mt8 { margin-top: 8px } .mt12 { margin-top: 12px }
.mt16 { margin-top: 16px } .mt24 { margin-top: 24px } .mb0 { margin-bottom: 0 } .mb8 { margin-bottom: 8px }
.mb16 { margin-bottom: 16px } .mb24 { margin-bottom: 24px }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.row--top { align-items: flex-start; }
.stack { display: grid; gap: 12px; }
.stack--lg { gap: 20px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.hide { display: none !important; }
.only-mobile { display: none !important; }
.link-quiet { color: var(--muted); }
.link-quiet:hover { color: var(--ink); }
.ink { color: var(--ink); }
.brandtext { color: var(--brand); }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 42px;
  border-radius: 11px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 13.5px; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 8px 18px rgba(52, 87, 255, .22); }
.btn--primary:hover { --btn-bg: var(--brand-600); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent; }
[data-theme="dark"] .btn--dark { --btn-bg: #eef2fb; --btn-fg: #0c1524; }
.btn--soft { --btn-bg: var(--brand-050); --btn-fg: var(--brand-600); --btn-bd: transparent; }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--muted); }
.btn--ghost:hover { --btn-bg: var(--line-2); --btn-fg: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-bd: var(--line); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: transparent; }
.btn--danger-soft { --btn-bg: var(--danger-050); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn--success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: transparent; }
.btn--warn { --btn-bg: var(--warn-050); --btn-fg: var(--warn); --btn-bd: transparent; }
.btn--sm { min-height: 34px; padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }
.btn--xs { min-height: 28px; padding: 5px 9px; font-size: 11.5px; border-radius: 8px; gap: 5px; }
.btn--lg { min-height: 50px; padding: 14px 24px; font-size: 15px; border-radius: 13px; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 40px; min-height: 40px; border-radius: 11px; }
.btn--icon.btn--sm { width: 32px; min-height: 32px; }
.btn--icon.btn--xs { width: 28px; min-height: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn .ic { opacity: .9; }

.iconbtn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
  position: relative; transition: .15s;
}
.iconbtn:hover { background: var(--line-2); color: var(--ink); }
.iconbtn__dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  background: var(--line-2); color: var(--muted);
  border: 1px solid transparent; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge--success { background: var(--success-050); color: var(--success); }
.badge--info { background: var(--info-050); color: var(--info); }
.badge--warn { background: var(--warn-050); color: var(--warn); }
.badge--danger { background: var(--danger-050); color: var(--danger); }
.badge--accent { background: var(--accent-050); color: var(--accent); }
.badge--neutral { background: var(--line-2); color: var(--muted); }
.badge--outline { background: transparent; border-color: var(--line); color: var(--muted); }
.badge__ic { display: inline-flex; }
.badge__ic .ic { width: 12px; height: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: .15s; text-decoration: none;
}
.chip:hover { border-color: #c9d2e6; color: var(--ink); }
.chip.is-active, .chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="dark"] .chip.is-active { background: #eef2fb; color: #0c1524; }
.chip--soft { background: var(--brand-050); border-color: transparent; color: var(--brand-600); }
.chip__x { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: rgba(0,0,0,.08); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-row::-webkit-scrollbar { display: none; }

.badge-sponsored { background: var(--warn-050); color: var(--warn); font-size: 10px; padding: 2px 7px; border-radius: 6px; font-weight: 800; letter-spacing: .05em; }

/* --------------------------------------------------------------- avatars */
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--av-bg, var(--brand-050)); color: var(--av-ink, var(--brand-600));
  font-weight: 800; font-size: 13px; letter-spacing: .02em;
  border: 1px solid rgba(0,0,0,.04);
}
.avatar--sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.avatar--lg { width: 52px; height: 52px; border-radius: 16px; font-size: 17px; }
.avatar--xl { width: 68px; height: 68px; border-radius: 20px; font-size: 22px; }
.avatar--round { border-radius: 50%; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card--pad { padding: 20px; }
.card--flush { overflow: visible; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card__title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card__body { padding: 20px; }
.card__body--flush { padding: 0; }
.card__foot { padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.card--hover { transition: box-shadow .18s ease, transform .18s ease, border-color .18s; }
.card--hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #dbe1ee; }
.card--tint { background: linear-gradient(180deg, var(--brand-050), var(--surface) 70%); }
.card--warn { border-color: #f7dfa8; background: var(--warn-050); }
.card--danger { border-color: #f6c6cd; background: var(--danger-050); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.grid--sidebar-left { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }

/* ------------------------------------------------------------------- kpi */
.kpi { position: relative; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-600); flex: none; }
.kpi__icon--success { background: var(--success-050); color: var(--success); }
.kpi__icon--warn { background: var(--warn-050); color: var(--warn); }
.kpi__icon--danger { background: var(--danger-050); color: var(--danger); }
.kpi__icon--accent { background: var(--accent-050); color: var(--accent); }
.kpi__label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi__value { font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 3px; font-family: var(--display); }
.kpi__meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.kpi__trend { font-weight: 700; }
.kpi__trend--up { color: var(--success); }
.kpi__trend--down { color: var(--danger); }

.stat-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stat-strip > div { flex: 1 1 140px; padding: 14px 18px; border-right: 1px solid var(--line-2); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.stat-strip .v { font-size: 18px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 12px; font-weight: 650; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.field__label .req { color: var(--danger); }
.field__hint { font-size: 11.5px; color: var(--muted); }
.field__error { font-size: 11.5px; color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; min-height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-size: 13.5px;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: #d5dceb; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362708a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input--sm { min-height: 34px; padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.input-group { display: flex; align-items: stretch; gap: 8px; }
.input-group .input { flex: 1; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid .full { grid-column: 1 / -1; }
.form-section { display: grid; gap: 14px; }
.form-section + .form-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.form-section__title { font-size: 13px; font-weight: 750; letter-spacing: .01em; }
.form-section__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.checkline input[type="checkbox"], .checkline input[type="radio"] { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.radio-card { position: relative; display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: .15s; background: var(--surface); }
.radio-card:hover { border-color: #ced7e8; }
.radio-card input { margin-top: 2px; accent-color: var(--brand); }
.radio-card.is-selected { border-color: var(--brand); background: var(--brand-050); box-shadow: 0 0 0 3px var(--brand-050); }
.radio-card__title { font-size: 13px; font-weight: 650; }
.radio-card__meta { font-size: 11.5px; color: var(--muted); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 42px; height: 24px; border-radius: 99px; background: #d3d9e6; position: relative; transition: .18s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .18s; }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch__text { font-size: 12.5px; font-weight: 600; }
.switch--sm .switch__track { width: 34px; height: 20px; }
.switch--sm .switch__track::after { width: 14px; height: 14px; }
.switch--sm input:checked + .switch__track::after { transform: translateX(14px); }
[data-theme="dark"] .switch__track { background: #33415c; }

.range { width: 100%; accent-color: var(--brand); }
.range-wrap { display: flex; align-items: center; gap: 14px; }
.range-val { min-width: 94px; text-align: center; font-weight: 800; font-size: 13px; padding: 7px 10px; border-radius: 9px; background: var(--brand-050); color: var(--brand-600); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--line-2); border-radius: 10px; }
.segmented input { position: absolute; opacity: 0; }
.segmented label { padding: 7px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; }
.segmented input:checked + label { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ tables */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 750; padding: 10px 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-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table--compact th { padding: 8px 12px; }
.table--compact td { padding: 9px 12px; }
.table__actions { display: flex; gap: 6px; justify-content: flex-end; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .sub { font-size: 11.5px; color: var(--muted); }

.list { display: grid; }
.list__row { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.list__row:last-child { border-bottom: 0; }
.list__row--link:hover { background: var(--surface-2); }
.list__main { min-width: 0; flex: 1; }
.list__title { font-size: 13px; font-weight: 650; }
.list__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.list__side { text-align: right; flex: none; }

/* ------------------------------------------------------------------- misc */
.empty { text-align: center; padding: 46px 24px; color: var(--muted); }
.empty__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--line-2); color: var(--muted-2); display: grid; place-items: center; margin: 0 auto 12px; }
.empty__title { font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.empty__text { font-size: 12.5px; max-width: 360px; margin: 0 auto 14px; }
.skeleton { background: linear-gradient(90deg, var(--line-2) 25%, #f2f5fa 37%, var(--line-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }

.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s ease; }
.progress__bar--success { background: var(--success); }
.progress__bar--warn { background: var(--warn); }

.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: #f5a524; }
.stars .star .ic { width: 13px; height: 13px; fill: transparent; }
.stars .star.is-on .ic { fill: #f5a524; stroke: #f5a524; }
.stars .star.is-half .ic { fill: url(#half); stroke: #f5a524; opacity: .55; }
.stars b { margin-left: 4px; color: var(--ink); font-size: 12px; }

.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--info-050); color: var(--ink-2); font-size: 12.5px; border: 1px solid rgba(13,123,184,.16); }
.note .ic { color: var(--info); flex: none; margin-top: 1px; }
.note--warn { background: var(--warn-050); border-color: rgba(196,122,6,.2); }
.note--warn .ic { color: var(--warn); }
.note--danger { background: var(--danger-050); border-color: rgba(217,45,63,.18); }
.note--danger .ic { color: var(--danger); }
.note--success { background: var(--success-050); border-color: rgba(7,150,105,.18); }
.note--success .ic { color: var(--success); }

/* -------------------------------------------------------------- app shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 18px 14px 14px; z-index: 40;
}
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, #3457ff 0%, #7c3aed 100%);
  color: #fff; display: grid; place-items: center; font-weight: 850; font-size: 15px;
  box-shadow: 0 8px 18px rgba(52, 87, 255, .28); letter-spacing: -.03em;
}
.logo-word { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.03em; line-height: 1.1; }
.logo-word small { display: block; font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.sidebar__store { display: flex; gap: 9px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 12px; background: var(--surface-2); }
.sidebar__store .avatar { width: 32px; height: 32px; border-radius: 9px; }
.side-nav { display: grid; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 2px 4px; }
.side-nav::-webkit-scrollbar { width: 5px; }
.side-group { margin-top: 12px; }
.side-group__label { padding: 0 10px 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--muted-2); }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: var(--ink-2); font-size: 12.8px; font-weight: 600; position: relative;
  transition: background .12s, color .12s;
}
.side-link:hover { background: var(--line-2); color: var(--ink); }
.side-link.is-active { background: var(--brand-050); color: var(--brand-600); font-weight: 700; }
.side-link.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 4px 4px 0; background: var(--brand); }
.side-link .ic { color: var(--muted); width: 17px; height: 17px; }
.side-link.is-active .ic { color: var(--brand); }
.side-link__badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; min-width: 18px; text-align: center; }
.side-link__badge--soft { background: var(--line); color: var(--muted); }
.sidebar__foot { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 8px; display: grid; gap: 4px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; }
.side-user:hover { background: var(--line-2); }
.side-user__name { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.side-user__role { font-size: 10.5px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; min-height: var(--top-h);
  display: flex; align-items: center; gap: 14px; padding: 10px 26px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.topbar__search { flex: 1; max-width: 520px; }
.topbar__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topbar__divider { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.location-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 10px;
  border: 1px dashed var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer;
}
.location-pill .ic { color: var(--brand); }
.location-pill:hover { border-color: var(--brand); background: var(--brand-050); }
.location-pill span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page { padding: 24px 26px 48px; max-width: 1440px; width: 100%; margin: 0 auto; flex: 1; }
.page--narrow { max-width: 1040px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page__title { font-size: 23px; letter-spacing: -.03em; }
.page__sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.page__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb .ic { width: 12px; height: 12px; opacity: .6; }

.bottomnav { display: none; }
.mobiletop { display: none; }

/* ------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; position: relative;
  background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { color: var(--ink); }
.tabs__btn.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; background: var(--brand); border-radius: 3px 3px 0 0; }
.tabs__btn .count { background: var(--line-2); color: var(--muted); font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 99px; }
.tabs__btn.is-active .count { background: var(--brand-050); color: var(--brand-600); }
.tabs--pills { border: 0; gap: 6px; flex-wrap: wrap; }
.tabs--pills .tabs__btn { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: var(--surface); }
.tabs--pills .tabs__btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs--pills .tabs__btn.is-active::after { display: none; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ------------------------------------------------------------------ menus */
.menu { position: absolute; z-index: 60; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.menu.is-open { display: block; animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu__item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left; }
.menu__item:hover { background: var(--line-2); color: var(--ink); }
.menu__item .ic { color: var(--muted); }
.menu__sep { height: 1px; background: var(--line-2); margin: 5px 4px; }
.menu__head { padding: 9px 10px 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; }
.dropdown { position: relative; }
.dropdown__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 70; display: none; overflow: hidden; }
.dropdown__panel.is-open { display: block; animation: pop .14s ease-out; }
.dropdown__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.dropdown__list { max-height: 360px; overflow-y: auto; }

/* ------------------------------------------------------------------ modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 15, 27, .55); backdrop-filter: blur(3px); }
.modal__panel { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: modalin .18s ease-out; }
.modal__panel--wide { max-width: 760px; }
@keyframes modalin { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal__title { font-size: 17px; }
.modal__sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal__body { padding: 18px 20px; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 18px 18px; }

/* ------------------------------------------------------------------ toast */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; max-width: 390px; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 12.5px; animation: toastin .22s ease-out; }
.toast__icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--muted); }
.toast--success .toast__icon { background: var(--success-050); color: var(--success); }
.toast--danger .toast__icon { background: var(--danger-050); color: var(--danger); }
.toast--warn .toast__icon { background: var(--warn-050); color: var(--warn); }
.toast--info .toast__icon { background: var(--info-050); color: var(--info); }
.toast__body { flex: 1; padding-top: 3px; }
.toast__x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 3px; }
.toast.is-out { animation: toastout .2s ease-in forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateY(6px); } }

/* ---------------------------------------------------------------- pager */
.pager { display: flex; gap: 5px; justify-content: center; padding: 18px 0 4px; flex-wrap: wrap; }
.pager__link { min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 650; }
.pager__link:hover { border-color: var(--brand); color: var(--brand); }
.pager__link.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__gap { padding: 0 4px; color: var(--muted); align-self: center; }

/* -------------------------------------------------------------- landing */
.pub-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px 34px; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.pub-nav { display: flex; gap: 22px; margin-left: 14px; }
.pub-nav a { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pub-nav a:hover { color: var(--brand); }
.pub-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 66px 34px 40px; max-width: 1280px; margin: 0 auto; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-050); color: var(--brand-600); font-size: 11.5px; font-weight: 750; letter-spacing: .02em; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.045em; line-height: 1.02; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #3457ff, #7c3aed 60%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 16px; color: var(--muted); max-width: 520px; line-height: 1.6; }
.hero__cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero__proof { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero__proof b { display: block; font-size: 20px; letter-spacing: -.03em; }
.hero__proof span { font-size: 11.5px; color: var(--muted); }
.hero-art { position: relative; height: 440px; }
.hero-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; }
.hero-card--main { inset: 34px 22px 40px 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.hero-art__banner { height: 132px; background: linear-gradient(120deg, #3457ff, #7c3aed 55%, #f472b6); position: relative; overflow: hidden; }
.hero-art__banner::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.16); right: -60px; top: -70px; }
.hero-art__banner::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.12); left: -40px; bottom: -80px; }
.hero-art__body { padding: 16px; flex: 1; }
.hero-mini { display: flex; gap: 10px; margin-top: 14px; }
.hero-mini > div { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); }
.hero-mini b { font-size: 14px; display: block; }
.hero-mini span { font-size: 10.5px; color: var(--muted); }
.hero-float { right: -6px; bottom: 24px; width: 215px; display: flex; gap: 10px; align-items: center; }
.hero-float--top { top: 0; right: 12px; }
.section { max-width: 1280px; margin: 0 auto; padding: 46px 34px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section__title { font-size: 26px; letter-spacing: -.035em; }
.section__sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-tile { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: center; transition: .16s; }
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8dfef; }
.category-tile__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.category-tile span { font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { display: flex; gap: 12px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.trust-item .ic { color: var(--brand); }
.trust-item b { font-size: 13px; display: block; }
.trust-item span { font-size: 11.5px; color: var(--muted); }
.cta-band { background: linear-gradient(120deg, #0c1524, #1d2a4d 60%, #312e81); color: #fff; border-radius: 24px; padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(124,58,237,.35); filter: blur(30px); right: -80px; top: -120px; }
.cta-band h2 { color: #fff; font-size: 28px; letter-spacing: -.035em; max-width: 560px; }
.cta-band p { color: #c3cce0; font-size: 13.5px; margin-top: 8px; max-width: 560px; }
.pub-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 34px; margin-top: 30px; }
.pub-footer__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.pub-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.pub-footer a { display: block; color: var(--ink-2); font-size: 12.5px; padding: 3px 0; }
.pub-footer a:hover { color: var(--brand); }
.pub-footer__bottom { max-width: 1280px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }

/* --------------------------------------------------------- customer UI */
.hero-strip { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: 18px; background: linear-gradient(115deg, #eef2ff 0%, #f5f0ff 48%, #fff1f7 100%); border: 1px solid #e4e8ff; margin-bottom: 20px; flex-wrap: wrap; }
[data-theme="dark"] .hero-strip { background: linear-gradient(115deg, #17203a, #1e1a38 55%, #2a1830); border-color: #2a3350; }
.hero-strip h2 { font-size: 22px; letter-spacing: -.035em; }
.hero-strip p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.hero-strip__art { display: flex; gap: 8px; }
.hero-strip__art span { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--surface); border: 1px solid rgba(0,0,0,.05); box-shadow: var(--shadow-sm); }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.store-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: .18s; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7deee; }
.store-card__banner { height: 96px; position: relative; overflow: hidden; }
.store-card__banner .art { position: absolute; inset: 0; }
.store-card__badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.store-card__logo { position: absolute; left: 14px; bottom: -20px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.store-card__body { padding: 26px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.store-card__name { font-size: 14.5px; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 5px; }
.store-card__cat { font-size: 11.5px; color: var(--muted); }
.store-card__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); align-items: center; }
.store-card__foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.art { position: relative; display: block; width: 100%; height: 100%; background: hsl(var(--h, 214) 80% 96%); overflow: hidden; }
.art__orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.art__orb--1 { width: 110px; height: 110px; right: -30px; top: -40px; background: hsl(var(--h, 214) 85% 62% / .55); }
.art__orb--2 { width: 80px; height: 80px; left: -24px; bottom: -34px; background: hsl(calc(var(--h, 214) + 40) 85% 62% / .45); }
.art__grid { position: absolute; inset: 0; background-image: radial-gradient(hsl(var(--h,214) 50% 50% / .16) 1px, transparent 1px); background-size: 14px 14px; }
.art__label { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 700; color: hsl(var(--h,214) 50% 28% / .55); letter-spacing: .02em; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .16s; position: relative; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d7deee; }
.product-card__media { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; font-size: 46px; background: linear-gradient(150deg, hsl(var(--h,214) 85% 96%), hsl(calc(var(--h,214) + 26) 85% 92%)); }
.product-card__media .badge { position: absolute; top: 8px; left: 8px; }
.product-card__fav { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--muted); border: 1px solid var(--line); cursor: pointer; backdrop-filter: blur(6px); }
.product-card__fav:hover, .product-card__fav.is-on { color: #e11d48; border-color: #fecdd3; }
.product-card__fav.is-on .ic { fill: #e11d48; }
.product-card__body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card__store { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.product-card__name { font-size: 13px; font-weight: 650; line-height: 1.32; color: var(--ink); }
.product-card__name:hover { color: var(--brand); }
.product-card__price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 4px; }
.price { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.price--mrp { font-size: 11.5px; color: var(--muted-2); text-decoration: line-through; font-weight: 500; }
.price--off { font-size: 10.5px; color: var(--success); font-weight: 800; }
.product-card__foot { padding: 0 12px 12px; }
.addbtn { width: 100%; min-height: 32px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--brand); background: var(--brand-050); color: var(--brand-600); font-weight: 750; font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.addbtn:hover { background: var(--brand); color: #fff; }

/* storefront */
.shop-hero { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.shop-hero__banner { height: 168px; position: relative; }
.shop-hero__banner .art { position: absolute; inset: 0; }
.shop-hero__info { padding: 0 22px 20px; display: flex; gap: 18px; align-items: flex-end; margin-top: -38px; position: relative; flex-wrap: wrap; }
.shop-logo { width: 82px; height: 82px; border-radius: 22px; display: grid; place-items: center; font-size: 40px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex: none; }
.shop-hero__text { flex: 1; min-width: 220px; padding-bottom: 4px; }
.shop-hero__name { font-size: 24px; letter-spacing: -.035em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-hero__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; align-items: center; }
.shop-hero__actions { display: flex; gap: 8px; padding-bottom: 4px; flex-wrap: wrap; }
.shop-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.shop-info { padding: 15px 18px; border-right: 1px solid var(--line-2); }
.shop-info:last-child { border-right: 0; }
.shop-info .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 750; }
.shop-info .v { font-size: 13px; font-weight: 600; margin-top: 3px; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; align-items: start; }
.gallery { background: linear-gradient(150deg, hsl(var(--h,214) 88% 96%), hsl(calc(var(--h,214) + 30) 85% 91%)); border-radius: var(--r-lg); aspect-ratio: 1/1; display: grid; place-items: center; font-size: 128px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumb { width: 64px; height: 64px; border-radius: 11px; border: 1px solid var(--line); background: linear-gradient(150deg, hsl(var(--h,214) 88% 96%), hsl(calc(var(--h,214) + 30) 85% 91%)); display: grid; place-items: center; font-size: 26px; cursor: pointer; }
.gallery__thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-050); }
.detail-title { font-size: 26px; letter-spacing: -.035em; margin: 6px 0 8px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; }
.detail-price .price { font-size: 30px; }
.variant-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; cursor: pointer; }
.variant-chip input { position: absolute; opacity: 0; }
.variant-chip.is-active, .variant-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-050); color: var(--brand-600); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qty button { width: 34px; height: 38px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; font-size: 16px; }
.qty button:hover { background: var(--line-2); color: var(--ink); }
.qty input { width: 42px; height: 38px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; font-weight: 700; font-size: 13px; background: var(--surface); }

/* cart & checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cart-group { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; margin-bottom: 14px; }
.cart-group__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.cart-group__head .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.cart-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item__media { width: 58px; height: 58px; border-radius: 11px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(150deg, hsl(var(--h,214) 85% 96%), hsl(calc(var(--h,214) + 26) 85% 92%)); flex: none; }
.cart-item__main { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 650; }
.cart-item__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cart-item__price { text-align: right; min-width: 92px; }
.cart-group__foot { display: flex; justify-content: space-between; padding: 11px 16px; background: var(--surface-2); font-size: 12px; }
.summary { position: sticky; top: calc(var(--top-h) + 18px); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 5px 0; color: var(--muted); }
.summary__row b { color: var(--ink); font-weight: 650; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line); }
.summary__total span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.summary__total b { font-size: 23px; letter-spacing: -.03em; }
.checkout-store { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.checkout-store__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.checkout-store__body { padding: 14px 16px; display: grid; gap: 14px; }
.fulfil-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fulfil-option { border: 1px solid var(--line); border-radius: 11px; padding: 11px; cursor: pointer; background: var(--surface); transition: .14s; position: relative; }
.fulfil-option:hover { border-color: #cbd5e8; }
.fulfil-option input { position: absolute; opacity: 0; }
.fulfil-option.is-active { border-color: var(--brand); background: var(--brand-050); box-shadow: 0 0 0 2px var(--brand-050); }
.fulfil-option__title { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.fulfil-option__meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.pay-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-option { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; background: var(--surface); }
.pay-option input { accent-color: var(--brand); }
.pay-option.is-active { border-color: var(--brand); background: var(--brand-050); }

/* orders / timeline */
.order-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.order-card + .order-card { margin-top: 14px; }
.order-card__head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.order-card__body { padding: 14px 16px; }
.order-card__foot { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.order-item-row { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.order-item-row + .order-item-row { border-top: 1px dashed var(--line-2); }
.order-item-row__media { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; background: hsl(var(--h,214) 80% 95%); flex: none; }
.timeline { display: grid; gap: 0; position: relative; }
.timeline__item { display: flex; gap: 12px; position: relative; padding-bottom: 20px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; z-index: 1; flex: none; color: var(--muted-2); }
.timeline__dot .ic { width: 12px; height: 12px; }
.timeline__item.is-done .timeline__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline__item.is-current .timeline__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-050); }
.timeline__title { font-size: 12.5px; font-weight: 650; }
.timeline__meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.otp-card { border: 1px dashed #b9c4dc; background: var(--brand-050); border-radius: 14px; padding: 16px; text-align: center; }
.otp-card__code { font-family: var(--mono); font-size: 30px; font-weight: 800; letter-spacing: .22em; color: var(--brand-600); margin: 6px 0 2px; }
.order-progress { display: flex; gap: 4px; margin: 10px 0 4px; }
.order-progress span { height: 5px; flex: 1; border-radius: 99px; background: var(--line); }
.order-progress span.is-on { background: var(--brand); }

/* chat */
.chat-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); height: calc(100vh - var(--top-h) - 90px); min-height: 480px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list__head { padding: 14px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.is-active { background: var(--brand-050); }
.chat-item__main { min-width: 0; flex: 1; }
.chat-item__name { font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; }
.chat-item__msg { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.chat-panel { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.chat-thread { flex: 1; overflow-y: auto; padding: 18px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: min(520px, 78%); padding: 9px 13px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-size: 12.8px; line-height: 1.5; align-self: flex-start; box-shadow: var(--shadow-sm); }
.bubble--me { align-self: flex-end; background: var(--brand); color: #fff; border-color: transparent; }
.bubble--system { align-self: center; background: var(--warn-050); border-color: #f6e3b4; color: var(--warn); font-size: 11px; text-align: center; max-width: 90%; }
.bubble__meta { font-size: 10px; opacity: .65; margin-top: 3px; }
.chat-composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); background: var(--surface); }
.chat-composer .input { flex: 1; }
.chat-empty { display: grid; place-items: center; flex: 1; text-align: center; padding: 30px; color: var(--muted); }

/* profile / settings */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--brand-050), var(--accent-050)); border: 1px solid var(--line); flex-wrap: wrap; }
.profile-head__stats { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.profile-head__stats div b { display: block; font-size: 19px; letter-spacing: -.02em; }
.profile-head__stats div span { font-size: 10.5px; color: var(--muted); }
.address-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); position: relative; }
.address-card.is-default { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-050); }
.address-card__label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.settings-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--top-h) + 18px); }
.settings-link { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.settings-link:hover { background: var(--line-2); }
.settings-link.is-active { background: var(--brand-050); color: var(--brand-600); }

/* --------------------------------------------------------------- seller */
.order-queue { display: grid; gap: 12px; }
.order-tile { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 14px 16px; display: grid; gap: 10px; }
.order-tile__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-tile__items { font-size: 12px; color: var(--muted); }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kanban__col { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 13px; padding: 10px; min-height: 140px; }
.kanban__head { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 750; padding: 2px 4px 9px; }
.kanban__card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 11.5px; }
.kanban__card b { font-size: 12px; display: block; }

.stepbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.stepbar__item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stepbar__num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-size: 11px; font-weight: 800; }
.stepbar__item.is-active { color: var(--ink); }
.stepbar__item.is-active .stepbar__num { background: var(--brand); color: #fff; }
.stepbar__item.is-done .stepbar__num { background: var(--success-050); color: var(--success); }
.stepbar__sep { width: 22px; height: 1px; background: var(--line); }

.variant-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.variant-matrix th, .variant-matrix td { border: 1px solid var(--line); padding: 7px 9px; text-align: center; }
.variant-matrix th { background: var(--surface-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.variant-matrix input { width: 100%; border: 0; background: transparent; text-align: center; font-size: 12px; }

.upload-zone { border: 1.5px dashed #c9d3e6; border-radius: 13px; padding: 24px; text-align: center; background: var(--surface-2); cursor: pointer; transition: .15s; }
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--brand); background: var(--brand-050); }
.upload-zone .ic { color: var(--muted); margin: 0 auto 6px; }
.upload-zone b { font-size: 13px; display: block; }
.upload-zone span { font-size: 11.5px; color: var(--muted); }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.doc-row:last-child { border-bottom: 0; }
.doc-row__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--line-2); display: grid; place-items: center; color: var(--muted); flex: none; }

/* ---------------------------------------------------------------- rider */
.rider-status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.rider-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.rider-status.is-online .dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-050); }
.job-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
.job-card__top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: linear-gradient(120deg, var(--brand-050), transparent); }
.job-card__pay { text-align: right; }
.job-card__pay b { font-size: 22px; letter-spacing: -.03em; display: block; }
.job-card__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); padding: 12px 16px; }
.job-card__actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.map { position: relative; border-radius: var(--r); overflow: hidden; background: #eaf0f7; border: 1px solid var(--line); min-height: 260px; }
[data-theme="dark"] .map { background: #131d31; }
.map__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(59,93,150,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(59,93,150,.09) 1px, transparent 1px); background-size: 34px 34px; }
.map__road { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(120,140,170,.15); }
[data-theme="dark"] .map__road { background: #1d2a44; }
.map__road--h { left: 0; right: 0; height: 16px; top: 46%; }
.map__road--v { top: 0; bottom: 0; width: 16px; left: 32%; }
.map__route { position: absolute; left: 24%; top: 30%; width: 46%; height: 40%; border: 3px dashed rgba(52,87,255,.55); border-radius: 30% 50% 40% 20%; }
.map__pin { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(52,87,255,.16); font-size: 12px; }
.map__pin--drop { background: var(--ink); box-shadow: 0 0 0 5px rgba(12,21,36,.12); }
.map__rider { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: var(--shadow); font-size: 15px; }
.map__label { position: absolute; font-size: 10.5px; font-weight: 700; background: var(--surface); padding: 3px 8px; border-radius: 6px; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- admin */
.admin-side .side-link { font-size: 12.4px; }
.queue { display: grid; gap: 10px; }
.queue__row { display: flex; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.queue__row:hover { border-color: #cfd8ea; box-shadow: var(--shadow-sm); }
.queue__main { flex: 1; min-width: 0; }
.queue__title { font-size: 12.8px; font-weight: 650; }
.queue__meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.toolbar .input, .toolbar .select { max-width: 210px; }
.toolbar__spacer { flex: 1; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.detail-list { display: grid; gap: 0; }
.detail-list__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.detail-list__row:last-child { border-bottom: 0; }
.detail-list__row .k { color: var(--muted); }
.detail-list__row .v { font-weight: 600; text-align: right; }
.audit-entry { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.audit-entry__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex: none; }
.perm-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-viewer { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 24px; min-height: 220px; display: grid; place-items: center; text-align: center; font-size: 12px; }
.masked { font-family: var(--mono); letter-spacing: .06em; background: var(--line-2); padding: 2px 7px; border-radius: 5px; font-size: 11.5px; }

/* ------------------------------------------------------------------ auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; background: linear-gradient(150deg, #0b1428 0%, #1a2350 50%, #3b1d6e 100%); color: #fff; padding: 44px; display: flex; flex-direction: column; }
.auth-aside::before, .auth-aside::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); }
.auth-aside::before { width: 420px; height: 420px; background: rgba(52,87,255,.35); right: -140px; top: -120px; }
.auth-aside::after { width: 340px; height: 340px; background: rgba(219,39,119,.22); left: -100px; bottom: -140px; }
.auth-aside__body { position: relative; z-index: 1; margin-top: auto; }
.auth-aside h2 { color: #fff; font-size: 34px; letter-spacing: -.04em; line-height: 1.12; }
.auth-aside p { color: #c4cde3; font-size: 13.5px; max-width: 420px; margin-top: 12px; }
.auth-aside__points { display: grid; gap: 14px; margin-top: 30px; }
.auth-point { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: #dbe2f2; }
.auth-point .ic { color: #93a9ff; margin-top: 1px; }
.auth-main { display: grid; place-items: center; padding: 34px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 27px; letter-spacing: -.04em; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin: 5px 0 22px; }
.demo-accounts { margin-top: 22px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.demo-accounts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.demo-account { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 11px; cursor: pointer; text-align: left; }
.demo-account:hover { border-color: var(--brand); background: var(--brand-050); }
.demo-account b { font-size: 11px; display: block; }
.demo-account span { color: var(--muted); font-size: 10px; }

/* --------------------------------------------------------------- invoice */
.invoice { max-width: 800px; margin: 0 auto; background: #fff; color: #0c1524; padding: 40px; border-radius: 12px; border: 1px solid #e6e9f2; }
.invoice h1 { font-size: 22px; }
.invoice__head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #0c1524; padding-bottom: 16px; margin-bottom: 20px; }
.invoice table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.invoice th, .invoice td { padding: 9px 8px; border-bottom: 1px solid #e6e9f2; text-align: left; }
.invoice th { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #62708a; }
.invoice__totals { margin-left: auto; width: 280px; margin-top: 16px; }
.invoice__totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; }
.invoice__totals .grand { border-top: 1px solid #0c1524; margin-top: 6px; padding-top: 9px; font-weight: 800; font-size: 15px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(5, 1fr); }
  .hero { gap: 24px; }
  .hero-art { height: 400px; }
}

@media (max-width: 1080px) {
  :root { --side-w: 84px; }
  .sidebar { padding: 16px 10px; align-items: stretch; }
  .sidebar__brand { justify-content: center; padding: 4px 0 16px; }
  .logo-word, .side-group__label, .side-link span:not(.side-link__badge), .sidebar__store .storetext, .side-user__meta { display: none; }
  .side-link { justify-content: center; padding: 11px 8px; }
  .side-link__badge { position: absolute; top: 4px; right: 6px; margin: 0; }
  .sidebar__store { justify-content: center; padding: 8px 4px; }
  .sidebar__store .avatar { width: 36px; height: 36px; }
  .side-user { justify-content: center; }
  .grid--sidebar { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .gallery { aspect-ratio: 16/10; font-size: 92px; }
  .chat-layout { grid-template-columns: 270px 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 10px 16px; gap: 8px; min-height: 60px; }
  .topbar__search { display: none; }
  .topbar__search.is-mobile-open { display: block; position: absolute; left: 12px; right: 12px; top: 10px; max-width: none; z-index: 5; }
  .page { padding: 16px 14px 96px; }
  .page__head { margin-bottom: 14px; }
  .page__title { font-size: 20px; }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottomnav__link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 8px; border-radius: 9px; color: var(--muted); font-size: 9.5px; font-weight: 650; min-width: 56px; position: relative; }
  .bottomnav__link.is-active { color: var(--brand); }
  .bottomnav__link.is-active .bottomnav__ico { background: var(--brand-050); }
  .bottomnav__ico { width: 34px; height: 26px; display: grid; place-items: center; border-radius: 8px; }
  .bottomnav__link .side-link__badge { position: absolute; top: 0; right: 12px; font-size: 9px; }
  .mobiletop { display: flex; align-items: center; gap: 10px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field-grid, .field-grid--3 { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding: 34px 18px 20px; gap: 26px; }
  .hero-art { height: 340px; }
  .section { padding: 30px 18px; }
  .pub-header { padding: 12px 16px; }
  .pub-nav { display: none; }
  .pub-footer__grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 22px 16px; align-items: start; }
  .auth-card { max-width: 440px; margin: 22px auto; }
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .chat-list { display: none; }
  .chat-layout.show-list .chat-list { display: block; }
  .chat-layout.show-list .chat-panel { display: none; }
  .toast-stack { left: 12px; right: 12px; bottom: 84px; max-width: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 92vh; border-radius: 18px 18px 0 0; max-width: none; }
  .modal__panel--wide { max-width: none; }
  .shop-hero__banner { height: 120px; }
  .shop-hero__info { padding: 0 14px 16px; gap: 12px; }
  .shop-logo { width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }
  .shop-hero__name { font-size: 19px; }
  .shop-hero__actions { width: 100%; }
  .detail-title { font-size: 21px; }
  .detail-price .price { font-size: 25px; }
  .kanban { grid-template-columns: repeat(5, 210px); }
  .table th, .table td { padding: 9px 10px; }
  .hide-mobile { display: none !important; }
  .pub-footer { padding: 24px 18px; }
  .cta-band { padding: 26px; border-radius: 18px; }
  .cta-band h2 { font-size: 22px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: 1fr; }
  .pub-footer__grid { grid-template-columns: 1fr; gap: 16px; }
  .profile-head { padding: 16px; }
  .profile-head__stats { margin-left: 0; width: 100%; gap: 16px; }
  .demo-accounts__grid { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div { flex: 1 1 50%; border-bottom: 1px solid var(--line-2); }
  .job-card__meta { gap: 8px 14px; }
  .cart-item { padding: 12px; gap: 9px; }
  .cart-item__media { width: 46px; height: 46px; font-size: 21px; }
  .cart-item__price { min-width: 70px; }
  .invoice { padding: 20px; }
  .invoice__head { flex-direction: column; }
  .hide-xs { display: none !important; }
  .page { padding: 14px 12px 94px; }
  .card__body { padding: 15px; }
  .card__head { padding: 13px 15px; }
  .hero-art { height: 300px; }
  .hero-float { width: 180px; }
}

@media print {
  .sidebar, .topbar, .bottomnav, .page__actions, .toast-stack, .btn, .tabs, .pub-header, .pub-footer { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .shell { display: block; }
  .invoice { border: 0; padding: 0; max-width: none; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}

/* -------------------------------------------------------------------- a11y */
.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; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 9px 13px; border-radius: 8px; z-index: 200; font-size: 12px; }
.skip-link:focus { top: 8px; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
