/* Marketplace: header, category tiles, filters, offer cards, product page, checkout, orders, chat.
   Dark theme in the Fortnite Sniper colours (near-black and lime). No images or fonts are loaded from other sites besides the two fonts in site.css. */
.market-page .market-wrap { max-width: 1360px; margin: 0 auto; padding: 22px 28px 90px; }
.market-wrap h1 { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.04em; margin: 6px 0 8px; }
.market-wrap h2 { font-size: 18px; letter-spacing: -0.03em; margin: 0 0 12px; }
.market-wrap .card h2 { margin-top: 0; }
.market-wrap .kicker { margin: 0; }
.market-wrap > .error { margin-bottom: 14px; }
.market-wrap .stack { display: grid; gap: 12px; }
.market-wrap .inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.market-wrap a.btn-lime, .market-wrap a.btn-ghost { text-decoration: none; }

/* Boot panel and no-script / failure fallback */
.boot { max-width: 640px; margin: 8vh auto; text-align: center; padding: 34px 26px; border: 1px dashed var(--line); border-radius: 20px; background: rgba(18, 20, 26, 0.55); }
.boot h1 { font-size: 26px; }
.boot-error { border-color: rgba(251, 113, 133, 0.4); }
.boot a { color: var(--lime); }
.boot a.btn-lime, .boot a.btn-ghost { color: inherit; display: inline-flex; }
.boot a.btn-lime { color: var(--ink); }

/* Header */
.mk-header { position: sticky; top: 0; z-index: 30; background: rgba(9, 10, 12, 0.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.mk-top { display: flex; align-items: center; gap: 18px; padding: 12px 28px; max-width: 1360px; margin: 0 auto; }
.mk-top .brand { flex: none; }
.mk-hsearch { flex: 1; max-width: 680px; display: flex; align-items: stretch; background: var(--inset); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; overflow: hidden; min-width: 0; }
.mk-hsearch:focus-within { border-color: var(--lime-line); box-shadow: 0 0 0 3px rgba(214, 255, 60, 0.08); }
.mk-hsearch select { flex: none; width: 128px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--surface); padding: 0 10px; height: 42px; font-size: 13px; font-weight: 600; }
.mk-hsearch input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 0 14px; height: 42px; outline: none; }
.mk-hsearch button { flex: none; width: 52px; border: 0; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.mk-hsearch button svg { width: 20px; height: 20px; }
.mk-hsearch button:hover { filter: brightness(1.06); }
.mk-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.mk-actions a:not(.btn-ghost) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 10px; display: inline-flex; align-items: center; }
.mk-actions a:not(.btn-ghost):hover, .mk-actions a.on { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.mk-actions .mk-sell { color: var(--lime); }
.mk-actions .btn-ghost { margin-left: 6px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; }
.mk-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.mk-dot[hidden] { display: none; }
.mk-menu { display: none; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-weight: 600; margin-left: auto; }
.mk-cats { display: flex; gap: 2px; overflow-x: auto; padding: 0 28px; max-width: 1360px; margin: 0 auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mk-cats a { flex: none; padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.mk-cats a:hover { color: var(--text); }
.mk-cats a.on { color: var(--lime); border-bottom-color: var(--lime); }
.mk-cats .mk-cats-end { margin-left: auto; }

/* Hero, category tiles, trust bar */
.mk-hero { display: grid; gap: 14px; padding: 26px 30px; margin-bottom: 16px; border-radius: 22px; border: 1px solid var(--line); background:
  radial-gradient(520px 220px at 92% 0%, rgba(214, 255, 60, 0.16), transparent 60%),
  linear-gradient(135deg, #161a12, #0f1116 60%); position: relative; overflow: hidden; }
.mk-hero[hidden] { display: none; }
.mk-hero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(214, 255, 60, 0.18); box-shadow: 0 0 0 26px rgba(214, 255, 60, 0.04), 0 0 0 60px rgba(214, 255, 60, 0.025); pointer-events: none; }
.mk-hero h1 { max-width: 24ch; }
.mk-hero .lede { margin: 0; font-size: 15px; max-width: 62ch; }
.mk-hero-copy { display: grid; gap: 10px; position: relative; z-index: 1; }
.mk-tiles-wrap[hidden] { display: none; }
.mk-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.mk-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease; min-width: 0; }
.mk-tile:hover { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }
.mk-tile.on { border-color: var(--lime); background: var(--lime-soft); }
.mk-tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); flex: none; }
.mk-tile-ic .ic { width: 20px; height: 20px; }
.mk-tile-text { display: grid; gap: 2px; min-width: 0; }
.mk-tile-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tile-text small { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-trustbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 10px 0 20px; }
.mk-trustbar li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(18, 20, 26, 0.7); border: 1px solid var(--line); }
.mk-trustbar .ic { width: 20px; height: 20px; color: var(--lime); margin-top: 2px; }
.mk-trustbar span { display: grid; gap: 2px; }
.mk-trustbar strong { font-size: 13px; }
.mk-trustbar small { color: var(--faint); font-size: 12px; line-height: 1.4; }

/* Browse layout and filters */
.mk-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.mk-filters { position: sticky; top: 136px; max-height: calc(100vh - 156px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.filters-head h2 { margin: 0; }
.fgroup { border: 0; border-top: 1px solid var(--line); padding: 12px 0 4px; margin: 0; min-width: 0; }
.fgroup summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; padding-bottom: 8px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "+"; font-size: 16px; }
.fgroup[open] summary::after { content: "–"; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }
.fchip { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--inset); color: var(--muted); font-size: 13px; font-weight: 600; }
.fchip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.fchip.on { background: var(--lime); color: var(--ink); border-color: transparent; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding-bottom: 8px; }
.price-inputs input { padding: 9px 10px; }
.mk-sidebar-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-top: 8px; border-radius: 12px; background: var(--lime-soft); border: 1px solid rgba(214, 255, 60, 0.2); }
.mk-sidebar-note .ic { color: var(--lime); width: 18px; height: 18px; margin-top: 2px; }
.mk-sidebar-note p { margin: 0; font-size: 13px; }
.mk-filter-toggle { display: none; height: 38px; gap: 6px; }
.mk-main { min-width: 0; }
.mk-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mk-count { margin: 0; font-weight: 700; flex: 1; }
.mk-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.mk-sort select { width: auto; padding: 8px 12px; }
.mk-layout-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: var(--inset); color: var(--muted); padding: 0; }
.seg-icon .ic { width: 18px; height: 18px; }
.seg-icon.on { background: var(--lime); color: var(--ink); }
.mk-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mk-active:empty { display: none; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--lime-line); background: var(--lime-soft); color: var(--lime); font-size: 12px; font-weight: 700; }
.active-chip .ic { width: 12px; height: 12px; }
.mk-featured { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.mk-featured[hidden] { display: none; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; }
.mk-grid-4 { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 10px; flex-wrap: wrap; }
.pager[hidden] { display: none; }
.page-btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; }
.page-btn:hover:not(:disabled) { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.page-btn.on { background: var(--lime); color: var(--ink); border-color: transparent; }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-gap { color: var(--faint); }

/* Offer card (dense). The same markup becomes a row in list layout. */
.lc { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; position: relative; }
.lc:hover { transform: translateY(-3px); border-color: var(--lime-line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(214, 255, 60, 0.08); }
.lc-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.lc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.lc:hover .lc-media img { transform: scale(1.04); }
.lc-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.lc-ph span { padding: 0 10px; overflow-wrap: anywhere; text-align: center; }
.lc-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 8px; background: rgba(9, 10, 12, 0.78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.tag .ic { width: 11px; height: 11px; }
.tag-hot { background: var(--amber); color: #1a1300; border-color: transparent; }
.fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(9, 10, 12, 0.7); backdrop-filter: blur(6px); color: #fff; padding: 0; transition: transform 0.15s ease, background 0.15s ease; }
.fav .ic { width: 16px; height: 16px; }
.fav:hover { transform: scale(1.1); }
.fav.on { background: var(--rose); border-color: transparent; }
.fav.on .ic path { fill: currentColor; }
.lc-body { display: grid; gap: 7px; padding: 12px; flex: 1; align-content: start; min-width: 0; }
.lc-name { margin: 0; font-size: 19px; letter-spacing: -0.04em; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-link { text-decoration: none; }
.lc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lc-title { margin: -3px 0 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.lc-badges .chip { height: 22px; padding: 0 8px; font-size: 11px; }
.delivery { color: var(--text); }
.delivery-fast { color: var(--lime); background: var(--lime-soft); border-color: rgba(214, 255, 60, 0.3); }
.lc-price { display: flex; justify-content: space-between; align-items: center; margin-top: 1px; }
.lc-price strong { font-size: 21px; letter-spacing: -0.04em; color: var(--lime); }
.lc-escrow { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.lc-escrow .ic { width: 12px; height: 12px; }
.lc-seller { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding-top: 9px; margin-top: 1px; border-top: 1px solid var(--line); text-decoration: none; font-size: 13px; color: var(--muted); min-width: 0; }
.lc-seller:hover .lc-seller-name { color: var(--lime); }
.lc-seller-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.lc-seller-name { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.lc-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.lc-rating .ic { width: 12px; height: 12px; color: var(--amber); }
.lc-sales { color: var(--faint); }
.lc-skel { pointer-events: none; }
.lc-skel .lc-body { padding: 16px 14px; }
.verified-ic { color: var(--lime); width: 14px; height: 14px; flex: none; }
.lc-preview-box .lc-preview { pointer-events: none; max-width: 300px; }
.mk-grid.mk-list { grid-template-columns: 1fr; gap: 8px; }
.mk-list .lc { flex-direction: row; border-radius: 14px; }
.mk-list .lc:hover { transform: none; }
.mk-list .lc-media { width: 190px; flex: none; aspect-ratio: auto; min-height: 128px; }
.mk-list .lc-body { grid-template-columns: 1fr auto; grid-template-areas: "name price" "title price" "badges seller"; align-items: center; gap: 6px 18px; }
.mk-list .lc-name { grid-area: name; }
.mk-list .lc-title { grid-area: title; margin: 0; }
.mk-list .lc-badges { grid-area: badges; }
.mk-list .lc-price { grid-area: price; flex-direction: column; align-items: flex-end; gap: 4px; }
.mk-list .lc-seller { grid-area: seller; border-top: 0; padding-top: 0; justify-self: end; }

/* Product page */
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.pd-main { display: grid; gap: 20px; min-width: 0; }
.pd-head h1 { margin: 10px 0 6px; }
.pd-sub { margin: 0; color: var(--muted); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-tags .tag { background: var(--surface-2); }
.pd-section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.pd-section > h2 { margin-bottom: 14px; }
.pd-side { display: grid; gap: 16px; position: sticky; top: 136px; }
.pd-related { margin-top: 40px; }
.gallery { display: grid; gap: 10px; }
.gallery-stage { position: relative; }
.gallery-main { display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); padding: 0; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0b0d11; }
.gallery-zoom { position: absolute; bottom: 12px; right: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(9, 10, 12, 0.75); font-size: 12px; opacity: 0; transition: opacity 0.15s ease; }
.gallery-main:hover .gallery-zoom, .gallery-main:focus-visible .gallery-zoom { opacity: 1; }
.gallery-empty { display: grid; place-content: center; justify-items: center; gap: 6px; cursor: default; color: var(--ink); }
.gallery-empty strong { font-size: 54px; letter-spacing: -0.05em; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(9, 10, 12, 0.75); color: #fff; padding: 0; }
.gallery-nav:hover { background: var(--lime); color: var(--ink); }
.gallery-nav .ic { width: 20px; height: 20px; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gallery-thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); padding: 0; opacity: 0.65; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.on { border-color: var(--lime); opacity: 1; }

table.spec { width: 100%; border-collapse: collapse; }
table.spec th { width: 38%; color: var(--faint); font-weight: 600; font-size: 14px; padding: 10px 8px; text-align: left; }
table.spec td { font-weight: 600; padding: 10px 8px; text-transform: none; }
table.spec tr:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.delivery-box, .delivery { display: flex; gap: 14px; }
.delivery > .ic { width: 26px; height: 26px; color: var(--lime); margin-top: 2px; }
.delivery .note { margin: 10px 0 0; }

.buybox { background: linear-gradient(180deg, #181c14, var(--surface) 55%); border: 1px solid var(--lime-line); border-radius: 18px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 0 40px rgba(214, 255, 60, 0.06); }
.buybox-price { display: flex; align-items: baseline; gap: 10px; }
.buybox-price strong { font-size: 38px; letter-spacing: -0.05em; color: var(--lime); line-height: 1; }
.buybox-delivery { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buybox-delivery .note { margin: 0; }
.buybox-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.buybox-perks li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.buybox-perks .ic { color: var(--lime); }
ol.escrow-steps { list-style: none; counter-reset: es; margin: 0; padding: 0; display: grid; gap: 10px; }
ol.escrow-steps li { counter-increment: es; position: relative; padding-left: 34px; font-size: 14px; color: var(--muted); line-height: 1.5; }
ol.escrow-steps li::before { content: counter(es); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--lime-soft); color: var(--lime); font-weight: 800; font-size: 12px; border: 1px solid rgba(214, 255, 60, 0.3); }
ol.escrow-steps strong { color: var(--text); }
.buybox-actions { display: grid; gap: 10px; }
.buybox-actions .btn-lime, .buybox-actions .btn-ghost { width: 100%; height: 50px; font-size: 16px; }
.buy-btn { font-size: 17px !important; }
.fav-btn { gap: 8px; }
.fav-btn.on { color: var(--rose); border-color: rgba(251, 113, 133, 0.45); }
.fav-btn.on .ic path { fill: currentColor; }
.fee-note { margin: 0; font-size: 12px; color: var(--faint); }
.report { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.report-open { color: var(--muted); font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.report-open:hover { color: var(--rose); text-decoration: none; }
.report-form { display: grid; gap: 8px; }
.report-form[hidden] { display: none; }
.seller-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.seller-card-top { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.seller-card-top strong { display: flex; align-items: center; gap: 6px; font-size: 18px; margin-bottom: 4px; }
.seller-stats { display: grid; gap: 2px; }
.seller-stat { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.seller-stat:last-child { border-bottom: 0; }
.seller-stat .ic { color: var(--faint); }
.seller-stat span { color: var(--muted); }
.pd-side .disclaimer { font-size: 11px; color: var(--faint); }

/* Reviews */
.reviews { display: grid; gap: 12px; }
.review { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); }
.review-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.review-body p { margin: 0; overflow-wrap: anywhere; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-for { color: var(--faint); font-size: 12px; }
.review-reply { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--lime); background: var(--lime-soft); border-radius: 0 10px 10px 0; display: grid; gap: 2px; }
.review-reply p { margin: 0; }
.review-reply strong { font-size: 12px; color: var(--lime); }
.review-summary { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.review-score { display: grid; gap: 4px; justify-items: start; }
.review-score strong { font-size: 44px; letter-spacing: -0.05em; line-height: 1; }
.review-bars { display: grid; gap: 6px; }
.review-bar { display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
progress.meter { height: 8px; }
.star-picker { display: flex; gap: 4px; }
.star-pick { background: none; border: 0; padding: 2px; color: #3f3f46; }
.star-pick .ic { width: 30px; height: 30px; }
.star-pick.on { color: var(--amber); }
.star-pick.on .ic path { fill: currentColor; }

/* Seller profile */
.sp { position: relative; margin-bottom: 4px; }
.sp-banner { height: 210px; border-radius: 20px 20px 0 0; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; }
.sp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-card { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; padding: 0 28px 24px; display: grid; gap: 20px; }
.sp-head { display: flex; align-items: flex-end; gap: 20px; margin-top: -48px; flex-wrap: wrap; position: relative; }
.sp-id { flex: 1; min-width: 220px; padding-bottom: 4px; }
.sp-id h1 { margin: 0 0 8px; }
.sp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sp-stat { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); align-content: start; }
.sp-stat > span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.sp-stat strong { font-size: 18px; letter-spacing: -0.03em; }
.sp-bio h2 { margin-bottom: 6px; }
.sp-bio p { margin: 0; }

/* Sell form */
.sell-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sell-col { display: grid; gap: 16px; min-width: 0; }
.account-fields[hidden] { display: none; }
.page-head + .card, .page-head + .error { margin-top: 0; }

/* Countdowns and the clock banner */
.countdown { font-family: var(--mono); font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; }
.countdown.soon { color: var(--amber); }
.countdown.late { color: var(--rose); }
.clock-time { font-size: 1.12em; }
.clock { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--lime-soft); border: 1px solid var(--lime-line); margin-bottom: 16px; }
.clock .ic { width: 22px; height: 22px; color: var(--lime); flex: none; }
.clock p { margin: 0; line-height: 1.5; }
.clock-alert { background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.4); }
.clock-alert .ic { color: var(--rose); }
.clock-done { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }

/* Order page */
.ord-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.ord-main { min-width: 0; }
.ord-side { position: sticky; top: 136px; }
.ord-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ord-head h1 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 0; }
.ord-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; align-items: center; }
.ord-price { color: var(--lime); font-weight: 800; font-size: 20px; }
.ord-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.escrow-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.escrow-head h2 { margin: 0; }
.co-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.co-total { border-bottom: 0; }
.co-total strong { font-size: 22px; color: var(--lime); letter-spacing: -0.03em; }
ol.timeline { list-style: none; margin: 0; padding: 0; }
ol.timeline li { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
ol.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--faint); background: var(--surface); margin-top: 4px; flex: none; position: relative; z-index: 1; }
.tl-done .tl-dot { background: var(--lime); border-color: var(--lime); }
.tl-current .tl-dot { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(214, 255, 60, 0.18); }
.tl-alert .tl-dot { border-color: var(--rose); background: var(--rose); }
.tl-todo .tl-dot, .tl-skipped .tl-dot { opacity: 0.55; }
.tl-skipped .tl-body { opacity: 0.6; }
.tl-body { display: grid; gap: 2px; min-width: 0; }
.tl-body strong { font-size: 14px; }
.tl-time { color: var(--faint); font-size: 12px; }
.tl-body .note { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
details.fold { padding: 14px 18px; }
details.fold summary { cursor: pointer; font-weight: 700; }
details.fold[open] summary { margin-bottom: 12px; }
.dispute-card { border-color: rgba(251, 113, 133, 0.35); }

/* Checkout */
.co-steps { list-style: none; counter-reset: co; display: flex; gap: 8px; padding: 0; margin: 12px 0 0; flex-wrap: wrap; }
.co-steps li { counter-increment: co; display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px 7px 8px; border-radius: 99px; background: #1d2028; color: var(--muted); font-size: 13px; font-weight: 600; }
.co-steps li::before { content: counter(co); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2c303b; font-size: 11px; }
.co-steps li.on { background: var(--lime-soft); color: var(--lime); }
.co-steps li.on::before { background: var(--lime); color: var(--ink); }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.co-main { display: grid; gap: 16px; min-width: 0; }
.co-item { display: flex; gap: 16px; align-items: flex-start; }
.co-cover { width: 190px; flex: none; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.co-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-item-main { display: grid; gap: 8px; min-width: 0; flex: 1; }
.co-item-main h2 { margin: 0; }
.co-item-main .note { margin: 0; }
.co-seller { border-top: 0; padding-top: 4px; }
.co-summary { position: sticky; top: 136px; display: grid; gap: 4px; }

/* Orders list */
.ord-list { display: grid; gap: 0; margin-top: 12px; }
.ord-row.needs-action { border-color: var(--lime-line); background: linear-gradient(90deg, var(--lime-soft), var(--surface) 45%); }
.ord-clock { font-size: 13px; color: var(--muted); white-space: nowrap; }
.market-wrap .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.market-wrap .tabs { margin-bottom: 14px; }

/* Chat */
.chat-card { margin-top: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chat { min-height: 220px; max-height: 440px; overflow: auto; display: grid; gap: 8px; align-content: start; padding: 4px; scrollbar-width: thin; }
.chat-empty { text-align: center; margin: 24px 0; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.chat-form textarea { resize: vertical; min-height: 44px; }
.chat-safety { margin: 0; font-size: 12px; }
.bubble { justify-self: start; }
.bubble-head { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.bubble-role { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.role-seller { color: var(--amber); }
.role-admin { color: var(--rose); }
.bubble.from-admin { border-color: rgba(251, 113, 133, 0.45); }
.bubble.system { justify-self: center; max-width: 94%; background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; text-align: center; border-radius: 12px; }
.bubble-time { display: block; }
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-list { display: grid; gap: 6px; max-height: 72vh; overflow: auto; align-content: start; scrollbar-width: thin; }
.inbox-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; align-items: flex-start; }
.inbox-item:hover { border-color: rgba(255, 255, 255, 0.22); }
.inbox-item.on { border-color: var(--lime-line); background: var(--lime-soft); }
.inbox-item.unread strong { color: var(--lime); }
.inbox-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.inbox-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.inbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.inbox-back { display: none; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1180px) {
  .ord-layout { grid-template-columns: 1fr; }
  .ord-side { position: static; }
  .mk-trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .pd-layout, .co-layout { grid-template-columns: 1fr; }
  .pd-side, .co-summary { position: static; }
  .sell-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mk-top { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .mk-hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .mk-menu { display: inline-flex; align-items: center; }
  .mk-actions { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
  .mk-actions.open { display: flex; }
  .mk-actions a:not(.btn-ghost) { padding: 12px; }
  .mk-actions .btn-ghost { margin: 6px; max-width: none; justify-content: center; height: 42px; }
  .mk-cats { padding: 0 14px; }
  .mk-cats .mk-cats-end { margin-left: 0; }
  .mk-layout { grid-template-columns: 1fr; }
  .mk-filters { position: static; max-height: none; display: none; }
  .mk-filters.open { display: grid; }
  .mk-filter-toggle { display: inline-flex; align-items: center; }
  .inbox { grid-template-columns: 1fr; }
  .inbox .inbox-thread { display: none; }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox.has-thread .inbox-thread { display: block; }
  .inbox-back { display: inline-block; }
}
@media (max-width: 860px) {
  .market-page .market-wrap { padding: 14px 12px 70px; }
  .mk-hero { padding: 20px; }
  .mk-tiles { grid-auto-columns: minmax(150px, 62%); }
  .sp-banner { height: 130px; }
  .sp-card { padding: 0 16px 20px; }
  .review-summary { grid-template-columns: 1fr; }
  .mk-grid, .mk-grid-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .mk-toolbar { flex-wrap: wrap; }
  .mk-count { flex-basis: 100%; }
  .ord-cols { grid-template-columns: 1fr; }
  .co-item { flex-direction: column; }
  .co-cover { width: 100%; }
  .mk-grid.mk-list { grid-template-columns: 1fr; }
  .mk-list .lc { flex-direction: column; }
  .mk-list .lc-media { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .mk-list .lc-body { grid-template-columns: 1fr; grid-template-areas: none; }
  .mk-list .lc-name, .mk-list .lc-title, .mk-list .lc-badges, .mk-list .lc-price, .mk-list .lc-seller { grid-area: auto; justify-self: stretch; }
  .mk-list .lc-price { flex-direction: row; align-items: center; }
  .ord-row { flex-wrap: wrap; }
  .tab { white-space: nowrap; }
}
@media (max-width: 560px) {
  .mk-trustbar { grid-template-columns: 1fr; }
  .mk-hsearch select { width: 104px; }
  .brand span { font-size: 15px; }
  .lc-name { font-size: 16px; }
  .lc-body { padding: 10px; gap: 6px; }
  .buybox-price strong { font-size: 32px; }
  .chat-form { grid-template-columns: 1fr; }
  .mk-layout-toggle { display: none; }
}
