:root {
  --bg: #0e1114;
  --bg-2: #12171c;
  --card: #171c21;
  --line: #2c3640;
  --text: #e8eef3;
  --muted: #93a1ad;
  --copper: #e08a45;
  --copper-2: #f2c7a2;
  --signal: #79b8ff;
  --ok: #8dcea8;
  --bad: #e58b8b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f1eb;
  --bg-2: #fffdf9;
  --card: #ffffff;
  --line: #e2d9ce;
  --text: #1c242b;
  --muted: #5e6b76;
  --copper: #b86124;
  --copper-2: #8a4b1c;
  --signal: #1d6fbf;
  --ok: #1f7a45;
  --bad: #b42323;
  --shadow: 0 12px 32px rgba(70, 42, 16, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(224, 138, 69, 0.16), transparent 55%),
    radial-gradient(700px 320px at -10% 0%, rgba(121, 184, 255, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.45;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: Sora, sans-serif;
  font-weight: 700;
}
.mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(140deg, var(--signal), var(--copper));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper) 18%, transparent);
}
.word span { color: var(--copper); }
.nav { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: auto; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--card); }
.theme, .go, select, input {
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.theme, .go { cursor: pointer; }
.theme { padding: 7px 12px; }
.theme:hover, .go:hover { border-color: var(--copper); }

.hero { padding: 34px 22px 8px; max-width: 1180px; margin: 0 auto; min-width: 0; }
.hero-copy { max-width: 740px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--signal);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 70%, transparent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
}
h1, h2, h3 { font-family: Sora, sans-serif; letter-spacing: -0.03em; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; }
.tape {
  display: flex;
  gap: 10px;
  overflow: auto;
  max-width: 100%;
  padding: 8px 0 14px;
}
.chip {
  min-width: 148px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.chip b { display: block; font-family: Sora, sans-serif; }
.chip span, .up { color: var(--ok); }
.chip .down { color: var(--bad); }
.chip small { color: var(--muted); }

main { max-width: 1180px; margin: 0 auto; padding: 8px 22px 40px; display: grid; gap: 18px; min-width: 0; }
.panel {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}
.panel-head, .wallet-form, .calc {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
}
h2 { margin: 0; font-size: 24px; }
.panel-head p, .fine, .status, .foot { color: var(--muted); }
.panel-head p { margin: 4px 0 0; max-width: 78ch; }
input, select { padding: 9px 10px; min-width: 0; }
.panel-head input { width: min(280px, 100%); }
.calc { align-items: end; margin: 12px 0; }
.calc label, .wallet-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.calc label { width: 140px; }
.calc label:nth-child(2), .calc label:nth-child(3) { width: 210px; }
.wallet-form { margin-top: 12px; }
.grow { flex: 1; min-width: 240px; }
.go {
  background: var(--copper);
  color: #1a1008;
  border-color: transparent;
  font-weight: 700;
  padding: 10px 16px;
}
html[data-theme="light"] .go { color: white; }

.table-wrap { overflow: auto; margin-top: 8px; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: color-mix(in srgb, var(--signal) 8%, transparent); }
.coin { font-weight: 700; }
.sym { color: var(--muted); font-weight: 600; margin-left: 6px; }
.quiet { color: var(--copper); font-size: 12px; margin-left: 6px; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }

.hits { display: grid; gap: 12px; margin-top: 12px; }
.hit {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--bg-2);
}
.hit-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.hit h3 { margin: 0; font-size: 18px; }
.rate { font-family: Sora, sans-serif; font-size: 28px; color: var(--copper-2); }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 120px;
}
.stat b { display: block; }
.workers { width: 100%; margin-top: 8px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 22px 28px; }
.foot a { color: var(--signal); }
.empty { color: var(--muted); padding: 12px 2px; }

@media (max-width: 800px) {
  .top { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow: auto; }
  .calc label, .calc label:nth-child(2), .calc label:nth-child(3) { width: 100%; }
  .hero, main, .foot, .top { padding-left: 14px; padding-right: 14px; }
}
