/* Obsidio Scan — explorer (matches DEX product surface) */
:root {
  --bg: #070b09;
  --panel: #121a16;
  --ink: #e8f0ea;
  --muted: #7d8f84;
  --accent: #3dff9a;
  --accent-2: #2bc4ff;
  --line: rgba(61, 255, 154, 0.12);
  --line-strong: rgba(61, 255, 154, 0.28);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: Outfit, system-ui, sans-serif;
  --display: Syne, Outfit, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 40% at 70% -5%, rgba(61, 255, 154, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 15%, rgba(43, 196, 255, 0.07), transparent 50%),
    linear-gradient(180deg, #0a100d 0%, var(--bg) 45%, #050806 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input:focus, button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 9, 0.75);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--display);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em;
}
.brand span { color: var(--accent); }
.brand em {
  font-style: normal; font-weight: 700; font-size: 0.72em;
  color: var(--muted); margin-left: 0.15rem; letter-spacing: 0.04em;
}
.nav { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.nav a { font-size: 0.82rem; color: var(--muted); }
.nav a.on, .nav a:hover { color: var(--accent); }
.live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
}
.live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.hero {
  margin-bottom: 2rem;
  animation: fadeUp 0.55s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.brand-hero {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.85rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.brand-hero span { color: var(--accent); }
.lede {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.search {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.55rem;
  max-width: 640px;
}
.search input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 26, 22, 0.85);
  font-family: var(--mono);
  font-size: 0.88rem;
}
.search button {
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  background: var(--accent);
  color: #04140c;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.search button:hover { transform: translateY(-1px); filter: brightness(1.05); }

.stats {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  max-width: 640px;
}
.stats .lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.stats strong {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
}

.panel {
  margin-top: 1.5rem;
  animation: fadeUp 0.5s ease 0.08s both;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.panel-head.tight { margin-top: 1.5rem; }
.panel-head h2, .panel h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.panel-head h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.ghost {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.ghost:hover { color: var(--accent); border-color: var(--line-strong); }

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tbl th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(61, 255, 154, 0.06);
  font-family: var(--mono);
  font-size: 0.8rem;
  vertical-align: middle;
}
.tbl tr:hover td { background: rgba(61, 255, 154, 0.04); }
.tbl tr.clickable { cursor: pointer; }
.tbl .empty { color: var(--muted); font-family: var(--sans); text-align: center; padding: 1.5rem; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  background: rgba(61, 255, 154, 0.12);
  color: var(--accent);
}
.badge.off {
  background: rgba(125, 143, 132, 0.15);
  color: var(--muted);
}
.linkish { color: var(--accent-2); }
.linkish:hover { color: var(--accent); }

.footnote {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.detail .back {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.detail .back:hover { color: var(--accent); }
.detail .addr {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  word-break: break-all;
  letter-spacing: -0.02em;
}
.kv {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.55rem 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}
.kv dt { color: var(--muted); }
.kv dd { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }

.bal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0;
}
.bal-item {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.bal-item .sym {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.bal-item .amt {
  font-family: var(--mono);
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.lp-box {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 0.5rem 0;
}

.err {
  margin-top: 1rem;
  color: #ff8a95;
  font-size: 0.88rem;
}

.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.foot a { color: var(--muted); border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .search { flex-direction: column; }
  .kv { grid-template-columns: 1fr; gap: 0.2rem; }
  .kv dt { margin-top: 0.45rem; }
}
