/* Orbit — dark space theme, no frameworks, no build step. */
:root {
  --bg: #070b16;
  --bg2: #0b1226;
  --card: #101a33;
  --card2: #0d1528;
  --line: #22315c;
  --text: #e8eefc;
  --muted: #93a3c4;
  --accent: #6ea8ff;
  --accent2: #8b7cff;
  --green: #3ecf8e;
  --yellow: #f5c542;
  --red: #ff6b6b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #16224d 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 12%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 64%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 70%, #fff 50%, transparent 51%);
  opacity: .5;
}
header.top, nav.tabs, main, footer { position: relative; z-index: 1; }
header.top {
  max-width: 1080px; margin: 0 auto; padding: 22px 18px 10px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.brand { display: flex; gap: 14px; align-items: center; }
.orbit-ring {
  width: 52px; height: 52px; border: 2px solid var(--accent); border-radius: 50%;
  position: relative; flex: none;
  box-shadow: 0 0 18px rgba(110,168,255,.35);
}
.orbit-ring::after {
  content: ""; position: absolute; inset: 14px; background: var(--accent2);
  border-radius: 50%; box-shadow: 0 0 12px var(--accent2);
}
.planet {
  position: absolute; width: 10px; height: 10px; background: var(--green);
  border-radius: 50%; top: -5px; left: 50%; margin-left: -5px;
  box-shadow: 0 0 10px var(--green);
}
h1 { margin: 0; font-size: 30px; letter-spacing: 6px; }
.tagline { margin: 0; color: var(--muted); font-size: 14px; }
.clocks { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.clock-label { color: var(--muted); font-size: 12px; margin-right: 4px; }
.read-only-badge {
  font-size: 11px; letter-spacing: 1px; color: var(--green);
  border: 1px solid var(--green); border-radius: 999px; padding: 4px 10px;
}
.ticker-tape {
  background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 7px 0;
}
.ticker-track { display: inline-block; animation: tick 55s linear infinite; }
.ticker-tape:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-block; margin-right: 34px; font-size: 14px; }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }
nav.tabs {
  max-width: 1080px; margin: 14px auto 0; padding: 0 18px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tab {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 20px; font-size: 15px; cursor: pointer;
}
.tab.active { background: var(--accent); color: #06122e; border-color: var(--accent); font-weight: 700; }
main { max-width: 1080px; margin: 0 auto; padding: 14px 18px 30px; }
.panel { display: none; }
.panel.active { display: block; }
.card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 8px; font-size: 20px; }
.card h3 { margin: 0 0 10px; font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.form-grid label { display: block; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="password"] {
  width: 100%; margin-top: 5px; padding: 10px 12px; font-size: 14px;
  background: #070d1d; color: var(--text); border: 1px solid var(--line); border-radius: 9px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
input[type="text"]:focus, input[type="password"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.key-input { max-width: 420px; }
.chain-chips, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  background: #0a1327; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer;
}
.chip.active { background: var(--accent); color: #06122e; border-color: var(--accent); font-weight: 700; }
.chip.off { opacity: .45; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.check { font-size: 14px; cursor: pointer; }
.btn-row { margin-top: 14px; }
.btn {
  background: #16224a; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 18px; font-size: 15px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #06122e; font-weight: 700; border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: default; }
.log {
  background: #05080f; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; max-height: 220px; overflow-y: auto; white-space: pre-wrap;
  margin-bottom: 16px; color: #b9c8ea;
}
.log:empty { display: none; }
.verdict { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; border: 1px solid; }
.verdict.aman { background: rgba(62,207,142,.12); border-color: var(--green); }
.verdict.perhatian { background: rgba(245,197,66,.12); border-color: var(--yellow); }
.verdict.bahaya { background: rgba(255,107,107,.14); border-color: var(--red); }
.verdict h2 { margin: 0 0 6px; }
.verdict ul { margin: 6px 0 0; padding-left: 20px; }
.results-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .results-grid, .form-grid { grid-template-columns: 1fr; } }
.total-line { font-size: 17px; margin-bottom: 10px; }
#donut { display: block; margin: 6px auto; max-width: 100%; }
.legend { font-size: 13px; }
.legend div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.legend .swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; }
.chain-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #0a1327; }
.chain-block h3 { margin: 0 0 4px; font-size: 16px; }
.chain-block h3 .chain-id { color: var(--muted); font-size: 12px; font-weight: 400; }
.token-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #18264a; font-size: 14px; }
.token-row:last-child { border-bottom: 0; }
.token-row .sym { font-weight: 600; }
.token-row .bal { font-variant-numeric: tabular-nums; text-align: right; }
.token-row .zero { color: var(--muted); }
.token-row .usd { color: var(--muted); font-size: 13px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}
.badge.unlimited { background: var(--red); color: #fff; }
.badge.ok { background: rgba(62,207,142,.2); color: var(--green); }
.badge.warn { background: rgba(245,197,66,.2); color: var(--yellow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.table-wrap { overflow-x: auto; margin: 10px 0; }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 10px 0; }
.stat { display: flex; flex-direction: column; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat strong { font-size: 19px; }
.fng-bar { height: 10px; background: #0a1327; border-radius: 99px; overflow: hidden; margin: 6px 0 14px; border: 1px solid var(--line); }
.fng-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); transition: width .6s; }
.tv-chart { height: 520px; }
.tv-chart .tradingview-widget-container__widget { height: 100%; }
.radar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.radar-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #0a1327;
  display: flex; gap: 10px; align-items: flex-start;
}
.radar-card img { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #16224a; }
.radar-card h4 { margin: 0 0 2px; font-size: 14px; word-break: break-word; }
.radar-card p { margin: 0; font-size: 13px; color: var(--muted); }
.radar-card .chain-tag { font-size: 11px; color: var(--accent); }
.radar-card a { color: var(--accent); font-size: 13px; }
.news-list article { border-bottom: 1px solid var(--line); padding: 12px 0; }
.news-list article:last-child { border-bottom: 0; }
.news-list h3 { margin: 0 0 3px; font-size: 16px; }
.news-list h3 a { color: var(--text); text-decoration: none; }
.news-list h3 a:hover { color: var(--accent); text-decoration: underline; }
.news-meta { font-size: 12px; color: var(--muted); }
.news-src {
  display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 2px 8px; margin-right: 8px; background: #16224a; color: var(--accent);
}
.notes { margin: 8px 0 0; padding-left: 20px; }
.notes li { margin-bottom: 6px; }
.revoke { background: rgba(245,197,66,.08); border: 1px solid var(--yellow); border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.revoke h3 { margin-top: 0; }
code { background: #0a1327; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
a { color: var(--accent); }
footer { max-width: 1080px; margin: 0 auto; padding: 0 18px 34px; color: var(--muted); font-size: 13px; }
footer p { margin: 6px 0; }
