/* ================================================================== fonts */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ================================================================= tokens */
:root {
  --sand: #faf5eb;          /* warm canvas */
  --surface: #fffdf8;
  --surface-2: #f3ecdc;
  --ink: #14304a;           /* deep Atlantic navy */
  --ink-2: #35516c;
  --muted: #61748a;
  --line: #e6dcc8;

  --sun: #f8a800;           /* THE accent */
  --sun-deep: #d98f00;
  --sun-soft: #fff1cd;
  --sea: #0c6d92;           /* links; sun and sea are the brand pair */
  --sea-soft: #e2f0f6;

  --ok: #1a7f4e;  --ok-bg: #e2f4ea;
  --err: #b23a2f; --err-bg: #fbe9e6;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --shadow: 0 10px 30px rgba(20, 48, 74, .10);
  --shadow-sm: 0 3px 10px rgba(20, 48, 74, .07);
  --display: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
}

/* =================================================================== base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 400 17px/1.6 var(--body); background: var(--sand); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.section { margin: 88px auto; }
.section-tight { margin: 44px auto 88px; }
.section-mini { margin: 48px 0; }
@media (max-width: 768px) { .section { margin: 56px auto; } .section-tight { margin: 24px auto 56px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 99; }
.skip:focus { left: 8px; }

.i { width: 18px; height: 18px; vertical-align: -3.5px; }

/* ================================================================ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--body); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; transition: transform .18s ease-out, background .18s ease-out, box-shadow .18s ease-out; }
.btn:hover { text-decoration: none; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--surface); }
.btn-line-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-line-light:hover { background: #fff; color: var(--ink); }
.btn-wide { width: 100%; justify-content: center; }

/* ================================================================= header */
.site-head { background: var(--sand); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-word { font: 800 1.5rem var(--display); letter-spacing: -0.02em; }
.brand-word em { font-style: normal; color: var(--sun-deep); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-2); font-weight: 600; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.on { color: var(--ink); box-shadow: 0 2px 0 var(--sun); }
.site-nav .lang { color: var(--sea); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; right: 22px; top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; padding: 18px 22px; gap: 16px; }
  .site-nav.open { display: flex; }
}

/* ================================================================== flash */
.flash { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 13px 18px; border-radius: var(--r-md); font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-err { background: var(--err-bg); color: var(--err); }

/* =================================================================== hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(8,22,38,.8) 12%, rgba(8,22,38,.45) 55%, rgba(8,22,38,.15) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: 108px; padding-bottom: 148px; max-width: 1160px; }
.hero h1 { max-width: 13ch; text-shadow: 0 1px 3px rgba(5,16,28,.9), 0 3px 10px rgba(5,16,28,.75), 0 10px 40px rgba(5,16,28,.7); }
.hero-sub { max-width: 52ch; margin-top: 18px; font-size: 1.1rem; color: #fff; text-shadow: 0 1px 3px rgba(5,16,28,.9), 0 2px 8px rgba(5,16,28,.8), 0 8px 26px rgba(5,16,28,.7); }
.hero-search { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 7px 8px 7px 20px; margin-top: 30px; max-width: 560px; box-shadow: 0 6px 16px rgba(11,31,51,.35), 0 18px 48px rgba(11,31,51,.30); }
.hero-search .i { color: var(--muted); flex: none; }
.hero-search input { flex: 1; border: 0; background: none; font: 400 1.05rem var(--body); color: var(--ink); min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; color: #fff; background: rgba(11,31,51,.55); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 18px; box-shadow: 0 6px 16px rgba(11,31,51,.35); backdrop-filter: blur(4px); }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); margin-right: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248,168,0,.6); } 70% { box-shadow: 0 0 0 9px rgba(248,168,0,0); } 100% { box-shadow: 0 0 0 0 rgba(248,168,0,0); } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 2; }
@media (max-width: 768px) { .hero-inner { padding-top: 64px; padding-bottom: 110px; } }

/* ============================================================== sections */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-sub { color: var(--muted); margin-top: 6px; }
.more { font-weight: 600; white-space: nowrap; }
.results-n { color: var(--muted); margin: 18px 0 14px; }
.page-h1 { margin-top: 18px; }

/* ================================================================== cards */
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .18s ease-out, box-shadow .18s ease-out; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,253,248,.94); color: var(--ink); font: 600 .85rem var(--body); padding: 5px 11px; border-radius: 999px; }
.chip .i { width: 15px; height: 15px; }
.chip-time.urgent { background: var(--sun); }
.chip-ended { background: var(--ink); color: var(--surface); }
.card-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.card-title { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-price { font: 800 1.45rem var(--display); letter-spacing: -0.01em; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .9rem; }
.card-meta .i { width: 15px; height: 15px; }

/* ========================================================== category tiles */
.cats { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
@media (max-width: 860px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }
.cat-tile { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-sm); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,51,0) 35%, rgba(11,31,51,.78)); }
.cat-name { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 1; color: #fff; font: 700 1.12rem var(--display); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-name small { font: 600 .85rem var(--body); background: rgba(255,253,248,.22); padding: 2px 10px; border-radius: 999px; }

/* =============================================================== how band */
.how-band { background: var(--ink); color: var(--surface); padding: 96px 0; margin: 96px 0; }
.how-h { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 14ch; }
.how-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 48px 0 40px; }
@media (max-width: 860px) { .how-cols { grid-template-columns: 1fr; gap: 30px; } .how-band { padding: 64px 0; margin: 56px 0; } }
.how-n { font: 800 2.4rem var(--display); color: var(--sun); }
.how-col h3 { margin: 10px 0 8px; color: var(--surface); }
.how-col p { color: rgba(255, 253, 248, .78); }

/* ================================================================ filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-top: 22px; }
.filter-search { display: flex; align-items: center; gap: 8px; flex: 2 1 220px; background: var(--sand); border-radius: 999px; padding: 10px 16px; }
.filter-search .i { color: var(--muted); flex: none; }
.filter-search input { flex: 1; border: 0; background: none; font: 400 1rem var(--body); color: var(--ink); min-width: 0; }
.filter-search input:focus { outline: none; }
.filter { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.filter select { font: 500 1rem var(--body); color: var(--ink); background: var(--sand); border: 0; border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; }

.empty { text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 56px 24px; margin-top: 22px; display: grid; gap: 12px; justify-items: center; }
.empty p { color: var(--muted); }

/* ================================================================ auction */
.crumbs { color: var(--muted); margin-top: 20px; font-size: .95rem; display: flex; gap: 8px; }
.auction-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-top: 18px; }
@media (max-width: 960px) { .auction-grid { grid-template-columns: 1fr; } }
.auction-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.auction-desc { margin-top: 26px; }
.minor-h { font-size: 1.3rem; margin-bottom: 10px; }
.desc-body { max-width: 65ch; white-space: pre-line; }
.spec { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-weight: 600; font-size: .95rem; }

.panel { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 24px; }
.auction-side { display: grid; gap: 18px; align-content: start; }
@media (min-width: 961px) { .auction-side { position: sticky; top: 84px; } }
.auction-title { font-size: 1.5rem; margin-bottom: 16px; }
.label { display: block; font: 600 .8rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.price-big { font: 800 2.3rem var(--display); letter-spacing: -0.02em; }
.tright { text-align: right; }
.countdown { font: 700 1.25rem var(--display); }
.countdown.urgent { color: var(--err); }
.countdown.over { color: var(--muted); }
.ends-on { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.bidcount-line { color: var(--muted); margin: 12px 0 16px; font-weight: 600; }

.bid-form label { font-weight: 600; font-size: .95rem; }
.bid-row { display: flex; gap: 10px; margin-top: 8px; }
.bid-row input { flex: 1; min-width: 0; font: 700 1.2rem var(--display); color: var(--ink); background: var(--sand); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.bid-row input:focus { border-color: var(--sun); outline: none; }
.quick-bids { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.quick-bids button { font: 600 .92rem var(--body); background: var(--sun-soft); color: var(--ink); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .15s ease-out; }
.quick-bids button:hover { background: var(--sun); }
.min-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.own-note { background: var(--sea-soft); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 600; color: var(--sea); }
.ended-box { background: var(--surface-2); border-radius: var(--r-sm); padding: 14px 18px; display: grid; gap: 4px; }
.fee-note { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: grid; gap: 8px; color: var(--ink-2); font-size: .93rem; }

.seller-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--sun); font: 700 1.3rem var(--display); flex: none; }
.seller-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seller-meta { color: var(--muted); font-size: .92rem; }
.stars { color: var(--sun-deep); font-weight: 700; }
.stars .i { width: 15px; height: 15px; }

.badge { display: inline-block; font: 600 .75rem var(--body); padding: 3px 10px; border-radius: 999px; }
.badge-nuevo { background: var(--surface-2); color: var(--ink-2); }
.badge-local { background: var(--sea-soft); color: var(--sea); }
.badge-isleno { background: var(--sun-soft); color: var(--sun-deep); }
.badge-leyenda { background: var(--ink); color: var(--sun); }
.badge-founder { background: var(--sea-soft); color: var(--sea); border: 1px solid var(--sea); }
a.badge { text-decoration: none; }

/* invite-a-neighbour panel (sols page) */
.invite-panel { background: var(--surface); border: 2px dashed var(--sun); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 10px; max-width: 560px; margin-top: 12px; }
.invite-link { border: 2px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px; font: 600 .95rem var(--body); background: var(--sand); color: var(--ink); width: 100%; cursor: pointer; }
.invite-panel small { color: var(--muted); }

/* ====================================================== seller profile */
.seller-link { color: inherit; text-decoration: none; }
.seller-link:hover { text-decoration: underline; }
.badge-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 700px) { .badge-ladder { grid-template-columns: repeat(2, 1fr); } }
.badge-step { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 5px; justify-items: start; opacity: .55; }
.badge-step small { color: var(--muted); }
.badge-step.earned { opacity: 1; }
.badge-step.current { border-color: var(--sun); box-shadow: var(--shadow-sm); }
.badge-progress { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.review-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; max-width: 720px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.review-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.review-head small { color: var(--muted); }
.review-body { margin-top: 6px; color: var(--ink-2); }

/* ============================================================ sols ☀ */
.sun-i { color: var(--sun-deep); }
.sols-chip { font-weight: 700; color: var(--sun-deep); text-decoration: none; white-space: nowrap; }
.sols-balance { background: var(--surface); border: 2px solid var(--sun); border-radius: var(--r-md); padding: 14px 22px; display: grid; gap: 2px; justify-items: center; box-shadow: var(--shadow-sm); }
.sols-balance strong { font: 700 1.8rem var(--display); }
.sols-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; max-width: 640px; }
@media (max-width: 560px) { .sols-packs { grid-template-columns: 1fr; } }
.sols-pack { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: 18px 16px; display: grid; gap: 12px; justify-items: center; }
.sols-pack .pack-n { font: 700 1.5rem var(--display); }
.sols-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .sols-cols { grid-template-columns: 1fr; } }
.sols-earn { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.sols-earn li { display: flex; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.sols-earn strong { color: var(--sun-deep); white-space: nowrap; }
.sols-ledger { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; max-width: 560px; }
.sols-ledger li { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 2px; }
.sols-ledger small { color: var(--muted); margin-left: auto; }
.sols-ledger .plus { color: var(--sun-deep); }
.sols-ledger .minus { color: var(--ink-2); }

/* boost purchase box on own listings */
.boost-box { margin-top: 16px; border: 2px dashed var(--sun); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 10px; }
.boost-h { font-weight: 700; }
.boost-on { color: var(--sun-deep); font-weight: 600; }
.boost-balance { color: var(--muted); font-size: .9rem; }
.boost-balance a { color: var(--sea); }

/* boosted cards */
.chip-boost { left: 10px; top: 10px; bottom: auto; background: var(--sun); }
.card-boost { outline: 3px solid var(--sun); outline-offset: -1px; }

/* ============================================================ shops */
.shop-banner { color: #fff; padding: 44px 0 38px; }
.shop-banner .wrap { display: grid; gap: 6px; }
.shop-name { font: 700 clamp(1.8rem, 4vw, 2.6rem) var(--display); }
.shop-run-by .avatar { width: 42px; height: 42px; font-size: 1.05rem; }
.run-by-name { font-size: 1.05rem; color: var(--ink-2); }
.run-by-name strong { color: var(--ink); }
.shop-tagline { opacity: .92; max-width: 640px; }
.shop-sun { background: linear-gradient(120deg, #f2a900, #ffd23f); color: #241a00; }
.shop-sea { background: linear-gradient(120deg, #0b3954, #1d7ea8); }
.shop-sand { background: linear-gradient(120deg, #c8a97a, #e8d3ae); color: #3a2c14; }
.shop-volcano { background: linear-gradient(120deg, #1c1b1a, #7a2e1d); }
/* shop directory cards */
.shop-grid { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-card { display: grid; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .15s ease-out, box-shadow .15s ease-out; }
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-card-banner { display: grid; gap: 3px; align-content: center; padding: 20px 16px; min-height: 96px; color: #fff; }
.shop-card-name { font: 700 1.2rem var(--display); }
.shop-card-tag { font-size: .85rem; opacity: .9; }
.shop-card-body { display: grid; gap: 8px; padding: 13px 16px 15px; }
.shop-card-seller { font-weight: 600; font-size: .95rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-card-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; align-items: center; }
.shops-foot { margin-top: 22px; }
.shops-foot a { color: var(--sea); }
.seller-shop-link { margin-top: 8px; font-weight: 600; }
.seller-shop-link .seller-link { color: var(--sea); }

/* invite panel on My account */
.invite-panel-account { max-width: none; margin: 18px 0 6px; display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 18px; align-items: center; }
@media (max-width: 760px) { .invite-panel-account { grid-template-columns: 1fr; } }
.invite-h { font-weight: 700; }

.theme-row { display: flex; gap: 16px; flex-wrap: wrap; }
.theme-pick { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; cursor: pointer; }
.theme-pick input { accent-color: var(--sun-deep); }
.theme-swatch { width: 34px; height: 22px; border-radius: 6px; border: 1px solid var(--line); display: inline-block; }
.shop-panel form { display: grid; gap: 16px; margin-top: 12px; }

/* report a listing */
.report-box { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.report-box summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.report-box summary:hover { color: var(--ink); }
.report-box form { display: grid; gap: 8px; margin-top: 10px; }
.report-box textarea { border: 2px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; font: inherit; background: var(--surface); resize: vertical; }

/* ============================================================ admin */
.admin-head { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.admin-nav a.on { background: var(--ink); color: var(--surface); }
.admin-nav a:hover:not(.on) { background: var(--surface-2, rgba(11,31,51,.06)); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
@media (max-width: 1000px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.a-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; }
.a-stat span { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.a-stat strong { font: 700 1.5rem var(--display); }
.a-stat strong.warn { color: var(--err); }
.a-stat small { color: var(--muted); }
.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.admin-filter input[type=search] { flex: 1; min-width: 220px; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 9px 13px; font: inherit; background: var(--surface); }
.admin-filter select { border: 2px solid var(--line); border-radius: var(--r-sm); padding: 9px 13px; font: inherit; background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: .93rem; margin-top: 10px; }
.admin-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2, transparent); }
.admin-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-kv th { width: 160px; text-transform: none; letter-spacing: 0; font-size: .93rem; }
.a-status { display: inline-block; font: 600 .75rem var(--body); padding: 2px 9px; border-radius: 999px; background: var(--surface-2, rgba(11,31,51,.07)); color: var(--ink-2); white-space: nowrap; }
.a-status.a-paid, .a-status.a-live { background: var(--sun-soft, #fdf1d4); color: var(--sun-deep); }
.a-status.a-completed { background: #e2f4e4; color: #1e7a32; }
.a-status.a-removed, .a-status.a-expired { background: var(--err-bg); color: var(--err); }
.a-status.a-refunded, .a-status.a-ended, .a-status.a-cancelled { background: rgba(11,31,51,.08); color: var(--ink-2); }
.a-actions { display: grid; gap: 6px; justify-items: start; }
.a-remove { display: flex; gap: 6px; flex-wrap: wrap; }
.a-remove input { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 9px; font: inherit; font-size: .88rem; min-width: 200px; }
.a-btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 13px; font: 600 .88rem var(--body); cursor: pointer; color: var(--ink); text-decoration: none; display: inline-block; }
.a-btn:hover { border-color: var(--ink); }
.a-btn.a-danger { border-color: var(--err); color: var(--err); }
.a-btn.a-danger:hover { background: var(--err); color: #fff; }
.a-row-suspended td { opacity: .6; }
.admin-actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.a-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.a-inline input { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 5px 9px; font: inherit; font-size: .88rem; width: 110px; }
.a-inline input[name=note] { width: 180px; }
.admin-chat { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.admin-chat li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px; }
.admin-chat small { color: var(--muted); }
.admin .minor-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .admin-table { display: block; overflow-x: auto; } }

.panel-h { font-size: 1.05rem; margin-bottom: 12px; }
.bid-history { list-style: none; display: grid; }
.bid-history li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.bid-history li:last-child { border-bottom: 0; }
.bid-history li.top { color: var(--ink); font-weight: 600; }
.bid-history li.top strong { color: var(--sun-deep); }

/* ===================================================================== QA */
.qa { margin-top: 44px; }
.qa h2 { font-size: 1.3rem; }
.qa-none { color: var(--muted); margin-top: 14px; }
.qa-item { border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; gap: 8px; }
.qa-who { font-weight: 700; margin-right: 6px; }
.qa-seller { color: var(--sea); }
.qa-a { background: var(--surface); border-radius: var(--r-sm); padding: 10px 14px; }
.qa-await { color: var(--muted); font-size: .9rem; font-style: italic; }
.qa-ask { margin-top: 20px; display: grid; gap: 10px; justify-items: start; }
.qa-ask label { font-weight: 700; }
.qa-ask textarea { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; resize: vertical; }
.qa-ask textarea:focus { border-color: var(--sun); outline: none; }
.qa-answer { display: flex; gap: 10px; flex-wrap: wrap; }
.qa-answer input { flex: 1; min-width: 200px; font: 400 1rem var(--body); background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.qa-answer input:focus { border-color: var(--sun); outline: none; }

/* ============================================================ prose pages */
.prose-page .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; margin-top: 14px; }
.prose { margin-top: 40px; max-width: 72ch; }
.prose h2 { margin-bottom: 12px; }
.prose p { margin-bottom: 12px; max-width: 65ch; }
.fee-section { max-width: none; }
.fee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
@media (max-width: 860px) { .fee-cards { grid-template-columns: 1fr; } }
.fee-card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 26px; }
.fee-card h3 { margin-bottom: 6px; }
.fee-big { font: 800 1.5rem var(--display); color: var(--sun-deep); margin-bottom: 12px; }
.fee-table { width: 100%; border-collapse: collapse; margin: 14px 0 10px; }
.fee-table caption { text-align: left; font: 600 .8rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 8px; }
.fee-table td { padding: 9px 0; border-top: 1px solid var(--line); }
.fee-table td:last-child { text-align: right; font: 700 1.05rem var(--display); }
.fee-example { color: var(--ink-2); font-size: .95rem; background: var(--sun-soft); border-radius: var(--r-sm); padding: 12px 16px; }

/* =================================================================== auth */
.auth-wrap { max-width: 480px; margin-top: 56px; margin-bottom: 96px; }
.auth-panel { padding: 34px; }
.auth-panel h1 { font-size: 1.7rem; }
.auth-panel form { display: grid; gap: 16px; margin-top: 22px; }
.auth-panel label { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; }
.auth-panel label small { font-weight: 400; color: var(--muted); }
.auth-panel input { font: 400 1.05rem var(--body); color: var(--ink); background: var(--sand); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; }
.auth-panel input:focus { border-color: var(--sun); outline: none; }
.auth-alt { margin-top: 20px; color: var(--muted); }

/* ================================================================ account */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.bid-list { display: grid; gap: 10px; margin-top: 18px; }
.bid-line { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r-sm); padding: 10px 16px 10px 10px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s ease-out; }
.bid-line:hover { transform: translateX(3px); text-decoration: none; }
.bid-line img { border-radius: 6px; object-fit: cover; }
.bid-line-title { font-weight: 600; }
.bid-line-price { font: 700 1.1rem var(--display); }
.state { font: 600 .8rem var(--body); padding: 4px 12px; border-radius: 999px; }
.state-winning { background: var(--ok-bg); color: var(--ok); }
.state-outbid { background: var(--err-bg); color: var(--err); }
.state-won { background: var(--sun-soft); color: var(--sun-deep); }
.state-lost { background: var(--surface-2); color: var(--muted); }
@media (max-width: 620px) { .bid-line { grid-template-columns: 60px 1fr; } .bid-line-price, .state { grid-column: 2; justify-self: start; } }

/* ================================================================= footer */
.site-foot { background: var(--ink); color: rgba(255,253,248,.82); margin-top: 96px; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-word { font: 800 1.4rem var(--display); color: #fff; margin-top: 10px; }
.foot-word em { font-style: normal; color: var(--sun); }
.foot-tag { color: rgba(255,253,248,.6); margin-top: 4px; }
.foot-h { font: 600 .8rem var(--body); text-transform: uppercase; letter-spacing: .07em; color: rgba(255,253,248,.55); margin-bottom: 12px; }
.site-foot a { display: block; color: rgba(255,253,248,.85); padding: 4px 0; }
.site-foot a:hover { color: var(--sun); text-decoration: none; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,253,248,.15); margin-top: 48px; padding-top: 22px; font-size: .9rem; color: rgba(255,253,248,.55); }

/* ================================================================= cookie */
.cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 60; display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 22px; max-width: 720px; margin: 0 auto; }
.cookie[hidden] { display: none; } /* the class display beats the hidden attribute otherwise */
.cookie p { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 620px) { .cookie { flex-direction: column; align-items: stretch; text-align: left; } }

/* ==================================================================== 404 */
.notfound { text-align: center; padding: 110px 22px 140px; display: grid; gap: 14px; justify-items: center; }
.notfound p { color: var(--muted); }

/* ============================================================= sell form */
.sell-wrap { max-width: 640px; }
.auth-panel input:not([type=radio]):not([type=checkbox]), .auth-panel select, .auth-panel textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.auth-panel label { min-width: 0; }
.auth-panel textarea, .auth-panel select { font: 400 1.02rem var(--body); color: var(--ink); background: var(--sand); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; resize: vertical; }
.auth-panel textarea:focus, .auth-panel select:focus { border-color: var(--sun); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.choice-set { border: 2px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 10px; }
.choice-set legend { font-weight: 600; font-size: .95rem; padding: 0 6px; }
.choice, .auth-panel label.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.choice input { accent-color: var(--sun-deep); width: 17px; height: 17px; flex: none; margin-top: 3px; }
.choice-locked { color: var(--muted); font-size: .92rem; display: grid; gap: 10px; justify-items: start; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
.auth-panel input[type=file] { background: var(--sand); border: 2px dashed var(--line); border-radius: var(--r-sm); padding: 14px; }
.cancel-form { margin-top: 14px; }

/* photo management on the edit form */
.photo-manage { display: flex; gap: 12px; flex-wrap: wrap; }
.photo-tile { display: grid !important; gap: 6px; font-weight: 400 !important; font-size: .85rem; cursor: pointer; }
.photo-tile img { width: 108px; height: 81px; object-fit: cover; border-radius: var(--r-sm); border: 2px solid var(--line); display: block; }
.photo-tile:has(input:checked) img { opacity: .35; border-color: var(--err, #c0392b); }
.photo-remove { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.photo-remove input { accent-color: var(--sun-deep); width: 15px; height: 15px; }
.btn-nav { padding: 9px 18px; font-size: .95rem; }

/* ================================================================ gallery */
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; padding: 0; cursor: pointer; background: none; line-height: 0; opacity: .75; transition: opacity .15s ease-out; }
.thumb img { width: 88px; height: 66px; object-fit: cover; }
.thumb.on, .thumb:hover { border-color: var(--sun); opacity: 1; }

/* ============================================================== watch btn */
.watch-form { margin-top: 14px; }
.watch-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: 600 .95rem var(--body); color: var(--ink-2); background: none; border: 2px solid var(--line); border-radius: 999px; padding: 10px; cursor: pointer; transition: border-color .15s ease-out, color .15s ease-out; }
.watch-btn:hover { border-color: var(--ink); color: var(--ink); }
.watch-btn.on { border-color: var(--sun); color: var(--sun-deep); background: var(--sun-soft); }
.order-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--sun-soft); flex-wrap: wrap; }

/* ============================================================= order page */
.order-grid { max-width: 760px; }
.order-main { display: grid; gap: 18px; margin-top: 18px; }
.order-head { display: flex; gap: 18px; align-items: center; }
.order-head img { border-radius: var(--r-sm); object-fit: cover; flex: none; }
.order-title { font-size: 1.4rem; }
.order-sub { color: var(--muted); margin-top: 6px; }
.state-o-awaiting_payment { background: var(--sun-soft); color: var(--sun-deep); }
.state-o-paid { background: var(--ok-bg); color: var(--ok); }
.state-o-completed { background: var(--sea-soft); color: var(--sea); }
.state-o-expired, .state-o-cancelled { background: var(--surface-2); color: var(--muted); }
.pay-panel h2 { font-size: 1.2rem; margin-bottom: 8px; }
.deadline { font-weight: 600; color: var(--sun-deep); margin-bottom: 16px; }
.pay-option { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 12px; }
.pay-option p { color: var(--ink-2); font-size: .95rem; }
.pay-summary { display: grid; margin-top: 4px; }
.pay-summary > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pay-summary dt { color: var(--muted); }
.pay-summary .total { font-weight: 700; border-bottom: 0; }
.refresh-form { margin-top: 10px; }
.linklike { background: none; border: 0; color: var(--sea); font: 400 .92rem var(--body); cursor: pointer; padding: 0; }
.linklike:hover { text-decoration: underline; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 12px; align-items: flex-start; background: var(--sand); border-radius: var(--r-sm); padding: 14px; font-size: .95rem; line-height: 1.5; }
.chat-thread { display: grid; gap: 10px; margin: 14px 0; }
.chat-msg { max-width: 80%; background: var(--sand); border-radius: 14px 14px 14px 4px; padding: 10px 14px; }
.chat-msg.mine { justify-self: end; background: var(--sun-soft); border-radius: 14px 14px 4px 14px; }
.chat-who { font: 600 .78rem var(--body); color: var(--muted); display: block; margin-bottom: 2px; }
.chat-form { display: flex; gap: 10px; margin-top: 12px; }
.chat-form input { flex: 1; min-width: 0; font: 400 1rem var(--body); background: var(--sand); border: 2px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.chat-form input:focus { border-color: var(--sun); outline: none; }
.rate-form { display: grid; gap: 12px; justify-items: start; margin-top: 12px; }
.rate-form input[type=text] { width: 100%; font: 400 1rem var(--body); background: var(--sand); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; color: var(--line); }
.star-pick label .i { width: 30px; height: 30px; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--sun); }
.star-pick input:focus-visible + label { outline: 3px solid var(--sun); border-radius: 4px; }
.payout-box { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 22px; margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.edit-link { margin-top: 12px; }

/* ================================================================= motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
