/* PickPH 2.0 design system — one stylesheet for buyers, sellers and Super Admin.
   Follows the PickPH 2.0 mockups: white surfaces, soft lavender canvas, violet for action and state,
   Inter type, rounded cards with hairline borders. Mobile first; the app shell switches to a sidebar at 1000px. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }

:root {
  /* 2.9 visual refresh: the approved 14-screen reference (purple + white, light lavender canvas, small warm accents) */
  --ink: #17123a;
  --ink-2: #4a4568;
  --ink-3: #6b6787; /* 4.8–5.4:1 on white, canvas and lavender (WCAG AA) */
  --paper: #ffffff;
  --canvas: #f7f5fe;
  --sunken: #f3f1fa;
  --line: #ece8f8;
  --line-strong: #dcd5ef;
  --violet: #6f35e8;
  --violet-2: #9b5cf4;
  --violet-ink: #5523cf;
  --violet-deep: #3b1792;
  --violet-wash: #f3f0ff;
  --violet-soft: #e7defd;
  --violet-line: #d5c8fa;
  --accent: #ff6b83; --accent-wash: #ffedf1;
  --highlight: #ffe080; --highlight-wash: #fff7dc;
  --green: #0f7d4a; --green-wash: #e6f6ee; --green-line: #bfe6d1;
  --amber: #9a5600; --amber-wash: #fff4de; --amber-line: #f6d9a3;
  --red: #c42b3a; --red-wash: #fdecee; --red-line: #f6c3c9;
  --blue: #2b5fd9; --blue-wash: #eaf0fe;
  --r-xs: 8px; --r-sm: 12px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(39, 20, 99, .04), 0 4px 14px rgba(111, 53, 232, .045);
  --shadow-soft: 0 12px 32px rgba(111, 53, 232, .10), 0 2px 6px rgba(39, 20, 99, .04);
  --shadow-pop: 0 18px 40px rgba(22, 19, 45, .16), 0 2px 8px rgba(22, 19, 45, .06);
  --shadow-cta: 0 8px 20px rgba(111, 53, 232, .28);
  --grad-primary: linear-gradient(180deg, #7b43f2 0%, #6a2fe3 100%);
  --grad-hero: linear-gradient(120deg, #faf7ff 0%, #f1eaff 45%, #e6dbff 100%);
  --grad-soft: linear-gradient(160deg, #f6f1ff 0%, #ffffff 70%);
  --grad-nav: linear-gradient(180deg, #4b1fb4 0%, #3a168e 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14.5px; --fs-lg: 16px; --fs-xl: 19px; --fs-2xl: 24px; --fs-3xl: 30px;
  --gutter: 16px;
  --tap: 44px;
  --focus: 0 0 0 3px rgba(111, 53, 232, .32);
  --tabbar-h: 62px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
@media (min-width: 1000px) { body { font-size: 14px; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.22; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: var(--fs-2xl); font-weight: 800; }
h2 { font-size: var(--fs-lg); font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--ink-3); }
.muted-2 { color: var(--ink-2); }
b, strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.num, .tnum { font-variant-numeric: tabular-nums; }

.i { display: inline-block; vertical-align: -0.22em; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.xs { width: 14px; height: 14px; }
.i.sm { width: 16px; height: 16px; }
.i.lg { width: 24px; height: 24px; }
.i.xl { width: 30px; height: 30px; }

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 560px; }
.wrap.mid { max-width: 860px; }
.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 20px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.tight { gap: 6px; }
.row.top { align-items: flex-start; }
.row.wrap-row { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.grid-2.always { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; } }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.section { padding-top: 20px; padding-bottom: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head a { font-size: var(--fs-sm); font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- surfaces ---------- */
.card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-card); }
.card.raised { box-shadow: var(--shadow-soft); border-color: var(--violet-soft); }
.card.flush, .panel.flush { padding: 0; overflow: hidden; }
.card.tight, .panel.tight { padding: 12px 14px; border-radius: var(--r-md); }
.card.soft { background: var(--violet-wash); border-color: var(--violet-soft); box-shadow: none; }
@media (min-width: 1000px) { .card, .panel { padding: 20px; } .card.flush, .panel.flush { padding: 0; } .card.tight, .panel.tight { padding: 12px 16px; } }
.card-head, .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3, .panel-head h2, .panel-head h3 { margin: 0; }
.card-head p { margin: 2px 0 0; color: var(--ink-3); font-size: var(--fs-sm); }
.card-title { display: flex; gap: 12px; align-items: flex-start; }
.ic-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet); flex: none; }
.ic-tile.sm { width: 32px; height: 32px; border-radius: 10px; }
.ic-tile.lg { width: 52px; height: 52px; border-radius: 16px; }
.ic-tile.green { background: var(--green-wash); color: var(--green); }
.ic-tile.amber { background: var(--amber-wash); color: var(--amber); }
.ic-tile.red { background: var(--red-wash); color: var(--red); }
.ic-tile.blue { background: var(--blue-wash); color: var(--blue); }
.ic-tile.plain { background: var(--sunken); color: var(--ink-2); }
.well { background: var(--sunken); border-radius: var(--r-md); padding: 14px; }
.note { background: var(--violet-wash); border: 1px solid var(--violet-soft); color: #3a1997; border-radius: var(--r-md); padding: 12px 14px; font-size: var(--fs-sm); }
.note.warn { background: var(--amber-wash); border-color: var(--amber-line); color: #6c3c00; }
.note.bad { background: var(--red-wash); border-color: var(--red-line); color: #8a1726; }
.note.good { background: var(--green-wash); border-color: var(--green-line); color: #0b5a38; }
.note.plain { background: var(--sunken); border-color: var(--line); color: var(--ink-2); }
.note b { color: inherit; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.brand-name .v { color: var(--violet); font-weight: 650; font-size: .78em; margin-left: 3px; letter-spacing: -.01em; }
.brand-tag { font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-top: 3px; letter-spacing: 0; }
.brand.big .brand-name { font-size: 28px; color: var(--violet); }
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: -.035em; color: var(--violet); text-decoration: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--sunken); }
.btn.primary { background: var(--violet) var(--grad-primary); border-color: var(--violet); color: #fff; box-shadow: 0 4px 12px rgba(111, 53, 232, .22); }
.btn.primary:hover { background: var(--violet-ink); border-color: var(--violet-ink); }
.btn.primary:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(111, 53, 232, .22); }
.btn.outline { border-color: var(--violet); color: var(--violet-ink); background: var(--paper); }
.btn.outline:hover { background: var(--violet-wash); }
.btn.soft { background: var(--violet-wash); border-color: var(--violet-wash); color: var(--violet-ink); }
.btn.soft:hover { background: var(--violet-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { color: var(--red); border-color: var(--red-line); }
.btn.danger:hover { background: var(--red-wash); }
.btn.green { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.blue { background: #1877f2; border-color: #1877f2; color: #fff; }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: var(--fs-lg); border-radius: var(--r-md); padding: 0 24px; }
.btn.primary.lg { box-shadow: var(--shadow-cta); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-sm); border-radius: 10px; }
.btn.xs { min-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn .sub { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.btn.two-line { flex-direction: row; text-align: left; line-height: 1.25; padding: 10px 16px; }
.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; flex: none; text-decoration: none !important; }
.icon-btn:hover { background: var(--sunken); }
.icon-btn.boxed { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); }
.icon-btn.sm { width: 34px; height: 34px; }
.dot-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--paper); box-sizing: content-box; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
.dot.violet { background: var(--violet); } .dot.green { background: #22b469; } .dot.grey { background: var(--line-strong); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-weight: 650; font-size: var(--fs-sm); margin-bottom: 7px; color: var(--ink); }
.field > span .opt { color: var(--ink-3); font-weight: 500; }
.field .hint { display: block; color: var(--ink-3); font-size: var(--fs-xs); margin-top: 6px; font-weight: 400; }
.field .count { float: right; color: var(--ink-3); font-size: 11.5px; font-weight: 500; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
@media (min-width: 1000px) { .input, select.input, textarea.input { min-height: 42px; padding: 9px 12px; font-size: 14px; } }
select.input { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--paper) 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='%237c7990' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
textarea.input { min-height: 100px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--violet); box-shadow: var(--focus); }
.input:hover:not(:focus) { border-color: var(--violet-line); }
.input[aria-invalid="true"], .input.is-bad { border-color: var(--red); }
.input.is-ok { border-color: var(--green-line); }
.input::placeholder { color: #a3a0b4; }
.input.sm { min-height: 36px; padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); overflow: hidden; }
.input-prefix > span { display: grid; place-items: center; padding: 0 12px; background: var(--sunken); color: var(--ink-2); font-weight: 650; }
.input-prefix .input { border: 0; border-radius: 0; box-shadow: none !important; }
.input-prefix:focus-within { border-color: var(--violet); box-shadow: var(--focus); }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon > .input { padding-left: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--violet); flex: none; }
.form-error { color: var(--red); font-size: var(--fs-sm); margin-top: 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-strong); border-radius: 13px; transition: background .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* choice cards (radio / checkbox as cards) */
.choices { display: grid; gap: 12px; }
.choice { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.choice .radio.sq { border-radius: 6px; }
.choice:has(input:checked) { border-color: var(--violet); background: var(--violet-wash); }
.choice:has(input:checked) .radio { border-color: var(--violet); }
.choice:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.choice:has(input:checked) .radio.sq { background: var(--violet); }
.choice:has(input:checked) .radio.sq::after { width: 10px; height: 6px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice .ic-tile { width: 48px; height: 48px; border-radius: 50%; }
.choice b { display: block; font-size: 15px; }
.choice small { display: block; font-size: var(--fs-sm); }

/* chips (variant pickers, filters, quick replies) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1px solid var(--violet-soft); border-radius: var(--r-pill); background: var(--violet-wash); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; user-select: none; white-space: nowrap; text-decoration: none !important; }
.chip:hover { border-color: var(--violet-line); }
.chip.on, .chip:has(input:checked) { border-color: var(--violet); background: var(--violet); color: #fff; }
.chip.soft-on.on, .chip.soft-on:has(input:checked) { background: var(--paper); color: var(--violet-ink); border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.chip.off { opacity: .4; text-decoration: line-through !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin-left: -10px; }
.chip.grey { background: var(--sunken); border-color: var(--sunken); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip .n { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); border-radius: 9px; padding: 0 6px; }
.chip:not(.on) .n { background: var(--sunken); color: var(--ink-2); }
/* square size chips */
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes .chip { min-width: 48px; justify-content: center; border-radius: 10px; padding: 0 12px; height: 42px; background: var(--paper); border-color: var(--line-strong); }
.sizes .chip.on, .sizes .chip:has(input:checked) { background: var(--violet-wash); color: var(--violet-ink); border-color: var(--violet); border-width: 1.5px; }
/* color swatches */
.swatch-row { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 11.5px; color: var(--ink-2); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch i, .swatch img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; box-shadow: inset 0 0 0 3px #fff; }
.swatch:has(input:checked) i, .swatch:has(input:checked) img, .swatch.on i { outline: 2px solid var(--violet); outline-offset: 2px; }
.swatch:has(input:checked) { color: var(--violet-ink); font-weight: 650; }
.swatch.off { opacity: .35; }

/* badges & status pills */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 650; background: var(--sunken); color: var(--ink-2); white-space: nowrap; line-height: 1.35; }
.badge.violet { background: var(--violet-wash); color: var(--violet-ink); }
.badge.green { background: var(--green-wash); color: var(--green); }
.badge.amber { background: var(--amber-wash); color: var(--amber); }
.badge.red { background: var(--red-wash); color: var(--red); }
.badge.blue { background: var(--blue-wash); color: var(--blue); }
.badge.solid { background: var(--violet); color: #fff; }
.badge.outline { background: transparent; border: 1px solid var(--line-strong); }
.badge .i { width: 13px; height: 13px; }
.delta { font-size: 12px; font-weight: 650; color: var(--green); display: inline-flex; align-items: center; gap: 2px; }
.delta.down { color: var(--red); }

/* ---------- app bars ---------- */
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 8px 8px 8px var(--gutter); background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.appbar.line { border-bottom: 1px solid var(--line); }
.appbar.sub { padding-left: 4px; }
.appbar .title { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .title.center { text-align: center; }
.appbar .actions { display: flex; align-items: center; margin-left: auto; }
.appbar .who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.appbar .who b { display: block; font-size: 16px; line-height: 1.2; }
.appbar .who small { display: block; font-size: 12.5px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 12px; }
.page-title h1 { margin: 0; font-size: 26px; }
.page-title p { margin: 4px 0 0; color: var(--ink-3); }

/* search pill */
.searchbox { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: var(--r-pill); background: var(--sunken); color: var(--ink-3); border: 1px solid transparent; }
.searchbox input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--ink); min-width: 0; font-size: 15px; }
.searchbox input:focus { outline: none; }
.searchbox input::placeholder { color: #9895ab; }
.searchbox:focus-within { box-shadow: var(--focus); background: var(--paper); border-color: var(--violet); }
.searchbox.boxed { border-radius: var(--r-sm); background: var(--paper); border-color: var(--line-strong); }
.searchbox .btn { margin-right: -10px; }

/* bottom navigation (mobile) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { min-width: 0; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 3px; height: var(--tabbar-h); justify-content: center; color: var(--ink-3); font-size: 11px; font-weight: 600; text-decoration: none; position: relative; }
.tabbar a .i { width: 23px; height: 23px; }
.tabbar a.on { color: var(--violet); }
.tabbar a.on .i { fill: var(--violet-soft); }
.tabbar a .dot-count { top: 5px; right: calc(50% - 22px); }
.has-tabbar { padding-bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .tabbar.mobile-only { display: none; } .has-tabbar.mobile-pad { padding-bottom: 0; } }

/* sticky bottom CTA (over the tab bar when present) */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.cta-bar .btn { flex: 1; }
.cta-bar .btn.icon-only { flex: none; width: 52px; padding: 0; }
.has-cta { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .cta-bar.mobile-fixed { position: static; padding: 0; border: 0; background: none; margin-top: 18px; } .has-cta.mobile-pad { padding-bottom: 0; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: 0 0 auto; padding: 12px 14px 11px; font-weight: 600; font-size: 14px; color: var(--ink-2); border: 0; background: none; border-bottom: 2.5px solid transparent; white-space: nowrap; text-decoration: none !important; font-family: inherit; cursor: pointer; margin-bottom: -1px; }
.tabs.fill a, .tabs.fill button { flex: 1; text-align: center; }
.tabs a.on, .tabs button.on { color: var(--violet); border-bottom-color: var(--violet); }
.tabs .count { font-weight: 600; margin-left: 3px; }
/* segmented filters (desktop tables) */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.seg a .n, .seg button .n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sunken); color: var(--ink-2); font-size: 11.5px; display: inline-grid; place-items: center; }
.seg a.on, .seg button.on { background: var(--violet-wash); border-color: var(--violet); color: var(--violet-ink); box-shadow: inset 0 0 0 1px var(--violet); }
.seg a.on .n, .seg button.on .n { background: var(--violet); color: #fff; }
.seg a, .seg button { border-color: var(--line); border-radius: 12px; height: 38px; }

/* ---------- avatars ---------- */
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--violet-wash); color: var(--violet-ink); display: grid; place-items: center; font-weight: 750; font-size: 17px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sq { border-radius: 14px; }
.avatar.xs { width: 30px; height: 30px; font-size: 12px; }
.avatar.sm { width: 40px; height: 40px; font-size: 14px; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; border: 4px solid var(--paper); }
.avatar.xl { width: 96px; height: 96px; font-size: 34px; }
.avatar.ring { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.online { position: relative; }
.online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22b469; border: 2px solid var(--paper); }

/* ---------- product cards ---------- */
.products { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .products.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.products.hscroll { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; scroll-snap-type: x mandatory; }
.products.hscroll::-webkit-scrollbar { display: none; }
.products.hscroll > * { flex: 0 0 42%; scroll-snap-align: start; }
@media (min-width: 700px) { .products.hscroll > * { flex-basis: 220px; } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; color: var(--ink); text-decoration: none !important; }
.pcard:hover { border-color: var(--line-strong); }
.pcard .ph { aspect-ratio: 1; background: var(--sunken); position: relative; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .badge { position: absolute; left: 8px; top: 8px; }
.pcard .fav { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink-2); }
.pcard .pb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard .pn { font-size: 13.5px; font-weight: 550; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pp { font-weight: 750; font-size: 15px; margin-top: 2px; }
.pcard .pp s { color: var(--ink-3); font-weight: 500; font-size: 12px; margin-left: 4px; }
.pcard .pm { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; min-width: 0; }
.pcard .pm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .kebab { position: absolute; right: 4px; bottom: 34px; }
.swatches { display: flex; gap: 4px; }
.swatches img, .swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }
.ph-empty { display: grid; place-items: center; width: 100%; height: 100%; color: #b7b4c6; background: var(--sunken); }

/* shop cards (near you) */
.shops-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; }
.shops-row::-webkit-scrollbar { display: none; }
.shop-tile { flex: 0 0 84px; color: var(--ink); text-decoration: none !important; }
.shop-tile .logo { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--violet-wash); color: var(--violet-ink); display: grid; place-items: center; font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.shop-tile .logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-tile b { display: block; font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-tile small { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shops { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.scard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 8px; }
.scard:hover { border-color: var(--line-strong); }

/* category icon tiles (buyer) */
.cats { display: grid; gap: 14px 8px; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(8, 1fr); } }
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 550; color: var(--ink); text-align: center; text-decoration: none !important; line-height: 1.25; }
.cat .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--violet-wash); display: grid; place-items: center; color: var(--violet); overflow: hidden; }
.cat .ic .i { width: 28px; height: 28px; stroke-width: 1.6; }
.cat .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat:nth-child(4n+2) .ic { background: #eef1fb; color: #4b5fd1; }
.cat:nth-child(4n+3) .ic { background: #f0f2f7; color: #4a5468; }
.cat:nth-child(4n+4) .ic { background: #eef6ef; color: #3b7d4f; }
/* category photo cards (catalog) */
.cat-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .cat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-card { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); cursor: pointer; color: var(--ink); text-decoration: none !important; }
.cat-card input { position: absolute; opacity: 0; pointer-events: none; }
.cat-card .img { aspect-ratio: 4 / 3; background: var(--sunken); }
.cat-card .img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .txt { padding: 10px 12px 12px; }
.cat-card b { display: block; font-size: 14.5px; }
.cat-card small { display: block; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.cat-card .tick { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--violet); color: #fff; display: none; place-items: center; }
.cat-card:has(input:checked), .cat-card.on { border-color: var(--violet); background: var(--violet-wash); }
.cat-card:has(input:checked) .tick, .cat-card.on .tick { display: grid; }
.cat-card:has(input:focus-visible) { box-shadow: var(--focus); }
.cat-card:has(input:disabled) { cursor: default; }
/* catalog category rows (seller) */
.cat-rows { display: grid; gap: 10px; }
.cat-row { position: relative; display: grid; grid-template-columns: auto 72px 1fr auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-decoration: none !important; }
.cat-row > input[type=checkbox] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--violet); }
.cat-row > input[disabled] { opacity: .35; }
.cat-row .img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--sunken); }
.cat-row .img img { width: 100%; height: 100%; object-fit: cover; }
.cat-row b { font-size: 15px; }
.cat-row .desc { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 8px; line-height: 1.35; }
.cat-row .mini { display: flex; gap: 6px; }
.cat-row .mini span { width: 36px; height: 36px; border-radius: 8px; background: var(--sunken); overflow: hidden; display: block; }
.cat-row .mini img { width: 100%; height: 100%; object-fit: cover; }
.cat-row:has(input:checked) { border-color: var(--violet); background: var(--violet-wash); }
.cat-row .chev { color: var(--ink-3); align-self: center; }

/* shop page header */
.shop-banner { height: 168px; background: linear-gradient(135deg, #efe9fd 0%, #e6ecfa 100%); position: relative; overflow: hidden; }
.shop-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .shop-banner { height: 240px; border-radius: 0 0 var(--r-lg) var(--r-lg); } }
.shop-id { display: flex; gap: 14px; align-items: flex-end; margin-top: -42px; position: relative; }
.shop-id h1 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 6px; }
.verified { color: var(--violet); }
.verified .i { fill: var(--violet); stroke: #fff; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-3); font-size: 13px; align-items: center; }
.meta-row > span { display: inline-flex; align-items: center; gap: 5px; }
.stars { color: #f5a524; }
.stars .i { fill: #f5a524; stroke: #f5a524; width: 14px; height: 14px; }

/* ---------- product page ---------- */
.gallery { display: grid; gap: 8px; }
.gallery .main { position: relative; aspect-ratio: 1; background: var(--sunken); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main .count { position: absolute; left: 12px; bottom: 12px; background: rgba(22,19,45,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; }
.gallery .thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery .thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--sunken); flex: none; cursor: pointer; }
.gallery .thumbs button.on { border-color: var(--violet); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 859px) { .gallery.edge { margin: 0 calc(var(--gutter) * -1); } .gallery.edge .thumbs { padding: 0 var(--gutter); } }
@media (min-width: 860px) { .gallery { grid-template-columns: 76px 1fr; } .gallery .main { border-radius: var(--r-lg); grid-column: 2; grid-row: 1; } .gallery .thumbs { grid-column: 1; grid-row: 1; flex-direction: column; } .gallery .thumbs button { width: 76px; height: 76px; } }
.price-lg { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--violet); }
.price-lg s { color: var(--ink-3); font-size: 15px; font-weight: 500; margin-left: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.qty button { width: 40px; height: 40px; border: 0; background: var(--paper); font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--sunken); }
.qty input { width: 44px; text-align: center; border: 0; font: inherit; font-weight: 700; background: transparent; }
.product-layout { display: grid; gap: 18px; }
@media (min-width: 860px) { .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 20px; } .product-layout .gallery { position: sticky; top: 84px; } }
.product-title { font-size: 21px; font-weight: 750; margin-bottom: 4px; }
@media (min-width: 860px) { .product-title { font-size: 26px; } }
.opt-label { font-weight: 650; font-size: 14px; margin: 16px 0 8px; display: flex; justify-content: space-between; align-items: center; }
.opt-label span { font-weight: 500; color: var(--ink-2); }
.stock-note { color: var(--amber); font-weight: 650; font-size: var(--fs-sm); min-height: 1em; margin: 8px 0; }
.seller-card { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seller-card .grow b { display: flex; align-items: center; gap: 5px; font-size: 15px; }

/* ---------- lists ---------- */
.list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list.plain { border: 0; border-radius: 0; background: none; }
.list > .li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.list.plain > .li { padding-left: 0; padding-right: 0; }
.list > .li:first-child { border-top: 0; }
a.li:hover { background: #fbfaff; }
.li .thumb { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--sunken); flex: none; }
.li .thumb img { width: 100%; height: 100%; object-fit: cover; }
.li .t { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.li .s { font-size: var(--fs-sm); color: var(--ink-3); }
.li .when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.unread .t::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-left: 4px; }
.thumb-sm { display: block; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--sunken); flex: none; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.thumb-md { display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--sunken); flex: none; }
.thumb-md img { width: 100%; height: 100%; object-fit: cover; }

/* order cards (seller + buyer mobile) */
.ocards { display: grid; gap: 12px; }
.ocard { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-card); }
.ocard:hover { border-color: var(--line-strong); }
.ocard .oh { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.ocard .oh b { color: var(--ink); font-weight: 650; }
.ocard .who { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ocard .who b { display: block; font-size: 14.5px; }
.ocard .who small { display: block; }
.ocard .items { display: flex; gap: 12px; padding-top: 10px; align-items: center; }
.ocard .items .grow b { display: block; font-weight: 600; font-size: 14px; }
.ocard .price { font-weight: 750; font-size: 15px; }
.ocard .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }

/* notification items */
.nitem { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.nitem:first-child { border-top: 0; }
.nitem .ic-tile { width: 44px; height: 44px; border-radius: 50%; }
.nitem .grow b { display: block; font-size: 14.5px; }
.nitem .grow p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.nitem .when { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.nitem .side-mark { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: var(--ink-3); }
.ngroup { font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 12px 0 0; }

/* timeline (order status) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--violet-soft); }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); display: grid; place-items: center; color: var(--ink-3); }
.timeline .dot .i { width: 13px; height: 13px; }
.timeline li.done .dot { background: var(--violet); border-color: var(--violet); color: #fff; }
.timeline li.now .dot { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 4px var(--violet-wash); }
.timeline .tt { font-weight: 650; }
.timeline li.done .tt, .timeline li.now .tt { color: var(--violet-ink); }
.timeline li:not(.done):not(.now) .tt { color: var(--ink-3); }
.timeline .ts { font-size: 12.5px; color: var(--ink-3); }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px var(--gutter); }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; background: var(--sunken); white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.sys { align-self: center; background: transparent; font-size: 12px; color: var(--ink-3); padding: 4px; }
.bubble time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.bubble.them time { text-align: left; }
.bubble img { border-radius: 12px; margin-bottom: 6px; max-height: 260px; }
.bubble.bot { background: var(--paper); border: 1px solid var(--line); }
.bubble p:last-child, .bubble ol:last-child, .bubble ul:last-child { margin-bottom: 0; }
.bubble ol, .bubble ul { padding-left: 20px; margin: 6px 0; }
.bot-row { display: flex; gap: 10px; align-items: flex-start; }
.bot-row .bubble { max-width: calc(100% - 50px); }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; border-radius: 23px; padding: 12px 16px; background: var(--sunken); border-color: transparent; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; background: var(--violet); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer .attach { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; flex: none; border: 1px solid var(--line-strong); }
.composer .attach input { display: none; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px var(--gutter); }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.order-strip { display: flex; gap: 12px; align-items: center; margin: 10px var(--gutter) 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-card); }
.order-strip b { font-size: 14px; }
.chat-page { display: flex; flex-direction: column; min-height: 100dvh; }
.chat-page .chat { flex: 1; }
.chat-page .composer { position: sticky; bottom: 0; }

/* ---------- tables (desktop seller + admin) ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #faf9fd; font-size: 12.5px; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td, .table tr.sel td { background: #faf8ff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--sunken); flex: none; }
.table .cell-prod { display: flex; gap: 12px; align-items: center; min-width: 200px; }
.table .cell-prod b { display: block; font-weight: 650; font-size: 13.5px; }
.table .cell-prod small { display: block; font-size: 12px; }
.table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--violet); }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; flex-wrap: wrap; }
.pager { display: flex; gap: 6px; align-items: center; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--ink-2); text-decoration: none !important; font-weight: 600; font-size: 13px; padding: 0 8px; }
.pager .on { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager .gap { border: 0; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-card); min-width: 0; }
.stat .ic-tile { width: 36px; height: 36px; border-radius: 10px; }
.stat .v { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat .l { color: var(--ink-3); font-size: 12px; display: block; }
.stat.alert { border-color: var(--violet-line); background: var(--violet-wash); }
@media (min-width: 1000px) { .stat { padding: 18px 20px; gap: 16px; } .stat .ic-tile { width: 46px; height: 46px; border-radius: 12px; } .stat .v { font-size: 26px; } .stat .l { font-size: 13px; order: -1; margin-bottom: 4px; } .stat .body { display: flex; flex-direction: column; } }
.stat .delta { font-size: 11.5px; }

/* checklist (catalog unlock status, setup) */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li a, .checklist li > span { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--ink); text-decoration: none !important; font-size: 13.5px; }
.checklist .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.checklist li.done .mark { background: #22b469; border-color: #22b469; color: #fff; }
.checklist li.done .mark .i { width: 13px; height: 13px; stroke-width: 3; }
.checklist .chev { margin-left: auto; color: var(--ink-3); }
.progress { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--violet); border-radius: 4px; }

/* vertical numbered steps (how it works) */
.vsteps { list-style: none; padding: 0; margin: 0; position: relative; }
.vsteps li { display: grid; grid-template-columns: 26px 52px 1fr; gap: 12px; align-items: start; padding-bottom: 22px; position: relative; }
.vsteps li::before { content: ""; position: absolute; left: 12px; top: 30px; bottom: 0; width: 2px; background: var(--violet-soft); }
.vsteps li:last-child::before { display: none; }
.vsteps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 12px; }
.vsteps .ic-tile { width: 52px; height: 52px; border-radius: 50%; }
.vsteps b { display: block; font-size: 15px; margin-top: 4px; }
.vsteps p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.vsteps li.done .n { background: #22b469; }
/* step progress (onboarding) */
.steps { display: flex; gap: 6px; justify-content: center; }
.steps i { width: 48px; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--violet); }
.step-count { color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* ---------- app shell for seller & admin ---------- */
.shell { min-height: 100vh; }
.side { display: none; }
@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--canvas); }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--paper); border-right: 1px solid var(--line); padding: 20px 14px 14px; overflow-y: auto; }
}
.side .brand { padding: 0 8px 22px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 2px; border-radius: 10px; color: var(--ink-2); font-weight: 550; font-size: 14px; text-decoration: none; position: relative; }
.side nav a .i { width: 20px; height: 20px; color: var(--ink-3); }
.side nav a:hover { background: var(--sunken); color: var(--ink); }
.side nav a.on { background: var(--violet-wash); color: var(--violet-ink); font-weight: 650; }
.side nav a.on .i { color: var(--violet); }
.side nav a .dot-count { position: static; margin-left: auto; border: 0; }
.side nav a .dot { margin-left: auto; }
.side .group { font-size: 11.5px; color: var(--ink-3); font-weight: 650; padding: 16px 12px 6px; letter-spacing: .02em; }
.side .side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.side .shop-card { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 10px; color: var(--ink); text-decoration: none !important; }
.side .shop-card b { display: block; font-size: 13.5px; }
.side .shop-card small { display: block; font-size: 12px; }
.main-col { min-width: 0; }
.topbar-d { display: none; }
@media (min-width: 1000px) {
  .topbar-d { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 28px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .topbar-d .searchbox { width: 100%; max-width: 520px; height: 42px; border-radius: 10px; background: var(--paper); border-color: var(--line-strong); font-size: 14px; }
  .topbar-d .searchbox input { font-size: 14px; }
  .topbar-d .actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .appbar.m-only { display: none; }
}
.shop-switch { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.shop-switch select { border: 0; background: transparent; font: inherit; color: inherit; max-width: 180px; cursor: pointer; }
.me-chip { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; font-size: 13.5px; }
.me-chip b { display: block; font-size: 13.5px; }
.me-chip small { display: block; font-size: 12px; }
.page { padding: 4px var(--gutter) 28px; }
@media (min-width: 1000px) { .page { padding: 28px 28px 48px; max-width: 1400px; } }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 22px; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
@media (min-width: 1000px) { .page-head h1 { font-size: 28px; } }
.eyebrow { font-size: 12px; font-weight: 650; color: var(--ink-3); margin-bottom: 4px; }
.super-badge { background: var(--violet); color: #fff; font-size: 11px; font-weight: 750; padding: 4px 9px; border-radius: 7px; letter-spacing: .03em; }
/* split view: list + side panel (desktop orders / product edit) */
.split { display: grid; gap: 16px; }
@media (min-width: 1200px) { .split.with-panel { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .split .sidepanel { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.dash-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; }
.chart .ln { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linejoin: round; }
.chart .ar { fill: url(#chart-fill); }
.chart .pt { fill: var(--violet); stroke: #fff; stroke-width: 2; }

/* sheet / dialog */
dialog.sheet { border: 0; padding: 0; border-radius: var(--r-lg); max-width: 520px; width: calc(100% - 24px); box-shadow: var(--shadow-pop); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(22, 19, 45, .45); }
dialog.sheet .sheet-body { padding: 20px; }
@media (max-width: 640px) { dialog.sheet { margin: auto 0 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; max-height: 88vh; } dialog.sheet .sheet-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); } }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 6px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-decoration: none !important; cursor: pointer; text-align: left; }
.menu-list a:first-child { border-top: 0; }
.menu-list .i { color: var(--ink-2); }
.menu-list .chev { margin-left: auto; color: var(--ink-3); }
.menu-list .dot-count { position: static; margin-left: auto; border: 0; }

/* toast & flash */
.flash { padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 14px; font-weight: 600; font-size: var(--fs-sm); }
.flash.ok { background: var(--green-wash); color: var(--green); }
.flash.error { background: var(--red-wash); color: var(--red); }
.flash.info { background: var(--violet-wash); color: var(--violet-ink); }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); z-index: 99; display: none; max-width: calc(100% - 32px); }
#toast.show { display: block; }

/* empty states */
.empty { text-align: center; padding: 36px 20px; color: var(--ink-2); }
.empty .ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--violet-wash); color: var(--violet); display: grid; place-items: center; }
.empty .ic .i { width: 28px; height: 28px; }
.empty h3 { color: var(--ink); font-size: 16px; }
.empty p { max-width: 34ch; margin: 0 auto 14px; font-size: 13.5px; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--sunken) 0, #f8f7fb 50%, var(--sunken) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--r-xs); }
@keyframes sk { to { background-position: -200% 0; } }

/* photo uploader */
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photos:empty::before { content: ""; aspect-ratio: 1; } /* keeps the space before the photo tiles are drawn (no layout shift) */
@media (min-width: 700px) { .photos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--sunken); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(22,19,45,.75); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.photo .rm .i { width: 13px; height: 13px; stroke-width: 2.4; }
.photo .cover { position: absolute; left: 5px; bottom: 5px; font-size: 10.5px; padding: 2px 7px; }
.photo-add { aspect-ratio: 1; border-radius: var(--r-sm); border: 1.5px dashed var(--line-strong); background: var(--paper); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: 12px; cursor: pointer; text-align: center; }
.photo-add:hover { border-color: var(--violet); color: var(--violet); }
.photo-add input { display: none; }

/* variation editor */
.vmatrix .vrow { display: grid; grid-template-columns: 1fr 110px 80px 30px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.vmatrix .vrow:first-child { border-top: 0; }
.vmatrix .vlabel { font-weight: 600; font-size: var(--fs-sm); }
.vmatrix .vrow select.input { margin-top: 4px; max-width: 140px; }
@media (max-width: 520px) { .vmatrix .vrow { grid-template-columns: 1fr 96px 62px 26px; gap: 6px; } }
.opt-editor { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; background: #fcfbff; }
.opt-editor .chips .chip.on { background: var(--violet); }
.editor-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .editor-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .editor-grid > aside { position: sticky; top: 88px; } }
@media (max-width: 999px) {
  .sticky-save { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; border-radius: 0 !important; border-width: 1px 0 0 !important; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)) !important; box-shadow: 0 -6px 18px rgba(22,19,45,.06); display: flex; gap: 8px; align-items: center; }
  .sticky-save .btn { margin: 0 !important; flex: 1; min-height: 50px; font-size: var(--fs-lg); }
  .sticky-save .btn.primary { flex: 2; }
  .sticky-save #draft-state, .sticky-save .hide-m { display: none; }
  .editor-form, form.editor-grid { padding-bottom: 90px; }
  body.editing .tabbar { display: none; }
}

/* money / cost breakdown */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: var(--fs-sm); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
.price-breakdown .r, .breakdown .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; }
.price-breakdown .r.total, .breakdown .r.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: var(--fs-lg); }
.price-breakdown .r.total b:last-child { color: var(--violet); }
.breakdown .r span { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.breakdown .r b { font-variant-numeric: tabular-nums; }
.money-box { border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.money-box.violet { background: var(--violet-wash); color: var(--violet-ink); }
.money-box.green { background: var(--green-wash); color: var(--green); }
.money-box .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.money-box .lbl { font-weight: 750; font-size: 13px; letter-spacing: .02em; }
.profit-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.profit-strip > div { background: var(--paper); padding: 10px 12px; }
.profit-strip small { display: block; font-size: 11.5px; }
.profit-strip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.profit-strip .pos b { color: var(--green); }
.profit-strip .neg b { color: var(--red); }

/* misc */
.center { text-align: center; }
.right { text-align: right; }
.mt0 { margin-top: 0 !important; } .mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0 !important; } .mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.hide { display: none !important; }
@media (max-width: 999px) { .desktop-only { display: none !important; } }
@media (min-width: 1000px) { .mobile-only { display: none !important; } }
.qr { width: 220px; height: 220px; background: #fff; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line); }
.qr-box svg { width: 200px; height: 200px; margin: 0 auto; }
.copy-field { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 4px 4px 4px 14px; background: var(--paper); }
.copy-field .input { border: 0; padding: 0; min-height: 40px; font-size: 14px; box-shadow: none !important; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); text-decoration: none !important; border: 0; background: none; font-family: inherit; cursor: pointer; }
.share-grid .ic { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: var(--paper); }
.footer { padding: 32px 0 40px; color: var(--ink-3); font-size: var(--fs-sm); border-top: 1px solid var(--line); background: var(--paper); }
.footer a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.auth-card { max-width: 440px; margin: 28px auto; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.steps-list { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 18px; }
.steps-list li { color: var(--ink-2); }
.steps-list b { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 550; }
.ticks .i { color: var(--violet); margin-top: 2px; }
details.panel > summary, details.card > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.next-step { border: 1.5px solid var(--violet-line); box-shadow: 0 0 0 4px var(--violet-wash); }
.next-step h2 { font-size: var(--fs-lg); display: flex; gap: 8px; align-items: center; }
.cat-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- buyer home ---------- */
.home-top { padding-top: 6px; padding-bottom: 4px; }
/* ---------- home (2.2.2): desktop storefront hero + mobile discover ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 10px; }
.hero-main { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #f1ecfe; min-height: 400px; display: flex; align-items: center; }
.hero-main .hero-img { position: absolute; inset: 0 0 0 38%; }
.hero-main .hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero-main .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(241,236,254,1) 0%, rgba(241,236,254,.7) 24%, rgba(241,236,254,0) 52%); }
.hero-in { position: relative; padding: 34px 40px; max-width: 600px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.8); color: var(--violet-ink); font-size: 12.5px; font-weight: 650; }
.hero-title { font-size: 40px; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 10px; max-width: 15ch; }
.hero-sub { color: var(--ink-2); font-size: 16.5px; margin: 0 0 18px; max-width: 36ch; }
.hero-search { height: 52px; max-width: 520px; box-shadow: 0 6px 18px rgba(22,19,45,.08); }
.hero-search .btn { height: 40px; margin-right: -10px; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 20px; font-size: 12.5px; color: var(--ink-2); }
.hero-chips span { font-weight: 600; margin-right: 2px; }
.hero-chips a { padding: 4px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--ink); font-weight: 550; text-decoration: none !important; }
.hero-chips a:hover { border-color: var(--violet-line); color: var(--violet-ink); }
.hero-acts { display: grid; grid-template-columns: repeat(3, max-content); gap: 10px; }
.hero-acts a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; background: rgba(255,255,255,.94); border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: 0 6px 18px rgba(40,22,96,.10); transition: transform .15s ease, box-shadow .15s ease; }
.hero-acts a:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(40,22,96,.16); }
.hero-acts .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; box-shadow: var(--shadow-cta); flex: none; }
.hero-acts .ic.green { background: #1f9d63; box-shadow: 0 8px 20px rgba(31,157,99,.25); }
.hero-acts .ic.amber { background: #f08a1c; box-shadow: 0 8px 20px rgba(240,138,28,.25); }
.hero-acts b { display: block; font-size: 15px; line-height: 1.2; }
.hero-acts small { display: block; color: var(--ink-3); font-size: 12px; }
.hero-side { display: grid; gap: 16px; }
.side-card { position: relative; display: flex; align-items: stretch; border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none !important; border: 1px solid var(--line); min-height: 192px; }
.side-card .txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; max-width: 62%; }
.side-card b { font-size: 21px; line-height: 1.15; letter-spacing: -.015em; }
.side-card small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.side-card .btn { align-self: flex-start; margin-top: auto; }
.side-card.seller { background: linear-gradient(135deg, #fff4e8 0%, #ffe9d4 100%); border-color: #fbdcbc; }
.side-card.seller .img { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; }
.side-card.seller .img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.side-card.drop { background: linear-gradient(135deg, #eef3ff 0%, #e3ebff 100%); border-color: #d3defb; }
.side-card.drop .art { position: absolute; right: 14px; bottom: 14px; width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 10px 24px rgba(43,95,217,.16); transform: rotate(-6deg); }
.side-card.drop .art .i { width: 54px; height: 54px; stroke-width: 1.4; }
.side-card:hover { box-shadow: var(--shadow-pop); }
.cat-circles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 10px; }
.cat-circles a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 550; line-height: 1.25; color: var(--ink); text-decoration: none !important; }
.cat-circles .ph { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--violet-wash); display: grid; place-items: center; color: var(--violet); box-shadow: inset 0 0 0 1px rgba(22,19,45,.05); transition: transform .15s; }
.cat-circles .ph img { width: 100%; height: 100%; object-fit: cover; }
.cat-circles .ph.more { background: var(--sunken); color: var(--ink-2); }
.cat-circles a:hover .ph { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--violet-soft); }
.promo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promo { position: relative; display: flex; min-height: 170px; border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none !important; border: 1px solid var(--line); }
.promo .txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px; max-width: 58%; }
.promo b { font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.promo small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.promo .go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); color: #fff; font-weight: 650; font-size: 13px; }
.promo .img { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; }
.promo .img img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.promo.violet { background: var(--violet-wash); border-color: var(--violet-soft); } .promo.violet b { color: var(--violet-ink); } .promo.violet .go { background: var(--violet); }
.promo.amber { background: #fff3e6; border-color: #fbe0c2; } .promo.amber b { color: #b4510a; } .promo.amber .go { background: #e5761a; }
.promo.blue { background: var(--blue-wash); border-color: #d3defb; } .promo.blue b { color: #2148b8; } .promo.blue .go { background: var(--blue); }
.promo:hover { box-shadow: var(--shadow-pop); }
.fshops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fshop { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none !important; }
.fshop .cover { aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--violet-wash), #eef1fb); }
.fshop .cover img { width: 100%; height: 100%; object-fit: cover; }
.fshop .body { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; }
.fshop .logo { flex: none; width: 40px; height: 40px; margin-top: -26px; border-radius: 50%; overflow: hidden; border: 2.5px solid #fff; background: var(--violet-wash); color: var(--violet-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: 0 2px 6px rgba(22,19,45,.12); }
.fshop .logo img { width: 100%; height: 100%; object-fit: cover; }
.fshop .meta { min-width: 0; }
.fshop b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fshop small { display: flex; align-items: center; gap: 3px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fshop .star { color: var(--star, #f5a524); display: inline-flex; }
.fshop .star .i { fill: currentColor; stroke: currentColor; }
.fshop:hover { box-shadow: var(--shadow-pop); }
.sell-strip { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(120deg, var(--violet) 0%, #8a5cf5 100%); color: #fff; text-decoration: none !important; box-shadow: var(--shadow-cta); }
.sell-strip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); flex: none; }
.sell-strip .txt { flex: 1; min-width: 0; }
.sell-strip b { display: block; font-size: 15px; }
.sell-strip small { display: block; color: rgba(255,255,255,.9); font-size: 12.5px; }
.sell-strip .go { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: var(--r-pill); background: #fff; color: var(--violet-ink); font-weight: 700; font-size: 13px; }
@media (max-width: 999px) { .fshops { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; } .fshops::-webkit-scrollbar { display: none; } .fshop { flex: 0 0 220px; } }
@media (min-width: 1000px) and (max-width: 1239px) { .home-hero { grid-template-columns: minmax(0, 1fr) 300px; } .hero-title { font-size: 34px; } .cat-circles { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; } .fshops { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fshop:nth-child(n+9) { display: none; } }
.sell-band { display: grid; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--violet); color: #fff; }
.sell-band .img { min-height: 180px; background: #5a2fe0; }
.sell-band .img img { width: 100%; height: 100%; object-fit: cover; }
.sell-in { padding: 24px 22px 26px; }
.sell-in h2 { color: #fff; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.sell-in p { color: #e4dcff; }
.sell-in .ticks li { color: #fff; }
.sell-in .ticks .i { color: #c9b8ff; }
.sell-in .btn.light { background: #fff; color: var(--violet-ink); border-color: #fff; }
@media (min-width: 760px) { .sell-band:has(.img) { grid-template-columns: 1fr 1.1fr; } .sell-in { padding: 36px 40px; } .sell-in h2 { font-size: 30px; } }
.loc-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none !important; }
.loc-pick .i { color: var(--violet); }
.loc-pick small { display: block; font-size: 11.5px; line-height: 1.1; }
.loc-pick b { display: block; font-size: 14px; line-height: 1.2; }

/* buyer desktop header */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.topbar .searchbox { flex: 1; max-width: 560px; }
.topbar .top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar nav.cats-nav { display: flex; gap: 20px; font-weight: 600; font-size: 14px; }
.topbar nav.cats-nav a { color: var(--ink-2); }

/* poster */
/* QR poster page (seller/share?poster=1): a toolbar on screen, only the sheet on paper */
.poster-page { background: var(--canvas); }
.poster-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.poster-sizes { display: flex; gap: 6px; }
.poster-tip { max-width: 520px; margin: 12px auto 0; padding: 0 16px; text-align: center; color: var(--ink-2); font-size: var(--fs-sm); }
.sheet { width: min(100% - 32px, 520px); margin: 16px auto 32px; aspect-ratio: 210 / 297; background: #fff; box-shadow: var(--shadow-pop); container-type: inline-size; overflow: hidden; }
.sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
.poster { box-sizing: border-box; margin: 4cqw; height: calc(100% - 8cqw); border: .5cqw solid var(--violet); border-radius: 3.5cqw; padding: 4cqw 6cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.poster h1 { font-size: 8cqw; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.poster-tag { font-size: 3cqw; color: var(--ink-2); margin: 1.2cqw 0 0; }
.poster-panel { flex: 1; width: 100%; margin-top: 3cqw; background: var(--violet); color: #fff; border-radius: 4cqw; padding: 3cqw; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2cqw; }
.poster-head { font-size: 6.4cqw; font-weight: 800; }
.poster-qr { background: #fff; border-radius: 2.5cqw; padding: 2cqw; }
.poster-qr svg { display: block; width: 46cqw; height: 46cqw; }
.poster-panel span { font-size: 2.9cqw; }
.poster-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; width: 100%; margin: 3cqw 0 0; padding: 0; counter-reset: s; }
.poster-steps li { font-size: 2.5cqw; counter-increment: s; }
.poster-steps li::before { content: counter(s); display: block; margin: 0 auto 1cqw; width: 5cqw; height: 5cqw; line-height: 5cqw; border-radius: 50%; background: var(--violet-wash); color: var(--violet-ink); font-weight: 800; }
.poster-link { font-size: 3.8cqw; font-weight: 800; color: var(--violet-ink); margin: 2.5cqw 0 0; word-break: break-all; }
.poster-foot { font-size: 2cqw; color: var(--ink-3); margin: 1cqw 0 0; }
@media print {
  .no-print { display: none !important; }
  .poster-page { background: #fff; }
  .poster-page .sheet { width: 100vw; height: 100vh; margin: 0; box-shadow: none; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Share page: poster card and "how people found you" */
.poster-card { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.poster-thumb { display: block; width: 112px; aspect-ratio: 210 / 297; border-radius: 8px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.poster-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.src-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.src-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sunken); font-size: var(--fs-md); }
.src-list b { font-variant-numeric: tabular-nums; }
/* inside the Android app */
.in-app .footer .lang-link { display: none; }
.in-app body { -webkit-tap-highlight-color: transparent; }
.icon-btn .dot-count { top: 4px; left: 23px; right: auto; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
/* small popover menu (kebab) */
details.pop { position: relative; display: inline-block; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 200px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 6px; text-align: left; }
.pop-menu a, .pop-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--ink); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.pop-menu a:hover, .pop-menu button:hover { background: var(--sunken); }
.pop-menu .danger { color: var(--red); }
.pop-menu form { margin: 0; }
.pcard .kebab { position: absolute; right: 4px; bottom: 8px; }
.pcard .kebab .pop-menu { bottom: calc(100% + 4px); top: auto; }
.pcard a.ph { display: block; }
.tabbar a .dot-count { top: 6px; left: calc(50% + 5px); right: auto; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
select.input.sm { padding-right: 30px; background-position: right 8px center; }
@media (min-width: 1000px) { .shell { background: linear-gradient(90deg, var(--paper) 239px, var(--line) 239px, var(--line) 240px, var(--canvas) 240px); } }
.split > *, .dash-grid > *, .editor-grid > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.ocards > *, .stack > *, .products > *, .cat-cards > * { min-width: 0; }
.ocard .foot { flex-wrap: wrap; } .ocard .foot .row { flex-wrap: wrap; justify-content: flex-end; }
.hours-row { display: grid; grid-template-columns: 84px minmax(0,1fr) auto minmax(0,1fr); gap: 6px; align-items: center; } .hours-row .input { min-width: 0; }
.chat-card { display: flex; flex-direction: column; }
.chat-card .chat-scroll { height: min(62vh, 600px); overflow-y: auto; }
@media (max-width: 999px) {
  body.chatting .page { padding: 0; }
  body.chatting .chat-card { border: 0; border-radius: 0; box-shadow: none; min-height: calc(100dvh - 60px); }
  body.chatting .chat-card .chat-scroll { height: auto; flex: 1; overflow: visible; }
  body.chatting .chat-card .composer { position: sticky; bottom: 0; }
  body.chatting .chat-card .quick { position: sticky; bottom: 66px; background: var(--paper); }
}
.hours-row input[type=time] { width: 100%; max-width: 100%; padding: 4px 6px; font-size: 13px; overflow: hidden; -webkit-appearance: none; appearance: none; }
.shop-actions { gap: 8px; } .shop-actions .btn { padding: 0 10px; font-size: 14px; } .shop-actions .icon-btn { flex: none; }
.nitem .grow .when { display: block; margin-top: 1px; }
.chat-wrap { padding-top: 12px; padding-bottom: 16px; }
@media (max-width: 999px) {
  body.chatting .chat-wrap { padding: 0; }
  body.chatting main .chat-card { border: 0; border-radius: 0; box-shadow: none; min-height: calc(100dvh - 60px); }
  body.chatting main .chat-card .chat-scroll { height: auto; flex: 1; overflow: visible; }
  body.chatting main .chat-card .composer { position: sticky; bottom: 0; }
  body.chatting main .chat-card .quick { position: sticky; bottom: 66px; background: var(--paper); }
}
/* link tiles (account shortcuts) */
.todo { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-card); }
.todo .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet); flex: none; }
.todo:hover { border-color: var(--line-strong); }
.btn.two-line { white-space: normal; justify-content: flex-start; min-height: 56px; }
.btn.two-line > span { min-width: 0; }
.super-badge { white-space: nowrap; font-size: 10px; padding: 3px 7px; }
.side .brand { flex-wrap: wrap; row-gap: 6px; }
@media (min-width: 1000px) and (max-width: 1500px) { .admin-shell .dash-grid { grid-template-columns: minmax(0, 1fr) 300px; } }

/* seller: dropshipping product prices */
.cat-open-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.cat-open-head .thumb { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--sunken); overflow: hidden; flex: none; }
.cat-open-head .thumb img { width: 100%; height: 100%; object-fit: cover; }
.var-prices { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.vp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 90px minmax(190px, 1fr) 100px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); margin: 0; }
.vp-row:first-child { border-top: 0; }
.vp-head { background: var(--sunken); font-size: 12.5px; color: var(--ink-3); font-weight: 650; padding: 8px 14px; }
.vp-label { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: 14px; }
.vp-label img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.vp-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.vp-profit b { color: var(--green); }
.vp-profit.neg b { color: var(--red); }
.vp-k { display: none; }
@media (max-width: 759px) {
  .vp-head { display: none; }
  .vp-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .vp-label { grid-column: 1 / -1; }
  .vp-row .num { text-align: left; }
  .vp-price { grid-column: 1 / -1; order: 3; }
  .vp-k { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
}
.mini-profit { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.mini-profit b { color: var(--ink-2); font-weight: 650; }
.mini-profit .pos b { color: var(--green); }
.mini-profit .neg b { color: var(--red); }
.auto-head h1 { font-size: 22px; }
@media (max-width: 999px) { .auto-head h1 { display: none; } .auto-head p { margin: 0; font-size: 13.5px; } }
.table td.empty-cell { text-align: center; color: var(--ink-3); padding: 36px 12px; }
.table td.empty-cell .i { display: block; margin: 0 auto 8px; width: 28px; height: 28px; color: var(--ink-4, #b4b0c8); }
.bubble.bot { white-space: normal; } .bubble.bot p { margin: 0 0 8px; } .bubble.bot p:last-child, .bubble.bot ul:last-child { margin-bottom: 0; } .bubble.bot ul, .bubble.bot ol { margin: 0 0 8px; padding-left: 20px; }
.table.compact th, .table.compact td { padding: 10px 8px; font-size: 13px; } .table.compact .badge { white-space: nowrap; }

/* ---------- 2.2: ratings, follows, saved, presence (mockups 02–05) ---------- */
:root { --star: #f5a524; }
.i.star-fill { fill: var(--star); stroke: var(--star); }
.i.star-half { fill: var(--star); stroke: var(--star); opacity: .55; }
.i.star-empty { stroke: #d6d3e3; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink); text-decoration: none !important; }
.stars-inline.sm { font-size: 12.5px; }
.stars-inline b { font-weight: 650; }
.rating-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; margin: 6px 0 4px; }
.rating-row .muted .i { vertical-align: -2px; }
.verified { color: var(--violet); display: inline-flex; margin-left: 2px; }
.verified .i { fill: var(--violet); stroke: #fff; }
.presence { display: inline-flex; align-items: center; gap: 6px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.opt-label .opt-name { font-weight: 650; }
.opt-label .opt-val { font-weight: 500; color: var(--ink-2); }
.fav-btn .i { transition: transform .15s; }
.fav-btn.on { color: var(--red); }
.fav-btn.on .i { fill: var(--red); stroke: var(--red); }
.fav-btn:active .i { transform: scale(.85); }
.cta-bar #go-cart { position: relative; }
.cta-bar #go-cart .dot-count { top: -6px; right: -6px; }
.cta-bar #add-btn { gap: 8px; }

/* gallery with a vertical thumbnail strip (mockup 04 · product detail) */
@media (max-width: 859px) {
  .gallery.has-thumbs { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; align-items: start; }
  .gallery.has-thumbs .main { grid-column: 1; grid-row: 1; }
  .gallery.has-thumbs .thumbs { grid-column: 2; grid-row: 1; flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: 0 var(--gutter) 0 0 !important; max-height: 100%; }
  .gallery.has-thumbs.edge { margin-right: 0; }
  .gallery.has-thumbs .thumbs button { width: 58px; height: 58px; }
}

/* seller card on product pages */
.seller-card .avatar.lg { width: 56px; height: 56px; font-size: 18px; border: 0; background: var(--sunken); }
.seller-card .meta-row { margin-top: 2px; }

/* reviews */
.reviews-empty { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink-2); }
.reviews-empty > .i { color: var(--star); width: 26px; height: 26px; }
.review-summary { display: flex; gap: 24px; align-items: center; margin-bottom: 8px; }
.review-summary .big { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.review-summary .big b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.review-summary .bars { flex: 1; display: grid; gap: 4px; min-width: 0; }
.bar-row { display: grid; grid-template-columns: 10px 14px minmax(0, 1fr) 28px; gap: 6px; align-items: center; font-size: 12px; }
.bar-row i { height: 6px; background: var(--sunken); border-radius: 3px; overflow: hidden; display: block; }
.bar-row i b { display: block; height: 100%; background: var(--star); border-radius: 3px; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.seller-reply { margin-top: 8px; padding: 10px 12px; background: var(--sunken); border-radius: 10px; font-size: 13.5px; }
.seller-reply b { font-size: 12.5px; color: var(--ink-2); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; color: #d6d3e3; }
.star-input label .i { width: 30px; height: 30px; }
.star-input input:checked ~ label .i, .star-input label:hover .i, .star-input label:hover ~ label .i { fill: var(--star); stroke: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
/* product card as a container: the link and the heart are siblings */
div.pcard { position: relative; }
.pcard-in { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none !important; min-width: 0; }
.pcard .fav { z-index: 2; border: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(22,19,45,.12); }
.pcard .stars-line .i { flex: none; }
.pcard .stars-line { color: var(--ink-2); }
/* shop header (mockup 04 · seller shop) */
.shop-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.shop-title h1 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.follow-btn { border-color: var(--violet); color: var(--violet); }
.follow-btn.on, [data-follow].btn.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.follow-li[aria-pressed="true"] .i { color: var(--red); fill: var(--red); }
.menu-list button:first-child { border-top: 0; }
.reviews-card .review-summary { margin-bottom: 4px; }
.rate-item { padding: 12px 0; border-top: 1px solid var(--line); }
.rate-item:first-of-type { border-top: 0; padding-top: 0; }
.star-input { border: 0; padding: 0; margin: 0; }
.follow-pill { min-width: 78px; border-radius: 999px; }
.follow-pill.on { background: var(--violet-wash); color: var(--violet-ink); border-color: var(--violet-wash); }
.shop-id { align-items: flex-end; }
.shop-id-text { min-width: 0; padding-bottom: 4px; flex: 1; }
.shop-id-text h1 { margin: 0 0 2px; font-size: 21px; display: flex; align-items: center; gap: 6px; }
.shop-id .follow-btn { margin-bottom: 6px; }
@media (max-width: 599px) { .shop-id .avatar.lg { width: 76px; height: 76px; font-size: 26px; } .shop-id-text h1 { font-size: 19px; } }
.pay-marks { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.pay-mark { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--ink-2); }
.pay-mark.gcash { color: #0a5bd6; }
.pay-mark.gcash i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #0a5bd6; color: #fff; font-size: 12px; }
.pay-mark.maya { color: #079f5a; font-size: 17px; font-weight: 850; letter-spacing: -.03em; }
.pay-mark.bank { color: #1c3f8f; font-size: 12.5px; font-weight: 700; }
.pay-mark.cod { color: var(--green); font-size: 13px; }
/* chat headers: avatar, name and presence (mockups 03 · 05) */
.bar-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-who .avatar { width: 36px; height: 36px; font-size: 13px; position: relative; overflow: visible; }
.bar-who .avatar img { border-radius: 50%; }
.bar-who .avatar.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--paper); }
.bar-who .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bar-who .who b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-who .who small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.shop-id { align-items: flex-start; }
.shop-id-text { padding-top: 48px; }
@media (max-width: 599px) { .shop-id-text { padding-top: 46px; } }
[data-follow].btn.follow-pill.on { background: var(--violet-wash); color: var(--violet-ink); border-color: var(--violet-wash); }
/* desktop dashboard cards (mockup 06): label, number, change vs last week */
.stats-wide .stat .body { display: flex; flex-direction: column; gap: 2px; }
.stats-wide .stat .l { order: 0; font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
.stats-wide .stat .v { order: 1; font-size: 26px; }
.stats-wide .stat .vs { order: 2; font-size: 12.5px; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; }
.stats-wide .stat .vs b { color: var(--green); font-weight: 650; display: inline-flex; align-items: center; gap: 2px; }
.stats-wide .stat .vs.down b { color: var(--red); }
.badge.violet .i, .badge.green .i { vertical-align: -2px; }
.post-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 10px; font-size: 14px; }
.bar-row.wide { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 32px; font-size: 13px; margin-bottom: 8px; }
.bar-row.wide i b { background: var(--violet); }
.kpi-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .kpi-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dash-grid aside .card-head .card-title h3 { white-space: nowrap; }
.dash-grid aside .card-head .badge { font-size: 11px; padding: 3px 8px; flex: none; }

/* ===== 2.2 product manager + side panel (mockup 07), editor chips (mockups 01/07) ===== */
.pm-toolbar { display: flex; gap: 8px; align-items: center; }
.pm-toolbar .searchbox { min-width: 0; }
@media (min-width: 1000px) {
  .pm-tabs.tabs.fill a { flex: 0 0 auto; padding-left: 4px; padding-right: 4px; margin-right: 22px; }
  .pm-toolbar { gap: 10px; flex-wrap: wrap; }
  .pm-toolbar .seg { flex: 0 1 auto; }
  .pm-toolbar .pm-cat { width: auto; min-width: 150px; max-width: 220px; min-height: 36px; height: 36px; padding: 0 30px 0 12px; font-size: 13px; font-weight: 600; border-radius: 10px; }
  .pm-toolbar .searchbox.boxed { flex: 1 1 200px; max-width: 280px; height: 36px; border-radius: 10px; margin-left: auto; }
  .pm-toolbar .searchbox input { font-size: 13px; }
}
.pm-table tbody tr[data-row-panel] { cursor: pointer; }
.pm-table tbody tr:hover td { background: #faf9ff; }
.pm-table tbody tr.on td, .pm-table tbody tr:has(input[name="ids[]"]:checked) td { background: var(--violet-wash); }
.pm-table .cell-prod { color: inherit; text-decoration: none !important; }
.pm-table .cell-img { width: 44px; height: 44px; border-radius: 8px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); background: #faf9ff; font-size: 13px; }
.bulk-bar b:empty { display: none; }
#bulk:not(:has(input[name="ids[]"]:checked)) .bulk-bar { display: none; }
.pm-foot { display: grid; grid-template-columns: 1fr auto 1fr; }
.pm-foot > :last-child { justify-self: end; }
.pm-foot .pager { justify-self: center; }
.per-page { width: auto; min-height: 34px; height: 34px; padding: 0 30px 0 10px; font-size: 13px; }
.dock { display: none; }
@media (min-width: 1000px) {
  .dock:not([hidden]) { display: block; position: fixed; top: 68px; right: 0; bottom: 0; width: min(440px, 36vw); z-index: 25; background: var(--paper); border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(22,19,45,.06); }
  .dock iframe { width: 100%; height: 100%; border: 0; display: block; }
  body.dock-open .pm-toolbar .searchbox.boxed { max-width: 200px; }
}
/* wide screens: the list moves aside for the panel; smaller laptops: the panel floats over the list */
@media (min-width: 1280px) { body.dock-open .page { margin-right: min(440px, 36vw); max-width: none; } }
@media (min-width: 1000px) and (max-width: 1279px) { .dock:not([hidden]) { width: 420px; box-shadow: -18px 0 40px rgba(22,19,45,.16); } }
/* inside the panel */
body.panel-body { background: var(--paper); }
.panel-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.panel-head h1 { margin: 0; font-size: 18px; font-weight: 700; }
.panel-main { padding: 0 20px; }
.panel-main .flashes, .panel-main > .note { margin-top: 12px; }
.pe-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pe-block h3 { font-size: 14px; font-weight: 700; }
.pe-block .field:last-child { margin-bottom: 0; }
.in-panel .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.in-panel .photo .cover { font-size: 9.5px; }
.pe-more summary { cursor: pointer; list-style: none; }
.pe-more summary::-webkit-details-marker { display: none; }
.pe-more[open] > summary .i { transform: rotate(180deg); }
.panel-foot { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 -20px; padding: 12px 20px; background: var(--paper); border-top: 1px solid var(--line); }
.panel-foot .btn { min-height: 44px; }
.link-btn.danger { color: var(--red); }
/* fields: required mark and character counters */
.field .req { color: var(--red); font-style: normal; font-weight: 700; }
.field .field-count, .field-count { display: block; font-weight: 500; text-align: right; font-size: 11.5px; color: var(--ink-3); margin: 4px 0 0; min-height: 14px; }
/* variations as chips */
.opt-group { margin-bottom: 14px; }
.opt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.opt-title { font-size: 13.5px; font-weight: 650; flex: 1; }
.opt-head .icon-btn.sm { width: 32px; height: 32px; color: var(--ink-3); }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.vchip.is-color { padding-left: 6px; }
.vchip .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(22,19,45,.18); flex: none; }
.vchip .sw.none { background: conic-gradient(#f2a7c3, #f4cf3a, #a8e6cf, #87c4ee, #c9b6f2, #f2a7c3); }
.vchip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--sunken); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.vchip button:hover { background: var(--violet-wash); color: var(--violet); }
.vchip.add { padding: 0; border-style: dashed; }
.vchip.add input { width: 128px; height: 100%; border: 0; background: none; padding: 0 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); border-radius: 999px; }
.vchip.add input::placeholder { color: var(--violet); opacity: 1; }
.vchip.add:focus-within { border-color: var(--violet); border-style: solid; }
.vchip.add input:focus { outline: none; }
#opt-presets .btn[hidden] { display: none; }
/* phone editor reads as one flat form, as in mockup 01 */
@media (max-width: 999px) {
  body.editing { background: var(--paper); }
  body.editing .editor-grid > .stack > .card, body.editing .editor-grid > aside > .card:not(.sticky-save) { border: 0; border-radius: 0; box-shadow: none; padding: 4px 0 16px; background: none; }
  body.editing .editor-grid > .stack > details.card, body.editing .editor-grid > aside > details.card { border-top: 1px solid var(--line); padding-top: 14px; }
  body.editing .editor-grid { gap: 6px; }
}
/* the panel is a narrow frame: use desktop-sized controls even though it is under 1000px wide */
body.panel-body { font-size: 14px; }
.panel-body .input, .panel-body select.input, .panel-body textarea.input { min-height: 40px; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.panel-body textarea.input { min-height: 96px; }
.panel-body .input-prefix > span { font-size: 13px; }
.panel-body .field > span:first-child { font-size: 13px; }
.panel-body .hint { font-size: 12px; }
.panel-body .btn.lg { min-height: 42px; font-size: 14.5px; }
.panel-body .vmatrix .input { min-height: 36px; }
.panel-body .note { font-size: 13px; }
.panel-body .flashes { margin-top: 12px; }
.pm-table td:nth-child(4) { white-space: nowrap; }
body.dock-open .page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
/* order list: card link covers the card; order panel docked right (mockup 07) */
.ocard { position: relative; }
.ocard .stretch { color: inherit; text-decoration: none !important; }
.ocard .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ocard .pop, .ocard .oh .row { position: relative; z-index: 2; }
.ocard .oh .pop summary.icon-btn { width: 28px; height: 28px; margin-right: -6px; }
.filter-note { font-size: 13.5px; color: var(--ink-2); }
.filter-note a { font-weight: 600; }
@media (min-width: 1000px) {
  .order-dock:not([hidden]) { display: flex; flex-direction: column; }
  .order-dock .od-scroll { flex: 1; overflow-y: auto; }
  .order-dock .panel-head { align-items: flex-start; }
  .order-dock .od-sec { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .order-dock .od-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .order-dock .od-2 > div + div { border-left: 1px solid var(--line); padding-left: 12px; }
  .order-dock .od-chat summary { cursor: pointer; list-style: none; }
  .order-dock .od-chat summary::-webkit-details-marker { display: none; }
  .order-dock .od-chat[open] summary .i { transform: rotate(180deg); }
  .order-dock .od-chat .chat { max-height: 260px; overflow-y: auto; }
  .order-dock .od-compose { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
  .order-dock .od-compose .input { min-height: 40px; font-size: 14px; border-radius: 999px; padding: 8px 16px; }
  .order-dock .od-compose .send { width: 40px; height: 40px; border-radius: 12px; background: var(--violet); color: #fff; flex: none; }
  body.dock-open .seg { flex-wrap: wrap; }
}
.table td.nowrap { white-space: nowrap; }
@media (min-width: 1000px) { body.dock-open .pm-table th, body.dock-open .pm-table td { padding-left: 8px; padding-right: 8px; } body.dock-open .pm-table td { font-size: 13px; } }
/* admin pricing controls (mockup 08) */
.src-radios { display: flex; align-items: center; gap: 14px; font-size: 13.5px; flex-wrap: wrap; }
.src-radio { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; text-decoration: none !important; }
.src-radio .dot-r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); display: inline-block; }
.src-radio.on .dot-r { border-color: var(--violet); box-shadow: inset 0 0 0 3px var(--paper); background: var(--violet); }
.src-radio.off { color: var(--ink-3); cursor: not-allowed; }
a.src-radio:hover .dot-r { border-color: var(--violet); }
.pr-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 128px; gap: 12px; align-items: end; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--violet); pointer-events: none; }
.input-icon .input { padding-left: 36px; }
.qty-step { display: grid; grid-template-columns: 38px 1fr 38px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--paper); }
.qty-step button { border: 0; background: var(--sunken); font-size: 18px; cursor: pointer; color: var(--ink); }
.qty-step input { border: 0; text-align: center; font: inherit; font-weight: 600; min-width: 0; }
.filter-select { position: relative; display: inline-flex; align-items: center; }
.filter-select > .i { position: absolute; left: 10px; pointer-events: none; color: var(--ink-2); }
.filter-select select.input { padding-left: 32px; width: auto; }
.steps-list { padding-left: 20px; margin: 8px 0 12px; } .steps-list li { margin-bottom: 8px; }
@media (min-width: 1200px) { .pr-top.grid-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.pr-table th, .pr-table td { padding-left: 8px; padding-right: 8px; }
.pr-table td { font-size: 13px; }
.pr-table .cell-prod { min-width: 180px; }
.btn.two-line .sub { white-space: nowrap; }
/* notifications (mockup 03): flat list on phones, tabs fill the width */
@media (max-width: 999px) {
  .tabs.fill-m a { flex: 1; text-align: center; }
  .nlist.card { border: 0; box-shadow: none; background: none; padding: 0 !important; }
  .nlist .nitem .ic-tile { background: var(--sunken); }
}
.nitem .side-mark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-top: 22px; }
.ask-chip { justify-content: center; white-space: normal; text-align: center; min-height: 40px; font-weight: 600; font-size: 13.5px; border-radius: 12px; }
.appbar .title.bar-who { justify-content: flex-start; text-align: left; }
.bar-who .who { align-items: flex-start; text-align: left; }
/* dashboard: the "needs attention" notes sit in one compact row on desktop (keeps mockup 06's layout) */
@media (min-width: 1000px) {
  .dash-attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
  .dash-attn .note { padding: 10px 14px; font-size: 12.5px; line-height: 1.4; align-items: center; margin: 0; }
  .dash-attn .note b { font-size: 13px; }
}
@media (min-width: 1000px) and (max-width: 1599px) { body.dock-open .pm-table .col-opt { display: none; } }
.order-dock .panel-head .row { flex-wrap: wrap; }
.order-dock .panel-head small, .order-dock .panel-head .link-btn { white-space: nowrap; }

.nowrap { white-space: nowrap; }

/* ---------- sign-in pages (2.2.2): same look as the app Welcome ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 8px 4px 24px; }
.auth h1 { font-size: 28px; letter-spacing: -.02em; margin: 6px 0 4px; }
.auth > p.muted { margin: 0 0 22px; font-size: 15px; }
.auth-mark { display: flex; justify-content: center; margin: 4px 0 18px; }
.auth-logo { width: 76px; height: 76px; }
.auth .auth-mark + h1, .auth .auth-mark ~ p.muted { text-align: center; }
.input.lg { min-height: 52px; font-size: 15.5px; border-radius: var(--r-sm); }
.input-icon.pass > .input { padding-right: 46px; }
.input-icon .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.input-icon .eye:hover, .input-icon .eye[aria-pressed="true"] { color: var(--violet); background: var(--violet-wash); }
.auth .btn.lg { min-height: 52px; font-size: 16px; }
@media (min-width: 1000px) { .auth { margin-top: 24px; padding: 32px 36px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); } }

/* ---------- 2.3 landing page (home): for people who want to open a shop ---------- */
.lp { background: var(--paper); }
.lp-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.lp-top .wrap { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.lp-top .brand { margin-right: auto; }
.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav .btn { min-height: 40px; padding: 0 12px; }
.lp-lang { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); padding: 8px; border-radius: 10px; }
.lp-lang:hover { background: var(--sunken); text-decoration: none; }
@media (max-width: 759px) { .lp-top-cta { display: none !important; } .lp-lang span { display: none; } }
.lp-hero { background: linear-gradient(180deg, var(--violet-wash), var(--paper)); padding: 28px 0 8px; }
.lp-hero-in { display: grid; gap: 22px; align-items: center; }
.lp-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 650; color: var(--violet-ink); background: var(--paper); border: 1px solid var(--violet-line); border-radius: var(--r-pill); padding: 4px 12px; margin: 0 0 14px; }
.lp-copy h1 { font-size: 36px; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 12px; max-width: 14ch; }
.lp-copy h1 span { color: var(--violet); white-space: nowrap; }
.lp-sub { font-size: 17px; color: var(--ink-2); line-height: 1.5; max-width: 40ch; margin: 0 0 20px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-cta .btn { flex: 1 1 200px; }
.lp-fine { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: var(--fs-sm); margin: 14px 0 0; }
.lp-fine .i { color: var(--green); }
.lp-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--violet-soft); }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-sec { padding-top: 36px; padding-bottom: 8px; }
.lp-h { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.lp-benefits { display: grid; gap: 12px; }
.lp-benefit { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--paper); }
.lp-benefit h3 { font-size: 17px; margin: 14px 0 6px; }
.lp-benefit p { color: var(--ink-2); margin: 0; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--canvas); border-radius: var(--r-lg); padding: 18px; }
.lp-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 800; }
.lp-steps b { display: block; font-size: 16px; margin: 4px 0 4px; }
.lp-steps p { margin: 0; color: var(--ink-2); }
.lp-app { display: grid; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--paper); }
.lp-app h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.lp-app-list { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 10px; }
.lp-app-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lp-app-list .i { color: var(--violet); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #2b2747; }
.lp-phone { justify-self: center; width: 240px; border-radius: 34px; background: var(--ink); padding: 10px; box-shadow: var(--shadow-pop); }
.lp-screen { background: var(--canvas); border-radius: 26px; padding: 18px 14px 22px; display: grid; gap: 8px; }
.lp-screen-top { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.lp-mark { width: 26px; height: 26px; }
.lp-row { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-weight: 650; font-size: 14px; }
.lp-row .i { color: var(--violet); }
.lp-row .i.xs { margin-left: auto; color: var(--ink-3); }
.lp-row:first-of-type { background: var(--violet); border-color: var(--violet); color: #fff; justify-content: center; }
.lp-row:first-of-type .i { color: #fff; }
.lp-final { background: var(--violet); color: #fff; border-radius: var(--r-lg); padding: 30px 22px; text-align: center; margin-bottom: 36px; }
.lp-final h2 { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; max-width: 22ch; margin: 0 auto 10px; }
.lp-final p { color: rgba(255, 255, 255, .88); max-width: 46ch; margin: 0 auto 18px; }
.lp-final .btn.light { background: #fff; color: var(--violet-ink); border-color: #fff; }
.lp-final .lp-note { font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); margin: 18px auto 0; }
@media (min-width: 760px) {
  .lp-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-steps li { flex-direction: column; }
  .lp-app { grid-template-columns: 1fr auto; padding: 36px 44px; }
  .lp-cta .btn { flex: 0 0 auto; }
}
@media (min-width: 1000px) {
  .lp-hero { padding: 56px 0 24px; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .lp-copy h1 { font-size: 54px; }
  .lp-sub { font-size: 19px; }
  .lp-sec { padding-top: 56px; }
  .lp-h { font-size: 32px; text-align: center; }
  .lp-final { padding: 48px 40px; }
  .lp-final h2 { font-size: 34px; }
}
@media (max-width: 759px) {
  .lp-benefit { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 16px; }
  .lp-benefit .ic-tile { grid-row: span 2; }
  .lp-benefit h3 { margin: 2px 0 4px; font-size: 16px; }
}

/* ---------- 2.3 sign-up and shop setup ---------- */
.step-pill { display: inline-block; margin: 0 0 6px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--violet-wash); color: var(--violet-ink); font-size: 12.5px; font-weight: 700; }
.setup-q { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.setup-q legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 16px; color: var(--ink); }
.setup-q legend small { font-weight: 500; font-size: 13px; margin-left: 4px; }
.setup-q[data-wait] { display: none; }
.choice-wrap { display: grid; gap: 6px; }
.help-pop summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--violet-ink); font-weight: 600; font-size: 13.5px; padding: 2px 4px; border-radius: 8px; }
.help-pop summary::-webkit-details-marker { display: none; }
.help-pop-body { margin-top: 8px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; }
.help-pop-body ol { margin: 8px 0 10px; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); }

/* ---------- 2.3 new shop: "Your Shop Is Almost Ready!" ---------- */
.setup-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .setup-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.setup-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.setup-steps a { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none !important; }
.setup-steps a:hover { border-color: var(--violet-line); background: var(--violet-wash); }
.setup-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 800; }
.setup-steps b { display: block; font-size: 15.5px; }
.setup-steps small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.setup-steps li.done a { border-color: var(--green-line); background: var(--green-wash); }
.setup-steps li.done .n { background: var(--green); }
.setup-steps li.done small { color: var(--green); font-weight: 600; }
.menu-group { margin: 14px 0 0; padding: 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.menu-list .menu-val { margin-left: auto; color: var(--ink-3); font-size: 13.5px; }
.menu-list .menu-val + .chev { margin-left: 4px; }
.lp-cta .btn, .lp-final .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }

/* ---------- 2.4 PickPH Products: picker and counter ---------- */
.pick-top { display: grid; gap: 12px; }
@media (min-width: 760px) { .pick-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.pick-count { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: var(--paper); }
.pick-count b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pick-count span { color: var(--ink-2); font-size: 13.5px; }
.pick-unlock { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--violet-line); background: var(--violet-wash); border-radius: var(--r-lg); padding: 14px 16px; color: var(--ink); text-decoration: none !important; }
.pick-unlock b { display: block; font-size: 15px; }
.pick-unlock small { display: block; color: var(--ink-2); font-size: 13px; }
.pick-unlock.hot { border-color: var(--violet); box-shadow: var(--shadow-cta); }
.pick-unlock.done { border-color: var(--green-line); background: var(--green-wash); }
.pick-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--violet-wash); color: var(--violet-ink); font-weight: 700; text-decoration: none !important; }
.picks { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); min-width: 0; }
.pick-ph { display: block; aspect-ratio: 1; background: var(--sunken); }
.pick-ph img { width: 100%; height: 100%; object-fit: cover; }
.pick-ph .ph-empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.pick-b { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pick-n { font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; text-decoration: none !important; }
.pick-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; font-size: 12px; }
.pick-nums small { display: block; color: var(--ink-3); font-size: 10.5px; line-height: 1.2; }
.pick-nums b { font-size: 13px; }
.pick-nums .pos b { color: var(--green); }
.pick-nums .neg b { color: var(--red); }
.pick-ship { margin: 0; font-size: 11.5px; color: var(--ink-2); display: flex; gap: 4px; align-items: center; }
.pick form { margin-top: auto; }
.pick-count b span { font-size: inherit; color: inherit; }
/* Super Admin → Growth: steps of new shops */
.growth-funnel { display: grid; gap: 10px; }
.gf-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 90px; gap: 12px; align-items: center; font-size: var(--fs-md); }
.gf-bar { height: 14px; border-radius: var(--r-pill); background: var(--sunken); overflow: hidden; }
.gf-bar span { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.gf-n { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .gf-row { grid-template-columns: 1fr 80px; } .gf-bar { grid-column: 1 / -1; grid-row: 2; } }
/* About page */
.ab-count { border: 1px solid var(--violet-line); background: var(--violet-wash); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.ab-count b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--violet-ink); }
.ab-count p { margin: 6px auto 0; max-width: 52ch; color: var(--ink-2); }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ab-list li { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--paper); }
.ab-list li > .i { flex: none; color: var(--violet); width: 24px; height: 24px; margin-top: 2px; }
.ab-list b { display: block; font-size: 16px; margin-bottom: 4px; }
.ab-list p { margin: 0; color: var(--ink-2); }
.ab-split { display: grid; gap: 22px; align-items: center; }
.ab-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sunken); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-steps { margin: 14px 0; padding-left: 22px; display: grid; gap: 8px; }
.ab-who { display: grid; gap: 12px; }
.ab-who > div { background: var(--canvas); border-radius: var(--r-lg); padding: 16px 18px; }
.ab-who b { display: block; font-size: 16px; margin-bottom: 4px; }
.ab-who p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .ab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .ab-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .ab-split.rev > .ab-photo { order: 2; }
  .ab-count b { font-size: 34px; }
}
.lp-copy h1 span.ab-wrap { white-space: normal; }
.ab-split .lp-h { text-align: left; }
/* "Get the FREE PickPH App" on shop pages (Android browsers) */
.app-banner { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 10px 10px 12px; border: 1px solid var(--violet-line); background: var(--violet-wash); border-radius: var(--r-md); }
.app-banner[hidden] { display: none; }
.app-banner .grow { min-width: 0; }
.app-banner b { display: block; font-size: 14px; line-height: 1.25; }
.app-banner small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.3; }
.app-banner-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.app-banner-ic .i { width: 26px; height: 26px; }
.app-banner .btn { flex: none; }
.scan-only { display: none !important; }
.can-scan .scan-only { display: flex !important; }
/* Fast page changes: a thin bar only when a page takes a while, and a quick cross-fade between pages */
.turbo-progress-bar { height: 3px; background: var(--violet); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
/* Seller dashboard: the two first actions, and the setup that folds away */
.action-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-card); }
.action-card .ac-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet); margin-bottom: 6px; }
.action-card .ac-ic .i { width: 28px; height: 28px; }
.action-card b { font-size: 16.5px; line-height: 1.2; letter-spacing: -.01em; }
.action-card small { color: var(--ink-2); font-size: 13px; line-height: 1.35; flex: 1; }
.action-card .btn { margin-top: 10px; width: 100%; justify-content: center; min-height: 42px; }
.action-card.earn { background: linear-gradient(160deg, #fff7e6, #fff 70%); border-color: var(--amber-line); }
.action-card.earn .ac-ic { background: var(--amber-wash); color: var(--amber); }
.action-card.earn .btn { border-color: var(--amber-line); color: var(--amber); background: #fff; }
.action-card:active { transform: scale(.985); }
.setup-mini { padding: 0; }
.setup-mini > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.setup-mini > summary::-webkit-details-marker { display: none; }
.setup-mini > summary b { display: block; font-size: 15px; }
.setup-mini > summary small { display: block; color: var(--ink-2); font-size: 12.5px; margin: 1px 0 6px; }
.setup-mini > summary .progress { display: block; height: 6px; }
.setup-mini .sm-chev { transition: transform .15s; color: var(--ink-3); }
.setup-mini[open] .sm-chev { transform: rotate(180deg); }
.setup-mini .setup-steps { margin: 0; padding: 0 12px 12px; }
.setup-mini .setup-steps .badge { vertical-align: 1px; font-size: 11px; }
@media (min-width: 1000px) {
  .action-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .action-card .ac-ic { margin: 0; }
  .action-card b { flex: 1; font-size: 18px; }
  .action-card small { flex-basis: 100%; }
  .action-card .btn { width: auto; margin-top: 4px; }
}
.get-app { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--violet-wash); color: var(--violet-ink); font-weight: 700; font-size: 12.5px; text-decoration: none !important; white-space: nowrap; }
.push-only { display: none !important; }
.can-webpush .push-only { display: inline-flex !important; }
/* Alerts in this browser (Account → Notifications) */
.wp-box { align-items: center; gap: 12px; }
.wp-box .grow { min-width: 0; }
.wp-box small { display: block; color: var(--ink-2); font-size: 12.5px; }
.wp-box .wp-on, .wp-box .wp-blocked, .wp-box .wp-on-btn { display: none; }
.webpush-on .wp-box .wp-on, .webpush-on .wp-box .wp-on-btn { display: block; }
.webpush-on .wp-box .wp-off, .webpush-on .wp-box .wp-off-btn, .webpush-blocked .wp-box .wp-off { display: none; }
.webpush-blocked .wp-box .wp-blocked { display: block; }
.can-webpush .wp-box { display: flex !important; }
.webpush-on .push-only[data-webpush-ask], .webpush-blocked .push-only[data-webpush-ask] { display: none !important; }

/* ==========================================================================================================
   2.9 visual refresh — follows the approved 14-screen reference: airy purple-and-white, lavender canvas,
   deep purple seller navigation, soft violet shadows, photo-led onboarding. Tokens live in :root above.
   ========================================================================================================== */

/* ---------- seller navigation: deep purple sidebar (desktop) ---------- */
@media (min-width: 1000px) {
  .side.side-violet { background: var(--violet-deep) var(--grad-nav); border-right: 0; color: #fff; padding: 22px 14px 14px; }
}
.side-violet .brand { color: #fff; padding: 0 6px 24px; }
.side-violet .brand-mark { background: #fff; border-radius: 11px; padding: 3px; width: 38px; height: 38px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.side-violet .brand-name .v { color: #d7c6ff; }
.side-violet .brand-tag { color: rgba(255, 255, 255, .68); }
.side-violet nav a { color: rgba(255, 255, 255, .84); font-weight: 550; padding: 10px 12px; border-radius: 12px; }
.side-violet nav a .i { color: rgba(255, 255, 255, .72); }
.side-violet nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side-violet nav a.on { background: linear-gradient(90deg, #8754f6, #7442ee); color: #fff; font-weight: 650; box-shadow: 0 6px 16px rgba(20, 6, 70, .28); }
.side-violet nav a.on .i { color: #fff; }
.side-violet nav a:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.side-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #d9365a; color: #fff; font-size: 11.5px; font-weight: 750; display: inline-grid; place-items: center; line-height: 1; }
.side-violet .side-foot { border-top-color: rgba(255, 255, 255, .14); }
.side-violet .shop-card { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #fff; }
.side-violet .shop-card small { color: rgba(255, 255, 255, .7); }
.side-violet .shop-card .avatar { background: #fff; color: var(--violet-ink); }
.side-violet .shop-card .i { color: rgba(255, 255, 255, .7); }

/* ---------- home (reference screens 1, 2, 3 and 13) ---------- */
.lp-top .wrap { min-height: 68px; }
.lp-links { display: flex; align-items: center; gap: 26px; margin: 0 auto 0 36px; }
.lp-links a { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.lp-links a:hover { color: var(--violet-ink); text-decoration: none; }
.lp-top .lp-top-cta { min-height: 42px; border-radius: var(--r-sm); }
.lp-lead { color: var(--ink-2); font-size: 16px; margin: -8px 0 22px; }
.hero9 { background: var(--grad-hero); padding: 22px 0 0; overflow: hidden; }
.hero9-in { display: grid; gap: 22px; align-items: center; }
.hero9 h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; max-width: 13ch; }
.hero9 h1 em { font-style: normal; color: var(--violet); display: block; }
.hero9-sub { font-size: 16.5px; color: var(--ink-2); line-height: 1.5; max-width: 42ch; margin: 0 0 16px; }
.hero9-ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.hero9-ticks li { display: flex; align-items: center; gap: 10px; font-weight: 550; font-size: 15.5px; }
.hero9-ticks li > .i { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #22b469; color: #fff; stroke-width: 3; }
.hero9-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.hero9-cta .btn { flex: 1 1 100%; }
.hero9-how { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--violet-ink); padding: 8px 2px; }
.hero9 .lp-fine { margin-top: 10px; }
.hero9-media { position: relative; }
.hero9-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--violet-soft); box-shadow: var(--shadow-soft); }
.hero9-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero9-chip { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 16px; background: #fff; color: #138a4a; font-weight: 750; font-size: 14px; box-shadow: var(--shadow-soft); }
.hero9-chip .i { color: #22b469; }
/* 2.9.7: the first screen is one question with two big answers (the shop setup's picture choices) */
.hero9 { padding-bottom: 26px; }
.hero9 h1 { font-size: 31px; margin-bottom: 10px; }
.hero9 .hero9-sub { font-size: 17px; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
.hero9-ways { display: grid; gap: 12px; scroll-margin-top: 80px; }
.hero9-ways .way9 { grid-template-columns: 38% 1fr; }
.hero9-ways .way9-img { min-height: 128px; }
.hero9-ways .way9-body { padding: 14px 14px 56px; gap: 5px; }
.hero9-ways .way9-body b { font-size: 18px; }
.hero9-ways .way9-go { width: auto; height: 36px; padding: 0 12px 0 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-weight: 750; font-size: 14.5px; }
.way9-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--green-wash); color: var(--green); font-size: 12.5px; font-weight: 700; }
.way9-tag .i { width: 13px; height: 13px; stroke-width: 3; }
.hero9 .lp-fine { margin-top: 12px; }
.hero9-myshop { margin-top: 12px; }
.hero9-media { display: none; }
@media (min-width: 1000px) {
  .hero9 { padding-bottom: 44px; }
  .hero9 h1 { font-size: 46px; }
  .hero9 .hero9-sub { font-size: 19px; }
  .hero9-media { display: block; }
  .hero9-ways .way9-img { min-height: 140px; }
}
.hero9-tiles { list-style: none; margin: 22px 0 0; padding: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero9-tiles li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-card); min-width: 0; }
.hero9-tiles b { display: block; font-size: 14px; line-height: 1.2; }
.hero9-tiles small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.t-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet); }
.t-ic.amber { background: #fff1e4; color: #f07a12; }
.t-ic.yellow { background: var(--highlight-wash); color: #c08a00; }
.how9 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how9 li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-card); }
.how9-ic { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet); }
.how9-n { position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.how9 b { font-size: 16px; margin-top: 2px; }
.how9 p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.ways9 { display: grid; gap: 14px; }
.way9 { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; background: #fff; border: 1px solid var(--violet-soft); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-card); transition: box-shadow .15s, border-color .15s, transform .15s; }
.way9:hover { border-color: var(--violet-line); box-shadow: var(--shadow-soft); }
.way9:active { transform: scale(.99); }
.way9-img { display: block; background: var(--violet-soft); min-height: 132px; }
.way9-img img { width: 100%; height: 100%; object-fit: cover; }
.way9-body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 52px; background: var(--grad-soft); }
.way9-body b { font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.way9-body small { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.way9-go { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-cta); }
.ways9-note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 13.5px; margin: 14px 0 0; }
.ways9-note .i { flex: none; color: var(--violet); margin-top: 2px; }
.promo9 { display: grid; gap: 20px; align-items: center; border-radius: var(--r-xl); padding: 26px 22px; background: linear-gradient(135deg, #efe6ff 0%, #e2d2ff 100%); overflow: hidden; }
.promo9 h2 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: #3d18a0; margin: 0 0 10px; }
.promo9 p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 14px; max-width: 44ch; }
.promo9-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.promo9-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.promo9-list .i { color: var(--violet); }
.promo9-fine { display: flex; align-items: flex-start; gap: 6px; font-size: 13px !important; color: var(--ink-3) !important; margin: 10px 0 0 !important; }
.promo9-media { justify-self: center; }
.promo9-media img { width: 100%; max-width: 320px; height: auto; border-radius: var(--r-lg); }
.promo9 .lp-phone { width: 220px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px; border-radius: 12px; background: #111; color: #fff; text-decoration: none !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.store-btn .i { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 10.5px; letter-spacing: .04em; opacity: .85; line-height: 1.1; }
.store-btn b { display: block; font-size: 18px; line-height: 1.1; font-weight: 650; }
.store-btn:hover { background: #2a2a2a; }
@media (min-width: 560px) {
  .hero9-cta .btn { flex: 0 0 auto; }
}
@media (min-width: 760px) {
  .hero9-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways9 { grid-template-columns: 1fr 1fr; }
  .promo9 { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 48px; }
}
@media (min-width: 1000px) {
  .hero9 { padding-top: 40px; }
  .hero9-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; }
  .hero9 h1 { font-size: 46px; }
  .hero9-sub { font-size: 18.5px; }
  .hero9-ticks li { font-size: 16.5px; }
  .hero9-photo { aspect-ratio: 5 / 4; border-radius: 28px; }
  .hero9-chip { left: -18px; bottom: 34px; font-size: 15px; padding: 12px 16px; }
  .hero9-tiles { margin-top: 28px; padding-bottom: 32px; gap: 14px; }
  .hero9-tiles li { padding: 16px; }
  .how9 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how9 li { grid-template-columns: 1fr; padding: 22px 18px; text-align: left; }
  .how9-ic { grid-row: auto; margin-bottom: 14px; }
  .lp-lead { text-align: center; }
  .promo9 h2 { font-size: 34px; }
}
@media (max-width: 999px) { .lp-links { display: none; } }

/* ---------- sign-up, log in and shop setup (reference screens 3, 4 and 5) ---------- */
.auth9 h1 { text-align: center; font-size: 27px; margin: 8px 0 12px; }
.auth9 > p.muted { text-align: center; }
.auth9 .field > span:first-child { font-size: 14px; }
.auth9 .check { font-size: 13.5px; line-height: 1.45; }
.stepbar { display: grid; gap: 8px; justify-items: center; margin: 0 auto 18px; max-width: 360px; }
.stepbar > span { color: var(--ink-3); font-size: 13.5px; font-weight: 650; }
.stepbar > i { display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--violet-soft); overflow: hidden; }
.stepbar > i > b { display: block; height: 100%; border-radius: 4px; background: var(--violet) var(--grad-primary); transition: width .25s; }
@media (min-width: 1000px) {
  .auth.auth9 { margin-top: 28px; padding: 34px 38px 30px; border-color: var(--violet-soft); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); }
}
.setup9 { max-width: 520px; margin: 0 auto; }
.setup9-head { text-align: center; }
.setup9-head h1 { font-size: 27px; line-height: 1.15; letter-spacing: -.025em; margin: 8px 0 8px; }
.setup9-head h1 em { font-style: normal; color: var(--violet); }
.setup9-head p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 18px; }
.setup9-art { width: 96px; height: 96px; margin: 0 auto 6px; display: grid; place-items: center; }
.setup9-art img, .setup9-art svg { width: 100%; height: 100%; object-fit: contain; }
.setup9 .card-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px 18px; box-shadow: var(--shadow-card); }
.pick9 { display: grid; gap: 14px; }
.pick9-opt { position: relative; display: grid; grid-template-columns: 40% 1fr; min-height: 150px; border: 1.5px solid var(--violet-soft); border-radius: var(--r-lg); overflow: hidden; background: #fff; cursor: pointer; box-shadow: var(--shadow-card); transition: border-color .15s, box-shadow .15s; }
.pick9-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick9-img { display: block; background: var(--violet-soft); }
.pick9-img img { width: 100%; height: 100%; object-fit: cover; }
.pick9-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; background: var(--grad-soft); }
.pick9-body b { font-size: 17px; line-height: 1.2; padding-right: 26px; }
.pick9-body small { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.pick9-tick { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center; color: #fff; }
.pick9-tick .i { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.pick9-opt:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-wash), var(--shadow-card); }
.pick9-opt:has(input:checked) .pick9-tick { background: var(--violet); border-color: var(--violet); }
.pick9-opt:has(input:checked) .pick9-tick .i { opacity: 1; }
.pick9-opt:has(input:focus-visible) { box-shadow: var(--focus); }
.pick9-note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 13.5px; margin: 12px 0 0; }
.pick9-note .i { flex: none; color: var(--violet); margin-top: 2px; }
.link-preview { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px dashed var(--violet-line); border-radius: var(--r-sm); background: var(--violet-wash); color: var(--ink-2); font-size: 14.5px; overflow: hidden; }
.link-preview .i { flex: none; color: var(--violet); }
.link-preview b { color: var(--violet-ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup9-step[hidden] { display: none !important; }
.setup9-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 1000px) {
  .setup9 .card-panel { padding: 28px 30px; }
  .setup9-head h1 { font-size: 32px; }
}
.setup9:not(.has-steps) .js-only { display: none !important; }
.illus { display: inline-grid; place-items: center; }
.illus svg, .illus img { width: 100%; height: 100%; }

/* ---------- seller dashboard (reference screen 6) ---------- */
.dash9-head { align-items: center; }
.dash9-head h1 { font-size: 24px; }
.dash9-head p { color: var(--ink-2); }
.stats9 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat9 { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none !important; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.stat9:hover { border-color: var(--violet-line); box-shadow: var(--shadow-soft); }
.stat9 .v { font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat9 .l { font-weight: 650; font-size: 14px; }
.stat9 .s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-3); font-size: 12px; }
.stat9 .delta { font-size: 11.5px; }
.dash9-start { display: grid; gap: 12px; align-items: stretch; }
.start9 { padding: 18px; }
.start9-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.start9-head h2 { margin: 0; font-size: 17px; }
.start9-head .muted { font-size: 13px; white-space: nowrap; }
.start9 > .progress { display: block; height: 8px; margin-bottom: 6px; background: var(--violet-soft); }
.start9 > .progress > i { background: var(--violet) var(--grad-primary); }
.start9-list { list-style: none; margin: 0; padding: 0; }
.start9-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.start9-list li:first-child { border-top: 0; }
.start9-list .mark { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: #fff; }
.start9-list li.done .mark { background: #22b469; border-color: #22b469; }
.start9-list .mark .i { width: 15px; height: 15px; stroke-width: 3; }
.start9-list b { display: block; font-size: 14.5px; font-weight: 650; }
.start9-list small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.start9-list .btn { flex: none; min-width: 74px; }
.start9-list .badge.green { flex: none; }
.live9 { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: linear-gradient(160deg, #f1e9ff 0%, #fbf8ff 100%); border-color: var(--violet-soft); }
.live9-art { width: 112px; height: 112px; margin: 0 0 6px; }
.live9 h3 { font-size: 17px; margin: 0; }
.live9 p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 10px; }
.action-card { border-color: var(--violet-soft); }
.action-card .ac-ic { background: var(--violet-wash); }
@media (min-width: 760px) {
  .dash9-start { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .live9-art { width: 150px; height: 150px; align-self: center; }
}
@media (min-width: 1000px) {
  .stats9 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stat9 { padding: 18px 20px; }
  .stat9 .v { font-size: 28px; }
  .dash9-head h1 { font-size: 30px; }
  .start9 { padding: 22px 24px; }
}
@media (max-width: 759px) {
  .live9 { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .live9-art { width: 64px; height: 64px; margin: 0; }
  .live9 h3 { flex: 1; min-width: 0; }
  .live9 p { flex-basis: 100%; }
}
@media (min-width: 1000px) { .shell.shell-violet { background: linear-gradient(90deg, #3a168e 0, #3a168e 240px, var(--canvas) 240px); } }

/* ---------- add product (reference screen 7) ---------- */
.seg9 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; border: 1px solid var(--violet-soft); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); }
.seg9 a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; padding: 6px 8px; border-radius: 14px; color: var(--ink); text-align: center; text-decoration: none !important; border: 1.5px solid transparent; }
.seg9 a b { font-size: 15px; }
.seg9 a small { font-size: 12px; color: var(--ink-3); }
.seg9 a.on { background: var(--violet-wash); border-color: var(--violet); color: var(--violet-ink); }
.seg9 a.on small { color: var(--violet-ink); }
.seg9 a:not(.on):hover { background: var(--sunken); }
.pe9-basics { display: grid; gap: 18px; }
.pe9-photos .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pe9-photos .photos > :first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.pe9-photos .photos > .photo-add:first-child { font-size: 15px; gap: 8px; border-width: 2px; background: var(--violet-wash); color: var(--violet-ink); border-color: var(--violet-line); }
.pe9-photos .photos > .photo-add:first-child .i { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); }
/* 2.9.8: options buyers choose sit behind one line ("Has options?"); more settings stay closed */
.pe9-opts > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.pe9-opts > summary::-webkit-details-marker { display: none; }
.pe9-opts-q { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pe9-opts-q b { font-size: 15.5px; }
.pe9-opts-q small { color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.pe9-opts-add { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 999px; background: var(--violet-wash); color: var(--violet-ink); font-weight: 700; font-size: 13.5px; border: 1px solid var(--violet-line); }
.pe9-opts-chev { display: none !important; flex: none; color: var(--ink-3); }
.pe9-opts[open] .pe9-opts-add { display: none; }
.pe9-opts[open] .pe9-opts-chev { display: block !important; transform: rotate(180deg); }
.pe9-opts-body { margin-top: 14px; }
.pe-sub { border-top: 1px solid var(--line); padding-top: 14px; }
.pe9-tip { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--highlight-wash); color: #6b4d00; font-size: 13px; }
.pe9-tip .i { flex: none; margin-top: 1px; }
@media (min-width: 1000px) {
  .pe9-basics { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 24px; }
  .seg9 { max-width: 560px; }
}

/* ---------- PickPH catalog cards (reference screen 8) ---------- */
.pick { border-color: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); transition: box-shadow .15s, border-color .15s; }
.pick:hover { border-color: var(--violet-line); box-shadow: var(--shadow-soft); }
.pick-ph { background: #f6f4fb; }
.pick-b { padding: 12px; gap: 6px; }
.pick-n { font-size: 14px; font-weight: 650; }
.pick-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pick-price b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pick-price small { color: var(--ink-3); font-size: 11.5px; }
.pick-earn { align-self: flex-start; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); background: var(--green-wash); color: var(--green); font-size: 12.5px; font-weight: 700; border: 1px solid var(--green-line); }
.pick-earn.neg { background: var(--amber-wash); color: var(--amber); border-color: var(--amber-line); }
.pick-ship b { font-weight: 650; color: var(--ink); }
.pick form .btn { min-height: 40px; border-radius: 10px; }
.searchbox.boxed { height: 50px; border-radius: var(--r-md); border-color: var(--violet-soft); box-shadow: var(--shadow-card); }
.pick-meta { margin: 0; display: grid; gap: 2px; font-size: 11.5px; color: var(--ink-2); line-height: 1.35; }
.pick-meta b { color: var(--ink); font-weight: 650; }
.pick-meta .i { vertical-align: -2px; }

/* ---------- orders (reference screen 9) ---------- */
.tabs.pills { gap: 4px; padding: 4px; border: 1px solid var(--violet-soft); border-radius: var(--r-md); background: #fff; margin-bottom: 14px; }
.tabs.pills a, .tabs.pills button { border: 0; border-radius: 10px; padding: 9px 8px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tabs.pills a.on, .tabs.pills button.on { background: var(--violet-wash); color: var(--violet-ink); box-shadow: inset 0 0 0 1.5px var(--violet); }

/* ---------- public shop (reference screen 10): the shop's card sits over its cover photo ---------- */
.shop-head9 { position: relative; margin: -44px 0 14px; padding: 14px 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); }
.shop-head9 .shop-id { margin-top: 0; align-items: center; }
.shop-head9 .shop-id-text { padding: 0; }
.shop-head9 .avatar.lg { width: 72px; height: 72px; font-size: 24px; border-width: 3px; }
.shop-head9 .shop-actions { margin-bottom: 0 !important; margin-top: 12px; }
.shop-head9 .meta-row { margin-bottom: 0 !important; margin-top: 8px; }
.shop-head9 + .tabs { margin-top: 4px; }
@media (min-width: 760px) {
  .shop-head9 { margin-top: -72px; padding: 20px 24px 18px; max-width: 980px; }
  .shop-head9 .avatar.lg { width: 96px; height: 96px; font-size: 32px; }
  .shop-head9 .shop-id-text h1 { font-size: 26px; }
}
@media (max-width: 419px) { .shop-head9 .shop-actions .btn { font-size: 13.5px; padding: 0 8px; } .shop-head9 .shop-actions .btn .i { display: none; } }

/* ---------- payments (reference screen 11) ---------- */
.pm9 { display: grid; gap: 16px; align-items: start; }
.pm9-head h2 { font-size: 21px; margin: 0 0 4px; }
.pm9-head p { color: var(--ink-2); margin: 0 0 14px; font-size: 14px; }
.pm9-kinds { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; margin: 0 0 16px; overflow: hidden; }
.pm9-kind { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.pm9-kind:first-of-type { border-top: 0; }
.pm9-kind input { position: absolute; opacity: 0; pointer-events: none; }
.pm9-kind b { display: block; font-size: 15px; }
.pm9-kind small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; }
.pm9-kind .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.pm9-kind:has(input:checked) { background: var(--violet-wash); }
.pm9-kind:has(input:checked) .radio { border-color: var(--violet); }
.pm9-kind:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.pm9-kind:has(input:focus-visible) { box-shadow: inset var(--focus); }
.pm9-mark { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; letter-spacing: -.03em; }
.pm9-mark.gcash { background: #0a5bd6; color: #fff; font-size: 22px; }
.pm9-mark.maya { background: #e5f7ee; color: #079f5a; font-size: 14px; }
.pm9-mark.bank { background: var(--violet-wash); color: var(--violet); }
.pm9-mark.cod { background: var(--green-wash); color: var(--green); }
.pm9-mark.other { background: var(--sunken); color: var(--ink-2); }
.pm9-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--violet-ink); font-weight: 650; font-size: 14px; }
.pm9-more > summary::-webkit-details-marker { display: none; }
.pm9-more[open] > summary .i { transform: rotate(180deg); }
.pm9-safe { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--ink-3); font-size: 12.5px; }
.pm9-safe .i { flex: none; color: var(--green); margin-top: 1px; }
.pm9-list h3 { margin: 0 0 10px; }
.pm9-list .li .pm9-mark { width: 40px; height: 40px; font-size: 18px; }
.pm9-list .li .pm9-mark.maya { font-size: 12px; }
.empty-art { width: 96px; height: 96px; margin: 0 auto 8px; }
@media (min-width: 1000px) { .pm9 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .pm9-form { padding: 24px; } }

/* ---------- share your shop (reference screen 12) ---------- */
.share9-grid { display: grid; gap: 16px; align-items: start; }
.share9 h1 { font-size: 24px; margin: 0 0 2px; }
.share9-sub { color: var(--ink-2); margin: 0 0 16px; }
.share9-body { display: grid; gap: 16px; }
.share9-qr { display: grid; gap: 10px; justify-items: center; align-content: start; }
.share9-qr .qr-box { background: #fff; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.share9-qr .qr-box svg { width: 200px; height: 200px; }
.share9-qr .btn { max-width: 226px; }
.share9-actions { display: grid; gap: 8px; }
.share9-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); font: inherit; font-weight: 650; font-size: 14.5px; text-align: left; cursor: pointer; text-decoration: none !important; box-shadow: var(--shadow-card); transition: border-color .15s, background .15s; }
.share9-btn:hover { border-color: var(--violet-line); background: var(--violet-wash); }
.share9-btn small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.s-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet); }
.s-ic.fb { background: #e8f0fe; color: #1877f2; }
.s-ic.msgr { background: #efe9ff; color: #7a3cf0; }
.s-ic.wa { background: #e6f7ec; color: #1fa855; }
.s-ic.tt { background: #f1f1f3; color: #111; }
@media (min-width: 560px) { .share9-body { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }
@media (min-width: 1100px) { .share9-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .share9 { padding: 24px; } }
/* Super Admin: delete account */
.danger-zone { border-color: var(--red-line); }
.danger-zone h3 { color: var(--red); display: flex; align-items: center; gap: 8px; }
/* Bulk delete on Super Admin → Sellers & buyers */
.table .sel-col { width: 44px; padding: 0 !important; }
.sel-hit { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.sel-hit input { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; }
.udel-bar { position: sticky; bottom: 12px; z-index: 20; margin-top: 16px; }
.udel-bar.js { display: none; }
.udel-bar.js.on { display: block; }
.udel-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--red-line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.udel-bar-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.udel-bar-text b { color: var(--red); }
.udel-bar-text small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.udel-bar .input { flex: 0 1 170px; min-width: 0; }
.udel-bar .input[name=note] { flex-basis: 220px; }
@media (max-width: 640px) {
  .udel-bar { bottom: 8px; }
  .udel-bar-in { padding: 10px; gap: 8px; }
  .udel-bar-text { flex-basis: 100%; }
  .udel-bar-text small, .udel-bar .input[name=note] { display: none; }
  .udel-bar .input { flex: 1 1 0; height: 44px; }
  .udel-bar .btn { flex: 0 0 auto; height: 44px; }
}
/* Super Admin → Pricing → Simple profit */
.profit9 { display: grid; gap: 16px; align-items: start; }
.profit9-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.profit9-head h2 { margin: 2px 0 4px; font-size: 19px; }
.profit9-head h2 small { font-weight: 550; color: var(--ink-3); font-size: 14px; }
.profit9-head p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.t-ic.green { background: var(--green-wash); color: var(--green); }
.profit9-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.input-suffix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); overflow: hidden; }
.input-suffix > span { display: grid; place-items: center; padding: 0 12px; background: var(--sunken); color: var(--ink-2); font-weight: 650; }
.input-suffix .input { border: 0; border-radius: 0; box-shadow: none !important; }
.input-suffix:focus-within { border-color: var(--violet); box-shadow: var(--focus); }
.profit9-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--ink-3); font-size: 12.5px; }
.profit9-note .i { flex: none; margin-top: 1px; }
.profit9-special { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.profit9-special summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--amber); font-weight: 650; list-style: none; }
.profit9-special summary::-webkit-details-marker { display: none; }
.profit9-special ul { margin: 8px 0 10px; padding-left: 18px; color: var(--ink-2); }
.profit9-apply { margin: 2px 0 14px; padding: 12px; border-radius: var(--r-sm); background: var(--sunken); }
.profit9-example h2 { font-size: 18px; }
.profit9-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--sunken); margin: 4px 0 14px; }
.profit9-bar i { display: block; height: 100%; transition: width .2s; }
.profit9-bar .b-cost { background: #c9c3dc; }
.profit9-bar .b-pickph { background: var(--violet); }
.profit9-bar .b-seller { background: #22b469; }
.profit9-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profit9-sum > div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: #fff; }
.profit9-sum small { display: block; color: var(--ink-3); font-size: 12px; }
.profit9-sum b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.profit9-sum .pk { border-color: var(--violet-line); background: var(--violet-wash); } .profit9-sum .pk b { color: var(--violet-ink); }
.profit9-sum .sl { border-color: var(--green-line); background: var(--green-wash); } .profit9-sum .sl b { color: var(--green); }
.profit9-sum .by { grid-column: 1 / -1; } .profit9-sum .by b { font-size: 24px; }
@media (min-width: 1000px) {
  .profit9 { grid-template-columns: 1fr 1fr; }
  .profit9-example { grid-column: 1 / -1; }
  .profit9-sum { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .profit9-sum .by { grid-column: auto; }
}
@media (max-width: 420px) { .profit9-fields { grid-template-columns: 1fr; } }
