/* ============================================================
   NOMADCHEATS
   Flat, square, a single signal colour. No gradients, no glow.
   ============================================================ */
:root {
  --bg: #0e0e0c;
  --bg-2: #131311;
  --surface: #181815;
  --surface-2: #1f1f1b;
  --line: #2a2924;
  --line-2: #3b3933;
  --text: #ebe6da;
  --muted: #8c877b;
  --dim: #5f5b52;
  --accent: #ff6a13;
  --accent-ink: #140a02;
  --ok: #9bd46a;
  --warn: #e6c14b;
  --info: #7fb0e0;
  --bad: #ec5b4f;
  --r: 3px;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --display: "Barlow Condensed", "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; }
h4 { font-family: var(--mono); font-weight: 500; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: var(--mono); }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--r);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff7f33; }
.btn-primary:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 9px 14px; font-size: 0.72rem; }
.btn-block { width: 100%; }

/* ---------- Status ---------- */
.dot { display: inline-block; width: 7px; height: 7px; background: currentColor; flex: none; }
.dot-undetected { color: var(--ok); }
.dot-updating { color: var(--warn); }
.dot-testing { color: var(--info); }
.dot-down { color: var(--bad); }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.status-undetected { color: var(--ok); }
.status-updating { color: var(--warn); }
.status-testing { color: var(--info); }
.status-down { color: var(--bad); }
.status-updating .dot { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Top bar + header ---------- */
.topbar { background: #090908; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.topbar-inner { display: flex; gap: 28px; height: 34px; align-items: center; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-inner a { margin-left: auto; }
.topbar-inner a:hover { color: var(--text); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; height: 62px; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.brand em { font-style: normal; color: var(--muted); }
.logo-mark { width: 26px; height: 26px; color: var(--text); }
.nav-links { display: flex; gap: 26px; height: 100%; }
.nav-links a { display: flex; align-items: center; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r); padding: 8px 12px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; cursor: pointer; }

/* ---------- Section scaffolding ---------- */
section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.label span { color: var(--accent); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 12px; }
.link { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.link:hover { color: var(--text); border-color: var(--accent); }

.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }
.page-hero p { color: var(--muted); margin-top: 14px; max-width: 560px; }
.page-hero + section { border-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; color: var(--line-2); pointer-events: none; }
.hero-bg .contour { width: 100%; height: 100%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 35%, transparent 80%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(3.4rem, 8.4vw, 6.6rem); line-height: 0.88; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 470px; margin-top: 24px; }
.hero-actions { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; margin-top: 44px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts div { padding: 14px 26px 0 0; margin-right: 26px; color: var(--muted); }
.facts b { display: block; color: var(--text); font-weight: 500; }

/* Status board */
.board { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: 0.78rem; }
.board-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.board-row { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 11px 16px; border-bottom: 1px dashed var(--line); align-items: center; }
.board-row:hover { background: var(--surface); }
.board-row .c { color: var(--dim); }
.board-row .n { color: var(--text); font-family: var(--sans); font-weight: 500; font-size: 0.9rem; }
.board-foot { display: flex; justify-content: space-between; padding: 12px 16px; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.board-foot a:hover { color: var(--accent); }

/* ---------- Product grid ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.p-card { background: var(--bg); display: flex; flex-direction: column; transition: background .15s; }
.p-card:hover { background: var(--surface); }
.p-card:hover .go { color: var(--accent); }
.p-art { position: relative; height: 150px; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.p-art .contour { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-code, .p-genre { position: absolute; top: 12px; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg); padding: 3px 7px; border: 1px solid var(--line); }
.p-code { left: 12px; color: var(--text); }
.p-genre { right: 12px; color: var(--muted); }
.p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.p-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.p-body h3 { font-size: 2.1rem; margin: 12px 0 6px; }
.p-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.p-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.p-foot b { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.go { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; }

/* ---------- Spec sheet ---------- */
.specs-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.spec { padding: 18px 0; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.spec dd { color: var(--muted); font-size: 0.93rem; }
.spec dd b { color: var(--text); font-weight: 500; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { list-style: none; border-top: 2px solid var(--text); padding-top: 18px; }
.steps li::before { counter-increment: s; content: "Step 0" counter(s); display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 10px; }
.steps h3 { font-size: 1.7rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Changelog ---------- */
.log { border-top: 1px solid var(--line); }
.log-row { display: grid; grid-template-columns: 90px 150px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.log-row .d { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.log-row .t { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.log-row .x { color: var(--muted); }

/* ---------- Reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.quote p { font-size: 1rem; }
.quote footer { margin-top: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; display: flex; justify-content: space-between; gap: 10px; }
.quote footer b { color: var(--accent); font-weight: 500; }

/* ---------- CTA ---------- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: 36px 40px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta p { color: var(--muted); margin-top: 8px; }

/* ---------- Store toolbar ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.search, .field {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r);
  font-family: var(--sans); font-size: 0.95rem; padding: 11px 14px;
}
.search { flex: 1; min-width: 220px; }
.search:focus, .field:focus { outline: none; border-color: var(--accent); }
.chip {
  padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  cursor: pointer; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.chip:hover { color: var(--text); }
.chip.active { color: var(--accent-ink); background: var(--text); border-color: var(--text); }
.count { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--bg); grid-column: 1 / -1; }

/* ---------- Status page ---------- */
.tally { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 28px; }
.tally div { padding: 18px 20px; border-right: 1px solid var(--line); }
.tally div:last-child { border-right: 0; }
.tally strong { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; margin-top: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.status-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.status-table th, .status-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.status-table th { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-2); }
.status-table tr:last-child td { border-bottom: 0; }
.status-table tbody tr:hover { background: var(--surface); }
.status-table td.m { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.status-table a { font-weight: 500; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; font-size: 0.85rem; color: var(--muted); }
.legend div .status { display: flex; margin-bottom: 4px; }

/* ---------- Product page ---------- */
.crumbs { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.product-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start; }
.product-layout .p-art { height: 300px; border: 1px solid var(--line); }
.detail { margin-top: 44px; }
.detail h2 { font-size: 1.9rem; margin-bottom: 14px; }
.detail > p { color: var(--muted); max-width: 640px; }
.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-group { background: var(--bg); padding: 20px; }
.feature-group h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 10px; }
.feature-group li { list-style: none; padding: 5px 0 5px 18px; position: relative; font-size: 0.92rem; }
.feature-group li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); color: var(--dim); }
.req-list { border-top: 1px solid var(--line); }
.req-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req-list span { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.buy-box { position: sticky; top: 86px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.buy-box .top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.buy-box h1 { font-size: 3.4rem; margin: 14px 0 4px; }
.buy-box .sub { color: var(--muted); }
.tiers { display: grid; margin: 22px 0 18px; border: 1px solid var(--line-2); border-radius: var(--r); }
.tier { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line-2); position: relative; }
.tier:last-child { border-bottom: 0; }
.tier input { position: absolute; opacity: 0; }
.tier .l { display: flex; align-items: center; gap: 12px; }
.tier .l::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--line-2); flex: none; }
.tier:has(input:checked) { background: var(--surface-2); }
.tier:has(input:checked) .l::before { background: var(--accent); border-color: var(--accent); }
.tier:has(input:focus-visible) { outline: 1px solid var(--accent); }
.tier-price { font-family: var(--mono); font-size: 1rem; }
.pop { font-family: var(--mono); font-size: 0.65rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.notes { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.notes li { list-style: none; padding: 6px 0; border-top: 1px dashed var(--line); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 20px 0; cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq-item[open] summary::after { content: "−"; color: var(--accent); }
.faq-item p { padding: 0 40px 22px 0; color: var(--muted); }
.aside-box { border: 1px solid var(--line); padding: 22px; align-self: start; }
.aside-box p { color: var(--muted); margin: 8px 0 18px; font-size: 0.93rem; }
.aside-box h3 { font-size: 1.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.channels { border-top: 1px solid var(--line); }
.channel { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.channel:hover h3 { color: var(--accent); }
.channel h3 { font-size: 1.6rem; }
.channel p { color: var(--muted); font-size: 0.9rem; grid-column: 1; }
.channel .meta { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
form.panel { background: var(--bg-2); border: 1px solid var(--line); padding: 28px; border-radius: var(--r); }
form.panel h2 { font-size: 1.9rem; }
.field { width: 100%; }
textarea.field { min-height: 150px; resize: vertical; }
label.f { display: block; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 6px; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--ok); display: none; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal .notice { border-left: 3px solid var(--warn); padding: 12px 16px; background: var(--bg-2); color: var(--muted); font-size: 0.9rem; }
.legal h2 { font-size: 1.8rem; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 18px; }
.legal a { color: var(--text); border-bottom: 1px solid var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 24px; background: #0b0b0a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid p { margin-top: 12px; }
.footer-grid h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; padding: 3px 0; font-size: 0.9rem; color: var(--muted); }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 120px); background: var(--text); color: var(--accent-ink);
  padding: 12px 18px; border-radius: var(--r); font-size: 0.9rem; transition: transform .25s; z-index: 100; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .product-layout, .contact-grid, .specs-wrap, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .p-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .buy-box { position: static; }
  .legend { grid-template-columns: repeat(2, 1fr); }
  .hero-bg::after { background: linear-gradient(180deg, var(--bg) 20%, transparent 100%); opacity: .85; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav { gap: 16px; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0; height: auto; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px 16px 12px;
  }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
  .nav-links a.active { border-color: var(--line); color: var(--accent); }
  .nav-links.open { display: flex; }
  .container { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 70px 1fr; gap: 4px 16px; }
  .log-row .x { grid-column: 2; }
  .tally { grid-template-columns: repeat(2, 1fr); }
  .tally div:nth-child(2) { border-right: 0; }
  .tally div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hide-sm { display: none !important; }
}
@media (max-width: 600px) {
  .p-grid, .quotes, .specs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .legend { grid-template-columns: 1fr; }
  .cta { padding: 28px 22px; }
  section { padding: 56px 0; }
  .hero { padding: 44px 0 56px; }
  .nav-cta .btn-primary { display: none; }
  .buy-box h1 { font-size: 2.8rem; }
}

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.co-title { font-size: clamp(2.6rem, 6vw, 3.8rem); margin-bottom: 8px; }
.co-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 22px 0 8px; margin-top: 18px; }
.co-form legend { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding-right: 12px; }
.co-form .hint { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.field.invalid { border-color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
#payment-root .pay-element, #payment-root .pay-branding { opacity: 0; transition: opacity .25s; }
#payment-root.themed .pay-element, #payment-root.themed .pay-branding { opacity: 1; }
.pay-element { margin-top: 8px; min-height: 180px; }
.pay-btn:disabled { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.pay-btn { margin-top: 18px; padding: 16px; font-size: 0.85rem; }
/* Whop's required merchant notice: kept fully visible (no opacity/transform, which Whop may treat as hidden), just placed quietly under the button. */
.pay-branding { margin-top: 6px; display: flex; justify-content: center; }
.pay-loading { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 18px 0; }
.co-error { display: none; margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--bad); background: var(--bg-2); color: var(--text); font-size: 0.92rem; }
.co-summary .p-art { height: 130px; border: 1px solid var(--line); margin: 16px 0 6px; }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sum-row.muted { font-size: 0.88rem; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-family: var(--display); font-size: 2rem; font-weight: 700; text-transform: uppercase; }
.sum-total small { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); font-weight: 400; }

/* ---------- Order ---------- */
.order-wrap { max-width: 680px; }
.order-title { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 12px; }
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 6px; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--accent); border-radius: var(--r); }
.key-box code { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.06em; word-break: break-all; }
.progress { height: 2px; background: var(--line); margin-top: 28px; overflow: hidden; position: relative; }
.progress i { position: absolute; inset: 0; width: 30%; background: var(--accent); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }

@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .co-summary { order: -1; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Checkout: compact spacing ---------- */
.co-title { margin-bottom: 0; }
.co-form fieldset { padding: 12px 0 2px; margin-top: 14px; }
.co-form legend { padding-bottom: 2px; }
.co-form label.f { margin: 12px 0 5px; }
.co-form legend + label.f,
.co-form legend + .field-row label.f { margin-top: 4px; }
.co-form .field { padding: 10px 12px; font-size: 0.93rem; }
.co-form .field-row { gap: 12px; }
.co-form .hint { margin-top: 6px; font-size: 0.82rem; }
.co-form .pay-element { margin-top: 4px; min-height: 150px; }
.co-form .pay-btn { margin-top: 14px; padding: 14px; }
.co-form .pay-branding { margin-top: 6px; padding-top: 0; border: 0; }

/* ---------- Checkout: payment method picker (Card / Crypto) ---------- */
[hidden] { display: none !important; }
.pm { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); margin-top: 4px; }
.pm-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
  background: transparent; border: 0; color: var(--text); font: 500 0.95rem var(--sans); text-align: left; cursor: pointer;
}
.pm-row + .pm-body, .pm-body + .pm-row, .pm-row + .pm-row { border-top: 1px dashed var(--line); }
.pm-row:hover .pm-radio:not(.on) { border-color: var(--muted); }
.pm-row:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.pm-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.pm-radio.on { background: var(--accent); border-color: var(--accent); }
.pm-radio.on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.pm-extra { margin-left: auto; display: flex; align-items: center; }
.pm-card-icon { width: 30px; height: 20px; border: 1.5px solid var(--muted); border-radius: 3px; position: relative; opacity: .8; }
.pm-card-icon::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 3px; background: var(--muted); }
.pm-card-icon::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 8px; height: 2px; background: var(--muted); }
.pm-body { padding: 4px 0 6px; }
.pm-body .pay-element { margin: 0; min-height: 120px; }
.pm-note { padding: 12px 16px 14px; font-size: 0.88rem; }
.pm-note p + p { margin-top: 6px; font-size: 0.82rem; }
.coins { display: flex; align-items: center; }
.coins i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-left: -6px;
  font: 700 0.78rem/1 var(--sans); font-style: normal; color: #fff; border: 2px solid var(--surface);
}
.coins i:first-child { margin-left: 0; }
.coins em { font: 500 0.7rem var(--mono); font-style: normal; color: var(--muted); margin-left: 8px; letter-spacing: .04em; }
@media (max-width: 420px) { .coins i:nth-child(n+4) { display: none; } }

@media (max-width: 600px) { .feature-groups { grid-template-columns: 1fr; } }

/* Product grid with fewer than 3 cards: centered, fixed-width cards, no empty cells */
.p-grid.fit { grid-template-columns: repeat(var(--cols), minmax(0, 400px)); justify-content: center; background: transparent; border: 0; gap: 0; }
.p-grid.fit .p-card { border: 1px solid var(--line); }
.p-grid.fit .p-card + .p-card { margin-left: -1px; }
@media (max-width: 600px) {
  .p-grid.fit { grid-template-columns: 1fr; }
  .p-grid.fit .p-card + .p-card { margin-left: 0; margin-top: -1px; }
}

/* ---------- AI support chat ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); transition: border-color .15s, background .15s;
}
.chat-fab svg { width: 18px; height: 18px; color: var(--accent); }
.chat-fab:hover, .chat-fab.open { border-color: var(--accent); background: var(--surface-2); }
.chat-panel {
  position: fixed; right: 20px; bottom: 76px; z-index: 91; width: 370px; height: min(560px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85);
}
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.chat-head span { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font: 0.68rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.chat-close { background: none; border: 1px solid var(--line-2); color: var(--muted); width: 30px; height: 30px; border-radius: var(--r); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.chat-close:hover { color: var(--text); border-color: var(--text); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 86%; padding: 9px 12px; border-radius: var(--r); font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.chat-msg.error { border-color: rgba(236, 91, 79, .5); color: var(--muted); }
.chat-msg.typing { width: 54px; height: 34px; background:
  radial-gradient(circle, var(--muted) 2.5px, transparent 3px) 10px 50% / 12px 12px no-repeat,
  radial-gradient(circle, var(--muted) 2.5px, transparent 3px) 22px 50% / 12px 12px no-repeat,
  radial-gradient(circle, var(--muted) 2.5px, transparent 3px) 34px 50% / 12px 12px no-repeat, var(--surface);
  animation: blink 1s steps(2) infinite; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-suggest button { background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: var(--r); padding: 6px 10px; font: 0.8rem var(--sans); cursor: pointer; text-align: left; }
.chat-suggest button:hover { color: var(--text); border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; font: 0.9rem/1.4 var(--sans); max-height: 110px; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 42px; flex: none; border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font: 700 1.1rem var(--mono); cursor: pointer; }
.chat-form button:disabled { background: var(--line-2); color: var(--muted); cursor: default; }
.chat-foot { padding: 0 16px 12px; font-size: 0.72rem; color: var(--dim); }
.chat-foot a { color: var(--muted); text-decoration: underline; }
@media (max-width: 600px) {
  .chat-fab { right: 12px; bottom: 12px; }
  .chat-panel { right: 8px; left: 8px; bottom: 66px; width: auto; height: min(560px, calc(100vh - 90px)); }
}

/* ---------- Home: perk strip under the hero ---------- */
.perks { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.perk { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--bg-2); color: var(--text); transition: background .15s; }
a.perk:hover { background: var(--surface); }
a.perk:hover .perk-go { color: var(--accent); }
.perk-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.perk-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.perk b { display: block; font-weight: 600; font-size: 0.95rem; }
.perk span:not(.perk-icon) { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; line-height: 1.4; }
.perk-go { position: absolute; top: 12px; right: 14px; font-style: normal; font-family: var(--mono); color: var(--dim); transition: color .15s; }
@media (max-width: 980px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .perks { grid-template-columns: 1fr; margin-top: 36px; } }


.pay-hint { margin-top: 8px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   Admin panel (admin.html) — owner-only, same design system.
   ============================================================ */
.admin-bar { border-bottom: 1px solid var(--line); background: #090908; }
.admin-bar .container { display: flex; align-items: center; gap: 16px; height: 56px; }
.admin-bar .brand { margin-right: auto; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.admin-bar .brand em { font-style: normal; color: var(--accent); }
.admin-tag { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: var(--r); }
.admin-main { padding: 36px 0 80px; }

/* Sign-in card, centred on its own */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--bg-2); border: 1px solid var(--line); padding: 32px; border-radius: var(--r); }
.login-card h1 { font-size: 2rem; }
.login-card p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.login-card .btn { margin-top: 20px; }

/* Tabs */
.admin-tabs { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
.admin-tabs button { flex: 1; padding: 14px 18px; background: var(--bg-2); color: var(--muted); border: 0; cursor: pointer; font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active { background: var(--text); color: var(--accent-ink); }

/* Sales tiles: same skeleton as .tally but six across and self-labelling */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
.stat { background: var(--bg-2); padding: 18px 20px; }
.stat span { display: block; font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.stat strong { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1.05; margin-top: 8px; font-weight: 700; }
.stat em { display: block; font-style: normal; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--dim); margin-top: 6px; }
.stat.hi strong { color: var(--accent); }
.stat.warn strong { color: var(--warn); }

/* Order + stock tables reuse .status-table, with a few admin-only cells */
.admin-table { min-width: 980px; }
.admin-scroll { max-height: min(68vh, 760px); overflow: auto; }
.admin-scroll thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--line-2); }
.admin-table td em.sub { display: block; font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); margin-top: 3px; }
.admin-table td.num em.sub { color: var(--ok); }
.admin-table td.key { font-family: var(--mono); font-size: 0.78rem; color: var(--text); }
.admin-table td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.admin-table th { white-space: nowrap; }
.admin-table th.num { text-align: right; }
.admin-table td.nowrap { white-space: nowrap; }
.admin-table .email { word-break: break-all; }
.copy { background: none; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 6px; border-radius: var(--r); margin-left: 8px; }
.copy:hover { color: var(--text); border-color: var(--text); }

/* Payment-status colours: succeeded reads as good, open as waiting, dead as bad */
.status-succeeded { color: var(--ok); }
.status-pending, .status-creating, .status-processing, .status-partially_paid { color: var(--warn); }
.status-canceled, .status-expired { color: var(--bad); }
.status-refunded { color: var(--info); }
.dot-succeeded { color: var(--ok); }
.dot-pending, .dot-creating, .dot-processing, .dot-partially_paid { color: var(--warn); }
.dot-canceled, .dot-expired { color: var(--bad); }
.dot-refunded { color: var(--info); }

.pill { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line-2); color: var(--muted); padding: 2px 6px; border-radius: var(--r); white-space: nowrap; }
.pill-wait { border-color: var(--warn); color: var(--warn); }
.pill-out { border-color: var(--bad); color: var(--bad); }
.pill-ok { border-color: var(--line-2); color: var(--ok); }

/* Key upload: form on the left, current stock on the right */
.keys-layout { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.keys-layout .panel { background: var(--bg-2); border: 1px solid var(--line); padding: 26px; border-radius: var(--r); }
.keys-layout h2 { font-size: 1.6rem; }
.keys-layout textarea.field { min-height: 190px; font-family: var(--mono); font-size: 0.82rem; }
.stock-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.stock-keys button { background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); font-family: var(--mono); font-size: 0.72rem; padding: 3px 7px; border-radius: var(--r); cursor: pointer; }
.stock-keys button:hover { border-color: var(--bad); color: var(--bad); }
.stock-keys button::after { content: " ×"; }

.upload-bar { height: 4px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 14px; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
input[type=file].field { padding: 9px 12px; font-family: var(--mono); font-size: 0.8rem; cursor: pointer; }
input[type=file].field::file-selector-button {
  margin-right: 12px; padding: 7px 12px; border-radius: var(--r); cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
}
input[type=file].field::file-selector-button:hover { border-color: var(--text); }
.note { margin-top: 14px; font-size: 0.88rem; display: none; }
.note.show { display: block; }
.note.ok { color: var(--ok); }
.note.bad { color: var(--bad); }

.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-toolbar .search { min-width: 200px; }

@media (max-width: 1000px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .keys-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .admin-tabs button { font-size: 0.66rem; padding: 12px 8px; }
  .admin-bar .container { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .admin-bar .brand { flex-basis: 100%; }
  .admin-tag { margin-right: auto; }
}
