/* Inter (variable, weights 100–900) served from kikz.lt itself (v2.01): loading it from Google's servers sent every
   visitor's IP address to Google before cookie consent (GDPR – LG München, 2022). latin-ext holds ą č ę ė į š ų ū ž.
   Font licence: public/fonts/OFL.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ===== KIKZ design tokens (from the Figma screens) ===== */
:root {
  --primary: #5B4BE8; --primary-600: #4b3bd8; --primary-50: #efedfd; --primary-100: #e0dcfb;
  --lime: #D7F53C; --lime-600: #c3e22a;
  --ink: #1d1d1f; --ink-2: #5f5f66; --ink-3: #8e8e93; --line: #e6e6eb; --surface: #f3f3f5; --bg: #fff;
  --ok: #1f9d55; --ok-bg: #e7f6ee; --warn: #b7791f; --warn-bg: #fdf4e3; --danger: #d93a3a; --danger-bg: #fdecec;
  --r-sm: 6px; --r: 8px; --r-lg: 14px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 2px 8px rgba(20, 20, 40, .06);
  --shadow-lg: 0 10px 40px rgba(20, 20, 40, .16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px; --tabbar-h: 64px; --header-h: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 .75em; }
code { font-size: .9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 999; }
.skip:focus { left: 8px; }
.load-more { text-align: center; margin-top: 24px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; } .center { text-align: center; } .right { text-align: right; } .grow { flex: 1; min-width: 0; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; } .gap { gap: 12px; } .gap-s { gap: 6px; } .between { justify-content: space-between; } .end { justify-content: flex-end; } .wrap-row { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 640px; }
.h1 { font-size: 26px; margin-bottom: 12px; } .h2 { font-size: 17px; margin: 18px 0 10px; }
.danger { color: var(--danger) !important; }
.linklike { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.linklike.on-dark { color: #fff; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r); font-weight: 500; font-size: 15px; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; text-decoration: none !important; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-600); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; } .btn-outline:hover { background: var(--primary-50); }
.btn-ghost { color: var(--ink); } .btn-ghost:hover { background: var(--surface); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); } .btn-lime:hover { background: var(--lime-600); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; } .btn-lg { min-height: 50px; font-size: 16px; padding: 0 24px; } .btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-outline.busy::after, .btn-ghost.busy::after { border-color: var(--primary) var(--primary) transparent transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); position: relative; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface); text-decoration: none; }
.round-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { font-weight: 800; font-size: 28px; letter-spacing: -.04em; color: var(--ink); font-stretch: condensed; }
.logo-link:hover { text-decoration: none; }
.header-search { flex: 1; min-width: 0; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--r); padding: 0 12px; height: 40px; color: var(--ink-3); }
.header-search input { flex: 1; border: 0; background: none; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.header-search:focus-within { box-shadow: 0 0 0 2px var(--primary-100); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
@media (max-width: 899px) { .header-actions { gap: 0; } .header-search input { width: 100%; } }
.lang-toggle { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 6px 8px; border-radius: var(--r-sm); }
.lang-toggle:hover { background: var(--surface); }
.dot { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; font-style: normal; }
.avatar-btn { border-radius: 50%; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; display: grid; z-index: 60; }
.menu-pop a, .menu-pop button { padding: 9px 12px; border-radius: var(--r); color: var(--ink); text-align: left; font-size: 14px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface); text-decoration: none; }
.catbar { display: flex; gap: 28px; height: 40px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar-link { color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; padding: 10px 0; border-bottom: 2px solid transparent; }
.catbar-item.on .catbar-link, .catbar-link:hover { border-color: var(--primary); text-decoration: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.08); border-top: 1px solid var(--line); }
.mega-inner { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-top: 16px; padding-bottom: 24px; }
.mega-l2 { list-style: none; margin: 0; padding: 0; }
.mega-l2 a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: var(--ink); font-size: 14px; }
.mega-l2 a .ic { color: var(--primary); } .mega-l2 a .chev { margin-left: auto; color: var(--ink-3); }
.mega-l2 a.on, .mega-l2 a:hover { background: var(--surface); text-decoration: none; }
.mega-l3 { columns: 2; column-gap: 32px; align-content: start; }
.mega-l3 a { display: block; padding: 8px 0; color: var(--ink); font-size: 14px; break-inside: avoid; }
.mega-l3 a.strong { font-weight: 600; }

/* ===== Tabbar (mobile) ===== */
.tabbar { display: none; }
@media (max-width: 899px) {
  .hide-sm { display: none !important; }
  .catbar, .mega { display: none !important; }
  .wrap { padding: 0 14px; }
  .header-row { gap: 10px; height: 56px; }
  .logo { font-size: 24px; }
  .header-search { height: 38px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); z-index: 55; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); font-size: 11px; position: relative; }
  .tab:hover { text-decoration: none; }
  .tab.on { color: var(--primary); }
  .tab .dot { top: 6px; right: calc(50% - 22px); }
  #main { padding-bottom: calc(var(--tabbar-h) + 24px); }
  .site-footer { padding-bottom: calc(var(--tabbar-h) + 16px) !important; }
  body:not(.is-home) .site-footer { display: none; }
  body[data-route*="item"] .site-header, body[data-route*="sell"] .site-header, body[data-route*="checkout"] .site-header { position: static; }
}
@media (min-width: 900px) { .show-sm { display: none !important; } }

/* ===== Footer ===== */
.site-footer { margin-top: 64px; padding: 40px 0 24px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 24px; }
.footer-cols h2 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 40px; color: var(--ink-2); font-size: 13px; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--ink-2); }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ===== Hero ===== */
.hero { position: relative; max-width: var(--wrap); margin: 8px auto 0; height: 440px; border-radius: 0; overflow: hidden; display: flex; align-items: center; padding: 0 60px; }
.hero-bg { position: absolute; inset: 0; background: #e9e9ec url(/img/hero.svg) right center / cover no-repeat; }
.hero-card { position: relative; background: var(--lime); padding: 34px 36px 30px; max-width: 470px; border-radius: 2px; }
.hero-title { font-size: 52px; line-height: .98; font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; margin-bottom: 18px; font-stretch: condensed; }
.hero-points { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 899px) {
  .hero { height: auto; min-height: 360px; margin: 0 -0px; padding: 90px 16px 24px; align-items: flex-end; }
  .hero-card { padding: 22px 22px 20px; max-width: 320px; }
  .hero-title { font-size: 34px; }
}

/* ===== Promo cards ===== */
.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.promo { display: flex; justify-content: space-between; background: var(--primary); color: #fff; border-radius: var(--r); padding: 20px 22px; min-height: 120px; overflow: hidden; position: relative; }
.promo:hover { text-decoration: none; background: var(--primary-600); }
.promo h3 { font-size: 18px; font-weight: 500; max-width: 12ch; }
.promo-read { display: inline-block; margin-top: 16px; font-size: 13px; text-decoration: underline; }
.promo-art { align-self: flex-end; color: var(--lime); opacity: .95; }
.promo-pair.small { margin-top: 14px; } .promo-pair.small .promo { min-height: 100px; padding: 16px; }
@media (max-width: 600px) { .promo-pair { gap: 10px; } .promo { padding: 14px; min-height: 110px; } .promo h3 { font-size: 15px; } .promo-art .ic { width: 40px; height: 40px; } }

/* ===== Sections / rails ===== */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { font-size: 24px; font-weight: 500; }
.view-all { color: var(--ink); text-decoration: underline; font-size: 14px; }
@media (max-width: 600px) { .section { margin-top: 36px; } .section-head h2 { font-size: 20px; } }
.cat-pills { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.cat-pill { scroll-snap-align: start; display: grid; gap: 10px; justify-items: center; color: var(--ink); font-size: 15px; text-align: center; }
.cat-pill:hover { text-decoration: none; }
.cat-pill-img { width: 150px; height: 200px; border-radius: 75px; background: #efeff2; display: grid; place-items: center; overflow: hidden; transition: transform .2s; }
.cat-pill:hover .cat-pill-img { transform: translateY(-3px); }
.cat-pill-img img { width: 150%; max-width: none; }
@media (max-width: 600px) { .cat-pills { grid-auto-columns: 104px; gap: 10px; } .cat-pill-img { width: 104px; height: 140px; } .cat-pill { font-size: 13px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.rail-item { scroll-snap-align: start; min-width: 0; }
@media (max-width: 899px) { .rail { grid-auto-columns: 44%; gap: 10px; } }
.brand-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.brand-tile { height: 92px; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-content: center; text-align: center; color: var(--ink); gap: 2px; }
.brand-tile:hover { border-color: var(--ink); text-decoration: none; }
.brand-tile span { font-weight: 900; font-style: italic; font-size: 19px; text-transform: uppercase; letter-spacing: -.03em; }
.brand-tile small { color: var(--ink-3); font-size: 12px; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; text-align: center; }
.trust-strip strong { display: block; font-size: 28px; font-weight: 700; }
.trust-strip span { color: var(--ink-2); font-size: 13px; }

/* ===== Item cards ===== */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid.grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid.grid-list { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; min-width: 0; }
.card:hover { box-shadow: 0 4px 18px rgba(20,20,40,.14); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-list .card-img { aspect-ratio: 4 / 3; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.card-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.card-brand { font-size: 12px; color: var(--ink-3); min-height: 18px; }
.card-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.card-price { font-size: 19px; font-weight: 500; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.card-list .card-title { font-size: 16px; } .card-list .card-price { font-size: 22px; }
.like { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; }
.like-overlay { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: #fff; border-radius: var(--r-pill); padding: 3px 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.like:not(.like-overlay) { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; background: #fff; }
.like.liked { color: #e0463f; }
.like.static { cursor: default; }
.ribbon { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; z-index: 2; text-transform: uppercase; }
.ribbon-draft { background: var(--ink-2); } .ribbon-hidden { background: var(--danger); top: 34px; }
.is-sold .card-img img { filter: grayscale(.8) opacity(.7); }
.chip-checked { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 600; padding: 3px 8px 3px 6px; border-radius: var(--r-pill); }
.chip-checked.lg { position: static; font-size: 13px; padding: 4px 10px 4px 8px; }
.vbadge { display: inline-grid; place-items: center; background: var(--lime); border-radius: 50%; flex-shrink: 0; vertical-align: middle; }
.skeleton .card-img, .sk-line { background: linear-gradient(90deg, #f1f1f4, #e8e8ec, #f1f1f4); background-size: 200% 100%; animation: sk 1.2s infinite; }
.sk-line { height: 10px; border-radius: 4px; margin: 6px 0; } .w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ===== Page head (mobile screens) ===== */
.page-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; min-height: 56px; margin-bottom: 8px; }
.page-head h1, .page-head h2 { text-align: center; font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head-right { min-width: 44px; display: flex; justify-content: flex-end; }

/* ===== Catalogue ===== */
.catalog { padding-top: 12px; }
.cat-top { display: flex; align-items: center; gap: 4px; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.crumbs a { color: var(--ink-3); }
.cat-title h1 { font-size: 28px; font-weight: 500; margin: 6px 0 12px; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.subcat { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; color: var(--ink); white-space: nowrap; font-size: 14px; }
.subcat .ic { color: var(--primary); } .subcat:hover { border-color: var(--ink); text-decoration: none; }
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters-side { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 4px; }
@media (max-width: 999px) { .cat-layout { grid-template-columns: 1fr; } .filters-side { display: none; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: var(--r-pill); padding: 7px 14px; font-size: 14px; white-space: nowrap; }
.chip:hover { background: #e9e9ee; }
.chip-filter .ic { color: var(--primary); }
.badge-count:not(:empty) { background: var(--primary); color: #fff; border-radius: 9px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; }
@media (min-width: 1000px) { .chips { display: none; } }
.result-count { font-size: 13px; color: var(--ink-2); }
.sort select { border: 1px solid var(--line); border-radius: var(--r); height: 36px; padding: 0 30px 0 10px; font: inherit; font-size: 14px; background: #fff; }
.view-toggle { display: flex; gap: 2px; }
.view-toggle button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-3); }
.view-toggle button[aria-pressed="true"] { color: var(--primary); background: var(--primary-50); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.active-filters:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--primary-50); color: var(--primary); border-radius: var(--r-pill); padding: 5px 10px; font-size: 13px; font-weight: 500; }
.search-in, .search-big { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--r); padding: 0 12px; height: 42px; color: var(--ink-3); margin: 6px 0 10px; }
.search-in input, .search-big input { flex: 1; border: 0; background: none; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.search-big { height: 48px; margin-top: 16px; }
/* Filter sections */
.fsec { border-bottom: 1px solid var(--line); }
.fsec summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 2px; cursor: pointer; font-size: 15px; }
.fsec summary::-webkit-details-marker { display: none; }
.fsec summary > span:first-child { flex: 1; }
.fsec-val { color: var(--ink-3); font-size: 13px; }
.fsec[open] summary .ic { transform: rotate(180deg); }
.fsec summary .ic { transition: transform .15s; color: var(--ink-3); }
.fsec-body { padding: 0 2px 14px; }
.checks { display: grid; gap: 2px; border: 0; padding: 0; margin: 0; max-height: 300px; overflow: auto; }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: var(--r-sm); cursor: pointer; font-size: 14px; }
.check:hover { background: var(--surface); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex-shrink: 0; }
.check span { flex: 1; } .check small { color: var(--ink-3); }
.check a { text-decoration: underline; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.range { display: flex; align-items: flex-end; gap: 8px; }
.range label { display: grid; gap: 2px; font-size: 12px; color: var(--ink-3); flex: 1; }
.range input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; font: inherit; min-width: 0; }
.catlist a { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; color: var(--ink); font-size: 14px; }
.input-sm { height: 34px !important; margin-bottom: 6px; font-size: 14px !important; }
.sheet { position: fixed; inset: 0; background: #fff; z-index: 90; display: flex; flex-direction: column; animation: up .2s ease-out; }
.sheet .page-head { padding: 0 12px; border-bottom: 1px solid var(--line); margin: 0; }
.sheet-body { flex: 1; overflow: auto; padding: 0 16px; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

/* Search gateway */
.sport-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.sport-tile { display: grid; gap: 6px; color: var(--ink); font-weight: 600; text-align: center; font-size: 15px; }
.sport-tile:hover { text-decoration: none; }
.sport-tile-img { background: #efeff2; border-radius: var(--r); aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; }

/* ===== Item page ===== */
.item-page { padding-top: 8px; }
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; margin-top: 8px; }
@media (max-width: 1000px) { .item-grid { grid-template-columns: minmax(0,1fr) 360px; gap: 28px; } }
@media (max-width: 899px) { .item-grid { grid-template-columns: 1fr; gap: 16px; } .item-page > .crumbs { display: none; } }
.gallery { position: relative; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: var(--surface); aspect-ratio: 4 / 3; scrollbar-width: none; outline-offset: 3px; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; cursor: zoom-in; }
.gallery-main .noimg { flex: 1; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: var(--r-pill); }
.thumbs { display: flex; align-items: center; gap: 8px; margin-top: 10px; justify-content: center; }
.thumb-row { display: flex; gap: 10px; overflow-x: auto; }
.thumb { width: 78px; height: 66px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; flex-shrink: 0; }
.thumb.on { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-mobile-bar { position: relative; z-index: 3; display: flex; gap: 8px; margin: 0 0 -54px; padding: 8px; }
.item-mobile-bar .like { background: rgba(255,255,255,.92); border: 0; box-shadow: var(--shadow); }
@media (max-width: 899px) { .item-page .gallery-main { border-radius: 0; margin: 0 -14px; aspect-ratio: 4 / 3; } }
.info-card { background: #fff; border-radius: var(--r-lg); box-shadow: 0 2px 14px rgba(20,20,40,.1); padding: 24px; position: sticky; top: 124px; }
@media (max-width: 899px) { .info-card { box-shadow: none; padding: 4px 0; position: static; } }
.info-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.item-title { font-size: 24px; font-weight: 500; margin: 6px 0 12px; overflow-wrap: anywhere; }
.item-price { font-size: 30px; font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.about .label { margin-bottom: 4px; }
.about p { font-size: 14px; }
.attr-table { margin: 14px 0; }
.attr-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.attr-table > div:last-child { border-bottom: 1px solid var(--line); }
.attr-table dt { color: var(--ink); } .attr-table dd { margin: 0; text-align: right; font-weight: 500; }
.seller-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.seller-link { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.seller-link > span { display: grid; min-width: 0; } .seller-link small { color: var(--ink-2); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.seller-link:hover { text-decoration: none; }
.verified-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 8px; text-decoration: underline; }
.contact-card { margin-top: 14px; padding: 14px; border-radius: var(--r); background: var(--surface); display: grid; gap: 8px; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink); background: #fff; border-radius: var(--r); padding: 10px 12px; overflow-wrap: anywhere; }
.contact-line .ic { color: var(--primary); }
.owner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.owner-actions p { width: 100%; margin: 4px 0 0; }
.report { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; }
.notice { display: flex; align-items: center; gap: 8px; background: var(--primary-50); border-radius: var(--r); padding: 10px 14px; margin: 8px 0; font-size: 14px; }
.notice-warn { background: var(--warn-bg); color: #7a4b0c; }
.dev-note { background: #fffbe6; border: 1px dashed #e6c200; border-radius: var(--r); padding: 8px 12px; font-size: 13px; margin: 12px 0; }
/* Item check box */
.ic-box { background: var(--primary); color: #fff; border-radius: var(--r); padding: 16px 18px; margin-top: 16px; display: grid; gap: 8px; }
/* Offer: compact light card; everything lines up after the badge (tester feedback A13) */
.ic-box.ic-offer { background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--ink); padding: 12px 14px; margin-top: 12px; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ic-body { display: grid; gap: 6px; min-width: 0; } .ic-body .ic-head { font-size: 15px; } .ic-body p { color: var(--ink-2); font-size: 13px; }
.ic-body .btn { justify-self: start; margin-top: 2px; }
.ic-box p { margin: 0; font-size: 14px; }
.ic-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ic-fee { margin-left: auto; font-weight: 600; }
.ic-note { display: flex; gap: 6px; align-items: flex-start; opacity: .9; font-size: 13px !important; }
.ic-box .btn { justify-self: start; }
.ic-box.ic-ok { background: var(--ok-bg); color: var(--ink); grid-template-columns: auto 1fr; align-items: start; }
.ic-box.ic-ok .ic { color: var(--ok); }
.ic-box.ic-pending { background: var(--warn-bg); color: var(--ink); grid-template-columns: auto 1fr; }
.ic-steps { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 16px; }
.ic-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.ic-steps p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }

/* ===== Forms ===== */
.field { display: grid; gap: 6px; margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: block; }
.req { color: var(--danger); }
.input { width: 100%; height: 46px; border: 1.5px solid transparent; background: var(--surface); border-radius: var(--r); padding: 0 14px; font: inherit; color: var(--ink); outline: none; transition: border-color .15s, background .15s; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus { border-color: var(--primary); background: #fff; }
.input[aria-invalid="true"], [data-field][aria-invalid="true"] { border-color: var(--danger); }
.field-error, .form-error { color: var(--danger); font-size: 13px; }
.form-error:empty { display: none; }
.form-error { background: var(--danger-bg); padding: 10px 12px; border-radius: var(--r); margin-bottom: 12px; }
.input-icon { position: relative; } .input-icon .ic { position: absolute; left: 12px; top: 13px; color: var(--ink-3); } .input-icon .input { padding-left: 40px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); font-size: 14px; border: 1.5px solid transparent; }
.seg input:checked + span { background: var(--primary-50); border-color: var(--primary); color: var(--primary); font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.check.switch input { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: #d1d1d6; position: relative; transition: background .15s; }
.check.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.check.switch input:checked { background: var(--primary); } .check.switch input:checked::after { transform: translateX(16px); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; }
.panel-title { font-size: 15px; margin-bottom: 12px; }

/* ===== Auth ===== */
.auth-wrap { min-height: 70vh; display: grid; place-items: start center; padding: 24px 14px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; justify-items: center; margin-bottom: 16px; }
.auth-card h1 { font-size: 24px; margin-bottom: 18px; }
.auth-card form > .btn { margin: 8px 0 14px; }
@media (min-width: 900px) { .auth-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px 28px 28px; margin-top: 24px; } }

/* Onboarding */
.onboarding { max-width: 420px; margin: 0 auto; padding: 16px 18px; min-height: 85vh; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.onb-top { display: flex; justify-content: space-between; } .onb-top a { color: var(--ink); text-decoration: underline; }
.onb-logo .logo { font-size: 30px; }
.onb-title { font-size: 24px; font-weight: 500; }
.onb-art { flex: 1; display: grid; place-items: center; background: var(--primary-50); border-radius: 24px; transform: rotate(-3deg); min-height: 260px; overflow: hidden; }
.onb-icon { color: var(--primary); }
.onb-dots { display: flex; gap: 6px; justify-content: center; } .onb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); } .onb-dots i.on { width: 20px; border-radius: 4px; background: var(--ink); }

/* ===== Sell ===== */
.sell-start { padding-top: 16px; }
.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 20px; }
.intent { display: grid; gap: 10px; color: var(--ink); font-weight: 500; text-align: center; font-size: 16px; }
.intent:hover { text-decoration: none; } .intent:hover .intent-img { box-shadow: 0 0 0 2px var(--primary); }
.intent-big { grid-column: 1 / -1; }
.intent-img { background: #efeff2; border-radius: var(--r-lg); aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; transition: box-shadow .15s; }
.intent-big .intent-img { aspect-ratio: 16/9; }
.intent-img img, .sport-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.sell-form-wrap { max-width: 720px; }
.import-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--lime); color: var(--ink); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; }
.import-banner > span:not(.import-ic) { flex: 1; display: grid; gap: 2px; } .import-banner strong { font-size: 17px; font-weight: 800; } .import-banner small { color: var(--ink); opacity: .75; }
.import-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.import-banner:hover { background: var(--lime-600); }
/* Sell progress (A3) */
.sell-progress { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px 12px; margin-bottom: 14px; box-shadow: var(--shadow); }
.sp-text { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.sp-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.sp-bar li { border-top: 4px solid var(--line); padding-top: 4px; font-size: 11px; color: var(--ink-3); border-radius: 2px; }
.sp-bar li.ok { border-top-color: var(--primary); color: var(--ink); }
.sell-progress.done .sp-bar li { border-top-color: var(--ok); } .sell-progress.done .sp-text { color: var(--ok); }
@media (max-width: 899px) { .sell-progress { top: 8px; } .sp-label { display: none; } }
/* Share (A10) */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--ink); font-weight: 500; text-decoration: none; }
.share-btn:hover { border-color: var(--primary); color: var(--primary); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid.small { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); margin-top: 8px; }
.photo, .photo-add { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.main { box-shadow: 0 0 0 2px var(--primary); }
.photo-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.95); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.photo-act { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.photo-act.rm { top: 6px; right: 6px; } .photo-act.star { left: 6px; bottom: 6px; } .photo-act.left { top: 6px; left: 6px; }
.photo-add { display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed #c7c7cc; background: #fafafc; color: var(--primary); font-size: 13px; font-weight: 500; cursor: pointer; text-align: center; padding: 6px; }
.photo-add:hover, .photo-add:focus-within { border-color: var(--primary); background: var(--primary-50); }
.photo-add.busy { opacity: .6; pointer-events: none; }
.select-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 46px; background: var(--surface); border-radius: var(--r); padding: 0 12px 0 14px; text-align: left; font-size: 15px; border: 1.5px solid transparent; }
.select-row[aria-invalid="true"], [data-field="category_id"][aria-invalid="true"] .select-row { border-color: var(--danger); }
.frame-box { background: var(--surface); border-radius: var(--r-lg); padding: 14px; margin-bottom: 14px; }
.frame-diagram { width: 100%; max-width: 320px; margin: 4px auto 8px; color: var(--ink); display: block; }
.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .attr-grid, .row2 { grid-template-columns: 1fr; } .card-form .row2 { grid-template-columns: 1fr 1fr; } }
.input-price { font-size: 20px; font-weight: 600; }
.sell-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 20px 0 10px; }
@media (max-width: 899px) { .sell-actions { position: sticky; bottom: calc(var(--tabbar-h) + 8px); background: #fff; padding: 10px 0; margin: 0; } .sell-actions .btn { flex: 1; } }
.picker .page-head { padding: 0 8px; }
.picker .search-in { margin: 4px 16px 12px; }
.picker-sec { padding: 0 16px 8px; }
.picker-sec .label { margin: 6px 0; }
.pick-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.pick-row > span:first-of-type { flex: 1; display: grid; } .pick-row small { color: var(--ink-3); font-size: 12px; }
.pick-row .accent { color: var(--primary); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c7c7cc; flex-shrink: 0; }
.radio-dot.on { border: 6px solid var(--primary); }
.loading-screen { position: fixed; inset: 0; background: rgba(255,255,255,.96); z-index: 100; display: grid; place-content: center; justify-items: center; gap: 12px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--primary-100); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
.spinner.big { width: 56px; height: 56px; border-width: 5px; }
.success-screen { text-align: center; padding-top: 48px; display: grid; gap: 12px; justify-items: center; }
.success-screen .stack { width: 100%; max-width: 360px; margin-top: 8px; }
.success-share { width: 100%; margin-top: 16px; } .success-share h2 { font-size: 16px; margin: 0 0 10px; }
.success-upsell { width: 100%; max-width: 480px; margin: 0 0 8px; padding: 20px; border: 1px solid var(--primary-100); background: var(--primary-50); border-radius: var(--r-lg); }
.success-upsell h2 { font-size: 20px; margin-top: 0; }
.upsell-skip { display: block; margin: 14px auto 0; font-size: 14px; }
.success-mark { width: 104px; height: 104px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; animation: pop .35s ease-out; }
.success-mark.warn { background: var(--warn); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.mini-steps { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; text-align: left; font-size: 14px; color: var(--ink-2); }
.mini-steps li::before { content: "○"; margin-right: 8px; } .mini-steps li.done { color: var(--ok); } .mini-steps li.done::before { content: "●"; }
/* Upsell */
.upsell { text-align: center; position: relative; }
.upsell h2 { font-size: 24px; margin: 10px 0 8px; }
.close-tl { position: absolute; left: 0; top: 0; }
.mini-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; text-align: left; }
.mini-card { border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; font-size: 12px; position: relative; }
.mini-card.on { box-shadow: 0 0 0 2px var(--primary); }
.mini-img { aspect-ratio: 4/3; background: var(--surface); } .mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-seller { display: grid; padding: 6px 8px; background: #fff; }
.mini-card.on .mini-seller { background: var(--lime); }
.mini-body { padding: 4px 8px 8px; display: grid; gap: 2px; } .clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Modals ===== */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,15,25,.45); animation: fade .15s; }
.modal { position: relative; background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: up .18s ease-out; outline: none; }
.modal-wrap.closing { opacity: 0; transition: opacity .15s; }
.dialog { padding: 20px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 20px; }
.dialog-text { font-size: 16px; margin-bottom: 18px; }
.sheet-full .modal { max-width: 520px; height: min(720px, calc(100vh - 32px)); }
@media (max-width: 600px) {
  .modal-wrap { padding: 0; place-items: end stretch; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .sheet-full .modal { height: 100vh; max-height: 100vh; border-radius: 0; }
  .dialog { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@keyframes fade { from { opacity: 0; } }
.lb .modal { max-width: min(1100px, 96vw); background: #000; }
.lightbox { position: relative; display: grid; place-items: center; min-height: 60vh; }
.lightbox img { max-height: 86vh; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(0,0,0,.35); }
.lb-close { top: 10px; right: 10px; } .lb-prev { left: 10px; top: 50%; } .lb-next { right: 10px; top: 50%; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 200; display: grid; gap: 8px; width: max-content; max-width: 92vw; }
@media (max-width: 899px) { #toasts { bottom: calc(var(--tabbar-h) + 16px); } }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: 14px; box-shadow: var(--shadow-lg); animation: up .2s; }
.toast-err { background: var(--danger); }
.toast.out { opacity: 0; transition: opacity .3s; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.table tr.clickable { cursor: pointer; } .table tr.clickable:hover { background: #fafafc; }

/* ===== Account ===== */
.me-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); margin-bottom: 14px; }
.me-card > span:not(.avatar) { flex: 1; display: grid; } .me-card strong { display: inline-flex; gap: 6px; align-items: center; } .me-card:hover { text-decoration: none; border-color: var(--primary); }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface); }
.avatar-fallback { display: inline-grid; place-items: center; background: var(--primary); color: #fff; font-weight: 600; }
.completion .progress { height: 6px; background: var(--surface); border-radius: 3px; margin: 10px 0 12px; overflow: hidden; }
.completion .progress i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.steps li .ic { color: var(--primary); }
.steps li.done { color: var(--ink-3); } .steps li.done .linklike, .steps li.done a { color: var(--ink-3); text-decoration: line-through; }
.menu-group { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 14px; margin-bottom: 14px; }
.menu-group > .btn { margin: 10px 0; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: 15px; }
.menu-row:last-child { border-bottom: 0; }
.menu-row > span:first-of-type { flex: 1; } .menu-row .ic:first-child { color: var(--ink-2); } .menu-row:hover { text-decoration: none; }
.profile-page { max-width: 900px; }
.profile-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 18px; }
.profile-head > div { flex: 1; } .profile-head h1 { font-size: 26px; display: flex; align-items: center; gap: 8px; }
.profile-head p { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; }
.tabs { display: flex; background: var(--surface); border-radius: var(--r-pill); padding: 3px; margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: var(--r-pill); color: var(--ink); font-size: 14px; }
.tabs a.on { background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.tabs a:hover { text-decoration: none; }
.seg-pills { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.seg-pills a { padding: 7px 16px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 14px; border: 1.5px solid transparent; }
.seg-pills a.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); font-weight: 500; }
.seg-pills a:hover { text-decoration: none; }
.about-tab .cover { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; background: var(--primary-50); margin-bottom: 14px; }
.about-tab .cover img { width: 100%; height: 100%; object-fit: cover; } .about-tab .cover img.blurred { filter: blur(20px) saturate(1.2); transform: scale(1.2); }
.about-tab h2 { font-size: 24px; }
.bio { margin-top: 14px; }
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.rating-sum { display: flex; align-items: center; gap: 10px; margin: 14px 0; } .rating-sum strong { font-size: 28px; }
.stars { display: inline-flex; gap: 1px; color: #f5b301; } .stars .off { color: #d1d1d6; }
.reviews { list-style: none; padding: 0; margin: 0; }
.reviews li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reviews p { margin: 4px 0 0; font-size: 14px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0 0 14px; }
.star-input legend { width: 100%; margin-bottom: 6px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { color: #d1d1d6; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5b301; }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.notifs { list-style: none; padding: 0; margin: 0; }
.notifs a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.notifs a:hover { text-decoration: none; background: #fafafc; }
.n-thumb { width: 52px; height: 52px; border-radius: var(--r); overflow: hidden; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.n-thumb img { width: 100%; height: 100%; object-fit: cover; }
.n-text { display: block; font-size: 15px; }
.notifs .unread .n-text { font-weight: 500; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 8px; flex-shrink: 0; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.order-img { width: 64px; height: 64px; border-radius: var(--r); overflow: hidden; background: var(--surface); flex-shrink: 0; } .order-img img { width: 100%; height: 100%; object-fit: cover; }
.order a { color: var(--ink); }
.order-status { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.check-steps { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--ink-3); } .check-steps span { display: inline-flex; align-items: center; gap: 4px; } .check-steps .done { color: var(--ok); }
.status-pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.st-paid, .st-verified, .st-clear, .st-passed, .st-active, .st-resolved { background: var(--ok-bg); color: var(--ok); }
.st-pending, .st-initiated, .st-open { background: var(--warn-bg); color: var(--warn); }
.st-failed, .st-denied, .st-flagged, .st-rejected, .st-removed { background: var(--danger-bg); color: var(--danger); }
.st-refunded, .st-draft, .st-dismissed, .st-sold { background: var(--surface); color: var(--ink-2); }
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 8px; color: var(--ink-2); }
.empty .ic { color: var(--ink-3); } .empty h1, .empty h3 { color: var(--ink); font-size: 18px; } .empty p { max-width: 42ch; }
/* KYC */
.kyc-form .h1 { margin-top: 8px; }
.kyc-buttons { display: grid; gap: 10px; margin-top: 24px; }
.btn-smartid { background: #00a98f; color: #fff; min-height: 50px; } .btn-smartid:hover { background: #008f79; }
.btn-eparasas { background: #1f6fd9; color: #fff; min-height: 50px; } .btn-eparasas:hover { background: #185bb4; }
.control-code { font-size: 44px; font-weight: 700; letter-spacing: .15em; margin: 12px 0; color: var(--primary); }
/* Checkout */
.co-item { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.co-item img { width: 88px; height: 70px; object-fit: cover; border-radius: var(--r-sm); }
.co-item > div { display: grid; }
.summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-foot { margin-top: 20px; display: grid; gap: 12px; }
.co-foot .total { font-size: 17px; }
/* Prose pages */
.prose { font-size: 16px; line-height: 1.65; max-width: 68ch; }
.prose h2 { font-size: 18px; margin: 18px 0 8px; }
.prose ol.numbered { padding-left: 1.3em; display: grid; gap: 10px; }
.prose details { border-bottom: 1px solid var(--line); padding: 12px 0; } .prose summary { cursor: pointer; font-weight: 500; }
.prose .vbadge { margin: 0 2px; }

/* ===== Admin ===== */
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 104px); }
.admin-nav { border-right: 1px solid var(--line); padding: 16px 10px; display: grid; align-content: start; gap: 2px; position: sticky; top: 104px; height: calc(100vh - 104px); overflow: auto; background: #fafafc; }
.admin-brand { font-weight: 800; font-size: 20px; padding: 4px 12px 14px; } .admin-brand span { font-weight: 500; color: var(--primary); font-size: 14px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r); color: var(--ink); font-size: 14px; }
.admin-nav a:hover { background: #fff; text-decoration: none; } .admin-nav a.on { background: var(--primary-50); color: var(--primary); font-weight: 500; }
.admin-nav .count { margin-left: auto; font-style: normal; font-size: 11px; background: var(--primary); color: #fff; border-radius: 9px; padding: 0 6px; } .admin-nav .count:empty { display: none; }
.admin-main { padding: 20px 28px 40px; min-width: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; } .adm-head h1 { font-size: 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 4px; color: var(--ink); background: #fff; }
.kpi span { font-size: 13px; color: var(--ink-2); } .kpi strong { font-size: 26px; font-weight: 600; }
.kpi:hover { text-decoration: none; border-color: var(--primary); } .kpi.warn { border-color: #f1c27d; background: var(--warn-bg); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 40px; align-items: center; gap: 10px; font-size: 14px; }
.bar { height: 10px; background: var(--surface); border-radius: 5px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--primary); }
.cell-item { display: flex; align-items: center; gap: 10px; min-width: 200px; } .cell-item img { width: 48px; height: 38px; object-fit: cover; border-radius: 4px; }
.cell-item span { display: grid; } .cell-item a { color: var(--ink); font-weight: 500; }
.adm-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .adm-filters .input { height: 40px; max-width: 320px; }
.adm-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.adm-photos a { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4/3; } .adm-photos img { width: 100%; height: 100%; object-fit: cover; }
.adm-photos a.id { box-shadow: 0 0 0 3px var(--lime); } .adm-photos span { position: absolute; left: 4px; bottom: 4px; background: var(--lime); font-size: 11px; padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .report-list .panel { margin: 0; }
.mail-body { white-space: pre-wrap; font-size: 13px; background: var(--surface); padding: 10px; border-radius: var(--r); margin: 8px 0 0; overflow-x: auto; }
body.is-admin-route .site-footer { display: none; }
@media (max-width: 899px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .admin-brand { display: none; } .admin-nav a { white-space: nowrap; }
  .admin-main { padding: 14px; } .adm-cols { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 110px 1fr 32px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
.intent-big .intent-img img { object-fit: contain; background: #efeff2; }

/* ===== Chat / message center (Step 3) ===== */
.inbox-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.inbox-tabs a { padding: 10px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.inbox-tabs a.on { color: var(--ink); border-bottom-color: var(--primary); }
.tab-count { font-style: normal; background: var(--primary); color: #fff; border-radius: var(--r-pill); font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.convs { list-style: none; margin: 0; padding: 0; }
.convs a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.convs a:hover { background: var(--surface); }
.conv-thumb { position: relative; width: 56px; height: 42px; border-radius: var(--r-sm); background: var(--surface); flex-shrink: 0; display: grid; place-items: center; }
.conv-thumb > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.conv-av { position: absolute; right: -6px; bottom: -6px; border: 2px solid #fff; border-radius: 50%; display: flex; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-title, .conv-last { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.conv-title { color: var(--ink-2); } .conv-last { color: var(--ink-3); }
.convs li.unread .conv-last { color: var(--ink); font-weight: 600; }
.conv-count { font-style: normal; min-width: 22px; height: 22px; border-radius: 11px; background: var(--primary); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.chat-head { margin-bottom: 0; }
.chat-who { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.chat-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-listing { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; }
.chat-listing .grow { display: grid; min-width: 0; } .chat-listing .clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-listing-img { width: 56px; height: 42px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); flex-shrink: 0; } .chat-listing-img img { width: 100%; height: 100%; object-fit: cover; }
.chat-sold { background: var(--surface); border-radius: var(--r-pill); font-size: 12px; padding: 2px 8px; }
.chat-safety { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; margin: 10px 2px; }
.chat-page { display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-h) - 24px); }
@media (max-width: 899px) { .chat-page { min-height: calc(100dvh - var(--header-h) - var(--tabbar-h) - 8px); } }
.chat-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px 0 16px; }
.chat-day { align-self: center; font-size: 12px; color: var(--ink-3); margin: 10px 0 4px; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 16px; word-wrap: break-word; }
.bubble.theirs { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble-text { white-space: pre-wrap; }
.bubble-meta { font-size: 11px; opacity: .7; margin-top: 2px; text-align: right; }
.bubble.offer { border: 2px solid var(--lime); }
.bubble-offer { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 2px; }
.chat-compose { position: sticky; bottom: 0; background: #fff; padding: 10px 0 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat-compose.busy { opacity: .6; pointer-events: none; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-text { flex: 1; resize: none; min-height: 44px; max-height: 160px; line-height: 1.4; padding-top: 11px; }
.chat-send { min-width: 48px; padding: 0 12px; }
.buy-actions { display: grid; gap: 8px; margin-top: 12px; justify-items: stretch; }
.buy-actions .linklike { justify-self: start; }
@media (max-width: 899px) { .chat-compose { bottom: var(--tabbar-h); } }
/* Phones: pinned price + "message seller" bar on the item page */
.buy-bar { position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20,20,40,.06); transition: transform .2s; }
.buy-bar strong { font-size: 18px; } .buy-bar .btn { flex: 0 1 auto; }
.buy-bar.off { transform: translateY(calc(100% + var(--tabbar-h))); }
@media (max-width: 899px) { .item-page:has(.buy-bar) { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { .buy-bar { transition: none; } }
/* New-password fields: live checklist (sign-up, reset, change password) */
.pw-wrap { position: relative; } .pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.pw-eye[aria-pressed="true"] { color: var(--primary); }
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.pw-rules li { display: flex; align-items: center; gap: 6px; }
.pw-rules li .ic { border-radius: 50%; background: var(--surface); color: transparent; padding: 1px; }
.pw-rules li.ok { color: var(--ok); } .pw-rules li.ok .ic { background: var(--ok); color: #fff; }
.pw-rules li.bad { color: var(--ink-2); }
.pw-match { margin: 6px 0 0; font-size: 13px; min-height: 1.2em; } .pw-match.ok { color: var(--ok); } .pw-match.bad { color: var(--danger); }
.pw-forgot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; } .pw-forgot p { margin: 0; }
/* Testers' feedback button (testing mode only) */
.fb-btn { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); }
.fb-btn:hover { background: #000; } .fb-btn.busy { opacity: .6; cursor: progress; }
@media (max-width: 899px) { .fb-btn { bottom: calc(var(--tabbar-h) + 84px); right: 12px; width: 44px; padding: 0; justify-content: center; } .fb-btn span { display: none; } }
.fb-dialog { max-width: 520px; }
.fb-kinds { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kinds .chip { cursor: pointer; } .fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds .chip:has(input:checked) { background: var(--primary); color: #fff; } .fb-kinds .chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.fb-shot { display: grid; gap: 6px; margin-bottom: 8px; } .fb-shot img { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.fb-meta { word-break: break-word; }
.site-version { opacity: .7; }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fb-list li { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.fb-thumb { width: 140px; height: 96px; border-radius: var(--r); overflow: hidden; background: var(--surface); flex-shrink: 0; display: grid; place-items: center; }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fb-list p { margin: 6px 0; } .ok-text { color: var(--ok); } .danger-text { color: var(--danger); }
.cond-hint { margin: 8px 0 0; min-height: 1.3em; }
/* Search suggestions (A4) */
[data-search] { position: relative; }
.sg-box { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-height: min(70vh, 460px); overflow-y: auto; color: var(--ink); }
.sg-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 8px 10px 4px; }
.sg-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--r); cursor: pointer; }
.sg-item .ic { color: var(--ink-3); margin-top: 2px; flex-shrink: 0; }
.sg-item.on, .sg-item:hover { background: var(--primary-50); } .sg-item.on .ic { color: var(--primary); }
.sg-text { display: grid; min-width: 0; } .sg-label { font-weight: 600; } .sg-text small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-item:last-child { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 var(--r) var(--r); }
/* F3: "publish a new listing" tile on the owner's own listing tabs */
.add-card { border: 2px dashed var(--primary-100); background: var(--primary-50); box-shadow: none; text-decoration: none; color: var(--ink); min-height: 220px; }
.add-card:hover { border-color: var(--primary); }
.add-card-in { flex: 1; display: grid; place-items: center; align-content: center; gap: 8px; padding: 16px; text-align: center; }
.add-card-plus { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.add-card small { color: var(--ink-2); }
/* O4: admin duplicates */
.dup-group { display: grid; gap: 10px; margin-bottom: 14px; }
.dup-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dup-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.dup-item:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.dup-img { width: 64px; height: 48px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); flex-shrink: 0; } .dup-img img { width: 100%; height: 100%; object-fit: cover; }
.dup-item .grow { display: grid; min-width: 0; } .dup-item small { font-size: 12px; }
.dup-group .btn { justify-self: start; }

/* v1.72 (F7): iOS Safari zooms the page in when a focused field has text under 16 px, and that zoom survives in-app navigation
   (the search page autofocuses its field, so category pages opened afterwards showed shifted to the right). Fields stay 16 px on phones.
   F6: the phone search page has its own big field, so the header one is hidden there. */
@media (max-width: 899px) {
  input, select, textarea, .input, .input-sm, .header-search input, .search-in input, .search-big input, .sort select, .range input { font-size: 16px !important; }
  .input-price { font-size: 20px !important; }
  body.is-search .header-search { display: none; }
}

/* Cookie banner (v2.0) – above the mobile tab bar */
.cookie-banner { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.cookie-banner p { margin: 0; padding-right: 28px; }
.cookie-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); border-radius: 50%; cursor: pointer; }
.cookie-close:hover { background: var(--surface); }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 899px) { .cookie-banner { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); } }
.kyc-doc-preview { display: block; max-width: 100%; max-height: 260px; margin-top: 10px; border-radius: var(--r); border: 1px solid var(--line); }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; background: var(--primary-50); color: var(--ink); font-size: 14px; text-align: center; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; gap: 10px; font-weight: 600; }
.btn-google:hover { background: #f7f8f8; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-3); font-size: 13px; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
