:root {
  --bg: #0a0c12;
  --panel: rgba(20, 24, 36, 0.72);
  --panel-border: rgba(140, 160, 255, 0.14);
  --text: #eef1ff;
  --muted: #8b93b0;
  --lime: #c6ff4a;
  --violet: #9d6bff;
  --cyan: #4ae3ff;
  --amber: #ffc44a;
  --green: #4aff9d;
  --red: #ff5a7a;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  overflow-x: hidden;
  min-height: 100%;
}

.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140,160,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,160,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

.glow { position: fixed; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; }
.glow-a { width: 340px; height: 340px; top: -120px; left: -80px; background: rgba(157,107,255,.28); }
.glow-b { width: 300px; height: 300px; top: 30%; right: -120px; background: rgba(198,255,74,.14); }

.wrap {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding: 28px 16px 48px;
}

/* hero */
.hero { text-align: center; margin-bottom: 22px; }
.hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--lime);
  border: 1px solid rgba(198,255,74,.35);
  background: rgba(198,255,74,.07);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 44px; line-height: .95; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(100deg, #fff 20%, var(--lime) 55%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase;
}
.sub { color: var(--muted); font-size: 13.5px; margin-top: 12px; line-height: 1.5; }

/* panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.panel-title {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 14px;
}
.mini-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1.8px;
  color: var(--muted); text-transform: uppercase;
}

/* input */
.field-label { display:block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.field-row { display: flex; gap: 8px; }
#addrInput {
  flex: 1; min-width: 0;
  background: rgba(8,10,16,.8);
  border: 1px solid rgba(140,160,255,.22);
  border-radius: 12px;
  color: var(--text);
  font-family: ui-monospace, Menlo, monospace; font-size: 13px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#addrInput:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198,255,74,.12); }
#addrInput::placeholder { color: #525a75; }

.btn {
  background: linear-gradient(135deg, var(--lime), #7be34a);
  color: #0b0e07;
  border: none; border-radius: 12px;
  font-weight: 900; font-size: 14px; letter-spacing: 1.5px;
  padding: 0 20px; min-height: 46px;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(198,255,74,.3);
  transition: transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.96); box-shadow: 0 2px 10px rgba(198,255,74,.2); }
.btn-wide { width: 100%; margin-top: 4px; }

.hint { font-size: 11.5px; color: #525a75; margin-top: 10px; }

.err {
  margin-top: 12px; padding: 10px 12px;
  background: rgba(255,90,122,.1); border: 1px solid rgba(255,90,122,.35);
  color: var(--red); border-radius: 10px; font-size: 13px;
}

/* progress */
#progressPanel { border-color: rgba(74,227,255,.3); }
.scanline {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 1.6s linear infinite;
}
@keyframes scan { 0% { top: 0 } 100% { top: 100% } }
.progress-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(74,227,255,.25); border-top-color: var(--cyan);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.bar { height: 8px; background: rgba(140,160,255,.12); border-radius: 99px; overflow: hidden; }
.bar-fill {
  height: 100%; width: 5%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 99px;
  transition: width .4s ease;
  box-shadow: 0 0 12px rgba(74,227,255,.6);
}
.progress-detail { margin-top: 10px; font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }

/* results */
.addr-panel { text-align: center; }
.addr { font-size: 12px; color: var(--muted); word-break: break-all; margin: 8px 0 6px; }
.balance { font-size: 26px; font-weight: 900; color: #fff; }
.balance small { font-size: 14px; color: var(--lime); font-weight: 700; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.grid2 .panel { margin-bottom: 12px; }
.stat-val { font-size: 22px; font-weight: 900; margin-top: 8px; letter-spacing: .3px; }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 4px; word-break: break-all; }

.neon { color: var(--lime); text-shadow: 0 0 18px rgba(198,255,74,.45); }
.violet { color: var(--violet); text-shadow: 0 0 18px rgba(157,107,255,.45); }
.cyan { color: var(--cyan); text-shadow: 0 0 18px rgba(74,227,255,.45); }
.amber { color: var(--amber); text-shadow: 0 0 18px rgba(255,196,74,.4); }
.green { color: var(--green); text-shadow: 0 0 18px rgba(74,255,157,.4); }

/* chart */
.chart {
  display: flex; align-items: flex-end; gap: 3px;
  height: 120px; padding-top: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.chart::-webkit-scrollbar { display: none; }
.chart-col { flex: 1 0 10px; min-width: 8px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 4px 4px 2px 2px;
  min-height: 3px;
  box-shadow: 0 0 8px rgba(157,107,255,.35);
  transition: height .5s ease;
}
.chart-tip {
  position: absolute; bottom: calc(100% + 4px);
  font-size: 9px; color: var(--muted); white-space: nowrap;
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.chart-col:hover .chart-tip { opacity: 1; }
.chart-legend { margin-top: 10px; font-size: 11px; color: var(--muted); display: flex; gap: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }
.dot-tx { background: linear-gradient(180deg, var(--cyan), var(--violet)); }

/* top list */
.top-list { display: flex; flex-direction: column; gap: 10px; }
.top-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(8,10,16,.55);
  border: 1px solid rgba(140,160,255,.1);
  border-radius: 12px; padding: 10px 12px;
}
.top-rank {
  width: 26px; height: 26px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #0b0e07;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-radius: 8px;
}
.top-info { flex: 1; min-width: 0; }
.top-addr { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-meta { font-size: 12px; font-weight: 700; margin-top: 2px; }
.top-vol { font-size: 13px; font-weight: 800; color: var(--cyan); white-space: nowrap; }

/* verdict */
.verdict { border-color: rgba(198,255,74,.3); line-height: 1.55; font-size: 13.5px; }
.verdict b { color: var(--lime); }

.foot { text-align: center; color: #3c435c; font-size: 11px; margin-top: 22px; }

.hidden { display: none !important; }
