:root {
  --bg: #07080c;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.10);
  --text: #f5f7fb;
  --muted: #9aa4b2;
  --line: rgba(255,255,255,0.12);
  --gold: #f7b84b;
  --gold2: #ffe0a3;
  --green: #55e6a5;
  --red: #ff6b7a;
  --blue: #72a7ff;
  --shadow: 0 20px 80px rgba(0,0,0,0.45);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(247,184,75,0.18), transparent 33%), radial-gradient(circle at 70% 0%, rgba(114,167,255,0.12), transparent 35%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .08;
  background-image: linear-gradient(transparent 0, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, transparent 0, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero, main, footer { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 28px 0 22px; }
.nav, .hero-grid, .panel-head, .search-row, .brand, .cards, .split { display: flex; }
.nav { align-items: center; justify-content: space-between; margin-bottom: 52px; }
.brand { gap: 14px; align-items: center; }
.coin {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  color: #1b1203; font-size: 30px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 12px 40px rgba(247,184,75,0.25);
}
.brand-title { font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle, .small, .lead, footer, .card span, td, label { color: var(--muted); }
.pill { border: 1px solid var(--line); padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,0.05); font-size: 13px; }
.pill.ok { color: var(--green); border-color: rgba(85,230,165,.3); }
.pill.bad { color: var(--red); border-color: rgba(255,107,122,.3); }
.hero-grid { gap: 32px; align-items: stretch; justify-content: space-between; }
.hero-grid > div { flex: 1.2; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 12px; margin-bottom: 8px; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: .93; letter-spacing: -.07em; margin: 0 0 18px; max-width: 780px; }
h2 { margin: 0; letter-spacing: -.03em; }
.lead { font-size: 18px; max-width: 650px; line-height: 1.6; }
.search-card, .panel, .card {
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.search-card { padding: 22px; flex: .8; min-width: min(420px, 100%); align-self: center; }
label { display: block; margin-bottom: 10px; font-size: 14px; }
.search-row { gap: 10px; }
input, button {
  border: 1px solid var(--line); border-radius: 15px; padding: 13px 14px;
  background: rgba(0,0,0,.24); color: var(--text); font: inherit;
}
input { min-width: 0; flex: 1; outline: none; }
button { cursor: pointer; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #1b1203; border: 0; font-weight: 800; }
button.ghost { color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--line); }
main { display: grid; gap: 18px; }
.cards { gap: 16px; flex-wrap: wrap; }
.card { padding: 20px; min-width: 190px; flex: 1; }
.card strong { display: block; font-size: 28px; margin-top: 8px; letter-spacing: -.04em; }
.card small { display:block; color: var(--muted); margin-top: 5px; }
.split { gap: 18px; align-items: stretch; }
.split > .panel { flex: 1; }
.panel { padding: 22px; overflow: hidden; }
.panel-head { justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.orb-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; }
.orb {
  width: 220px; height: 220px; border-radius: 50%; position: relative; margin: 10px auto;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.2), transparent 22%), radial-gradient(circle, rgba(247,184,75,.12), rgba(114,167,255,.07) 55%, rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 55px rgba(247,184,75,.1), 0 0 80px rgba(114,167,255,.08);
}
.node-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 99px;
  background: var(--green); box-shadow: 0 0 16px var(--green);
  transform: translate(-50%, -50%);
}
.node-dot.out { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.orb-info { display: grid; gap: 10px; }
.orb-info div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.orb-info strong { display:block; font-size: 25px; }
.orb-info span { color: var(--muted); }
.bars { display: grid; gap: 10px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 46px; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.bar-track { height: 10px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: inherit; }
.mempool-panel { display: grid; gap: 13px; }
.meter { height: 16px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); width: 0%; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric { padding: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 18px; }
.metric strong { display: block; font-size: 21px; }
.metric span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
th { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
td code, code { color: var(--gold2); }
.hash { max-width: 320px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; color: var(--gold2); cursor: pointer; }
.clickable { cursor: pointer; color: var(--gold2); font-weight: 800; }
pre { white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,.24); border: 1px solid var(--line); padding: 18px; border-radius: 18px; max-height: 620px; overflow: auto; }
footer { padding: 28px 0 45px; text-align: center; }
.error { color: var(--red); }
.ok-text { color: var(--green); }
@media (max-width: 860px) {
  .hero-grid, .split, .orb-wrap { flex-direction: column; display: flex; }
  .search-card { min-width: 0; width: 100%; }
  h1 { font-size: 44px; }
  .nav { align-items: flex-start; gap: 18px; }
  .search-row { flex-direction: column; }
}
.metric-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agent-list { display: grid; gap: 10px; }
.agent { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 16px; }
.agent code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 84%; }
.status { display:inline-block; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.status.active { color: var(--green); border-color: rgba(85,230,165,.35); background: rgba(85,230,165,.08); }
.status.dead { color: var(--red); border-color: rgba(255,107,122,.35); background: rgba(255,107,122,.08); }
.status.stale { color: var(--gold); border-color: rgba(247,184,75,.35); background: rgba(247,184,75,.08); }
.status.unknown { color: var(--muted); }
@media (max-width: 860px) {
  .metric-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
