:root{
  --bg:#0b0f17;
  --card:#0f1624;
  --text:#e7eefc;
  --muted:#9fb0d0;
  --border:#1f2a3f;
  --green:#35d07f;
  --red:#ff5c5c;
  --yellow:#ffd166;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, #111b2e 0%, var(--bg) 55%);
  color:var(--text);
}

.header{
  padding:18px 18px 10px;
  display:flex;
  gap:14px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  border-bottom:1px solid var(--border);
  background: rgba(15,22,36,0.6);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

h1{ margin:0; font-size:20px; letter-spacing:0.2px; }
.sub{ margin:6px 0 0; color:var(--muted); font-size:13px; }

.controls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

input, select, button{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding:10px 10px;
  border-radius:10px;
  outline:none;
  font-size:14px;
}

input{
  min-width: 260px;
}

button{
  cursor:pointer;
  transition: transform .05s ease, background .2s ease;
}
button:hover{ background: rgba(255,255,255,0.07); }
button:active{ transform: scale(0.98); }

.main{
  padding:16px 18px 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.status{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.muted{ color: var(--muted); font-size:13px; }

.table-wrap{
  background: rgba(15,22,36,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

table{
  width:100%;
  border-collapse:collapse;
}

thead th{
  text-align:left;
  font-size:12px;
  letter-spacing:0.6px;
  text-transform: uppercase;
  color: var(--muted);
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  background: rgba(10,14,22,0.6);
}

tbody td{
  padding:12px 12px;
  border-bottom:1px solid rgba(31,42,63,0.65);
  font-size:14px;
}

tbody tr:hover{
  background: rgba(255,255,255,0.03);
}

.right{ text-align:right; }

.coin{
  display:flex;
  align-items:center;
  gap:10px;
}
.coin img{
  width:22px;
  height:22px;
  border-radius:50%;
}

.pct{
  font-variant-numeric: tabular-nums;
  font-weight:600;
}
.pct.up{ color: var(--green); }
.pct.down{ color: var(--red); }

.flash{
  animation: flash .55s ease;
}
@keyframes flash{
  0%{ background: rgba(255,209,102,0.0); }
  35%{ background: rgba(255,209,102,0.12); }
  100%{ background: rgba(255,209,102,0.0); }
}

.sortable{
  cursor:pointer;
  user-select:none;
}
.sortable::after{
  content:" ↕";
  opacity:.35;
  font-size: 11px;
}

.note{
  margin-top:10px;
}
