:root{
  --bg:#0b0f16;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --line:rgba(148,163,184,.14);
  --neon-line: rgba(80, 200, 255, 0.18);
  --neon-line-strong: rgba(80, 200, 255, 0.40);
  --neon-glow: 0 0 10px rgba(80, 200, 255, 0.10);
  --neon-glow-strong: 0 0 16px rgba(80, 200, 255, 0.20);
  --chip:rgba(148,163,184,.10);
  --chip2:rgba(148,163,184,.18);
  --good:#22c55e;
  --bad:#ef4444;
  --warn:#f59e0b;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(148,163,184,.10), transparent 55%),
              radial-gradient(900px 500px at 100% 20%, rgba(148,163,184,.07), transparent 50%),
              var(--bg);
  color:var(--text);
}

.app{
  max-width: 880px;
  margin:0 auto;
  padding: 14px 14px 24px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding: 10px 12px;
  border:none;
  background: transparent;
  box-shadow: none;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  width:64px;height:64px;border-radius:16px;
  border:1px solid var(--neon-line);
  background: rgba(255,255,255,.03);
  object-fit:cover;
}

.iconrow{display:flex;gap:8px}
.iconbtn{
  height:36px;width:40px;
  border-radius:12px;
  border:1px solid var(--neon-line);
  background: rgba(255,255,255,.02);
  color:var(--text);
  cursor:pointer;
  box-shadow: var(--neon-glow);
}
.iconbtn:hover{
  background: rgba(255,255,255,.05);
  border-color: var(--neon-line-strong);
  box-shadow: var(--neon-glow-strong);
}

.tabs{
  display:flex;
  gap:18px;
  padding: 12px 6px 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,15,22,.75);
  backdrop-filter: blur(10px);
}
.tab{
  border:none;
  background:none;
  color:rgba(229,231,235,.75);
  font-size:16px;
  padding: 10px 2px;
  cursor:pointer;
  position:relative;
  box-shadow: inset 0 -1px 0 0 var(--neon-line);
}
.tab.active{color:var(--text); font-weight:800}
.tab.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:2px;
  background: rgba(80, 200, 255, 0.6);
  border-radius:999px;
}
.tab:hover{
  box-shadow: inset 0 -1px 0 0 var(--neon-line-strong), var(--neon-glow);
}

.searchbar{
  margin-top: 6px;
  position: sticky;
  top: 44px;
  z-index: 9;
  background: rgba(11,15,22,.75);
  backdrop-filter: blur(10px);
  padding: 8px 0;
}
.searchwrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 12px;
  border:1px solid var(--neon-line);
  border-radius:16px;
  background: rgba(255,255,255,.02);
  box-shadow: var(--neon-glow);
}
.searchwrap:focus-within{
  border-color: var(--neon-line-strong);
  box-shadow: var(--neon-glow-strong);
}
.searchwrap .ic{opacity:.75}
.searchwrap input{
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  color:var(--text);
  font-size:16px;
}
.searchwrap input::placeholder{color: rgba(148,163,184,.7)}
.clear{
  height:28px;width:28px;
  border-radius:10px;
  border:1px solid var(--neon-line);
  background: rgba(255,255,255,.02);
  color:var(--text);
  cursor:pointer;
  box-shadow: var(--neon-glow);
}
.clear:hover{
  border-color: var(--neon-line-strong);
  box-shadow: var(--neon-glow-strong);
}

.controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  padding: 10px 4px 12px;
}
.leftctrl{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.titlebig{
  font-size:20px;
  font-weight:900;
  letter-spacing:.2px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border:1px solid var(--neon-line);
  border-radius:999px;
  background: rgba(255,255,255,.02);
  font-size:13px;
  box-shadow: var(--neon-glow);
}
.chip select{
  background:transparent;
  border:none;
  color:var(--text);
  outline:none;
  font-size:13px;
}
.toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border:1px solid var(--neon-line);
  border-radius:999px;
  background: rgba(255,255,255,.02);
  font-size:13px;
  cursor:pointer;
  user-select:none;
  box-shadow: var(--neon-glow);
}
.chip:hover,
.toggle:hover{
  border-color: var(--neon-line-strong);
  box-shadow: var(--neon-glow-strong);
}
.toggle input{accent-color:#cbd5e1}

.tablehead{
  display:grid;
  grid-template-columns: 1.6fr .9fr .9fr .8fr .7fr;
  gap:10px;
  padding: 10px 12px;
  border:1px solid var(--neon-line);
  border-bottom:none;
  border-radius:16px 16px 0 0;
  background: rgba(255,255,255,.02);
  color: rgba(148,163,184,.9);
  font-size:12px;
  letter-spacing:.35px;
  text-transform:uppercase;
  box-shadow: var(--neon-glow);
}

.list{
  border:1px solid var(--neon-line);
  border-top:none;
  border-radius: 0 0 16px 16px;
  overflow:hidden;
  background: rgba(255,255,255,.01);
  box-shadow: var(--neon-glow);
}

.row{
  display:grid;
  grid-template-columns: 1.6fr .9fr .9fr .8fr .7fr;
  gap:10px;
  padding: 12px 12px;
  border-top:1px solid var(--neon-line);
  cursor:pointer;
  box-shadow: var(--neon-glow);
}
.row:hover{
  background: rgba(255,255,255,.02);
  border-top-color: var(--neon-line-strong);
  box-shadow: var(--neon-glow-strong);
}
.token{display:flex; gap:10px; align-items:flex-start; min-width:0}
.tlogo{
  width:38px;height:38px;border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  flex:0 0 auto;
}
.tlogo img{width:100%;height:100%;object-fit:cover}
.meta{min-width:0}
.name{
  font-weight:900;
  display:flex;
  gap:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sym{color: rgba(148,163,184,.95); font-weight:700}
.sub{
  margin-top:4px;
  font-size:12px;
  color: rgba(148,163,184,.9);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badges{margin-top:6px; display:flex; gap:6px; flex-wrap:wrap}
.badge{
  font-size:11px;
  padding: 3px 7px;
  border-radius:999px;
  border:1px solid var(--neon-line);
  background: rgba(255,255,255,.02);
  color: rgba(229,231,235,.85);
  box-shadow: var(--neon-glow);
}
.badge.dim{opacity:.65}

.cell{display:flex; align-items:center; font-variant-numeric: tabular-nums}
.right{justify-content:flex-end}
.scorebox{
  min-width:46px;
  text-align:center;
  padding: 6px 10px;
  border-radius:12px;
  border:1px solid var(--neon-line);
  background: rgba(255,255,255,.02);
  font-weight:900;
  box-shadow: var(--neon-glow);
}
.expand{
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 12px;
  border:1px solid var(--neon-line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  cursor: default;
  box-shadow: var(--neon-glow);
}
.chartbox{
  margin-top:10px;
  border:1px solid var(--neon-line);
  border-radius:12px;
  background: rgba(0,0,0,.12);
  overflow:hidden;
  box-shadow: var(--neon-glow);
}
.chartbox img{
  display:block;
  width:100%;
  height:auto;
}
.desc{
  color: rgba(229,231,235,.85);
  font-size: 13px;
  line-height: 1.45;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  margin-bottom: 10px;
}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.kv{
  border:1px solid var(--neon-line);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(0,0,0,.12);
  box-shadow: var(--neon-glow);
}
.k{font-size:11px;color: rgba(148,163,184,.95); text-transform:uppercase; letter-spacing:.35px}
.v{margin-top:3px;font-size:13px;color: rgba(229,231,235,.9); font-variant-numeric: tabular-nums}

@media (max-width: 640px){
  .tablehead{grid-template-columns: 2.2fr .8fr .8fr .6fr}
  .row{grid-template-columns: 2.2fr .8fr .8fr .6fr}
  .hide-sm{display:none}
  .grid{grid-template-columns: 1fr}
  .name{
    display:block;
    white-space:normal;
    line-height:1.2;
  }
  .sym{
    display:block;
    margin-top:2px;
    font-size:12px;
  }
}
