:root {
  --bg: #07111f;
  --panel: #0d1b2f;
  --panel2: #10243d;
  --line: #1d3556;
  --text: #eaf2ff;
  --muted: #8ea6c4;
  --green: #24d18c;
  --red: #ff6174;
  --gold: #ffd166;
  --blue: #5aa9ff;
  --purple: #b48cff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 285px; padding: 24px; background: linear-gradient(180deg, #081425, #050b14); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; gap: 12px; align-items: center; }
.logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--purple)); font-weight: 900; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 20px; }
.brand p, .muted { color: var(--muted); }
nav { display: grid; gap: 8px; }
nav a { padding: 12px 14px; border-radius: 12px; color: #cfe0f7; }
nav a:hover { background: var(--panel2); color: white; }
.disclaimer { margin-top: auto; color: var(--muted); border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.03); line-height: 1.4; }
.small { font-size: 12px; }
.main { margin-left: 285px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(7, 17, 31, .88); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
#app { padding: 28px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: linear-gradient(180deg, rgba(16, 36, 61, .95), rgba(13, 27, 47, .95)); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); padding: 16px; border-radius: 16px; }
.stat strong { display: block; font-size: 28px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
.badge.green { color: var(--green); }
.badge.red { color: var(--red); }
.badge.gold { color: var(--gold); }
.badge.blue { color: var(--blue); }
.badge.purple { color: var(--purple); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 900px; background: rgba(255,255,255,.02); }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
tr:hover td { background: rgba(255,255,255,.03); }
button, select, input { border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); color: var(--text); padding: 10px 12px; font-weight: 700; }
button { cursor: pointer; }
button.primary { background: linear-gradient(135deg, #2676ff, #8a5cff); border-color: transparent; }
button.success { background: rgba(36,209,140,.14); color: var(--green); border-color: rgba(36,209,140,.35); }
button.danger { background: rgba(255,97,116,.14); color: var(--red); border-color: rgba(255,97,116,.35); }
button.ghost { background: rgba(255,255,255,.04); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mode-card { display: grid; gap: 12px; }
.mode-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-row button.active { outline: 2px solid var(--blue); }
.trade-link { color: #92c8ff; font-weight: 900; }
.trade-link:hover { text-decoration: underline; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 12px; }
.detail-hero { display: grid; grid-template-columns: 1.4fr .9fr; gap: 18px; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv div { padding: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; }
.kv span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.kill-banner { position: sticky; top: 0; z-index: 99; padding: 12px; text-align: center; background: #3b0b16; color: #ffd1d8; border-bottom: 1px solid rgba(255,97,116,.4); font-weight: 900; }
.hidden { display: none; }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.65); z-index: 50; padding: 20px; }
.modal { width: min(680px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.warning { background: rgba(255,209,102,.09); border: 1px solid rgba(255,209,102,.3); border-radius: 14px; padding: 12px; color: #ffe5a3; }
@media (max-width: 1000px) { .sidebar { position: static; width: auto; } .main { margin-left: 0; } .grid-3, .grid-2, .detail-hero, .stats { grid-template-columns: 1fr; } }
.checkbox { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.checkbox input { width: auto; }
