/* TaxiwayMarket */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f0f3f9;
  --ink: #0d1730;
  --ink-2: #3c4864;
  --muted: #6b7690;
  --line: #e3e8f1;
  --brand: #2563eb;
  --brand-2: #6366f1;
  --brand-ink: #ffffff;
  --sky: #38bdf8;
  --gold: #f59e0b;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --navy: #0b1530;
  --shadow-sm: 0 1px 2px rgba(13, 23, 48, .06), 0 1px 3px rgba(13, 23, 48, .06);
  --shadow: 0 10px 30px -12px rgba(13, 23, 48, .22), 0 2px 6px rgba(13, 23, 48, .05);
  --shadow-lg: 0 30px 60px -20px rgba(13, 23, 48, .35);
  --r: 16px;
  --r-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d1f;
    --surface: #0f1830;
    --surface-2: #16213d;
    --ink: #e8edf8;
    --ink-2: #b7c1d8;
    --muted: #8a95b0;
    --line: #223050;
    --brand: #4f8bff;
    --brand-2: #818cf8;
    --ok-bg: #062a20;
    --err-bg: #2a0d10;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.mt { margin-top: 2.2rem; }
.nowrap { white-space: nowrap; }
.sep::before { content: "·"; margin: 0 .4em; }
.inline { display: inline; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.17em; }
.i.big { width: 44px; height: 44px; }
.i.huge { width: 76px; height: 76px; }
.i.ok { color: var(--ok); background: var(--ok-bg); border-radius: 50%; padding: 14px; margin: 0 auto 16px; }
.section { padding-top: 34px; padding-bottom: 34px; }
.page-pad { padding: 64px 20px; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .4em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(37, 99, 235, .8); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #0d1730; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.btn-danger-ghost:hover { background: var(--err-bg); }
.btn-sm { padding: .5em .95em; font-size: .85rem; }
.btn-xs { padding: .35em .7em; font-size: .76rem; }
.btn-lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07); color: #fff;
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; color: inherit; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.wordmark { font-weight: 800; letter-spacing: -.02em; }
.wordmark b { font-weight: 800; color: #fde047; }
.auth-card .wordmark, .brand-lg .wordmark { color: var(--ink); }
.auth-card .wordmark b { color: #ca8a04; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-card .wordmark b { color: #fde047; } }
.nav-links { display: flex; gap: 6px; }
.nav-links a, .nav-acct, .nav-saved { color: rgba(255, 255, 255, .78); padding: 8px 12px; border-radius: 999px; font-weight: 550; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current], .nav-acct:hover, .nav-saved:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-acct, .nav-saved { display: inline-flex; align-items: center; gap: 7px; position: relative; }
.nav-acct span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-count:empty, .dot-badge:empty { display: none; }
.saved-count, .dot-badge { background: #f43f5e; color: #fff; font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 1px 6px; line-height: 1.4; }
.nav .btn-primary { margin-left: 6px; }

.flash { padding: 12px 0; font-weight: 600; font-size: .95rem; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-err { background: var(--err-bg); color: var(--err); }
.notice { background: linear-gradient(90deg, #f59e0b, #f97316); color: #fff; padding: 9px 0; font-weight: 600; font-size: .9rem; text-align: center; }

/* hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(99, 102, 241, .45), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, .35), transparent 60%),
    linear-gradient(180deg, #0b1530 0%, #12285a 55%, #1e40af 100%);
  margin-top: -1px;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-plane { animation: drift 9s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes drift { from { translate: 0 0; } to { translate: -18px -10px; } }
@media (prefers-reduced-motion: reduce) { .hero-plane { animation: none; } }
.hero-inner { position: relative; padding: 76px 20px 64px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 18px; }
.grad { background: linear-gradient(90deg, #7dd3fc, #a5b4fc 60%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 600px; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 550; }
.hero-search {
  display: flex; gap: 8px; margin-top: 30px; max-width: 900px; padding: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
}
.hs-field { display: flex; align-items: center; gap: 8px; background: #fff; color: #0d1730; border-radius: 14px; padding: 0 14px; min-height: 52px; }
.hs-field .i { color: #6b7690; }
.hs-q { flex: 1 1 auto; min-width: 0; }
.hs-field input, .hs-field select { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; height: 50px; color: #0d1730; }
.hs-field select { cursor: pointer; padding-right: 4px; }
.hero-search .btn { border-radius: 14px; }
.hero-stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { color: rgba(255, 255, 255, .7); font-size: .9rem; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; margin-top: -2px; }
.cat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink);
  transition: transform .15s ease, box-shadow .2s, border-color .2s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.cat svg { width: 34px; height: 34px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 7px; border-radius: 12px; box-sizing: content-box; }
.cat span { font-weight: 650; font-size: .84rem; line-height: 1.2; }
.cat small { color: var(--muted); font-size: .74rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.6rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }

/* aircraft cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--surface); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; left: 12px; top: 12px; background: rgba(11, 21, 48, .72); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge-gold { left: auto; right: 56px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2300; }
.ribbon { position: absolute; inset: auto 0 0 0; background: rgba(220, 38, 38, .9); color: #fff; text-align: center; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; padding: 6px; }
.photo-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 5px; align-items: center; background: rgba(11, 21, 48, .65); color: #fff; font-size: .74rem; font-weight: 650; padding: 4px 9px; border-radius: 999px; }
.fav {
  position: absolute; right: 12px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: #64748b; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transition: transform .15s, color .15s;
}
.fav .i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav:hover { transform: scale(1.08); color: #f43f5e; }
.fav[aria-pressed="true"] { color: #f43f5e; }
.fav[aria-pressed="true"] .i { fill: currentColor; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 1.02rem; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body h3 a { color: var(--ink); }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:hover { text-decoration: none; }
.price { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.price small { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 8px; max-width: 100%; }
.chips li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips .i { width: 13px; height: 13px; color: var(--muted); }

.ph { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--muted) 55%, transparent);
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 8%, var(--surface-2))); }
.ph .i { width: 44px; height: 44px; }
.ph-big { aspect-ratio: 16 / 9; border-radius: var(--r); }
.ph-big .i { width: 80px; height: 80px; }
.ph-sm .i { width: 26px; height: 26px; }

/* full stop rows */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row-card {
  position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 64px 12px 12px;
  transition: box-shadow .2s, transform .15s;
}
.row-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.row-media { width: 120px; height: 90px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-body { min-width: 0; }
.row-body h3 { margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-body h3 a { color: var(--ink); }
.row-body p { margin: 0; display: flex; align-items: center; gap: 4px; }
.row-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.row-card .fav { top: 50%; transform: translateY(-50%); right: 14px; background: var(--surface-2); box-shadow: none; }
.row-card .fav:hover { transform: translateY(-50%) scale(1.08); }

/* promo */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo { position: relative; overflow: hidden; border-radius: 24px; padding: 38px; color: #fff; min-height: 280px; }
.promo::after { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; bottom: -150px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.promo-a { background: linear-gradient(135deg, #1e3a8a, #4f46e5 60%, #7c3aed); }
.promo-b { background: linear-gradient(135deg, #065f46, #0d9488 55%, #0ea5e9); }
.promo h2 { font-size: 1.9rem; line-height: 1.1; }
.promo p { color: rgba(255, 255, 255, .82); max-width: 430px; }
.promo .eyebrow { color: rgba(255, 255, 255, .75); }
.promo .btn { position: relative; z-index: 1; }

.empty { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); grid-column: 1 / -1; }
.empty .i { color: var(--muted); margin: 0 auto 10px; display: block; opacity: .6; }

/* page head */
.page-head { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--bg)), var(--bg)); padding: 38px 0 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.page-head-fs { background: linear-gradient(180deg, color-mix(in srgb, #0d9488 10%, var(--bg)), var(--bg)); }
.page-head-fs .eyebrow { color: #0d9488; }
.head-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lead-sm { font-size: 1.1rem; }

/* browse */
.browse { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding-top: 26px; padding-bottom: 50px; align-items: start; }
.filters-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px 18px; position: sticky; top: 84px; }
.filters-box summary { font-weight: 750; padding: 12px 0; cursor: pointer; list-style: none; }
.filters-box summary::-webkit-details-marker { display: none; }
.f { display: block; font-size: .85rem; font-weight: 650; color: var(--ink-2); margin-bottom: 14px; min-width: 0; }
.f input, .f select, .f textarea {
  display: block; margin-top: 6px; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: .95rem; font-weight: 450; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.f textarea { resize: vertical; line-height: 1.5; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.f .opt, .opt { font-weight: 450; color: var(--muted); }
.hint { display: block; margin-top: 5px; font-weight: 450; color: var(--muted); font-size: .8rem; }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.f-actions { display: flex; gap: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.sort label { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 34px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; }
.pager span { background: var(--brand); color: #fff; border-color: transparent; }
.fs-search { display: flex; gap: 8px; margin-top: 20px; max-width: 760px; }
.fs-search .hs-field { border: 1px solid var(--line); }
.fs-search select { border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--surface); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 18px 0; margin-bottom: 4px; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.tabs a:hover { text-decoration: none; border-color: var(--brand); }
.tabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: transparent; }
.cta-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 30px 0 60px; padding: 22px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }

/* detail */
.owner-bar { background: var(--navy); color: #fff; padding: 10px 0; font-size: .9rem; }
.owner-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.s-active { background: var(--ok-bg); color: var(--ok); }
.s-draft { background: #fef3c7; color: #92400e; }
.s-expired, .s-withdrawn { background: var(--surface-2); color: var(--muted); }
.s-sold { background: #e0e7ff; color: #3730a3; }
.s-removed { background: var(--err-bg); color: var(--err); }
.detail { padding-top: 18px; padding-bottom: 30px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.banner-warn { background: #fef3c7; color: #78350f; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; }
.gallery { margin-bottom: 22px; }
.g-main { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 16 / 10; }
.g-main img { width: 100%; height: 100%; object-fit: contain; }
.g-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 6px; align-items: center; background: rgba(0, 0, 0, .6); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 650; }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb { flex: none; width: 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); opacity: .72; transition: opacity .15s; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.on, .g-thumb:hover { opacity: 1; border-color: var(--brand); }
.title-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.title-row h1 { margin-bottom: 6px; }
.title-row p { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fav-lg { position: static; width: auto; height: auto; padding: 9px 16px; border-radius: 999px; gap: 6px; display: inline-flex; border: 1px solid var(--line); background: var(--surface); box-shadow: none; font-weight: 650; color: var(--ink-2); flex: none; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 8px; }
.kf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kf .i { color: var(--brand); margin-bottom: 6px; }
.kf strong { font-size: 1.15rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tbo { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.tbo-head { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 650; margin-bottom: 8px; }
.tbo-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tbo-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #10b981, #f59e0b 70%, #ef4444); background-size: 400px 100%; }
.w0 { width: 2%; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; }
.w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-top: 16px; }
.block h2 { font-size: 1.1rem; margin-bottom: 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose { overflow-wrap: anywhere; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { margin-right: 14px; }
.spec:nth-child(even) { margin-left: 14px; }
.spec dt { color: var(--muted); font-size: .9rem; }
.spec dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.sticky { position: sticky; top: 86px; }
.side-price { font-size: 1.9rem; font-weight: 850; letter-spacing: -.03em; margin-bottom: 14px; }
.side-price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.seller { display: flex; gap: 12px; align-items: center; padding: 12px 0 16px; border-top: 1px solid var(--line); }
.seller > .i { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.seller div { display: flex; flex-direction: column; }
.contact-form { margin-top: 14px; }
.side-card [data-reveal] { margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 20px 0; }
.sent .i { color: var(--ok); margin: 0 auto 10px; display: block; }
.side-card .tiny { display: flex; gap: 6px; align-items: flex-start; margin: 14px 0 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3, 7, 18, .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: .9rem; }

/* pricing / sell */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.price-card.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--brand), var(--brand-2), #f0abfc) border-box; box-shadow: var(--shadow-lg); }
.big-price { font-size: 3rem; font-weight: 850; letter-spacing: -.04em; margin: 4px 0 18px; }
.big-price .was { font-size: 1.4rem; color: var(--muted); font-weight: 600; margin-right: 6px; }
.big-price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; }
.ticks .i { color: var(--ok); margin-top: 3px; }
.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.choice { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .15s, box-shadow .2s, border-color .2s; }
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); text-decoration: none; }
.choice .i { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 16px; padding: 12px; box-sizing: content-box; margin-bottom: 16px; }
.tag { margin-top: auto; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 700; font-size: .85rem; }
.tag-free { background: color-mix(in srgb, #0d9488 14%, transparent); color: #0d9488; }

/* forms */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(800px 400px at 50% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.6rem; margin: 18px 0 20px; }
.form-error { background: var(--err-bg); color: var(--err); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .92rem; }
.form-error ul { margin: 6px 0 0; padding-left: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.listing-form fieldset { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 20px 24px 8px; margin: 0 0 20px; }
.listing-form legend { font-weight: 750; font-size: 1.05rem; padding: 0 8px; margin-left: -8px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 650; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: .78rem; }
.steps li.on { color: var(--brand); border-color: var(--brand); }
.steps li.on::before { background: var(--brand); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.publish-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r); color: #fff; background: linear-gradient(135deg, #1e3a8a, #4f46e5); margin-bottom: 40px; }
.publish-box p { color: rgba(255, 255, 255, .75); margin: 4px 0 0; }
.publish-box .btn-primary { background: #fff; color: #1e3a8a; box-shadow: none; }
.photos h2 { display: flex; justify-content: space-between; align-items: baseline; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ph-grid:empty { display: none; }
.ph-item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ph-item img { width: 100%; height: 100%; object-fit: cover; }
.ph-item .badge { top: 8px; left: 8px; }
.ph-actions { position: absolute; inset: auto 0 0 0; display: flex; gap: 6px; justify-content: flex-end; padding: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.dropzone .i { color: var(--muted); margin: 0 auto 8px; display: block; }
.dropzone p { margin: 0 0 4px; }
.link { color: var(--brand); cursor: pointer; font-weight: 650; }
.link input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--sky)); transition: width .2s; }

/* account */
.my-list { display: flex; flex-direction: column; gap: 10px; }
.my-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.my-media { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: block; }
.my-media img { width: 100%; height: 100%; object-fit: cover; }
.my-info { min-width: 0; }
.my-title { font-weight: 700; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-info .small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.my-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.inbox { display: flex; flex-direction: column; gap: 8px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.msg summary { padding: 14px 16px; cursor: pointer; }
.msg.unread { border-left: 4px solid var(--brand); }
.msg-body { padding: 0 16px 14px; }
.msg-body a { display: inline-flex; gap: 6px; align-items: center; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.contact-side .panel { padding: 20px; margin-bottom: 14px; }
.contact-side h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; margin-bottom: 6px; }
.contact-side h3 .i { color: var(--brand); }
.contact-side p { margin: 0; }
.sent-panel { padding: 44px 24px; }
.report { margin-top: 6px !important; }
.report a { color: var(--muted); text-decoration: underline; }
.tabs .dot-badge { margin-left: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* privacy / account deletion */
.placeholder { background: #fef3c7; color: #78350f; border: 1px dashed #d97706; border-radius: var(--r-sm); padding: 12px 16px; }
.lang-switch { margin-top: -6px; }
.prose .tbl { margin: 8px 0 18px; font-size: .9rem; }
.prose .tbl td, .prose .tbl th { vertical-align: top; }
.prose-list { padding-left: 20px; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.danger-zone h2 { color: var(--err); }

/* admin */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 18px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.4rem; }
.stat span { font-size: .8rem; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; font-size: .9rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl td .inline + .inline { margin-left: 4px; }
.admin-search { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-search input { flex: 1; max-width: 360px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.narrow-form { max-width: 520px; }
.err-code { font-size: 6rem; font-weight: 900; letter-spacing: -.05em; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* footer */
.foot { background: var(--navy); color: rgba(255, 255, 255, .85); margin-top: 40px; padding: 50px 0 24px; }
.foot .muted { color: rgba(255, 255, 255, .55); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.foot-grid a:not(.brand) { display: block; color: rgba(255, 255, 255, .82); padding: 3px 0; font-size: .93rem; }
.foot-grid p { margin-top: 12px; max-width: 320px; }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.home .foot { margin-top: 20px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: .4em; }

/* responsive */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .browse { grid-template-columns: 1fr; gap: 14px; }
  .filters-box { position: static; }
  .filters-box:not([open]) { padding-bottom: 6px; }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .promo-grid, .price-cards, .choose { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .hs-q { flex-basis: 100%; }
  .hero-search .hs-field:not(.hs-q) { flex: 1 1 140px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-row { gap: 10px; height: 60px; }
  .brand span { display: none; }
  .nav-acct span { display: none; }
  .hero-inner { padding: 48px 16px 40px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.4rem; }
  .hero-search .btn { flex-basis: 100%; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat { padding: 14px 4px 10px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .row-card { grid-template-columns: 84px 1fr; gap: 12px; padding-right: 54px; }
  .row-media { width: 84px; height: 68px; }
  .row-price { grid-column: 2; font-size: 1rem; }
  .specs, .cols-2 { grid-template-columns: 1fr; }
  .spec:nth-child(odd), .spec:nth-child(even) { margin: 0; }
  .promo { padding: 28px 24px; min-height: 0; }
  .promo h2 { font-size: 1.5rem; }
  .my-row { grid-template-columns: 72px 1fr; }
  .my-media { width: 72px; height: 56px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .fs-search { flex-wrap: wrap; }
  .fs-search .hs-q { flex-basis: 100%; }
  .fs-search select { flex: 1; min-height: 48px; }
  .title-row { flex-direction: column; }
  .listing-form fieldset { padding: 16px 16px 4px; }
  .auth-card { padding: 26px 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .head-flex > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
}
