/* Buy Click Now shop page — "Signal" colours, Inter Tight + Inter. */
:root {
  --bg: #F4F4F2; --surface: #FFFFFF; --surface2: #ECECE8; --line: #E6E6E6;
  --ink: #111111; --muted: #555555; --lime: #C8F04A; --lime-soft: #EEF9CC; --money: #1E7A4C;
  --warn: #B45309; --danger: #C0262D; --primary: #111111; --on-primary: #FFFFFF;
  --r: 22px; --r-sm: 14px;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0E; --surface: #1A1A1A; --surface2: #242424; --line: #2E2E2E;
    --ink: #F4F4F2; --muted: #A3A3A3; --lime-soft: #26300F; --money: #9BE37A;
    --warn: #F59E0B; --danger: #F87171; --primary: #F4F4F2; --on-primary: #111111;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 18px var(--display); color: var(--ink); }
.mine { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.mine .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--lime); color: #111; font-size: 13px; }

main { max-width: 1120px; margin: 0 auto; padding: 16px; }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }
.spinner { width: 32px; height: 32px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.hero { padding: 20px 4px 8px; }
.eyebrow { font: 700 12px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
h1 { font: 800 clamp(30px, 7vw, 48px)/1.05 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font: 800 24px/1.15 var(--display); letter-spacing: -0.01em; margin: 0 0 6px; }
h3 { font: 700 17px/1.25 var(--body); margin: 0; }
.about { max-width: 60ch; margin: 4px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 12px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip.pay::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--money); }

.sale { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 16px 0; }
.sale-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.when { font: 700 18px var(--display); margin: 2px 0; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface2); }
.status.open { background: var(--lime); color: #111; }
.status.ended { background: var(--surface2); color: var(--muted); }
.deal { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--lime); color: #111; font-weight: 700; }

.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 6px; }
.search { flex: 1 1 220px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: var(--surface); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); overflow: hidden; padding: 0; cursor: pointer; transition: transform 0.12s ease; }
.card:hover { transform: translateY(-2px); }
.card:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.ph { aspect-ratio: 1 / 1; background: var(--surface2); display: grid; place-items: center; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nophoto { font-size: 13px; font-weight: 600; color: var(--muted); }
.card .meta { padding: 10px 12px 12px; display: grid; gap: 2px; }
.price { font: 800 22px var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price s { font: 600 14px var(--body); color: var(--muted); margin-left: 6px; }
.title { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tagline { font-size: 13px; color: var(--muted); }
.pill { position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ink); color: var(--bg); }
.pill.held { background: var(--warn); color: #fff; }
.pill.offers { background: var(--lime); color: #111; }
.card.sold { opacity: 0.55; }
.empty { padding: 32px 8px; text-align: center; color: var(--muted); }

dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: none; border-radius: var(--r); padding: 20px;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
dialog::backdrop { background: rgba(17,17,17,0.45); }
.dlg-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.dlg-close button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--surface2); font-size: 22px; line-height: 1; cursor: pointer; }
.big-photo { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--surface2); overflow: hidden; display: grid; place-items: center; margin: 8px 0 14px; }
.big-photo img { width: 100%; height: 100%; object-fit: contain; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; align-items: stretch; }
.actions .btn { min-height: 48px; }
.btn { border: 1px solid var(--line); background: var(--surface2); border-radius: 999px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.deal { background: var(--lime); color: #111; border-color: var(--lime); }
.btn[disabled] { opacity: 0.5; cursor: default; }
form.req { display: grid; gap: 10px; margin-top: 8px; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
input, textarea { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; background: var(--bg); width: 100%; }
textarea { min-height: 84px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 10px 12px; border-radius: var(--r-sm); background: var(--lime-soft); font-size: 14px; }
.error { color: var(--danger); font-weight: 600; font-size: 14px; }
.ok { padding: 14px; border-radius: var(--r-sm); background: var(--lime); color: #111; font-weight: 600; }

.mine-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.mine-list li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.mine-list .st { font-weight: 700; }
.mine-list .st.accepted, .mine-list .st.answered { color: var(--money); }
.mine-list .st.declined { color: var(--danger); }

.landing { text-align: center; padding: 60px 8px; }
.landing form { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }
.foot { max-width: 1120px; margin: 24px auto 0; padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
