/* Palette. Everything else in this file must reference these, never a literal
   colour, or the light theme cannot work. The -on-* entries are the text colours
   that sit on a translucent status wash: on dark they are pale tints, on light
   they have to darken or they fail contrast. */
:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --bg-soft: #111624;
  --card: #141a28;
  --line: #222c40;
  --text: #e8edf6;
  --muted: #8e9bb3;
  --brand: #4f8cff;
  --brand-2: #7c5cff;
  --ok: #2ecc8f;
  --bad: #ff5f6d;
  --warn: #ffb648;
  --radius: 14px;
  --max: 980px;

  --surface-2: rgba(255, 255, 255, 0.05);
  --wash-ok: rgba(46, 204, 143, 0.12);
  --wash-bad: rgba(255, 91, 109, 0.12);
  --wash-warn: rgba(255, 182, 72, 0.12);
  --wash-info: var(--edge-info);
  --grad-ok: linear-gradient(150deg, rgba(46, 204, 143, 0.13), rgba(46, 204, 143, 0.04));
  --grad-soft: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  --grad-brand: linear-gradient(135deg, var(--edge-info), rgba(124, 92, 255, 0.14));
  --edge-ok: var(--edge-ok);
  --edge-bad: rgba(255, 91, 109, 0.38);
  --edge-warn: rgba(255, 182, 72, 0.38);
  --edge-info: var(--edge-info);
  --edge-brand2: var(--edge-brand2);
  --edge-brand2-soft: var(--edge-brand2-soft);
  --spin-edge: rgba(255, 255, 255, 0.35);
  --spin-edge-top: #fff;
  --overlay: rgba(0, 0, 0, 0.3);
  --scrim: var(--scrim);
  --shadow: var(--shadow);
  --hover-border: #33405c;
  --placeholder: #5c6a83;
  --on-ok: #9df0cd;
  --on-bad: #ffb3b9;
  --on-warn: #ffd79a;
  --on-info: #9dc0ff;
  --on-tg: #6fc3f0;
}

[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --line: #d9e0ec;
  --text: #111726;
  --muted: #55617a;
  --brand: #1d4ed8;
  --brand-2: #6d28d9;
  --ok: #0f9d58;
  --bad: #dc2626;
  --warn: #b45309;

  --surface-2: rgba(17, 23, 38, 0.04);
  color-scheme: light;
  /* Washes and edges darken here: on white a pale tint is invisible, and a light
     status colour as text would drop below readable contrast. */
  --wash-ok: rgba(15, 157, 88, 0.12);
  --wash-bad: rgba(220, 38, 38, 0.1);
  --wash-warn: rgba(180, 83, 9, 0.12);
  --wash-info: rgba(29, 78, 216, 0.1);
  --grad-ok: linear-gradient(150deg, rgba(15, 157, 88, 0.14), rgba(15, 157, 88, 0.04));
  --grad-soft: linear-gradient(150deg, rgba(17, 23, 38, 0.03), rgba(17, 23, 38, 0.01));
  --grad-brand: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(109, 40, 217, 0.1));
  --edge-ok: rgba(15, 157, 88, 0.45);
  --edge-bad: rgba(220, 38, 38, 0.4);
  --edge-warn: rgba(180, 83, 9, 0.45);
  --edge-info: rgba(29, 78, 216, 0.45);
  --edge-brand2: rgba(109, 40, 217, 0.42);
  --edge-brand2-soft: rgba(109, 40, 217, 0.35);
    --edge-tg: rgba(10, 109, 156, 0.45);
  --spin-edge: rgba(17, 23, 38, 0.2);
  --spin-edge-top: var(--brand);
  --overlay: rgba(17, 23, 38, 0.05);
  --scrim: rgba(17, 23, 38, 0.45);
  --shadow: 0 18px 50px rgba(17, 23, 38, 0.12);
  --hover-border: #b4c0d4;
  --placeholder: #8b95a8;
  --on-ok: #046c3a;
  --on-bad: #a11526;
  --on-warn: #7c4400;
  --on-info: #1c4fb0;
  --on-tg: #0a6d9c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  /* No -webkit-font-smoothing here. Forcing greyscale antialiasing on a dark
     background is what makes text look thin and washed out. Let the OS decide. */
}

/* The sticky bar used to blur whatever scrolled under it. On several GPU and
   driver combinations that promoted the whole page to a composited layer and
   rendered every glyph at a lower resolution, so the entire site looked fuzzy
   rather than just the bar. A solid header costs nothing and stays sharp. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 24px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- top bar ---------- */
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 800; color: #fff;
  align-self: center;
}
.brand-name { font-weight: 800; letter-spacing: 0.14em; }
.brand-sub { color: var(--muted); font-size: 13px; }
.topbar nav { display: flex; gap: 20px; font-size: 14px; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover { color: var(--text); }

main { max-width: var(--max); margin: 0 auto; padding: 0 22px 80px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.lede { color: var(--muted); margin: 0 auto 34px; max-width: 46ch; font-size: 1.05rem; }

.searchbar {
  display: flex; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: var(--radius);
  max-width: 620px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.searchbar input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 1.1rem;
  padding: 14px 14px;
}
.searchbar input::placeholder { color: var(--placeholder); }

button {
  font: inherit; font-weight: 600;
  border: 0; border-radius: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: progress; }

.spinner { display: none; }
button.loading .btn-label { display: none; }
button.loading .spinner {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid var(--spin-edge);
  border-top-color: var(--spin-edge-top); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- pitch / marketing banner ---------- */
.pitch {
  max-width: 620px; margin: 0 auto 26px;
  background: var(--grad-brand);
  border: 1px solid var(--edge-brand2);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: left;
}
.pitch-main { display: flex; gap: 12px; align-items: flex-start; }
.pitch-main .bolt { font-size: 1.5rem; line-height: 1.1; }
.pitch-main b { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.pitch-main p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.pitch-prices {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--edge-brand2-soft);
}
.pitch-price {
  background: var(--overlay); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 13px; flex: 1; min-width: 140px;
}
.pitch-price b { display: block; font-size: 1.1rem; }
.pitch-price span { color: var(--muted); font-size: 0.8rem; }
.pitch-price.is-hot { border-color: var(--ok); }
.pitch-price.is-hot b { color: var(--ok); }

/* ---------- quick chips ---------- */
.quick {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px;
  padding: 4px 11px; cursor: pointer; font-size: 13px;
}
.chip:hover { color: var(--text); border-color: var(--brand); text-decoration: none; }

/* ---------- status ---------- */
.status {
  margin: 26px auto 0; max-width: 620px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--wash-bad);
  border: 1px solid var(--edge-bad);
  color: var(--on-bad); font-size: 0.95rem;
}

/* ---------- result card ---------- */
.result { margin-top: 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card.is-available { border-color: var(--edge-ok); }
.card.is-taken { border-color: var(--edge-bad); }
.card.is-unknown { border-color: var(--edge-warn); }

.verdict { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; }
.verdict .dot { width: 10px; height: 10px; border-radius: 50%; }
.is-available .verdict { color: var(--ok); }
.is-available .dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.is-taken .verdict { color: var(--bad); }
.is-taken .dot { background: var(--bad); }
.is-unknown .verdict { color: var(--warn); }
.is-unknown .dot { background: var(--warn); }

.domain-name {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700; margin: 10px 0 4px;
  word-break: break-all;
}
.reason { color: var(--muted); font-size: 0.92rem; margin: 0 0 20px; }

.price-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.price-usd { color: var(--muted); font-size: 1.05rem; padding-bottom: 6px; }
.renewal { color: var(--muted); font-size: 0.88rem; margin: 0 0 22px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); filter: none; }

.promo-row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.promo-row input {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; color: var(--text); width: 160px; outline: none;
}
.promo-row input:focus { border-color: var(--brand); }

.promo-note { color: var(--ok); font-size: 0.9rem; width: 100%; }

.meta { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
}

/* ---------- suggestions ---------- */
.sug-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.sug-head h3 { margin: 0; }
.sug-list { display: grid; gap: 8px; }
.sug {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 15px;
}
.sug:hover { border-color: var(--brand); }
.sug-name { font-weight: 600; word-break: break-all; }
.sug-why { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; margin-top: 2px; }
.sug-price { text-align: right; white-space: nowrap; }
.sug-price b { display: block; font-size: 0.98rem; }
.sug-price span { color: var(--muted); font-size: 0.78rem; }
.sug-buy {
  background: transparent; border: 1px solid var(--line); color: var(--brand);
  padding: 7px 13px; font-size: 0.85rem; border-radius: 8px; font-weight: 600;
}
.sug-buy:hover { border-color: var(--brand); filter: none; }
.badge-free { color: var(--ok); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }

/* ---------- panels ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-top: 30px;
}
.inline-form { display: flex; gap: 8px; max-width: 460px; }
.inline-form input {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px; color: var(--text); outline: none;
}
.inline-form input:focus { border-color: var(--brand); }
.sug-out { margin-top: 16px; }

.steps { margin: 0; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 10px; }
.steps b { color: var(--text); }

.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.method {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 15px;
}
.method b { display: block; margin-bottom: 3px; }
.method span { color: var(--muted); font-size: 0.84rem; }
.method.not-ready { opacity: 0.55; }

/* ---------- sheet ---------- */
/* The [hidden] rule below is load-bearing. `.sheet` sets display:grid, and any
   author-level display beats the browser's own `[hidden] { display:none }`. Without
   it the checkout modal renders on page load: a 72% black backdrop over the whole
   site with a 3px blur, which reads as a dark unfocused screen over the homepage. */
.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); }
.sheet-panel {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: 92vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  animation: rise 0.22s ease;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-x {
  position: absolute; top: 14px; right: 16px;
  background: transparent; color: var(--muted); font-size: 26px; line-height: 1;
  padding: 4px 8px;
}
.sheet-x:hover { color: var(--text); filter: none; }
.sheet-panel h2 { padding-right: 34px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.84rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; color: var(--text); outline: none; font: inherit;
}
.field input:focus, .field select:focus { border-color: var(--brand); }

.pay-total {
  display: flex; align-items: baseline; justify-content: space-between;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 11px; padding: 15px 17px; margin: 18px 0;
}
.pay-total b { font-size: 1.5rem; }

.pay-list { display: grid; gap: 8px; margin: 18px 0; }
.pay-opt {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 15px; cursor: pointer;
}
.pay-opt:hover { border-color: var(--brand); }
.pay-opt input { accent-color: var(--brand); width: 17px; height: 17px; }
.pay-opt .po-label { font-weight: 600; }
.pay-opt .po-detail { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }

.note {
  background: var(--wash-warn); border: 1px solid var(--edge-warn);
  color: var(--on-warn); border-radius: 10px; padding: 12px 14px; font-size: 0.88rem;
}
.note code, code.addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--overlay); padding: 2px 7px; border-radius: 6px;
  word-break: break-all; display: inline-block; margin: 4px 0;
}
.copy {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
}
.copy:hover { border-color: var(--brand); filter: none; }

/* ---------- scan-to-pay row ----------
   The QR sits beside the address on wide screens and stacks above it on
   narrow ones. It is sized in px (not %) so it stays a predictable scannable
   size, and it is never stretched by the flex row. */
.pay-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 14px 0;
  flex-wrap: wrap;
}
.pay-qr {
  flex: 0 0 auto;
  width: 148px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 0;
}
.pay-qr svg { width: 100%; height: auto; display: block; }
.pay-qr:empty { display: none; }
.pay-addr { flex: 1 1 220px; min-width: 0; }
.pay-addr .addr { display: block; }
.pay-addr .copy { margin-top: 8px; }
.qr-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .pay-row { flex-direction: column; align-items: center; text-align: center; }
  .pay-addr { width: 100%; }
  .pay-addr .addr { word-break: break-all; }
}

.alert { border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; margin: 14px 0; }
.alert-err { background: var(--wash-bad); border: 1px solid var(--edge-bad); color: var(--on-bad); }
.alert-ok { background: var(--wash-ok); border: 1px solid rgba(46, 204, 143, 0.35); color: var(--on-ok); }
.hidden { display: none !important; }
.spin-inline {
  display: inline-block; width: 13px; height: 13px; vertical-align: -2px;
  border: 2px solid var(--spin-edge); border-top-color: var(--spin-edge-top);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}

/* ---------- hero pitch rail ---------- */
.pitch-prices {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.price-block {
  position: relative;
  min-width: 132px;
  padding: 14px 16px 13px;
  border-radius: var(--radius);
  background: var(--grad-ok);
  border: 1px solid var(--edge-ok);
}
.price-block.alt {
  background: var(--grad-soft);
  border-color: var(--line);
}
.price-flag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}
.price-block.alt .price-flag { color: var(--muted); }
.price-hero {
  display: block;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 4px 0 2px;
}
.price-sub {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}
.alt-rail {
  flex: 1 1 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.alt-rail b { color: var(--text); font-size: 1.05rem; }

/* ---------- layout helpers ---------- */
main.narrow { max-width: 720px; }
.topbar nav a.on { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); font-size: 0.8rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.nowrap { white-space: nowrap; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.btn-sm { padding: 7px 13px; font-size: 0.83rem; border-radius: 8px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; }

/* ---------- account page ---------- */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 40px 0 20px; }
.dash-head h1 { margin-bottom: 4px; }
.order-list { display: grid; gap: 16px; }
.order-card { margin-top: 0; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; }
.st-wait { background: var(--wash-warn); border: 1px solid var(--edge-warn); color: var(--warn); }
.st-paid { background: var(--wash-ok); border: 1px solid var(--edge-ok); color: var(--ok); }
.st-done { background: var(--wash-info); border: 1px solid var(--edge-info); color: var(--on-info); }
.st-bad { background: var(--wash-bad); border: 1px solid var(--edge-bad); color: var(--bad); }

.avail-line { margin: 14px 0; padding: 11px 14px; border-radius: 10px; background: var(--wash-ok); border: 1px solid var(--edge-ok); font-size: 0.9rem; }
.avail-line.warn { background: var(--wash-bad); border-color: var(--edge-bad); }

.owned { margin-top: 0; }
.owned-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.owned-name { font-weight: 700; word-break: break-all; }
.owned-meta { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.sug-box { margin-top: 18px; }
.sug-box h3 { margin: 0 0 10px; }

/* ---------- admin page ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 34px 0 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi-k { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; }
.kpi b { display: block; font-size: 1.7rem; letter-spacing: -0.02em; margin: 4px 0 2px; }
.kpi-s { color: var(--muted); font-size: 0.8rem; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; color: var(--text); font: inherit; font-size: 0.87rem; outline: none;
}
.filters select:focus, .filters input:focus { border-color: var(--brand); }
.mini-sel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 6px 9px; font: inherit; font-size: 0.82rem; }
.act { display: flex; gap: 6px; align-items: center; }

.mini-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 0.84rem; margin-bottom: 12px; }
.mini-stats b { color: var(--text); }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl a { font-weight: 600; }
.src { font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); }
.src-telegram { color: var(--on-tg); border-color: var(--edge-tg); }
.src-web { color: var(--on-info); border-color: var(--edge-info); }

.bot-info { display: grid; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-all; }

/* ---------- term picker ---------- */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; margin: 4px 0 18px; }
.term {
  position: relative; text-align: left; cursor: pointer; padding: 12px 12px 11px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  color: var(--text); font: inherit; transition: border-color .12s, background .12s;
}
.term:hover { border-color: var(--hover-border); }
.term.on { border-color: var(--brand); background: var(--wash-info); }
.term-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.term.on .term-label { color: var(--text); }
.term-price { display: block; font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.term-badge { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 3px; text-transform: lowercase; }
.term.on .term-badge { color: var(--on-info); }
.term-flag {
  position: absolute; top: -8px; right: 8px; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  background: var(--ok); color: #04240f;
}
.term-note { color: var(--muted); font-size: 0.85rem; margin: -8px 0 20px; }

/* ---------- payment watching ---------- */
.watching { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); flex: none; animation: pulse 1.4s ease-in-out infinite; }
.pulse.ok { background: var(--ok); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.delivered { background: var(--wash-ok); border: 1px solid var(--edge-ok); border-radius: 12px; padding: 16px; margin: 16px 0; }
.delivered h3 { color: var(--ok); margin: 0 0 8px; }
.ns-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ns-list code { font-size: 0.8rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 22px 46px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
footer p { margin: 4px 0; }
.fine { font-size: 0.8rem; opacity: 0.75; }

@media (max-width: 640px) {
  .topbar nav { gap: 14px; font-size: 13px; }
  .hero { padding: 48px 0 30px; }
  .card, .panel { padding: 20px; }
  .searchbar { flex-direction: column; }
  .searchbar button { width: 100%; }
  .sug { flex-wrap: wrap; }
  .terms { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}

/* ---------- theme toggle ---------- */
/* The icon is a text glyph rather than an inline SVG so the control stays a
   single element that can be styled from the palette with no extra request. */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--muted);
  font-size: 15px; line-height: 1; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-btn:hover { color: var(--text); border-color: var(--hover-border); }
.theme-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.topbar .nav-end { display: flex; align-items: center; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .theme-btn { transition: none; } }

.fee-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--wash-info);
  border: 1px solid var(--edge-info);
  color: var(--on-info);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ============================================================
   Ambient artwork
   ------------------------------------------------------------
   The hero art is a static SVG (no network dependency, no base64
   bloat) sitting on a pseudo-element. `isolation: isolate` gives
   the hero its own stacking context so the negative z-index
   layers paint behind the text without dropping behind the page
   background. The art is decorative only: everything important
   stays as real text in the document, so it survives a failed
   image load and stays readable to assistive tech.
   ============================================================ */
.hero { position: relative; isolation: isolate; }

/* The full-bleed hero art is sized in `100vw`, which on a classic-scrollbar
   browser is wider than the document's client width and would add a
   horizontal scrollbar. `clip` trims the overflow without creating a scroll
   container, so nothing that relies on sticky positioning breaks. */
html, body { overflow-x: clip; }

.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  top: -34px;
  left: 50%;
  width: 100vw;
  height: 660px;
  transform: translateX(-50%);
  background: url('/assets/hero-bg.svg') center top / cover no-repeat;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

/* A slow, transform-only drift on top of the static art. Transform and
   opacity stay on the compositor, so this never repaints the SVG and
   costs no layout. Disabled outright for reduced-motion users. */
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -60px;
  left: 50%;
  width: 760px;
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(79, 140, 255, 0.20), transparent 72%),
    radial-gradient(closest-side at 68% 34%, rgba(124, 92, 255, 0.16), transparent 70%);
  background-position: 34% 42%, 70% 30%;
  background-size: 70% 70%, 58% 62%;
  background-repeat: no-repeat;
  filter: blur(26px);
  pointer-events: none;
  animation: heroDrift 38s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { background-position: 32% 44%, 72% 28%; opacity: 0.85; }
  to   { background-position: 40% 34%, 64% 40%; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}

/* Light theme: the same art read as a faint wash, not a dark panel. */
[data-theme='light'] .hero::before { opacity: 0.34; }
[data-theme='light'] .hero::after  { opacity: 0.55; }

footer {
  position: relative;
  isolation: isolate;
  background: url('/assets/foot-bg.svg') center top / 100% 190px no-repeat;
}
[data-theme='light'] footer { background-image: none; }

/* Brand mark: a soft brand-coloured bloom so the logo reads as a mark
   rather than a stray letter. */
.brand-mark {
  box-shadow: 0 0 0 1px var(--edge-brand2), 0 6px 18px -8px var(--edge-brand2);
}

/* Numbered steps get an icon so the "How it works" band reads as a
   designed section instead of a default browser list. */
.steps { list-style: none; padding-left: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad-brand);
  border: 1px solid var(--edge-info);
  box-shadow: 0 6px 16px -10px var(--edge-brand2);
}
.steps-ico {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 16px;
  height: 16px;
  color: var(--on-info);
}