/* =========================================================
   Cold Work — styles
   Contemporary cypherpunk: mono type, hard edges, terminal motifs.
   Theme tokens at top; dark is default, light ("paper") via [data-theme="light"].
   ========================================================= */

:root,
:root[data-theme="dark"] {
  --bg: #060606;
  --bg-2: #0b0b0b;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f1f1ec;
  --muted: #8f8f88;
  --faint: #5a5a55;
  --accent: #ff8a1f;
  --accent-2: #ffb000;
  --accent-ink: #0a0a0a;
  --accent-soft: rgba(255, 138, 31, 0.12);
  --up: #2bff88;
  --up-soft: rgba(43, 255, 136, 0.1);
  --down: #ff4d4d;
  --down-soft: rgba(255, 77, 77, 0.1);
  --track: rgba(255, 255, 255, 0.06);
  --dot: rgba(255, 255, 255, 0.07);
  --scan: rgba(255, 255, 255, 0.018);
  --glow: rgba(255, 138, 31, 0.16);
  --shadow-hard: 5px 5px 0 0 var(--accent);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #eeece4;
  --bg-2: #e6e3d9;
  --surface: #f7f6f1;
  --surface-2: #efede6;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.4);
  --text: #0b0b0b;
  --muted: #5d5b54;
  --faint: #8d8b83;
  --accent: #e2600a;
  --accent-2: #ff8a1f;
  --accent-ink: #0a0a0a;
  --accent-soft: rgba(226, 96, 10, 0.1);
  --up: #0a8a48;
  --up-soft: rgba(10, 138, 72, 0.1);
  --down: #c6302a;
  --down-soft: rgba(198, 48, 42, 0.09);
  --track: rgba(10, 10, 10, 0.055);
  --dot: rgba(10, 10, 10, 0.1);
  --scan: rgba(10, 10, 10, 0.012);
  --glow: rgba(255, 138, 31, 0.14);
  --shadow-hard: 5px 5px 0 0 var(--text);
  color-scheme: light;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* dot grid + glow + scanlines behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 420px at 80% -8%, var(--glow), transparent 65%),
    radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.35) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.35) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--scan) 0 1px, transparent 1px 3px);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono,
h1, h2, .h3, .h4 { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.06em; text-transform: uppercase; line-height: 0.95; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.05em; text-transform: uppercase; }
.h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.h4 { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.accent { color: var(--accent); }
.up { color: var(--up); }
.down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* blinking block cursor */
.cursor {
  display: inline-block;
  width: 0.55em; height: 0.85em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  background: var(--accent);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--up);
  box-shadow: 0 0 8px var(--up);
}

/* glitch on hover: RGB-split text shadow */
.glitch { position: relative; display: inline-block; color: var(--accent); }
.glitch:hover { animation: glitch 0.6s steps(2) infinite; }
@keyframes glitch {
  0% { text-shadow: 2px 0 0 #00e5ff, -2px 0 0 #ff2e7e; transform: translate(0); }
  25% { text-shadow: -2px 1px 0 #00e5ff, 2px -1px 0 #ff2e7e; transform: translate(1px, -1px); }
  50% { text-shadow: 1px -1px 0 #00e5ff, -1px 1px 0 #ff2e7e; transform: translate(-1px, 1px); }
  75% { text-shadow: -1px 0 0 #00e5ff, 1px 0 0 #ff2e7e; transform: translate(0); }
  100% { text-shadow: none; }
}

/* ---------- labels ---------- */
.eyebrow,
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.label { color: var(--muted); letter-spacing: 0.06em; font-size: 0.7rem; }
.idx { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  font-family: "Geist Mono", monospace;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s, color 0.15s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 0.75rem; }
.btn--xs { height: 32px; padding: 0 10px; font-size: 0.72rem; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:root[data-theme="dark"] .btn--primary:hover { box-shadow: 5px 5px 0 0 var(--text); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.icon-btn .icon-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  display: flex; align-items: center;
  height: 36px;
  background: #000;
  color: #e9e9e4;
  border-bottom: 1px solid #222;
  font-family: "Geist Mono", monospace;
  font-size: 0.76rem;
  overflow: hidden;
  z-index: 60;
}
.ticker__live {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  height: 100%;
  padding: 0 14px 0 16px;
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em;
  color: #000;
  background: var(--accent);
  z-index: 2;
}
.ticker__live .dot { background: #000; box-shadow: none; }
.ticker__viewport {
  flex: 1; overflow: hidden; height: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
}
.ticker__track {
  display: flex; align-items: center;
  height: 100%;
  width: max-content;
  animation: marquee var(--ticker-duration, 60s) linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; white-space: nowrap; }
.ticker__item::after { content: "//"; margin-left: 18px; color: #444; }
.ticker__item--loading { color: #888; }
.ticker__item--loading::after { content: none; }
.ticker__label { color: #8b8b85; text-transform: uppercase; }
.ticker__val { font-weight: 600; color: #fff; }
.ticker__chg { font-weight: 600; font-size: 0.72rem; }
.ticker__chg.up { color: #2bff88; }
.ticker__chg.down { color: #ff4d4d; }
.ticker__chg.up::before { content: "▲ "; font-size: 0.6rem; }
.ticker__chg.down::before { content: "▼ "; font-size: 0.6rem; }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: "Geist Mono", monospace; font-weight: 800; font-size: 1rem; letter-spacing: -0.03em; text-transform: uppercase; }
.brand__name .us { color: var(--accent); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  padding: 8px 11px;
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.cur-select {
  height: 38px; padding: 0 28px 0 10px;
  border: 1px solid var(--line-strong); border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center / 10px;
  font-family: "Geist Mono", monospace; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.cur-select:hover { border-color: var(--accent); }
.cur-select option { background: var(--surface); color: var(--text); }
@media (max-width: 900px) { .nav__links { display: none; } .nav__actions { margin-left: auto; } }
@media (max-width: 420px) { .nav__subscribe { display: none; } }

/* ---------- panel (card) ---------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
}
/* corner ticks */
.panel::before {
  content: "";
  position: absolute; inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 10px 1px,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 10px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 10px 1px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1px 10px;
  background-repeat: no-repeat;
}
.panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: "Geist Mono", monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
}
.panel__bar b { color: var(--text); font-weight: 700; }

.pill {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  font-family: "Geist Mono", monospace; font-weight: 700; font-size: 0.78rem;
  background: var(--track); color: var(--muted);
}
.pill.up { background: var(--up-soft); color: var(--up); }
.pill.down { background: var(--down-soft); color: var(--down); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 36px; }
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero__copy h1 { margin: 20px 0 22px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-family: "Geist Mono", monospace; font-size: 0.78rem; text-transform: uppercase; color: var(--muted); }
.hero__trust li::before { content: "[✓] "; color: var(--up); }

.price-card__body { padding: 22px; }
.price-card__price {
  font-family: "Geist Mono", monospace;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.06em;
  line-height: 1;
  transition: color 0.6s ease;
}
.price-card__price.flash-up { color: var(--up); transition: none; }
.price-card__price.flash-down { color: var(--down); transition: none; }
.price-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price-card__sub { font-family: "Geist Mono", monospace; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }
.sparkline { width: 100%; height: 64px; margin: 18px 0 18px; overflow: visible; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-last-child(-n + 2) { border-bottom: 0; }
.stat__label { font-family: "Geist Mono", monospace; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat__value { font-family: "Geist Mono", monospace; font-size: 1rem; font-weight: 700; }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- sections ---------- */
.section { padding: 46px 0; }
.section--tight { padding: 10px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section__head > div:first-child { max-width: 640px; }
.section__head h2 { margin: 12px 0 10px; }

/* ---------- segmented control ---------- */
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button {
  border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer;
  padding: 7px 12px;
  font-family: "Geist Mono", monospace; font-size: 0.74rem; font-weight: 700; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--accent); color: var(--accent-ink); }

/* ---------- charts ---------- */
.chart-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px 0; }
.chart-card__head .small { margin-top: 6px; font-family: "Geist Mono", monospace; font-size: 0.78rem; }
.chart-card__body { padding: 12px 22px 14px; }
.chart { position: relative; height: 340px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart--dca { height: 180px; }
.chart--deb { height: 300px; }
.chart__status {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-family: "Geist Mono", monospace; font-size: 0.8rem; text-transform: uppercase; pointer-events: none;
}
.chart__status:empty { display: none; }
.chart__tip {
  position: absolute; top: 0; pointer-events: none;
  padding: 8px 10px;
  background: var(--bg); border: 1px solid var(--line-strong);
  font-family: "Geist Mono", monospace; font-size: 0.74rem; white-space: nowrap;
  transform: translateX(-50%);
  z-index: 2;
}
.chart__tip b { display: block; font-size: 0.92rem; }
.chart__tip span { color: var(--muted); }
.chart .axis text { fill: var(--faint); font-size: 10.5px; font-family: "Geist Mono", monospace; }
.chart .gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .cross { stroke: var(--line-strong); stroke-dasharray: 3 3; }
@media (max-width: 640px) {
  .chart { height: 260px; }
  .chart-card__head { padding: 16px 14px 0; }
  .chart-card__body { padding: 10px 12px 12px; }
}

/* ---------- mempool blocks ---------- */
.blocks-card { margin-top: 16px; }
.blocks-card .panel__bar { position: relative; }
.help { display: inline-flex; vertical-align: middle; margin-left: 8px; }
.help__btn {
  width: 18px; height: 18px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); background: transparent; cursor: help;
  font-family: "Geist Mono", monospace; font-size: 0.68rem; font-weight: 800; color: var(--accent);
}
.help__btn:hover, .help__btn:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.help__tip {
  position: absolute; left: 16px; top: calc(100% + 6px); z-index: 30;
  width: min(440px, calc(100% - 32px));
  padding: 14px 16px;
  display: none;
  background: var(--bg); border: 1px solid var(--accent); box-shadow: var(--shadow-hard);
  font-family: "Geist", sans-serif; font-size: 0.86rem; line-height: 1.5; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--text);
}
.help__tip strong { display: block; margin-bottom: 6px; font-family: "Geist Mono", monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.help__row { display: block; margin-top: 8px; }
.help__row b { color: var(--accent); font-weight: 700; }
.help:hover .help__tip, .help:focus-within .help__tip { display: block; }
.blocks {
  display: flex; align-items: stretch; gap: 12px;
  padding: 20px 22px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.blocks__lane { display: flex; gap: 12px; }
.blocks__lane--pending { flex-direction: row-reverse; }
.blocks__divider {
  flex: none; position: relative; width: 1px; margin: 0 6px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 8px);
}
.blocks__divider span {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: "Geist Mono", monospace; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent);
}
.blocks__loading { font-family: "Geist Mono", monospace; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; padding: 40px 10px; }
.blk {
  --fill: 0%;
  flex: none; position: relative;
  width: 128px; height: 128px; padding: 10px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(to top, var(--accent-soft) var(--fill), transparent var(--fill)),
    var(--surface-2);
  font-family: "Geist Mono", monospace;
}
.blk--pending { border-style: dashed; border-color: var(--accent); }
.blk__h { position: absolute; top: -9px; left: 8px; padding: 0 5px; background: var(--surface); font-size: 0.66rem; font-weight: 700; color: var(--accent); }
.blk__fee { font-size: 1rem; font-weight: 800; letter-spacing: -0.04em; margin-top: 4px; }
.blk__range { font-size: 0.62rem; color: var(--muted); }
.blk__size { margin-top: auto; font-size: 0.72rem; font-weight: 600; }
.blk__tx { font-size: 0.66rem; color: var(--muted); }
.blk__foot { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk--new { animation: blkIn 0.9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes blkIn {
  0% { opacity: 0; transform: translateX(-24px); box-shadow: 0 0 0 0 var(--accent); }
  60% { opacity: 1; transform: none; box-shadow: 0 0 0 4px var(--accent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.blocks__legend {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 22px 14px;
  font-family: "Geist Mono", monospace; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 640px) { .blocks { padding: 20px 12px 8px; } .blocks__legend { padding: 6px 12px 12px; } }

/* ---------- tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tool { display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tool__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tool--converter { grid-column: span 7; }
.tool--alerts { grid-column: span 5; }
.tool--fng, .tool--fees, .tool--halving { grid-column: span 4; }
.tool--dca { grid-column: span 12; }
@media (max-width: 1080px) {
  .tool--converter, .tool--alerts { grid-column: span 12; }
  .tool--fng, .tool--fees { grid-column: span 6; }
  .tool--halving { grid-column: span 12; }
}
@media (max-width: 640px) { .tool--fng, .tool--fees { grid-column: span 12; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-family: "Geist Mono", monospace; font-size: 0.66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.field__control {
  display: flex; align-items: center;
  height: 46px; padding: 0 6px 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field__control:focus-within { border-color: var(--accent); box-shadow: 3px 3px 0 0 var(--accent); }
.field__control input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: "Geist Mono", monospace; font-size: 1rem; font-weight: 600; }
.field__control select {
  border: 0; outline: 0; background: var(--track);
  padding: 6px 8px; font-family: "Geist Mono", monospace; font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.field__control select option { background: var(--surface); color: var(--text); }
.field__control select:only-child { flex: 1; background: transparent; padding-left: 0; font-size: 0.95rem; }
.field__suffix { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 0.74rem; font-weight: 700; padding: 0 8px; text-transform: uppercase; }
.field__prefix { color: var(--muted); font-family: "Geist Mono", monospace; padding-right: 4px; }
.conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .conv { grid-template-columns: 1fr; } }
.tool .note { font-family: "Geist Mono", monospace; font-size: 0.74rem; color: var(--muted); }

/* alerts */
.alert-form { display: flex; gap: 10px; }
.alert-form .field { flex: 1; }
.alert-form .btn { align-self: flex-end; height: 46px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  padding: 5px 9px;
  border: 1px dashed var(--line-strong); background: transparent; cursor: pointer;
  font-family: "Geist Mono", monospace; font-size: 0.72rem; font-weight: 700; color: var(--muted);
  transition: all 0.15s;
}
.chip-btn:hover { color: var(--accent); border-color: var(--accent); border-style: solid; }
.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.alert-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 12px;
  background: var(--track);
  font-family: "Geist Mono", monospace; font-size: 0.82rem;
}
.alert-list li .dir { font-weight: 800; }
.alert-list li .dist { margin-left: auto; color: var(--muted); font-size: 0.72rem; }
.alert-list li button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 4px; }
.alert-list li button:hover { color: var(--down); }
.alert-list .empty { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: 0.75rem; justify-content: center; }

/* gauge */
.gauge { position: relative; text-align: center; }
.gauge svg { width: 100%; max-width: 210px; margin: 0 auto; }
#fngArc { transition: stroke-dasharray 1.2s cubic-bezier(.2, .8, .2, 1); }
#fngNeedle { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.gauge__value { font-family: "Geist Mono", monospace; font-size: 2.1rem; font-weight: 800; margin-top: -6px; letter-spacing: -0.05em; }
.gauge__label { font-family: "Geist Mono", monospace; font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: auto; }
.mini-grid div { text-align: center; padding: 8px 4px; border-right: 1px solid var(--line); }
.mini-grid div:last-child { border-right: 0; }
.mini-grid span { display: block; font-family: "Geist Mono", monospace; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; }
.mini-grid b { font-family: "Geist Mono", monospace; font-size: 0.95rem; }

/* fees */
.fees { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); }
.fees li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-family: "Geist Mono", monospace; font-size: 0.8rem; text-transform: uppercase;
}
.fees li:last-child { border-bottom: 0; }
.fees li span { color: var(--muted); }
.fees li b { font-size: 1.05rem; }
.fees li b::after { content: " sat/vB"; font-size: 0.66rem; color: var(--muted); font-weight: 500; text-transform: none; }
.fees li:first-child { background: var(--accent-soft); }
.fees li:first-child b { color: var(--accent); }

/* dca */
.dca__form { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.kpi { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi__label { font-family: "Geist Mono", monospace; font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.kpi__value { font-family: "Geist Mono", monospace; font-size: 1.2rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.03em; }
.kpi__sub { font-size: 0.72rem; color: var(--muted); font-family: "Geist Mono", monospace; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-family: "Geist Mono", monospace; font-size: 0.72rem; text-transform: uppercase; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 3px; }
.sw--accent { background: var(--accent); }
.sw--muted { background: var(--muted); }
@media (max-width: 720px) {
  .dca__form { grid-template-columns: 1fr 1fr; }
  .dca__form .field:first-child { grid-column: span 2; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* halving */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.countdown div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px 8px; border-right: 1px solid var(--line); }
.countdown div:last-child { border-right: 0; }
.countdown b { font-family: "Geist Mono", monospace; font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.countdown span { margin-top: 6px; font-family: "Geist Mono", monospace; font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.progress { height: 10px; border: 1px solid var(--line-strong); padding: 1px; }
.progress__bar {
  height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 8px);
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}
.kv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-family: "Geist Mono", monospace; font-size: 0.78rem; }
.kv li { display: flex; justify-content: space-between; gap: 12px; }
.kv span { color: var(--muted); text-transform: uppercase; }
.kv b { font-weight: 700; text-align: right; }

/* ---------- debasement ---------- */
.deb .kpis { margin: 0 22px; }
@media (max-width: 640px) { .deb .kpis { margin: 0 12px; } }
.deb__foot { padding: 0 22px 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- sponsor ---------- */
.sponsor {
  display: flex; align-items: center; gap: 22px;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0 10px, transparent 10px 20px);
}
.sponsor.is-live { border-style: solid; background: var(--surface); }
.sponsor__tag {
  flex: none;
  font-family: "Geist Mono", monospace; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--text);
  padding: 4px 8px;
}
.sponsor__body { flex: 1; }
.sponsor__body p { margin-top: 4px; font-size: 0.92rem; }
@media (max-width: 720px) { .sponsor { flex-direction: column; align-items: flex-start; gap: 12px; } }
:root[data-theme="dark"] .sponsor__tag { color: #000; }

/* ---------- guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }
.guide { display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.guide:hover, .res:hover, .tool:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.guide__art {
  height: 130px; border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  background: radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 12px 12px, var(--surface-2);
  font-family: "Geist Mono", monospace; font-size: 2.6rem; font-weight: 800; color: var(--accent); letter-spacing: -0.06em;
  overflow: hidden;
}
.guide__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide__meta { font-family: "Geist Mono", monospace; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; display: flex; gap: 10px; }
.guide__meta .tag { color: var(--accent); }
.guide h3 { font-family: "Geist", sans-serif; text-transform: none; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.guide p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.more { font-family: "Geist Mono", monospace; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- directory ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px;
  border: 1px solid var(--line-strong); background: transparent;
  font-family: "Geist Mono", monospace; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dir-grid { grid-template-columns: 1fr; } }

.res {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: fadeUp 0.4s ease both;
}
.res__top { display: flex; align-items: center; gap: 12px; }
.res__icon {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--accent);
}
.res__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.res__name { font-weight: 700; letter-spacing: -0.01em; }
.res__cat { font-family: "Geist Mono", monospace; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.res__badge {
  margin-left: auto; align-self: flex-start;
  font-family: "Geist Mono", monospace; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 6px; border: 1px solid var(--accent); color: var(--accent); white-space: nowrap;
}
.res__desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.res__link { font-family: "Geist Mono", monospace; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.res--slot { border-style: dashed; }
.disclosure { margin-top: 18px; font-family: "Geist Mono", monospace; font-size: 0.72rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- community: poll + tip jar ---------- */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .community { grid-template-columns: 1fr; } }
.community .panel { display: flex; flex-direction: column; }
.community__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.community__body h3 { font-family: "Geist", sans-serif; text-transform: none; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }

.poll { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.poll button {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; text-align: left;
  font-weight: 500; overflow: hidden;
  transition: border-color 0.15s;
}
.poll button:hover:not(:disabled) { border-color: var(--accent); }
.poll button:disabled { cursor: default; }
.poll .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); transition: width 0.9s cubic-bezier(.2, .8, .2, 1); }
.poll .opt { position: relative; flex: 1; }
.poll .pct { position: relative; font-family: "Geist Mono", monospace; font-weight: 700; font-size: 0.85rem; }
.poll .key { position: relative; font-family: "Geist Mono", monospace; font-size: 0.72rem; color: var(--muted); }
.poll button.is-mine { border-color: var(--accent); }
.poll button.is-mine .key { color: var(--accent); }
.poll__foot { font-family: "Geist Mono", monospace; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }

.tip { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
@media (max-width: 460px) { .tip { grid-template-columns: 1fr; } }
.qr {
  width: 150px; height: 150px; padding: 10px;
  background: #fff; color: #000;
  border: 1px solid var(--line-strong);
}
.qr svg { width: 100%; height: 100%; }
.qr--empty { display: grid; place-items: center; font-family: "Geist Mono", monospace; font-size: 0.7rem; text-align: center; color: #666; }
.tip__addr {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line-strong); background: var(--bg);
  font-family: "Geist Mono", monospace; font-size: 0.82rem; font-weight: 600;
  min-width: 0;
}
.tip__addr span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip__amounts { display: flex; flex-wrap: wrap; gap: 6px; }
.tip__status { font-family: "Geist Mono", monospace; font-size: 0.74rem; color: var(--muted); min-height: 1.2em; }
.tip__status.ok { color: var(--up); }
.tip__status.err { color: var(--down); }

/* ---------- newsletter ---------- */
.newsletter {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 44px;
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 70%),
    var(--surface);
}
.newsletter__copy h2 { margin: 12px 0 12px; }
.newsletter__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter__form input {
  height: 50px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg);
  font-family: "Geist Mono", monospace; font-size: 0.92rem;
  outline: 0; min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.newsletter__form input:focus { border-color: var(--accent); box-shadow: 3px 3px 0 0 var(--accent); }
.newsletter__form .btn { height: 50px; }
.newsletter__msg { grid-column: 1 / -1; font-family: "Geist Mono", monospace; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; }
.newsletter__msg.ok { color: var(--up); }
.newsletter__msg.err { color: var(--down); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; padding: 28px 20px; gap: 22px; } }
@media (max-width: 460px) { .newsletter__form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { margin-top: 40px; padding: 48px 0 26px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 12px; max-width: 28em; }
.footer__h { font-family: "Geist Mono", monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer__links a { transition: color 0.15s; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: "Geist Mono", monospace; font-size: 0.72rem; text-transform: uppercase; }
.credit a { color: var(--text); font-weight: 700; }
.credit a:hover { color: var(--accent); }
.credit svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; fill: currentColor; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.toast {
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--accent);
  box-shadow: var(--shadow-hard);
  font-size: 0.9rem;
  animation: toastIn 0.25s ease both;
}
.toast b { display: block; font-family: "Geist Mono", monospace; text-transform: uppercase; font-size: 0.78rem; color: var(--accent); margin-bottom: 2px; }
.toast.out { animation: toastOut 0.25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- blog ---------- */
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 16px 0 14px; }
.crumbs { font-family: "Geist Mono", monospace; font-size: 0.72rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--accent); }
.article { max-width: 760px; margin: 0 auto; padding: 0 24px 40px; }
.article__head { padding: 48px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article__head h1 { font-family: "Geist", sans-serif; text-transform: none; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.04em; line-height: 1.08; margin: 18px 0 16px; }
.article__head .lead { font-size: 1.15rem; }
.article__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: "Geist Mono", monospace; font-size: 0.72rem; text-transform: uppercase; color: var(--muted); }
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; letter-spacing: -0.03em; }
.prose h2::before { content: "## "; color: var(--accent); }
.prose h3 { font-family: "Geist", sans-serif; font-size: 1.1rem; margin-top: 1.6em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); font-family: "Geist Mono", monospace; }
.prose code { font-family: "Geist Mono", monospace; font-size: 0.88em; padding: 1px 5px; background: var(--track); border: 1px solid var(--line); }
.prose strong { font-weight: 700; }
.callout {
  padding: 16px 18px;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 0.98rem;
}
.callout b:first-child { font-family: "Geist Mono", monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); display: block; margin-bottom: 4px; }
.toc { padding: 16px 18px; border: 1px dashed var(--line-strong); font-family: "Geist Mono", monospace; font-size: 0.82rem; }
.toc ol { margin: 8px 0 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.article__cta { margin-top: 48px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  .glitch:hover { animation: none; }
  html { scroll-behavior: auto; }
}
