/* GuestPosting.com.pk — UI stylesheet
   Marketplace theme: white surfaces, deep green-black text, bright green actions */
:root {
  --ink: #001e00;
  --ink-2: #2b3a2b;
  --muted: #5e6d55;
  --faint: #8a9a84;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7faf7;
  --line: #e4ebe4;
  --line-2: #d5e0d5;
  --brand: #14a800;
  --brand-hover: #108a00;
  --brand-soft: #eef7ec;
  --brand-bright: #14a800;
  --brand-dark: #0d6b00;
  --saffron: #ffb640;
  --saffron-soft: #fff6e6;
  --saffron-ink: #6a4300;
  --sky: #1f57c3;
  --sky-soft: #eaf1fd;
  --danger: #c92a2a;
  --danger-soft: #fdeceb;
  --warn-soft: #fff6e6;
  --warn-ink: #8a5a00;
  --hero: #001e00;
  --hero-ink: #e9f3e8;
  --on-brand: #ffffff;
  --shadow-1: 0 1px 2px rgba(0, 30, 0, .06);
  --shadow-2: 0 6px 24px -8px rgba(0, 30, 0, .16);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --wrap: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.ic { flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 14.5px/1 var(--font-body); cursor: pointer; text-decoration: none !important;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-saffron { background: var(--saffron); color: #3d2700; }
.btn-saffron:hover { filter: brightness(.96); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem/1 var(--font-head); color: var(--ink); text-decoration: none !important; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 18px; height: 18px; }
.logo small { font: 500 .78rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.nav-main { display: flex; gap: 4px; margin-left: 8px; }
.nav-main a { color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; }
.nav-main a:hover { background: var(--surface-2); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); text-decoration: none; }
.dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.menu-toggle { display: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.user-menu summary::-webkit-details-marker { display: none; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); min-width: 220px; padding: 6px; z-index: 50; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; color: var(--ink); border-radius: var(--r-sm); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown .dd-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown .dd-head strong { display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); font-weight: 700; letter-spacing: -.025em; max-width: 15ch; margin-bottom: 16px; }
.hero-lead { color: color-mix(in srgb, var(--hero-ink) 78%, transparent); font-size: 1.08rem; max-width: 52ch; margin-bottom: 28px; }
.hero-search { display: flex; background: #fff; border-radius: var(--r-md); padding: 6px; gap: 6px; max-width: 620px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.5); }
.hero-search .field-ic { display: flex; align-items: center; gap: 10px; flex: 1; padding: 0 12px; color: #5e726c; }
.hero-search input { border: 0; outline: 0; flex: 1; font: 500 16px var(--font-body); color: #12332b; background: transparent; min-width: 0; height: 44px; }
.hero-search select { border: 0; border-left: 1px solid #dde5e2; background: transparent; font: 500 14.5px var(--font-body); color: #12332b; padding: 0 10px; outline: 0; max-width: 170px; }
.hero-search .btn { height: 44px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips a { color: var(--hero-ink); border: 1px solid rgba(255,255,255,.22); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; }
.hero-chips a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.hero-facts { display: flex; gap: 28px; margin-top: 32px; color: color-mix(in srgb, var(--hero-ink) 75%, transparent); font-size: .92rem; flex-wrap: wrap; }
.hero-facts b { color: #fff; font: 700 1.25rem var(--font-head); display: block; }

/* Ledger preview: a stack of tilted listing slips */
.ledger { position: relative; height: 330px; }
.slip {
  position: absolute; left: 0; right: 0; background: #fff; color: #12332b; border-radius: 12px; padding: 16px 18px;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.slip:nth-child(1) { top: 0; transform: rotate(-2.2deg) translateX(18px); opacity: .55; }
.slip:nth-child(2) { top: 92px; transform: rotate(1.4deg) translateX(-8px); opacity: .8; }
.slip:nth-child(3) { top: 190px; transform: rotate(-.6deg); }
.slip .dr-stamp { width: 56px; height: 56px; }
.slip-domain { font: 650 1rem var(--font-head); }
.slip-meta { font-size: .82rem; color: #5e726c; }
.slip-price { font: 700 1.05rem var(--font-head); text-align: right; }
.slip-price small { display: block; font: 500 .74rem var(--font-body); color: #5e726c; }
@media (prefers-reduced-motion: no-preference) {
  .slip { animation: slipIn .7s cubic-bezier(.2,.8,.2,1) both; }
  .slip:nth-child(2) { animation-delay: .12s; }
  .slip:nth-child(3) { animation-delay: .24s; }
  @keyframes slipIn { from { opacity: 0; translate: 0 24px; } }
}

/* ---------- DR stamp (the signature element) ---------- */
.dr-stamp {
  width: 64px; height: 64px; border-radius: 12px; background: var(--saffron); color: #3d2700;
  display: grid; place-content: center; text-align: center; flex: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), inset 0 0 0 4px rgba(61,39,0,.12);
}
.dr-stamp b { font: 800 1.45rem/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dr-stamp span { font: 700 .62rem/1 var(--font-body); letter-spacing: .06em; margin-top: 3px; opacity: .8; }
.dr-stamp.lg { width: 92px; height: 92px; border-radius: 16px; }
.dr-stamp.lg b { font-size: 2.2rem; }
.dr-stamp.lg span { font-size: .72rem; }
.dr-stamp.low { background: #e9eeec; color: #33463f; }

/* ---------- Marketplace layout ---------- */
.market { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 32px 0 64px; }
.filters { position: sticky; top: 86px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.filters h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.filters h3 a { font: 500 .85rem var(--font-body); }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 4px; }
.filter-group > label, .filter-group > .lbl { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.filter-group select, .filter-group input { width: 100%; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 7px 2px; font-size: .78rem; white-space: nowrap; cursor: pointer; border-left: 1px solid var(--line-2); color: var(--ink-2); }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.seg input:focus-visible + label { outline: 2px solid var(--brand-bright); outline-offset: -2px; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--brand); padding: 0; border: 0; height: auto; }
.range-row output { min-width: 34px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 1.25rem; }
.results-head .count { color: var(--muted); font: 500 .95rem var(--font-body); margin-left: 6px; }
.sort-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.sort-select select { width: auto; padding-top: 0; padding-bottom: 0; }
.filter-open { display: none; }

.cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.cat-row a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: .88rem; background: var(--surface); }
.cat-row a:hover { border-color: var(--ink-2); text-decoration: none; }
.cat-row a.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.grid-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }

/* ---------- Site card ---------- */
.site-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.site-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.site-card .thumb { aspect-ratio: 16 / 10; background: var(--surface-2); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.site-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font: 600 1.05rem var(--font-head); background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--paper) 10px 20px); }
.site-card .thumb .dr-stamp { position: absolute; left: 12px; bottom: -1px; border-radius: 10px 10px 0 0; width: 58px; height: 52px; box-shadow: none; }
.site-card .thumb .dr-stamp b { font-size: 1.3rem; }
.feat-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--surface); font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.site-card .body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.site-card .domain { font: 650 1.05rem/1.2 var(--font-head); color: var(--ink); display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.site-card .domain:hover { text-decoration: none; color: var(--brand); }
.site-card .domain::after { content: ""; position: absolute; inset: 0; }
.site-card .cat { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.metric-rail { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.metric-rail div { padding: 6px 4px; text-align: center; border-left: 1px solid var(--line); }
.metric-rail div:first-child { border-left: 0; }
.metric-rail b { display: block; font: 700 .98rem/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.metric-rail span { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.site-card .foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.price-from { font-size: .78rem; color: var(--muted); }
.price-from b { display: block; font: 700 1.12rem/1.1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.svc-tags { display: flex; gap: 6px; }
.svc { font-size: .72rem; font-weight: 600; padding: 3px 7px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); }
.svc.ne { background: var(--sky-soft); color: var(--sky); }
.rating-mini { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.rating-mini .s { color: var(--saffron); }

.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.empty h3 { font-size: 1.15rem; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 18px; }

/* ---------- Pager ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager-gap { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); padding: 0 8px; }
.pager a.is-current { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pager a:hover { text-decoration: none; border-color: var(--ink-2); }
.pager-gap { border: 0; background: none; }

/* ---------- How it works band ---------- */
.band { padding: 64px 0; border-top: 1px solid var(--line); background: var(--surface); }
.band h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); margin-bottom: 8px; }
.band .lead { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); font: 700 .85rem var(--font-head); color: var(--brand); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.promise { display: grid; gap: 14px; }
.promise > div { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.promise .pi { width: 36px; height: 36px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.promise b { display: block; margin-bottom: 2px; }
.promise p { margin: 0; color: var(--muted); font-size: .93rem; }
.seller-cta { background: var(--saffron-soft); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.seller-cta h3 { font-size: 1.4rem; color: var(--saffron-ink); }
.seller-cta p { color: var(--saffron-ink); opacity: .85; }

/* ---------- Site detail ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 18px 0 64px; align-items: start; }
.detail-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.detail-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); overflow-wrap: anywhere; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .9rem; align-items: center; }
.detail-head .meta span { display: inline-flex; align-items: center; gap: 5px; }
.preview-frame { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); margin-bottom: 26px; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .82rem; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.browser-bar .addr { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-frame .shot { aspect-ratio: 16 / 9; position: relative; background: var(--surface-2); }
.preview-frame .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.metrics-table { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); margin-bottom: 26px; }
.metrics-table div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-table div:nth-child(4n) { border-right: 0; }
.metrics-table div:nth-last-child(-n+4) { border-bottom: 0; }
.metrics-table span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.metrics-table b { font: 700 1.4rem/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.metrics-table small { display: block; font-size: .75rem; color: var(--faint); margin-top: 2px; }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 20px; }
.section > h2 { font-size: 1.12rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.proof { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); cursor: zoom-in; padding: 0; text-align: left; font: inherit; color: inherit; }
.proof img { aspect-ratio: 4/3; object-fit: cover; object-position: top; width: 100%; }
.proof span { display: block; padding: 8px 10px; font-size: .82rem; font-weight: 600; border-top: 1px solid var(--line); background: var(--surface); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: .93rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.buy-box { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.buy-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.buy-tabs button { background: var(--surface-2); border: 0; padding: 14px 8px; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.buy-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); border-bottom-color: var(--brand); }
.buy-pane { padding: 20px; }
.buy-pane[hidden] { display: none; }
.buy-price { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.buy-price b { font: 750 2rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.buy-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.buy-list li { display: flex; gap: 8px; align-items: flex-start; }
.buy-list .ic { color: var(--brand); margin-top: 2px; }
.buy-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .84rem; color: var(--muted); display: flex; gap: 8px; }
.buy-foot .ic { color: var(--brand); }
.seller-box { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: flex; gap: 14px; align-items: center; }
.seller-box b { display: block; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.stars { color: var(--line-2); letter-spacing: 1px; }
.stars .on { color: var(--saffron); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 15, 12, .88); z-index: 100; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lightbox button { position: absolute; top: 16px; right: 16px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; font: 400 15px var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; height: 42px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235e726c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; display: inline-block; margin: 0; accent-color: var(--brand); vertical-align: -3px; padding: 0; }
input[type=file] { height: auto; padding: 8px; background: var(--surface-2); border-style: dashed; }
.hint { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field-error { color: var(--danger); font-size: .84rem; margin: 5px 0 0; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.form-section { grid-column: 1 / -1; font-size: 1.02rem; margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 2px; }
.input-prefix { display: flex; align-items: stretch; margin-top: 6px; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .9rem; }
.input-prefix input { margin: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; margin-bottom: 20px; }
.card-form > h2 { font-size: 1.1rem; margin-bottom: 4px; }
.card-form > p.muted { margin-bottom: 18px; font-size: .92rem; }
.svc-pick { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px; }
.svc-pick > .check { margin-bottom: 12px; font-weight: 600; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.alert .ic { margin-top: 2px; }
.alert-success { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-info { background: var(--sky-soft); color: var(--sky); border-color: color-mix(in srgb, var(--sky) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn-ink) 25%, transparent); }
.alert p:last-child { margin: 0; }
.flash-stack { position: fixed; top: 80px; right: 20px; z-index: 90; width: min(420px, calc(100vw - 40px)); }
.flash-stack .alert { box-shadow: var(--shadow-2); background-color: var(--surface); }
.flash-stack .alert-success { background: color-mix(in srgb, var(--brand-soft) 90%, var(--surface)); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--brand-soft); color: var(--brand); }
.badge-info { background: var(--sky-soft); color: var(--sky); }
.badge-wait { background: var(--warn-soft); color: var(--warn-ink); }
.badge-bad { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--hero); color: var(--hero-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .logo { color: #fff; }
.auth-side h2 { color: #fff; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.3rem); max-width: 16ch; }
.auth-side p { color: color-mix(in srgb, var(--hero-ink) 75%, transparent); max-width: 44ch; }
.auth-side .ledger { height: 300px; max-width: 420px; }
.auth-wrap { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.install-page .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.auth-title { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card form { display: grid; gap: 16px; margin-top: 24px; }
.auth-alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: .93rem; }
.acct-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-type input { position: absolute; opacity: 0; }
.acct-type label { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px; cursor: pointer; font-weight: 500; font-size: .85rem; color: var(--muted); }
.acct-type label b { display: block; font: 650 1rem var(--font-head); color: var(--ink); margin-bottom: 2px; }
.acct-type input:checked + label { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.acct-type input:focus-visible + label { outline: 2px solid var(--brand-bright); }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 4px; font-size: .9rem; }
.checklist .ok { color: var(--brand); }
.checklist .bad { color: var(--danger); }

/* ---------- Dashboard shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; }
.side-label { font-size: .75rem; font-weight: 700; color: var(--faint); padding: 14px 12px 6px; letter-spacing: .02em; }
.side a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: .94rem; }
.side a:hover { background: var(--surface-2); text-decoration: none; }
.side a.on { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.side a .cnt { margin-left: auto; font-size: .74rem; font-weight: 700; background: var(--saffron); color: #3d2700; border-radius: 999px; padding: 1px 7px; }
.main { padding: 28px 32px 64px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: block; color: inherit; }
a.stat:hover { border-color: var(--line-2); text-decoration: none; }
.stat span { font-size: .84rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat b { display: block; font: 700 1.6rem/1.2 var(--font-head); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--faint); font-size: .8rem; }
.stat.accent { background: var(--hero); border-color: var(--hero); }
.stat.accent span, .stat.accent small { color: color-mix(in srgb, var(--hero-ink) 70%, transparent); }
.stat.accent b { color: #fff; }
.stat.attn { border-color: var(--saffron); box-shadow: inset 4px 0 0 var(--saffron); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.panel-body { padding: 18px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs a .n { font-size: .75rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-left: 4px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .r { text-align: right; }
.tbl .strong { font-weight: 650; color: var(--ink); }
.tbl .sub { display: block; font-size: .8rem; color: var(--muted); }
.tbl-site { display: flex; align-items: center; gap: 12px; }
.tbl-site img, .tbl-site .ph { width: 64px; height: 40px; border-radius: 4px; object-fit: cover; object-position: top; border: 1px solid var(--line); background: var(--surface-2); flex: none; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.inline-form { display: inline; }

/* ---------- Order page ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 22px; list-style: none; padding: 0; }
.progress li { position: relative; padding-top: 22px; font-size: .8rem; color: var(--faint); font-weight: 600; text-align: center; }
.progress li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 3px; background: var(--line); }
.progress li::after { content: ""; position: absolute; top: 1px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); }
.progress li.done { color: var(--ink-2); }
.progress li.done::before { background: var(--brand); }
.progress li.done::after { background: var(--brand); border-color: var(--brand); }
.progress li.now { color: var(--brand); }
.progress li.now::after { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.action-card { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); padding: 20px; background: var(--surface); margin-bottom: 20px; }
.action-card.warn { border-left-color: var(--saffron); }
.action-card.bad { border-left-color: var(--danger); }
.action-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.action-card form { margin-top: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { color: var(--faint); font-size: .78rem; display: block; }
.timeline .note { color: var(--muted); display: block; overflow-wrap: anywhere; }
.chat { display: grid; gap: 12px; max-height: 480px; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .93rem; }
.msg.me { margin-left: auto; background: var(--brand-soft); border-color: transparent; }
.msg.admin { background: var(--saffron-soft); border-color: transparent; }
.msg .who { font-size: .76rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; display: block; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.chat-form textarea { min-height: 46px; height: 46px; margin: 0; }
.money-list { display: grid; gap: 8px; font-size: .93rem; margin: 0; }
.money-list div { display: flex; justify-content: space-between; gap: 12px; }
.money-list dt { color: var(--muted); }
.money-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.money-list .total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 1.02rem; }
.money-list .total dd { font: 750 1.15rem var(--font-head); }
.pay-accounts { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 14px; white-space: pre-line; font-weight: 500; margin: 12px 0; font-size: .95rem; }
.content-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; max-height: 300px; overflow: auto; white-space: pre-wrap; font-size: .9rem; overflow-wrap: anywhere; }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; }
details.more[open] summary { margin-bottom: 12px; }

/* Notifications */
.notif { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: color-mix(in srgb, var(--brand-soft) 50%, transparent); }
.notif .ni { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.notif b { display: block; }
.notif p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; white-space: pre-line; }

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: var(--brand-soft); border-radius: 4px 4px 0 0; position: relative; min-height: 3px; }
.bars div:hover { background: var(--brand); }
.bars div span { position: absolute; bottom: -20px; left: 50%; translate: -50% 0; font-size: .68rem; color: var(--faint); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero); color: color-mix(in srgb, var(--hero-ink) 70%, transparent); padding: 48px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font: 600 .95rem var(--font-body); margin-bottom: 12px; }
.site-footer a { color: inherit; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 12px; display: inline-flex; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.pay-logos { display: flex; gap: 8px; }
.pay-logos span { border: 1px solid rgba(255,255,255,.2); border-radius: 4px; padding: 3px 8px; font-size: .78rem; color: #fff; font-weight: 600; }

/* Page */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 40px 20px 72px; }
.page-wrap .card-form { margin-top: 20px; }
.error-page { text-align: center; padding: 96px 20px; }
.error-page .code { font: 800 5rem/1 var(--font-head); color: var(--saffron); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ledger { display: none; }
  .detail, .order-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .market { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 80; border-radius: 0; overflow-y: auto; top: 0; }
  .filters.open { display: block; }
  .filter-open { display: inline-flex; }
  .nav-main { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: 66px; left: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; height: auto; }
  .side.open { transform: none; box-shadow: var(--shadow-2); }
  .menu-toggle { display: inline-grid; }
  .main { padding: 22px 16px 56px; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .two-col, .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search select { border-left: 0; border-top: 1px solid #dde5e2; max-width: none; flex: 1; height: 44px; }
  .hero-search .field-ic { flex-basis: 100%; }
  .metrics-table { grid-template-columns: 1fr 1fr; }
  .metrics-table div:nth-child(4n) { border-right: 1px solid var(--line); }
  .metrics-table div:nth-child(2n) { border-right: 0; }
  .metrics-table div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .metrics-table div:nth-last-child(-n+2) { border-bottom: 0; }
  .form-grid, .form-grid-4, .two-col, .site-footer .cols, .steps { grid-template-columns: 1fr; }
  .form-grid-4 { grid-template-columns: 1fr 1fr; }
  .progress li { font-size: 0; }
  .site-header .wrap { gap: 10px; }
  .logo small { display: none; }
  .detail-head { align-items: flex-start; }
  .dr-stamp.lg { width: 72px; height: 72px; }
  .dr-stamp.lg b { font-size: 1.7rem; }
  .grid-sites { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.site-header .wrap.wide { max-width: none; padding: 0 24px; }
[hidden] { display: none !important; }
.market > *, .detail > *, .order-grid > *, .hero .wrap > * { min-width: 0; }

.site-card .visit { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); margin-top: -6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .visit:hover { color: var(--brand); }
.site-card.is-featured { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron); }
.featured-block { margin-bottom: 36px; }
.featured-block .results-head h2 { display: flex; align-items: center; gap: 8px; }
.featured-block .results-head h2 .ic { color: var(--saffron); }
.feat-tag { background: var(--saffron); color: #3d2700; }
.seo-intro { max-width: 75ch; color: var(--muted); margin: -6px 0 22px; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 650 1.05rem var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }

/* ================= Marketplace theme overrides ================= */
body { font-size: 15px; color: var(--ink); background: #fff; }
h1, h2, h3, h4 { letter-spacing: -.02em; font-weight: 600; }
h1 { font-weight: 600; }
h2 { font-weight: 600; }
a:hover { text-decoration: underline; }

/* Buttons: pill shaped */
.btn { border-radius: 999px; font-weight: 600; height: 40px; padding: 0 22px; }
.btn-sm { height: 32px; padding: 0 14px; }
.btn-lg { height: 48px; padding: 0 28px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand-hover); color: var(--brand-hover); }
.btn-danger { border-width: 2px; }
.btn-saffron { background: var(--brand); color: #fff; }
.btn-saffron:hover { background: var(--brand-hover); filter: none; }
.icon-btn { border-color: var(--line-2); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); box-shadow: none; }
.site-header .wrap { height: 72px; }
.logo { font: 600 1.35rem/1 var(--font-head); letter-spacing: -.03em; }
.logo-mark { background: var(--brand); border-radius: 50%; }
.nav-main a { color: var(--ink); font-weight: 500; border-radius: 999px; }
.nav-main a:hover { background: var(--surface-2); color: var(--brand); }
.header-actions .btn-ghost { border: 0; color: var(--ink); }
.header-actions .btn-ghost:hover { background: var(--surface-2); color: var(--brand); }
.avatar { background: var(--brand-soft); color: var(--brand-dark); }

/* Hero: white, big dark heading */
.hero { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.hero::after { display: none; }
.hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.hero h1 { color: var(--ink); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; max-width: 14ch; }
.hero-lead { color: var(--ink-2); font-size: 1.12rem; }
.hero-search { border: 2px solid var(--line-2); border-radius: 999px; box-shadow: none; padding: 4px; }
.hero-search:focus-within { border-color: var(--brand); }
.hero-search .field-ic { color: var(--muted); }
.hero-search input { color: var(--ink); }
.hero-search select { border-left: 1px solid var(--line-2); color: var(--ink); }
.hero-search .btn { height: 44px; }
.hero-chips a { color: var(--ink); border: 1px solid var(--line-2); background: #fff; }
.hero-chips a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.hero-facts { color: var(--muted); }
.hero-facts b { color: var(--ink); font-weight: 600; }

/* Preview cards next to the hero */
.slip { border: 1px solid var(--line); box-shadow: 0 12px 32px -14px rgba(0, 30, 0, .25); color: var(--ink); }
.slip-meta, .slip-price small { color: var(--muted); }
.slip:nth-child(1) { opacity: .6; }
.slip:nth-child(2) { opacity: .85; }

/* DR badge */
.dr-stamp { background: var(--brand); color: #fff; box-shadow: none; border-radius: 10px; }
.dr-stamp span { opacity: .9; }
.dr-stamp.low { background: #e4ebe4; color: var(--ink); }
.site-card .thumb .dr-stamp { border-radius: 8px 8px 0 0; }

/* Cards */
.site-card { border: 1px solid var(--line-2); border-radius: 16px; }
.site-card:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
.site-card .domain { font-weight: 600; }
.site-card .domain:hover { color: var(--brand); text-decoration: underline; }
.site-card .foot { background: #fff; }
.site-card.is-featured { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron); }
.feat-tag { background: var(--saffron); color: #3d2700; border-radius: 999px; padding: 3px 10px; }
.metric-rail { border-color: var(--line); border-radius: 10px; }
.metric-rail div { border-color: var(--line); }
.svc { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 3px 9px; }
.svc.ne { background: var(--sky-soft); color: var(--sky); }
.price-from b { font-weight: 600; }

/* Filters & chips */
.filters { border: 1px solid var(--line-2); border-radius: 16px; }
.cat-row a { border-color: var(--line-2); color: var(--ink); font-weight: 500; }
.cat-row a:hover { border-color: var(--brand); color: var(--brand-dark); }
.cat-row a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg { border-radius: 999px; }
.seg input:checked + label { background: var(--brand); color: #fff; }
.pager a { border-radius: 999px; }
.pager a.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Forms */
input, select, textarea { border: 1px solid var(--line-2); border-radius: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 168, 0, .15); }

/* Sections */
.band { background: #fff; }
.band[style*="paper"] { background: var(--surface-2) !important; }
.steps li { border-top: 2px solid var(--brand); }
.steps li::before { color: var(--brand); }
.promise .pi { background: var(--brand-soft); color: var(--brand-dark); }
.seller-cta { background: var(--brand-dark); }
.seller-cta h3 { color: #fff; }
.seller-cta p { color: #d9ecd5; opacity: 1; }
.seller-cta .btn-primary { background: #fff; color: var(--brand-dark); }
.seller-cta .btn-primary:hover { background: var(--brand-soft); }

/* Detail page */
.metrics-table, .section, .preview-frame, .buy-box, .seller-box { border-color: var(--line-2); border-radius: 16px; }
.buy-tabs button[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--ink); }
.buy-price b { font-weight: 600; }
.buy-list .ic, .buy-foot .ic { color: var(--brand); }

/* Dashboard */
.shell { background: var(--surface-2); }
.side { background: #fff; border-right: 1px solid var(--line); }
.side a { border-radius: 8px; color: var(--ink); }
.side a:hover { background: var(--surface-2); color: var(--brand); }
.side a.on { background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 3px 0 0 var(--brand); border-radius: 0 8px 8px 0; }
.side a .cnt { background: var(--brand); color: #fff; }
.stat, .panel, .card-form, .action-card { border-color: var(--line-2); border-radius: 16px; }
.stat b { font-weight: 600; }
.stat.accent { background: var(--brand-dark); border-color: var(--brand-dark); }
.stat.accent b { color: #fff; }
.stat.accent span, .stat.accent small { color: #cfe8ca; }
.stat.attn { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.tabs a.on { border-bottom-color: var(--brand); }
.tbl th { background: var(--surface-2); color: var(--muted); }
.action-card { border-left-color: var(--brand); }
.progress li.done::before, .progress li.done::after { background: var(--brand); border-color: var(--brand); }
.progress li.now { color: var(--brand-dark); }
.msg.me { background: var(--brand-soft); }
.badge-ok { background: var(--brand-soft); color: var(--brand-dark); }
.bars div { background: #d7ecd2; }
.bars div:hover { background: var(--brand); }

/* Auth */
.auth-side { background: var(--brand-dark); }
.auth-side .logo-mark { background: #fff; color: var(--brand-dark); }
.acct-type input:checked + label { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

/* Footer: dark like big marketplaces */
.site-footer { background: #181818; color: #c8c8c8; border-radius: 0; }
.site-footer h4 { color: #fff; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-mark { background: var(--brand); }
.site-footer .bottom { border-top-color: #333; }
.pay-logos span { border-color: #444; }

/* Alerts */
.alert-success { background: var(--brand-soft); color: var(--brand-dark); border-color: #cfe5ca; }
.flash-stack .alert { background: #fff; }
.slip:nth-child(1), .slip:nth-child(2) { opacity: 1; }
.slip:nth-child(1) { transform: rotate(-1.5deg) translateX(18px); }
.slip:nth-child(2) { transform: rotate(1deg) translateX(-8px); }

/* Seller levels & profile */
.lvl { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; background: var(--brand-soft); color: var(--brand-dark); }
.lvl-new { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.lvl-3, .lvl-4 { background: #e7f0ff; color: #1f57c3; }
.lvl-4 { background: #f3e8ff; color: #7a2fc0; }
.lvl-trusted { background: var(--brand); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); }
.profile-head { display: flex; gap: 20px; align-items: center; margin: 8px 0 24px; }
.profile-head h1 { margin: 0 0 8px; }
.profile-head .meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: .9rem; }
.profile-head .meta span { display: inline-flex; align-items: center; gap: 5px; }
.avatar-xl { width: 96px; height: 96px; font-size: 34px; }
.level-big .lvl { font-size: .95rem; padding: 6px 14px; }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; flex: 1; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.dist { display: grid; gap: 6px; font-size: .85rem; }
.dist > div { display: flex; align-items: center; gap: 10px; }
.dist > div > span:first-child { width: 28px; }
.dist > div > span:last-child { width: 28px; text-align: right; color: var(--muted); }
.seller-box:hover { border-color: var(--brand); }
@media (max-width: 640px) { .profile-head { align-items: flex-start; } .avatar-xl { width: 72px; height: 72px; } }
.site-card .cat { flex-wrap: wrap; row-gap: 4px; }
.site-card .cat > span { white-space: nowrap; }
.site-card .foot { gap: 10px; }
.price-from b, .svc { white-space: nowrap; }
.svc-tags { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .site-header .wrap { gap: 8px; padding: 0 12px; }
  .logo { font-size: 1.02rem; gap: 7px; letter-spacing: -.035em; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-mark svg { width: 15px; height: 15px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-sm { padding: 0 11px; font-size: 13px; }
}
@media (max-width: 360px) { .header-actions .btn-ghost { display: none; } }

/* "Sell links" call to action in the header */
.nav-main a.nav-cta { background: var(--brand); color: #fff; font-weight: 600; padding: 8px 18px; margin-left: 6px; }
.nav-main a.nav-cta:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }
.header-actions .btn-join { border: 2px solid var(--brand); color: var(--brand); }
.header-actions .btn-join:hover { background: var(--brand-soft); color: var(--brand-hover); }
.mobile-sell { display: none; }
@media (max-width: 900px) {
  .mobile-sell { display: inline-flex; }
  .header-actions .btn-join { display: none; }
}

/* Hero with background video */
.hero.hero-video { background: #001e00; color: #fff; border-bottom: 0; min-height: 560px; display: flex; align-items: center; isolation: isolate; }
.hero.hero-video .wrap { width: 100%; grid-template-columns: minmax(0, 1fr); position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: 0; background: #001e00 center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 18, 0, .92) 0%, rgba(0, 18, 0, .78) 38%, rgba(0, 18, 0, .35) 75%, rgba(0, 18, 0, .2) 100%), linear-gradient(0deg, rgba(0, 18, 0, .55), transparent 40%); }
.hero.hero-video h1 { color: #fff; max-width: 15ch; }
.hero.hero-video .hero-lead { color: rgba(255, 255, 255, .86); max-width: 50ch; }
.hero.hero-video .hero-search { background: #fff; border-color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); }
.hero.hero-video .hero-chips a { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.hero.hero-video .hero-chips a:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.hero.hero-video .hero-facts { color: rgba(255, 255, 255, .75); }
.hero.hero-video .hero-facts b { color: #fff; }
@media (max-width: 767px) {
  .hero.hero-video { min-height: 0; }
  .hero-bg { object-position: 85% center; }
  .hero-shade { background: rgba(0, 18, 0, .82); }
}
.hero-bg { filter: brightness(.62) saturate(.85); }
.hero-shade { background: linear-gradient(90deg, rgba(0, 18, 0, .94) 0%, rgba(0, 18, 0, .82) 40%, rgba(0, 18, 0, .5) 75%, rgba(0, 18, 0, .4) 100%), linear-gradient(0deg, rgba(0, 18, 0, .6), transparent 45%); }
@media (max-width: 640px) {
  .hero-search { border-radius: 18px; padding: 6px; }
  .hero-search .field-ic { padding: 0 8px; }
  .hero-search select { border-top: 1px solid var(--line-2); border-left: 0; padding-left: 8px; }
  .hero-search .btn { flex: none; }
  .hero.hero-video .hero-search { border-radius: 18px; }
}
@media (max-width: 767px) { .hero-shade { background: rgba(0, 18, 0, .86); } }
.hero-bg { filter: none; object-position: 100% center; }
.hero.hero-video { background: #000; }
.hero-shade { background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .7) 40%, rgba(0, 10, 0, .25) 70%, rgba(0, 10, 0, .1) 100%), linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 40%); }
@media (max-width: 767px) { .hero-shade { background: rgba(0, 0, 0, .78); } .hero-bg { object-position: 75% center; } }

/* Tickets */
.thread { display: grid; gap: 14px; }
.tmsg { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; background: #fff; }
.tmsg.staff { background: var(--brand-soft); border-color: #cfe5ca; }
.tmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tmsg p { margin: 0; white-space: normal; overflow-wrap: anywhere; color: var(--ink-2); }

/* Website feature badges */
.fbadge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; padding: 4px 9px; border-radius: 999px; white-space: nowrap; line-height: 1; }
.fbadge.icon-only { padding: 5px; width: 26px; height: 26px; justify-content: center; }
.fbadge-row { display: flex; flex-wrap: wrap; gap: 5px; position: relative; z-index: 2; }
.fbadge-more { font-size: .74rem; font-weight: 700; color: var(--muted); align-self: center; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.feature-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.feature-item .fi-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.feature-item b { display: block; font-size: .9rem; }
.feature-item span { font-size: .8rem; color: var(--muted); }
.badge-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.badge-pick label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.badge-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.badge-pick .hint { margin-top: 2px; }
.site-card .fbadge { font-size: .72rem; padding: 4px 8px; }
.tbl td.num, .tbl td.r, .tbl .tbl-site .strong { white-space: nowrap; }

/* Removed listing (410) */
.gone-page { padding: 80px 20px 96px; display: grid; place-items: center; }
.gone-card { max-width: 560px; text-align: center; border: 1px solid var(--line-2); border-radius: 20px; padding: 40px 32px; background: #fff; }
.gone-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: inline-grid; place-items: center; margin-bottom: 16px; }
.gone-card h1 { font-size: 1.7rem; }
.gone-count { margin: 18px 0 22px; font-weight: 500; }
.gone-count b { color: var(--brand); font-variant-numeric: tabular-nums; }
.gone-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Earnings charts */
.bars-months a { flex: 1; background: #d7ecd2; border-radius: 6px 6px 0 0; position: relative; min-height: 3px; display: block; }
.bars-months a:hover, .bars-months a.on { background: var(--brand); text-decoration: none; }
.bars-months a span { position: absolute; bottom: -20px; left: 50%; translate: -50% 0; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.bars-months a em { position: absolute; top: -18px; left: 50%; translate: -50% 0; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.bars-months { height: 170px; padding-top: 20px; gap: 8px; }
.bars-days { height: 130px; gap: 3px; }

/* Seller earnings */
.earn-cards { grid-template-columns: repeat(5, 1fr); }
.date-range { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.date-range label { font-size: .8rem; }
.date-range input { margin-top: 4px; height: 40px; width: 160px; }
.range-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.range-sum > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.range-sum span { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.range-sum b { display: block; font: 600 1.25rem var(--font-head); margin-top: 4px; }
.range-sum small { color: var(--faint); font-size: .78rem; }
.range-sum > div:first-child { background: var(--brand-soft); border-color: #cfe5ca; }
@media (max-width: 1100px) { .earn-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .earn-cards { grid-template-columns: 1fr 1fr; } .date-range input { width: 140px; } }
