:root {
  --bg: #fbf8f3;
  --ink: #0d1b2a;
  --muted: #5a6677;
  --line: #e9e3d9;
  --soft: #f4efe7;
  --gold: #f5b301;
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.04), 0 14px 34px -20px rgba(13, 27, 42, 0.28);
  --green: #0a7d55;
  --green-dark: #075f41;
  --green-tint: #e7f4ed;
  --amber: #f5b301;
  --amber-tint: #fff5d6;
  --blue: #1877f2;
  --red: #c0362c;
  --red-tint: #fdecea;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 26px;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--green-dark); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.section { padding: 56px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.loading { padding: 80px 16px; text-align: center; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.95rem/1 var(--body); padding: 12px 18px; border-radius: 999px; border: 1px solid transparent; background: var(--green); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--green-dark); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: #fff; color: var(--red); border-color: #efc5c1; }
.btn-danger:hover { background: var(--red-tint); }
.btn-sm { padding: 8px 13px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 1.25rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a, .nav-user a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav-user a:hover { color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green-dark); }
.nav-user { display: flex; align-items: center; gap: 16px; }
.count { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 0.75rem; font-weight: 600; text-align: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.menu-btn svg { display: block; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green-dark); white-space: nowrap; }
.badge-plain { background: var(--soft); color: var(--muted); }
.badge-amber { background: var(--amber-tint); color: #7a5a00; }
.badge-red { background: var(--red-tint); color: var(--red); }
.badge-blue { background: #e8f1fe; color: #0f5fcc; }
.tick { width: 16px; height: 16px; vertical-align: -3px; flex: none; }

/* hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 18px; }
.search { display: flex; gap: 8px; margin-top: 28px; max-width: 520px; }
.search input { flex: 1; min-width: 0; }
.hero-links { margin-top: 16px; }
.track { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: #fff; box-shadow: 0 18px 50px -28px rgba(16, 35, 28, 0.35); }
.track h3 { margin-bottom: 4px; }
.track ol { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.track li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 16px; position: relative; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::before { display: none; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; background: var(--soft); color: var(--muted); border: 2px solid var(--line); position: relative; z-index: 1; }
.track li strong { display: block; font-weight: 600; }
.track li span.muted { font-size: 0.9rem; }
.held { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: var(--amber-tint); font-weight: 600; }
.held i { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); flex: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(245, 179, 1, 0.25); } }

/* listing cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: #b9cbc2; transform: translateY(-2px); }
.cover { aspect-ratio: 16 / 9; background: var(--green-tint); display: grid; place-items: center; font: 700 2.6rem/1 var(--display); color: var(--green-dark); letter-spacing: -0.04em; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.c1 { background: #fff0d9; color: #8a5200; }
.cover.c2 { background: #e6eefc; color: #1c4fa3; }
.cover.c3 { background: #f3e9fb; color: #6a2f9c; }
.cover.c4 { background: #fde9ec; color: #a32a45; }
.cover.c5 { background: #e2f4f6; color: #0f6a75; }
.cover.c6 { background: #eef1e0; color: #55641a; }
.cover.c7 { background: #eceef1; color: #3d4a57; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.1rem; }
.card-body p { color: var(--muted); font-size: 0.93rem; }
.card-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card-nums div span { display: block; font-size: 0.78rem; color: var(--muted); }
.card-nums div strong { font-weight: 600; font-size: 1rem; }
.empty { border: 1px dashed #c7d3cc; border-radius: var(--r); padding: 40px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 500; background: #fff; }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* forms */
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.84rem; margin-top: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd9d3; border-radius: var(--r-sm); padding: 11px 12px; }
input[type="file"] { padding: 8px; }
input[type="radio"], input[type="checkbox"] { width: auto; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(10, 125, 85, 0.25); border-color: var(--green); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { display: none; background: var(--red-tint); color: var(--red); padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.92rem; margin-bottom: 14px; }
.form-error.show { display: block; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.panel-soft { background: var(--soft); border-color: transparent; }
.panel h3 { margin-bottom: 12px; }
.auth { width: min(440px, 100% - 32px); margin: 56px auto; }
.auth h1 { font-size: 2rem; margin-bottom: 8px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; border: 1px solid #cfd9d3; border-radius: var(--r-sm); padding: 12px 14px; font-weight: 500; cursor: pointer; margin: 0; display: flex; gap: 10px; align-items: center; }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--amber-tint); font-size: 0.92rem; }
.notice-red { background: var(--red-tint); color: #7d1f18; }
.notice-green { background: var(--green-tint); }
.notice-plain { background: var(--soft); }

/* listing page */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; padding: 36px 0 64px; align-items: start; }
.detail .cover { border-radius: var(--r); aspect-ratio: 16 / 8; font-size: 4rem; }
.detail h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats div { background: #fff; padding: 14px 16px; }
.stats span { display: block; font-size: 0.8rem; color: var(--muted); }
.stats strong { font: 700 1.2rem/1.3 var(--display); letter-spacing: -0.01em; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 12px; }
.prose h2 { margin: 40px 0 12px; scroll-margin-top: 84px; }
.prose h3 { margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.side { position: sticky; top: 84px; }
.price { font: 700 2rem/1.1 var(--display); letter-spacing: -0.02em; }
.seller { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.stars { color: #d99a00; letter-spacing: 1px; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.risk { padding: 12px 0; border-top: 1px solid var(--line); }
.risk strong { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }

/* deal timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.timeline li { padding: 14px 12px 12px; border-radius: var(--r-sm); background: var(--soft); border-top: 4px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.timeline li b { display: block; color: var(--ink); font-size: 0.93rem; font-weight: 600; }
.timeline li.done { border-top-color: var(--green); background: var(--green-tint); }
.timeline li.now { border-top-color: var(--amber); background: var(--amber-tint); color: #5d4500; }
.timeline li .n { font-size: 0.75rem; font-weight: 600; }
.deal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.log li:first-child { border-top: 0; }
.proof { display: flex; gap: 12px; justify-content: space-between; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.proof:first-child { border-top: 0; }
details.fold { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
details.fold summary { cursor: pointer; font-weight: 600; }
details.fold[open] summary { margin-bottom: 14px; }

/* tables & lists */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.item { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.item:first-child { border-top: 0; }
.item a.title { font-weight: 600; color: var(--ink); text-decoration: none; }
.item a.title:hover { text-decoration: underline; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--green); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.tile span { display: block; color: var(--muted); font-size: 0.85rem; }
.tile strong { font: 700 1.4rem/1.3 var(--display); }
.page-head { padding: 36px 0 24px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* chat */
.chat { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: min(680px, calc(100vh - 200px)); min-height: 420px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.chat-list a[aria-current="true"] { background: var(--green-tint); }
.chat-list a strong { display: flex; justify-content: space-between; gap: 8px; }
.chat-list a span { display: block; color: var(--muted); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-top { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-color: var(--green); }
.msg time { display: block; font-size: 0.72rem; opacity: 0.7; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.back { display: none; }

/* steps on home/guide */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--green); padding-top: 14px; }
.steps li::before { content: counter(s); font: 700 1.5rem/1 var(--display); color: var(--green); display: block; margin-bottom: 8px; }
.steps li strong { display: block; margin-bottom: 4px; }
.steps li span { color: var(--muted); font-size: 0.92rem; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-out { display: grid; gap: 10px; margin-top: 16px; }
.calc-out div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-out div:last-child { border-bottom: 0; font-weight: 600; font-size: 1.1rem; }
.cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta p { color: #b9c9c1; margin-top: 8px; max-width: 46ch; }
.cta .btn { background: var(--amber); color: var(--ink); }
.cta .btn:hover { background: #ffc626; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 48px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.foot-grid h3 { font: 600 0.92rem/1.3 var(--body); letter-spacing: 0; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li + li { margin-top: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-about p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; max-width: 32ch; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.pay span.lbl { color: var(--muted); font-size: 0.88rem; margin-right: 4px; }
.pay-badge { border: 1px solid #cfd9d3; background: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 0.84rem; }
.foot-end { margin-top: 18px; color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* toasts & dialog */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 0.93rem; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.toast.err { background: var(--red); }
.dialog { border: 0; border-radius: var(--r); padding: 24px; width: min(460px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(16, 35, 28, 0.5); }
.dialog h3 { margin-bottom: 14px; }

/* ---------- premium layer ---------- */
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { font-size: 0.78rem; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 4px 8px; }
.activity { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.92rem; color: var(--muted); }
.activity strong { color: var(--ink); }
.ssr { padding: 40px 0; max-width: 760px; }
.ssr h1 { font-size: 2rem; margin-bottom: 12px; }
.ssr h2 { margin: 28px 0 10px; }
.ssr li + li { margin-top: 6px; }
.post-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; text-decoration: none; color: inherit; align-items: center; }
.post-card:not(:has(img)) { grid-template-columns: 1fr; }
.post-card img, .post-cover { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card h3 { margin-bottom: 6px; }
.post-cover { margin-bottom: 28px; }
.post-body h2:first-child { margin-top: 0; }
.tmsg { padding: 12px 14px; border-radius: 12px; background: var(--soft); margin-top: 10px; }
.tmsg.staff { background: var(--green-tint); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chart { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.75rem; color: var(--muted); text-align: right; height: 170px; font-variant-numeric: tabular-nums; }
.chart-plot svg { width: 100%; height: 170px; display: block; }
.chart .bar path { fill: var(--green); }
.chart .bar:hover path { fill: var(--green-dark); }
.chart .bar:hover rect { fill: rgba(13, 27, 42, 0.05); }
.chart .axis { stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-x { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.cover.locked { background: repeating-linear-gradient(135deg, #eef1f5 0 14px, #e4e9ef 14px 28px); }
.lock { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px -10px rgba(13, 27, 42, 0.5); }
.lock svg { width: 30px; height: 30px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.pay-badge.soon { border-style: dashed; background: transparent; color: #9fb0c3; }
h3 { font-weight: 700; }
.site-header { background: linear-gradient(var(--bg) 70%, rgba(251, 248, 243, 0)); border-bottom: 0; backdrop-filter: none; padding-top: 12px; }
.site-header .wrap { background: var(--ink); border-radius: 18px; padding: 0 22px; height: 68px; box-shadow: 0 16px 34px -20px rgba(13, 27, 42, 0.7); }
.site-header .logo { color: #fff; }
.nav a, .nav-user a, .nav-user .linkbtn { color: #c6d0dc; text-decoration: none; }
.nav a:hover, .nav-user a:hover, .nav-user .linkbtn:hover, .nav a[aria-current="page"], .nav-user a[aria-current="page"] { color: #fff; }
.nav-user a.btn { background: var(--gold); color: var(--ink); padding: 11px 18px; }
.nav-user a.btn:hover { background: #ffc934; color: var(--ink); }
.menu-btn { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn { box-shadow: 0 8px 18px -12px rgba(10, 125, 85, 0.9); }
.btn-ghost, .btn-danger { box-shadow: none; }
.section-soft { background: #fff; border-block: 1px solid var(--line); }
.panel, .track, .tile, .table-wrap, .chat, details.fold { background: #fff; }
.panel, .track, .tile { box-shadow: var(--shadow); }
.panel-soft { background: var(--soft); box-shadow: none; }
.panel .panel { box-shadow: none; }
.hero { padding: 72px 0 64px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; }
.hero h1 span { color: var(--green); display: block; }
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.92rem; }
.pill-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.pill svg { width: 16px; height: 16px; flex: none; }
.search input { border-radius: 999px; padding: 13px 20px; border-color: var(--line); box-shadow: var(--shadow); }
.card { border-radius: 24px; padding: 8px; box-shadow: var(--shadow); }
.card:hover { border-color: #d9d0c1; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13, 27, 42, 0.05), 0 26px 44px -24px rgba(13, 27, 42, 0.4); }
.card .cover { border-radius: 17px; }
.card-body { padding: 10px 8px 6px; gap: 10px; }
.cat { display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--green-tint); color: var(--green-dark); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 0.86rem; }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.card-body h3 { font-size: 1.2rem; font-weight: 800; margin-top: 4px; }
.card-nums { border-top: 0; padding-top: 6px; gap: 8px; }
.card-nums div { border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.card-nums div strong { display: block; font: 800 1.15rem/1.2 var(--display); letter-spacing: -0.01em; }
.card-nums div span { margin-top: 2px; }
.chip { background: #fff; }
.stats { background: var(--line); box-shadow: var(--shadow); }
.price { font-weight: 800; }
.cta { background: var(--green-dark); }
.cta p { color: #cfe6dc; }
.cta .btn { box-shadow: none; }
.site-footer { background: var(--ink); color: #c6d0dc; border-top: 0; margin-top: 64px; padding: 60px 0 28px; }
.site-footer .logo { color: #fff; }
.foot-grid h3 { color: #fff; }
.foot-grid a, .foot-about p, .pay span.lbl { color: #9fb0c3; }
.foot-grid a:hover { color: #fff; }
.pay { border-top-color: rgba(255, 255, 255, 0.12); }
.pay-badge { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.foot-end { color: #8496aa; align-items: center; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal a { color: #c6d0dc; text-decoration: none; }
.foot-legal a:hover { color: #fff; text-decoration: underline; }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .detail, .deal-grid, .calc { grid-template-columns: 1fr; }
  .side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cols2 { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .nav, .nav-user { display: none; }
  .menu-btn { display: block; }
  .site-header.open .wrap { height: auto; flex-wrap: wrap; padding: 16px 20px; gap: 12px; }
  .site-header.open .nav, .site-header.open .nav-user { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 14px; order: 3; }
  .site-header.open .nav-user { order: 4; padding-bottom: 8px; }
}
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero { padding: 36px 0 32px; }
  .grid { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .field-row, .radio-cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-top: 0; border-left: 4px solid var(--line); }
  .timeline li.done { border-left-color: var(--green); }
  .timeline li.now { border-left-color: var(--amber); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .cta { padding: 28px 22px; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 170px); }
  .chat.has-thread .chat-list, .chat:not(.has-thread) .chat-main { display: none; }
  .back { display: inline; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* header: keep links on one line, and switch to the menu button earlier */
.nav a, .nav-user a, .nav-user .linkbtn { white-space: nowrap; }
.nav { gap: 20px; }
.nav-user { gap: 15px; }
@media (max-width: 1120px) {
  .nav, .nav-user { display: none; }
  .menu-btn { display: block; }
  .site-header.open .wrap { height: auto; flex-wrap: wrap; padding: 16px 20px; gap: 12px; }
  .site-header.open .nav, .site-header.open .nav-user { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 14px; order: 3; }
  .site-header.open .nav-user { order: 4; padding-bottom: 8px; }
}

.msg-warn { max-width: 76%; font-size: 0.82rem; background: var(--red-tint); color: #7d1f18; border-radius: 12px; padding: 8px 12px; }

/* listing cards: big cover, title, category and date, price with a buy button */
.card { padding: 10px; border-radius: 26px; }
.card .cover { border-radius: 18px; aspect-ratio: 16 / 9; }
.card-body { padding: 16px 10px 10px; gap: 12px; }
.card-body h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.card-body > p { font-size: 1rem; }
.card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.catpill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 0.88rem; }
.catpill.c1 { background: #b86a00; } .catpill.c2 { background: #2b5fc4; } .catpill.c3 { background: #6b46d6; } .catpill.c4 { background: #c0355a; } .catpill.c5 { background: #0f7c88; } .catpill.c6 { background: #5d6d1c; } .catpill.c7 { background: #46566a; }
.card-date { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.92rem; }
.card-date svg { width: 18px; height: 18px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 10px; }
.card-foot strong { display: block; font: 800 1.6rem/1.1 var(--display); letter-spacing: -0.02em; }
.card-foot div span { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 3px; }
.buybtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: none; min-width: 46%; padding: 15px 22px; border-radius: 16px; background: var(--green); color: #fff; font: 600 1.1rem/1 var(--body); box-shadow: 0 10px 20px -12px rgba(10, 125, 85, 0.9); }
.buybtn svg { width: 22px; height: 22px; }
.buybtn.off { background: var(--soft); color: var(--muted); box-shadow: none; }
.card:hover .buybtn:not(.off) { background: var(--green-dark); }
/* round "all listings" badge */
.all-badge { display: block; width: 132px; height: 132px; flex: none; color: var(--ink); }
.all-badge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.all-badge-bg { fill: #fff; stroke: var(--line); }
.all-badge-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.all-badge-arrow { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: square; }
.all-badge-text { transform-origin: 100px 100px; animation: badge-spin 18s linear infinite; }
.all-badge-text text { font: 700 13.5px var(--body); letter-spacing: 2.4px; fill: var(--ink); }
.all-badge:hover .all-badge-bg { fill: var(--amber-tint); }
.all-badge:hover .all-badge-text { animation-duration: 6s; }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .all-badge { width: 96px; height: 96px; } .card-body h3 { font-size: 1.3rem; } }

/* hero: two listing cards stacked, with the round badge resting on them */
.hero-stack { position: relative; display: grid; justify-items: end; padding: 46px 0 30px 110px; }
.hero-stack > .card { grid-area: 1 / 1; width: min(390px, 100%); align-self: start; box-shadow: 0 2px 4px rgba(13, 27, 42, 0.05), 0 34px 60px -30px rgba(13, 27, 42, 0.45); }
.hero-stack > .card.behind { transform: translate(-110px, -46px); }
.hero-stack > .card:not(.behind) { position: relative; z-index: 1; }
.hero-stack.one { padding-left: 0; }
.hero-stack .card-body h3 { font-size: 1.3rem; }
.hero-stack .all-badge { position: absolute; left: 6px; bottom: 0; z-index: 2; width: 150px; height: 150px; }
.hero-stack .all-badge-bg { fill: rgba(255, 255, 255, 0.6); stroke: rgba(255, 255, 255, 0.9); }
.hero-stack .all-badge svg { border-radius: 50%; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -20px rgba(13, 27, 42, 0.5); }
@media (max-width: 960px) {
  .hero-stack { padding: 34px 0 20px 34px; justify-items: stretch; margin-top: 28px; }
  .hero-stack > .card { width: 100%; }
  .hero-stack > .card.behind { transform: translate(-34px, -34px); }
  .hero-stack .all-badge { width: 104px; height: 104px; left: -6px; bottom: -14px; }
}

/* cards with their own buttons: the picture and title open the listing, the buttons act */
.card-link { display: block; color: inherit; text-decoration: none; }
.card-head { padding: 16px 10px 0; }
.card-head h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 8px; }
.card-head p { color: var(--muted); font-size: 1rem; }
.card-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
article.card .card-body { padding-top: 12px; }
a.buybtn { text-decoration: none; }
a.buybtn:hover { background: var(--green-dark); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions > * { flex: 1; }
.card .cover img { transition: transform 0.5s ease; }
.card:hover .cover img { transform: scale(1.04); }
#buy, #offer, #bid, #proof { scroll-margin-top: 100px; }
/* hero cards: fly in, then float, and swap every few seconds */
.hero-stack { --bx: -110px; --by: -46px; }
.hero-stack > .card { animation: hero-front 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, hero-float 7s ease-in-out 0.8s infinite; }
.hero-stack > .card.behind { transform: translate(var(--bx), var(--by)); animation: hero-back 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, hero-float-back 8s ease-in-out 0.8s infinite; }
.hero-stack .card-actions, .hero-stack .card-body > .row { display: none; }
.hero-stack .card-head h3 { font-size: 1.3rem; }
.hero-stack .all-badge { animation: hero-pop 0.6s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes hero-front { from { opacity: 0; transform: translate(70px, 46px) scale(0.93); } to { opacity: 1; transform: none; } }
@keyframes hero-back { from { opacity: 0; transform: translate(calc(var(--bx) + 80px), calc(var(--by) + 56px)) scale(0.93); } to { opacity: 1; transform: translate(var(--bx), var(--by)); } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hero-float-back { 0%, 100% { transform: translate(var(--bx), var(--by)); } 50% { transform: translate(var(--bx), calc(var(--by) + 10px)); } }
@keyframes hero-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .hero-stack { --bx: -34px; --by: -34px; } }
/* keep the round badge on the back card, clear of the front card's text */
.hero-stack .all-badge { left: -52px; bottom: -34px; }
@media (max-width: 960px) { .hero-stack .all-badge { left: -8px; bottom: -22px; } }

/* ---------- v5: chat fixes, profile pictures, notifications, invoice, banners ---------- */
/* The message list must be allowed to shrink inside the chat box, or a long conversation pushes the newest messages and the input out of view. */
.chat { grid-template-rows: minmax(0, 1fr); height: min(640px, calc(100dvh - 230px)); min-height: 440px; }
.chat-list, .chat-main { min-height: 0; }
.chat-msgs { min-height: 0; overscroll-behavior: contain; gap: 10px; }
.chat-msgs > * { flex: none; }
.msg { max-width: min(76%, 560px); width: fit-content; font-size: 0.95rem; line-height: 1.45; }
.msg-warn { max-width: min(76%, 560px); }
.chat-list a { display: flex; gap: 10px; align-items: center; }
.chat-list a > div:not(.avatar) { min-width: 0; flex: 1; }
.chat-top .seller a.small { display: block; color: var(--muted); }
.chat-form input { min-width: 0; }
@media (max-width: 960px) { .chat { height: calc(100dvh - 190px); min-height: 380px; } .msg, .msg-warn { max-width: 88%; } }

img.avatar { object-fit: cover; display: block; background: var(--soft); }
.avatar.xs { width: 26px; height: 26px; font-size: 0.68rem; }
.avatar.sm { width: 36px; height: 36px; font-size: 0.8rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.6rem; }
.avatar-edit { display: flex; gap: 16px; align-items: center; }
.avatar-edit > div { flex: 1; min-width: 0; }
.trust { margin-top: 8px; gap: 6px; align-items: center; }
.me-link, .bell { display: inline-flex; align-items: center; gap: 7px; }
.bell-text { display: none; }
.bell .count { margin-left: -2px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.captcha { min-height: 78px; }

.notice-row { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.notice-row:first-of-type { border-top: 0; }
.notice-row span { color: var(--muted); font-size: 0.92rem; }
.notice-row time { font-size: 0.78rem; color: var(--muted); }
.notice-row.new strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
.notice-row:hover strong { text-decoration: underline; }

.invoice { border-top: 4px solid var(--gold); }
.invoice .kv dd { max-width: 100%; }
@media print {
  body.print-invoice * { visibility: hidden !important; }
  body.print-invoice #invoice, body.print-invoice #invoice * { visibility: visible !important; }
  body.print-invoice #invoice { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; }
  body.print-invoice .noprint { display: none !important; }
}

.promo-spot:empty { display: none; }
.promo-spot { margin-block: 20px; }
.promo { display: block; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.promo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.promo-tag { position: absolute; top: 8px; right: 8px; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(13, 27, 42, 0.74); color: #fff; padding: 3px 8px; border-radius: 999px; }
.promo-row { display: flex; gap: 12px; align-items: center; }
.promo-row img { width: 96px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.site-footer .promo-spot { margin: 0 0 28px; }
@media (max-width: 1120px) { .site-header.open .bell-text { display: inline; } }

/* header with the extra member links: tighter gaps, and the menu button takes over sooner */
.site-header .logo, .nav-user a.btn { flex: none; }
.nav { gap: 18px; min-width: 0; }
.nav-user { gap: 14px; margin-left: auto; }
@media (max-width: 1240px) {
  .nav, .nav-user { display: none; }
  .menu-btn { display: block; }
  .site-header.open .wrap { height: auto; flex-wrap: wrap; padding: 16px 20px; gap: 12px; }
  .site-header.open .nav, .site-header.open .nav-user { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 14px; order: 3; margin-left: 0; }
  .site-header.open .nav-user { order: 4; padding-bottom: 8px; }
  .site-header.open .bell-text { display: inline; }
}

/* launch offer strip above the header */
.free-bar { display: block; width: min(var(--wrap), 100% - 32px); margin: 0 auto 10px; padding: 9px 16px; border-radius: 12px; background: var(--gold); color: var(--ink); text-align: center; font-size: 0.9rem; text-decoration: none; }
.free-bar:hover u { text-decoration-thickness: 2px; }

/* about page: founder portrait in a slowly turning gradient frame */
@property --fa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.about-grid { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 64px; align-items: center; margin-top: 12px; }
.about-grid h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.founder-frame { position: relative; aspect-ratio: 4 / 5; padding: 7px; border-radius: 30px; isolation: isolate; animation: founder-float 7s ease-in-out infinite; }
.founder-frame::before, .founder-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: conic-gradient(from var(--fa), var(--gold), #ffe08a, var(--green), #1877f2, var(--gold)); animation: founder-spin 7s linear infinite; }
.founder-frame::after { inset: -12px; z-index: -2; filter: blur(26px); opacity: 0.45; }
.founder-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: var(--soft); }
.founder-tag { position: absolute; left: -16px; bottom: 30px; display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.92rem; padding: 9px 16px; border-radius: 999px; box-shadow: 0 14px 28px -14px rgba(13, 27, 42, 0.8); animation: founder-bob 4.5s ease-in-out infinite; }
.founder-tag .tick { width: 18px; height: 18px; }
.founder-dot { position: absolute; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(245, 179, 1, 0.22); animation: founder-pulse 3s ease-in-out infinite; }
.founder-dot.d1 { width: 14px; height: 14px; right: -5px; top: 46px; }
.founder-dot.d2 { width: 9px; height: 9px; right: 34px; bottom: -4px; background: var(--green); box-shadow: 0 0 0 5px rgba(10, 125, 85, 0.2); animation-delay: 1.2s; }
@keyframes founder-spin { to { --fa: 360deg; } }
@keyframes founder-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes founder-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes founder-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }
.field-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } .founder-frame { max-width: 320px; margin-inline: auto; } .field-row3 { grid-template-columns: 1fr; } }
