/* ==========================================================================
   Bazaarly — single stylesheet for site, dashboard, admin and installer
   ========================================================================== */

:root {
  --brand: #0d9488;
  --accent: #f97316;
  --brand-ink: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-strong: color-mix(in srgb, var(--brand) 82%, #000);
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --surface-3: #e8ebf0;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e3e7ed;
  --border-strong: #cfd6df;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -8px rgb(15 23 42 / .12);
  --shadow-lg: 0 24px 48px -12px rgb(15 23 42 / .25);
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-2: #172033;
  --surface-3: #1f2a40;
  --text: #e8edf5;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --border: #233047;
  --border-strong: #2f3d57;
  --brand-soft: color-mix(in srgb, var(--brand) 20%, transparent);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
  --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0 8px; }
.section-sm { padding: 24px 0 48px; }
.mt-xl { margin-top: 48px; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.center { text-align: center; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.push { margin-left: auto; }
.grow { flex: 1; }
.lead { font-size: 1.1rem; }
.mono { font-family: var(--mono); font-size: .85rem; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.h-sm { font-size: 1rem; display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; }
.h-md { font-size: 1.2rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
@media (min-width: 961px) { .mobile-only, .nav-toggle { display: none !important; } }
.narrow { max-width: 480px; }

/* ---------- buttons ---------- */
.btn { --b: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; color: var(--text); background: var(--b); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-ghost.danger, .danger { color: var(--danger); }
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { background: #f1f5f9; }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .84rem; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-stack { display: grid; gap: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.btn-row.center { justify-content: center; }
.btn-row form, .mi-actions form, .page-actions form, .inline-actions { display: inline-flex; gap: 6px; margin: 0; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.danger { color: var(--danger); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; white-space: nowrap; }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }
.small-link { font-size: .85rem; font-weight: 500; }
[data-theme="light"] .show-dark, [data-theme="dark"] .show-light { display: none; }

/* ---------- badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge .ic { width: .95em; height: .95em; }
.badge-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.badge-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.badge-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.badge-info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.dot-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #fff; z-index: 2; }
.chip .ic { width: 12px; height: 12px; }
.chip-featured { background: var(--accent); box-shadow: 0 4px 12px -4px var(--accent); }
.chip-sold { background: #0f172a; left: auto; right: 12px; top: auto; bottom: 12px; }
.chip-link { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; font-size: .87rem; font-weight: 500; backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / .18); }
.chip-link:hover { background: rgb(255 255 255 / .24); text-decoration: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; }
.tag { padding: .3rem .7rem; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: .84rem; }
.tag:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.verified { display: inline-flex; color: var(--brand); margin-left: .3rem; vertical-align: -.1em; }
.verified .ic { width: 1em; height: 1em; }
.stars { display: inline-flex; gap: 1px; color: var(--border-strong); vertical-align: -.15em; }
.stars .ic { width: 15px; height: 15px; }
.stars.sm .ic { width: 12px; height: 12px; }
.stars .on { color: #f59e0b; fill: #f59e0b; }
.stars .half { color: #f59e0b; fill: color-mix(in srgb, #f59e0b 45%, transparent); }

/* ---------- alerts ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 60; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.alert { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid; font-size: .92rem; margin-bottom: 14px; background: var(--surface); }
.flash-stack .alert { margin: 0; box-shadow: var(--shadow-lg); animation: slideIn .3s ease; }
.alert > .ic { margin-top: .15rem; }
.alert span { flex: 1; }
.alert-success { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 8%, var(--surface)); color: var(--text); }
.alert-success > .ic { color: var(--success); }
.alert-error { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.alert-error > .ic { color: var(--danger); }
.alert-warning { border-color: color-mix(in srgb, var(--warning) 40%, transparent); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); }
.alert-warning > .ic { color: var(--warning); }
.alert-info { border-color: color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 6%, var(--surface)); }
.alert-info > .ic { color: var(--info); }
.alert-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 600; font-size: .88rem; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=url], input[type=date], input:not([type]), select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input[type=file] { font: inherit; font-size: .88rem; color: var(--muted); }
input[type=color] { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .ic { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 40px; }
.pw-toggle { position: absolute; right: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.input-prefix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.input-prefix input { border: 0; border-radius: 0; box-shadow: none !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: inline-flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .92rem; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--brand); flex: none; }
.check.small { margin: 6px 0 0; font-size: .85rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; }
.help { color: var(--muted); font-size: .8rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between .check { margin: 0; }
.switch { display: flex; align-items: center; gap: .75rem; cursor: pointer; margin: 6px 0 16px; font-size: .93rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); flex: none; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch-row { display: flex; flex-wrap: wrap; gap: 0 28px; }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row span { color: var(--muted); }
.pill-options { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-opt span { display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--border); font-size: .84rem; cursor: pointer; transition: all .15s; background: var(--surface); }
.pill-opt span:hover { border-color: var(--border-strong); }
.pill-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg-radio { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.seg-radio label { flex: 1; min-width: 110px; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio span { display: block; text-align: center; padding: .55rem .5rem; border-radius: 9px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--muted); transition: all .15s; }
.seg-radio input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--brand); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.card-head h2 { font-size: 1.05rem; margin: 0; }
.form-section { padding: 22px 24px 8px; margin-bottom: 20px; }
.form-section h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.form-section > .btn, .form-section > .btn-row { margin-bottom: 18px; }
.side-card { padding: 20px; margin-bottom: 20px; }
.side-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; box-sizing: content-box; }
.empty-state h1, .empty-state h3 { color: var(--text); }
.empty-state.small { padding: 28px 16px; }
.empty-state.small > .ic { width: 28px; height: 28px; }
.empty-state.big { padding: 90px 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--text); letter-spacing: -.03em; text-decoration: none !important; flex: none; }
.logo img { max-height: 40px; width: auto; }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; box-shadow: 0 6px 14px -6px var(--brand); }
.logo-mark .ic { width: 20px; height: 20px; }
.logo-mark.big { width: 60px; height: 60px; border-radius: 18px; }
.logo-mark.big .ic { width: 32px; height: 32px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.main-nav a { padding: .5rem .8rem; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: .93rem; text-decoration: none; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 70; animation: pop .15s ease; }
.dropdown-panel a, .dropdown-panel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border-radius: 9px; color: var(--text-2); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none; }
.dropdown-panel a:hover, .dropdown-panel button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-panel button.danger { color: var(--danger); }
.dropdown-panel .badge { margin-left: auto; }
.dropdown-panel form { margin: 0; }
.dropdown-head { padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; }
.dropdown-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- avatar ---------- */
.avatar { --h: 170; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; object-fit: cover; font-weight: 700; font-size: .85rem; color: hsl(var(--h) 60% 30%); background: hsl(var(--h) 65% 88%); }
[data-theme="dark"] span.avatar { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 35% 28%); }
.avatar-sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, color-mix(in srgb, var(--brand) 70%, #fff 0%), transparent 60%),
  linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #0f172a), #0f172a); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 72px 20px 64px; }
.hero-copy { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); letter-spacing: -.035em; margin-bottom: .4em; }
.hero .lead { color: rgb(255 255 255 / .82); max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .14); font-size: .83rem; font-weight: 600; margin-bottom: 1.2rem; border: 1px solid rgb(255 255 255 / .2); }
.eyebrow .ic { color: #fde68a; }
.search-panel { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 6px; padding: 6px; margin-top: 28px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); max-width: 1000px; }
.sp-field { position: relative; display: flex; align-items: center; color: var(--muted); }
.sp-field + .sp-field::before { content: ""; position: absolute; left: -4px; top: 12px; bottom: 12px; width: 1px; background: var(--border); }
.sp-field > .ic { position: absolute; left: 16px; pointer-events: none; }
.sp-field input, .sp-field select { height: 52px; border: 0; padding-left: 44px; background-color: transparent; border-radius: 14px; }
.sp-field input:focus, .sp-field select:focus { box-shadow: none; background-color: var(--surface-2); }
.search-panel .btn { height: 52px; border-radius: 15px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- sections & categories ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin-bottom: .2em; font-size: 1.5rem; }
.section-head p { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none !important; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.cat-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; flex: none; }
.cat-icon .ic { width: 22px; height: 22px; }
.cat-icon.sm { width: 32px; height: 32px; border-radius: 10px; margin: 0; }
.cat-icon.sm .ic { width: 16px; height: 16px; }
.cat-tile:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-name { font-weight: 600; font-size: .95rem; }
.cat-count { color: var(--muted); font-size: .8rem; }
.cat-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat-block { padding: 18px; }
.cat-block-head { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.cat-block-head .cat-icon { margin: 0; }
.cat-block-head span { display: grid; }
.cat-block-head small { color: var(--muted); }
.cat-block ul { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.cat-block li a { display: flex; justify-content: space-between; padding: .35rem .5rem; border-radius: 8px; color: var(--text-2); font-size: .92rem; }
.cat-block li a:hover { background: var(--surface-2); text-decoration: none; }
.cat-block li span { color: var(--muted); font-size: .82rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step p { color: var(--muted); margin: 0; }
.step-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.step-icon .ic { width: 24px; height: 24px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; border-radius: 24px; color: #fff; margin-bottom: 56px; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--accent))); box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: 1.8rem; }
.cta-band p { margin: 0; color: rgb(255 255 255 / .85); }

/* ---------- listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.listing-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.listing-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-card.is-featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lc-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.lc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .lc-media img { transform: scale(1.04); }
.lc-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: color-mix(in srgb, var(--brand) 55%, var(--muted)); background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent) 10%, transparent)); }
.lc-placeholder .ic { width: 48px; height: 48px; stroke-width: 1.5; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: #334155; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .15); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn .ic { width: 18px; height: 18px; }
.fav-btn.on, .fav-toggle.on { color: #e11d48; }
.fav-btn.on .ic, .fav-toggle.on .ic { fill: #e11d48; }
.fav-btn.pulse { animation: pulse .35s; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.lc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.lc-price { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; display: flex; align-items: baseline; gap: .5rem; }
.lc-price small { font-size: .72rem; font-weight: 600; color: var(--success); }
.lc-title { font-size: .96rem; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-title a { color: var(--text); }
.lc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lc-excerpt { display: none; color: var(--muted); font-size: .88rem; margin: 2px 0 0; }
.lc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .8rem; }
.lc-meta span { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.lc-meta .ic { width: 13px; height: 13px; }
.listing-grid.as-list { grid-template-columns: 1fr; }
.as-list .listing-card { flex-direction: row; }
.as-list .lc-media { width: 260px; flex: none; aspect-ratio: auto; min-height: 180px; }
.as-list .lc-body { padding: 18px 20px; }
.as-list .lc-excerpt { display: block; }
.as-list .lc-title { font-size: 1.05rem; }
.as-list .lc-meta { justify-content: flex-start; gap: 16px; }

/* ---------- breadcrumb & pagination ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .ic { width: 14px; height: 14px; opacity: .6; }
.breadcrumb span { color: var(--text-2); }
.page-head { margin-bottom: 20px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 32px 0 8px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: 0; background: none; min-width: 20px; }

/* ---------- browse ---------- */
.browse-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.filter-card { padding: 18px; margin-bottom: 16px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filter-head h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; margin: 0; }
.cat-list-card h3 { font-size: .95rem; margin-bottom: 8px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.cat-list a { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 9px; color: var(--text-2); font-size: .9rem; }
.cat-list a:hover { background: var(--surface-2); text-decoration: none; color: var(--brand); }
.cat-list span { flex: 1; }
.cat-list small { color: var(--muted); font-size: .78rem; }
.cat-list .ic { color: var(--muted); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.results-title { font-size: 1.5rem; margin: 0; }
.results-bar p { margin: 0; font-size: .9rem; }
.results-tools { display: flex; align-items: center; gap: 8px; }
.sort-form select { height: 40px; border-radius: 999px; min-width: 190px; font-size: .88rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.seg a { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 999px; color: var(--muted); }
.seg a.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.seg .ic { width: 16px; height: 16px; }

/* ---------- listing detail ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail-main > .card { margin-bottom: 20px; }
.gallery { overflow: hidden; padding: 0; }
.gallery-stage { position: relative; aspect-ratio: 16 / 10; background: #0b0f19; }
.gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.gallery-stage img.on { opacity: 1; }
.gallery-empty { display: grid; place-content: center; justify-items: center; gap: 8px; height: 100%; color: #64748b; background: linear-gradient(135deg, var(--brand-soft), transparent); }
.gallery-empty .ic { width: 64px; height: 64px; stroke-width: 1.3; }
.g-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(255 255 255 / .9); color: #0f172a; cursor: pointer; box-shadow: var(--shadow); }
.g-nav.prev { left: 14px; }
.g-nav.next { right: 14px; }
.g-count { position: absolute; bottom: 12px; left: 12px; padding: .2rem .6rem; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font-size: .78rem; font-weight: 600; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 84px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); opacity: .65; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button.on, .gallery-thumbs button:hover { opacity: 1; border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { padding: 24px; }
.detail-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.detail-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-bottom: .35em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; }
.meta-row span { display: inline-flex; align-items: center; gap: .35rem; }
.meta-row .ic { width: 15px; height: 15px; }
.detail-price { text-align: right; display: grid; justify-items: end; gap: 6px; }
.detail-price strong { font-size: 1.9rem; color: var(--brand); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 22px 0 6px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec-grid div { background: var(--surface-2); padding: 12px 14px; }
.spec-grid dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.spec-grid dd { margin: 2px 0 0; font-weight: 600; }
.description { color: var(--text-2); white-space: normal; overflow-wrap: anywhere; }
.description.collapsed { max-height: 220px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
.show-more { margin-top: 6px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; margin-top: 10px; border-top: 1px solid var(--border); }
.share-links { display: flex; gap: 2px; margin-left: auto; }
.share-links a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.share-links a:hover { background: var(--surface-2); color: var(--brand); }
.map-embed { border-radius: 12px; overflow: hidden; background: var(--surface-2); min-height: 120px; display: grid; place-items: center; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.detail-side { position: sticky; top: calc(var(--header-h) + 16px); }
.seller-head { display: flex; gap: 14px; align-items: center; color: var(--text); text-decoration: none !important; }
.seller-head > span { display: grid; gap: 2px; min-width: 0; }
.seller-head small { color: var(--muted); }
.rating-line { display: flex; align-items: center; gap: .4rem; }
.seller-stats { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin: 14px 0 16px; border-block: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.seller-stats strong { color: var(--text); }
.seller-stats a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.phone-reveal { justify-content: space-between; margin-bottom: 14px; letter-spacing: .02em; }
.phone-reveal small { font-weight: 600; opacity: .7; text-decoration: underline; }
.phone-reveal.revealed small { display: none; }
.contact-form { display: grid; gap: 8px; }
.contact-form textarea { min-height: 96px; }
.owner-card { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.tips-card { background: color-mix(in srgb, var(--warning) 6%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 25%, var(--border)); }
.tips-card h3 .ic { color: var(--warning); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--text-2); }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; }
.check-list .ic { color: var(--success); margin-top: .18rem; flex: none; }
.check-list.small { font-size: .85rem; margin-bottom: 16px; }

/* ---------- modal ---------- */
.modal { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgb(15 23 42 / .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .2s ease; }
.modal-body { padding: 22px 24px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { margin: 0; display: flex; gap: .5rem; align-items: center; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- profile ---------- */
.profile-hero { display: flex; gap: 24px; align-items: center; padding: 28px; margin-bottom: 28px; flex-wrap: wrap; background: linear-gradient(120deg, var(--brand-soft), var(--surface) 60%); }
.profile-info { flex: 1; min-width: 240px; }
.profile-info h1 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: 1.7rem; margin-bottom: .2em; }
.profile-info p { margin-bottom: .6em; }
.profile-stats { display: flex; gap: 10px; }
.profile-stats div { display: grid; text-align: center; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 90px; }
.profile-stats strong { font-size: 1.4rem; }
.profile-stats span { color: var(--muted); font-size: .8rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.review-form { display: grid; gap: 10px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.review-form .btn { justify-self: start; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--border-strong); }
.star-input .ic { width: 28px; height: 28px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input label:hover .ic, .star-input label:hover ~ label .ic, .star-input input:checked ~ label .ic { fill: #f59e0b; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.review-list p { margin: 8px 0 0; font-size: .92rem; color: var(--text-2); }
.review-head { display: flex; gap: 10px; align-items: center; }
.review-head > div { display: grid; flex: 1; }
.review-head strong { font-size: .9rem; }

/* ---------- prose / contact ---------- */
.prose-card { padding: clamp(24px, 4vw, 48px); max-width: 860px; margin: 0 auto; }
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: 12px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 14px; align-items: center; }
.contact-points div { display: grid; }
.cp-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.form-card { padding: 28px; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 1000px; margin: 12px auto 40px; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.auth-aside { position: relative; color: #fff; padding: 48px 40px; background: radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%), linear-gradient(150deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #0f172a)); display: flex; align-items: center; }
.auth-aside h2 { color: #fff; font-size: 1.8rem; margin: 24px 0; letter-spacing: -.03em; }
.auth-aside .logo-mark { background: rgb(255 255 255 / .18); box-shadow: none; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-perks li { display: flex; gap: .6rem; align-items: center; color: rgb(255 255 255 / .9); }
.auth-perks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgb(255 255 255 / .18); box-sizing: content-box; }
.auth-form { padding: 44px 40px; }
.auth-form h1 { font-size: 1.7rem; margin-bottom: .2em; }
.auth-form > .muted { margin-bottom: 24px; }
.auth-form .btn-lg { margin: 18px 0 14px; }
.auth-single { max-width: 440px; margin: 20px auto 40px; padding: 36px; }
.auth-single h1 { font-size: 1.5rem; }
.auth-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.auth-icon .ic { width: 28px; height: 28px; }
.auth-icon.success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; background: #0b1220; color: #a6b0c3; padding-top: 56px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { margin: 16px 0; max-width: 360px; font-size: .92rem; }
.logo-light { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: center; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .07); }
.socials a:hover { background: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .85rem; }
.to-top { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .15); }
.to-top .ic { transform: rotate(180deg); }
.ad-slot { margin: 24px 0; text-align: center; overflow: hidden; }
.ad-slot img { margin: 0 auto; border-radius: 12px; }
.cookie-bar { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 16px; max-width: 520px; padding: 14px 16px 14px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: slideIn .3s; }
.cookie-bar p { margin: 0; font-size: .88rem; color: var(--text-2); }

/* ---------- dashboard ---------- */
.dash-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 20px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 6px 6px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.dash-user > div { display: grid; min-width: 0; }
.dash-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav nav { display: grid; gap: 2px; }
.dash-nav nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .93rem; text-decoration: none; }
.dash-nav nav a:hover { background: var(--surface-2); }
.dash-nav nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.dash-nav nav a span:first-of-type { flex: 1; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-size: 1.65rem; margin-bottom: .15em; }
.dash-head p { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat > div { display: grid; }
.stat strong { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.stat span:not(.stat-icon) { color: var(--muted); font-size: .85rem; }
.stat-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat-icon .ic { width: 22px; height: 22px; }
.stat-icon.warn { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.stat-icon.info { background: color-mix(in srgb, var(--info) 13%, transparent); color: var(--info); }
.stat-icon.pink { background: color-mix(in srgb, #e11d48 13%, transparent); color: #e11d48; }
.stat-icon.sm { width: 36px; height: 36px; border-radius: 10px; }
.stat-icon.sm .ic { width: 17px; height: 17px; }
.dash-grid, .admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.admin-grid.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.mini-list { list-style: none; margin: 0; padding: 6px 12px 12px; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.mini-list li + li { border-top: 1px solid var(--border); }
.mini-list li.unread .mini-body a { font-weight: 700; }
.mini-thumb { display: grid; place-items: center; width: 52px; height: 42px; border-radius: 9px; overflow: hidden; background: var(--brand-soft); color: var(--brand); flex: none; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { flex: 1; display: grid; min-width: 0; }
.mini-body a { color: var(--text); font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-body small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 2px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem .9rem; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -3px; white-space: nowrap; text-decoration: none; }
.tabs a span { padding: 0 .45rem; border-radius: 999px; background: var(--surface-2); font-size: .75rem; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs a.on span { background: var(--brand-soft); }
.manage-list { display: grid; gap: 12px; }
.manage-item { display: flex; gap: 18px; padding: 14px; align-items: center; }
.mi-thumb { display: grid; place-items: center; width: 140px; height: 105px; border-radius: 12px; overflow: hidden; flex: none; background: var(--brand-soft); color: var(--brand); }
.mi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mi-thumb .ic { width: 32px; height: 32px; }
.mi-body { flex: 1; min-width: 0; }
.mi-body h3 { margin: 6px 0 2px; font-size: 1rem; }
.mi-body h3 a { color: var(--text); }
.mi-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mi-price { font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.mi-note { display: flex; gap: .4rem; align-items: center; margin: 8px 0 0; font-size: .85rem; color: var(--danger); }
.mi-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.mi-actions .btn { width: 100%; justify-content: flex-start; }

/* ---------- listing form ---------- */
.listing-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.form-side .sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.admin-body .form-side .sticky { top: 84px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; }
.form-section h2 small { font-weight: 500; font-size: .82rem; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); text-align: center; cursor: pointer; transition: all .15s; margin-bottom: 14px; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { color: var(--muted); }
.dz-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.dz-icon .ic { width: 24px; height: 24px; }
.upload-preview, .image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.upload-preview:empty { display: none; }
.upload-preview figure, .im-item { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.upload-preview img, .im-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview figure:first-child::after { content: "Cover"; position: absolute; left: 6px; top: 6px; padding: .1rem .45rem; border-radius: 6px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; }
.image-manager ~ .upload-preview figure:first-child::after { content: none; }
.im-cover { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: .15rem .45rem .15rem .25rem; border-radius: 7px; background: rgb(0 0 0 / .6); color: #fff; font-size: .72rem; font-weight: 600; cursor: pointer; }
.im-cover input { accent-color: var(--brand); margin: 0; }
.im-remove { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgb(255 255 255 / .92); color: var(--danger); cursor: pointer; }
.im-remove input { position: absolute; opacity: 0; }
.im-item:has(.im-remove input:checked) img { opacity: .3; filter: grayscale(1); }
.im-item:has(.im-remove input:checked) .im-remove { background: var(--danger); color: #fff; }
.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.danger-zone h2 { color: var(--danger); }

/* ---------- messages ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: min(680px, calc(100vh - 220px)); min-height: 460px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; }
.conv { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none !important; align-items: flex-start; }
.conv:hover { background: var(--surface-2); }
.conv.on { background: var(--brand-soft); }
.conv-body { flex: 1; display: grid; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-top small { color: var(--muted); white-space: nowrap; }
.conv-title { font-size: .8rem; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-last { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-last { color: var(--text); font-weight: 600; }
.conv .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.thread-who { flex: 1; display: grid; min-width: 0; }
.thread-who a { color: var(--text); }
.thread-who .small-link { color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-head form { margin: 0; }
.thread-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.day-sep { text-align: center; margin: 10px 0; }
.day-sep span { font-size: .75rem; color: var(--muted); background: var(--surface); padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--border); }
.bubble { max-width: min(75%, 520px); padding: 9px 13px 6px; border-radius: 18px; position: relative; }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble time { display: block; text-align: right; font-size: .7rem; opacity: .65; margin-top: 2px; }
.bubble.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.thread-reply { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.thread-reply textarea { resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: 11px 16px; }
.thread-reply .btn { width: 44px; height: 44px; padding: 0; flex: none; }
.thread-empty { flex: 1; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.thread-empty .ic { width: 40px; height: 40px; margin-bottom: 8px; }

/* ---------- admin ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; background: #0b1220; color: #a6b0c3; padding: 16px 12px; }
.admin-logo { display: flex; align-items: center; gap: .65rem; padding: 6px 8px 18px; color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none !important; }
.admin-logo small { display: block; font-size: .7rem; font-weight: 600; color: #7c8aa5; text-transform: uppercase; letter-spacing: .1em; }
.admin-nav-group { padding: 16px 12px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #5f6c85; font-weight: 700; }
.admin-side nav a, .admin-side-foot a { display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; border-radius: 10px; color: #b4bfd3; font-size: .92rem; font-weight: 500; text-decoration: none; }
.admin-side nav a:hover, .admin-side-foot a:hover { background: rgb(255 255 255 / .06); color: #fff; }
.admin-side nav a.active { background: color-mix(in srgb, var(--brand) 85%, transparent); color: #fff; }
.admin-side nav a span:first-of-type { flex: 1; }
.nav-count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }
.admin-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .08); display: grid; gap: 2px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.admin-title { font-size: 1.2rem; margin: 0; flex: 1; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.admin-menu { display: none; }
.admin-content { padding: 24px; max-width: 1400px; width: 100%; }
.admin-content .flash-stack { top: 76px; }
.admin-scrim { display: none; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 16px 20px 20px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar-fill { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, var(--brand), color-mix(in srgb, var(--brand) 55%, #fff)); transition: opacity .15s; }
.bar:hover .bar-fill { opacity: .8; }
.bar-val { font-size: .7rem; color: var(--muted); font-weight: 600; min-height: 1em; }
.bar-label { font-size: .7rem; color: var(--muted); }
.kv-list { list-style: none; margin: 0; padding: 4px 20px 16px; }
.kv-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.kv-list li:last-child { border: 0; }
.kv-list span { display: flex; align-items: center; gap: .55rem; color: var(--muted); }
.side-card .kv-list { padding: 4px 0 0; text-align: left; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar select { width: auto; min-width: 180px; }
.table-card { overflow: hidden; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: 12px 16px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.table .row-unread td { background: var(--brand-soft); }
.cell-ad { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.cell-ad > div { display: grid; min-width: 0; }
.cell-ad a { color: var(--text); }
.row-actions { text-align: right; }
.row-actions > * { vertical-align: middle; }
.row-actions .dropdown { display: inline-block; }
.row-parent td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.cat-cell { display: inline-flex; align-items: center; gap: .6rem; }
.cat-cell.child { padding-left: 14px; color: var(--text-2); }
.cat-cell.child .ic { color: var(--muted); width: 14px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.bulk-bar .check { margin: 0; }
.bulk-bar select { width: auto; height: 36px; font-size: .88rem; }
.reason-input { width: 220px !important; height: 36px !important; font-size: .88rem !important; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.icon-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-picker span { display: grid; place-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.icon-picker span:hover { border-color: var(--border-strong); color: var(--text); }
.icon-picker input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.report-list { display: grid; gap: 12px; }
.report-item { display: flex; gap: 20px; padding: 18px; align-items: flex-start; }
.report-main { flex: 1; min-width: 0; }
.report-main h3 { margin: 8px 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.report-main h3 a { color: var(--text); }
.report-main p { margin: 0; color: var(--text-2); font-size: .92rem; }
.report-item .mi-actions { min-width: 150px; }
.message-body { padding: 18px; border-radius: 12px; background: var(--surface-2); margin: 14px 0; white-space: normal; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.editor-bar button { height: 30px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 7px; cursor: pointer; font-size: .82rem; }
.editor-bar button:hover { background: var(--surface-2); }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 84px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.settings-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .92rem; text-decoration: none; }
.settings-nav a:hover { background: var(--surface-2); }
.settings-nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.settings-panels { max-width: 780px; }
.settings-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }
.settings-save .btn { box-shadow: var(--shadow-lg); }
.setting-toggle { padding: 4px 0; }
.color-field { display: flex; align-items: center; gap: 10px; }
.image-setting { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.image-setting img { max-height: 48px; max-width: 200px; border-radius: 6px; background: var(--surface-2); }

/* ---------- installer ---------- */
.install-body { min-height: 100vh; background: radial-gradient(800px 500px at 100% 0%, var(--brand-soft), transparent 60%), var(--bg); }
.install-wrap { max-width: 680px; margin: 0 auto; padding: 40px 20px; }
.install-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 800; font-size: 1.4rem; margin-bottom: 26px; }
.install-brand small { font-weight: 500; color: var(--muted); font-size: .9rem; }
.install-steps { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.install-steps li { display: flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .4rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; font-weight: 600; }
.install-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: .78rem; }
.install-steps li.on { color: var(--text); }
.install-steps li.on span { background: var(--brand); color: #fff; }
.install-card { padding: clamp(24px, 5vw, 40px); }
.install-card h1 { font-size: 1.7rem; }
.install-card .h-sm { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.install-card .h-sm:first-of-type { border: 0; padding-top: 0; margin-top: 18px; }
.install-card .btn-lg { margin-top: 18px; }
.install-card textarea { margin: 10px 0; }
.req-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.req-list li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.req-list li > span:last-child { display: grid; }
.req-list small { color: var(--muted); }
.req-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; flex: none; }
.req-icon .ic { width: 15px; height: 15px; }
.req-list .ok .req-icon { background: var(--success); }
.req-list .bad .req-icon { background: var(--danger); }
.req-list .warn .req-icon { background: var(--warning); }
.db-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card > span { display: grid; gap: 6px; height: 100%; padding: 16px; border-radius: 14px; border: 2px solid var(--border); transition: all .15s; }
.choice-card strong { display: flex; align-items: center; gap: .45rem; }
.choice-card small { color: var(--muted); }
.choice-card input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.choice-card input:disabled + span { opacity: .45; cursor: not-allowed; }
.install-foot { text-align: center; margin-top: 18px; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.center-page .card { padding: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .listing-form { grid-template-columns: 1fr; }
  .form-side .sticky { position: static; }
}
@media (max-width: 960px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; margin: 0; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: .8rem 1rem; border-radius: 12px; }
  .nav-mobile-extra { display: grid; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
  .hide-mobile { display: none !important; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .sp-q { grid-column: 1 / -1; }
  .search-panel .btn { grid-column: 1 / -1; }
  .sp-field + .sp-field::before { display: none; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 90; max-height: none; padding: 16px; background: var(--bg); transform: translateX(-100%); transition: transform .25s; }
  .filters.open { transform: none; }
  .detail-layout, .profile-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .dash-shell { grid-template-columns: 1fr; padding-top: 16px; gap: 16px; }
  .dash-nav { position: static; padding: 8px; }
  .dash-user { display: none; }
  .dash-nav nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .dash-nav nav a { white-space: nowrap; flex: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .steps { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 95; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .admin-side.open { transform: none; }
  .admin-scrim.show { display: block; position: fixed; inset: 0; z-index: 94; background: rgb(0 0 0 / .45); }
  .admin-menu { display: inline-grid; }
  .admin-grid, .admin-grid.wide-left, .dash-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav a { white-space: nowrap; }
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 200px); }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .inbox-list { border-right: 0; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .header-row { gap: 10px; }
  .logo-text { font-size: 1.1rem; }
  .hide-xs { display: none; }
  .header-actions .btn-primary { width: 40px; padding: 0; }
  .hero-inner { padding: 44px 16px 40px; }
  .search-panel { grid-template-columns: 1fr; }
  .section { padding-top: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { padding: 14px; }
  .listing-grid, .listing-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lc-body { padding: 10px 12px 12px; }
  .lc-price { font-size: 1rem; }
  .lc-title { font-size: .88rem; }
  .lc-meta span:last-child { display: none; }
  .as-list .listing-card { flex-direction: column; }
  .as-list .lc-media { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .listing-grid.as-list { grid-template-columns: 1fr; }
  .results-tools { width: 100%; }
  .sort-form { flex: 1; }
  .sort-form select { min-width: 0; }
  .detail-title-row { flex-direction: column; gap: 10px; }
  .detail-price { text-align: left; justify-items: start; }
  .detail-card, .form-section { padding: 18px 16px 4px; }
  .share-links { margin-left: 0; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column-reverse; }
  .cta-band { padding: 28px 22px; }
  .cta-band h2 { font-size: 1.4rem; }
  .profile-hero { padding: 20px; }
  .profile-stats { width: 100%; }
  .profile-stats div { flex: 1; min-width: 0; padding: 10px; }
  .manage-item { flex-wrap: wrap; }
  .mi-thumb { width: 96px; height: 80px; }
  .mi-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .mi-actions .btn { width: auto; }
  .report-item { flex-direction: column; }
  .report-item .mi-actions { flex-direction: row; flex-wrap: wrap; }
  .auth-form { padding: 28px 20px; }
  .db-choice { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }
  .admin-top { padding: 0 12px; }
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; }
  .flash-stack { right: 8px; width: calc(100vw - 16px); }
  .reason-input { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
