:root{
  --bg:#0b0c10;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --line:rgba(255,255,255,.12);

  --primary:#7c5cff;
  --accent:#00e5ff;
  --danger:#ff4d6d;
  --ok:#5CFFB2;

  --radius:18px;
  --shadow:0 14px 40px rgba(0,0,0,.38);
  --blur: blur(14px);

  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(124,92,255,.22), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(0,229,255,.18), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.hidden{display:none !important}

.wrap{max-width:var(--max); margin:0 auto; padding:16px 16px 40px}
.muted{color:var(--muted)}
.small{font-size:12px}
b{color:rgba(255,255,255,.95)}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  backdrop-filter: var(--blur);
  background: rgba(11,12,16,.55);
  border-bottom:1px solid var(--line);
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(0,229,255,.75));
  color:#091015;
  font-weight:900;
  letter-spacing:.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.title{font-weight:800; font-size:16px}
.subtitle{font-size:12px; color:var(--muted)}

.controls{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.seg{
  display:flex; gap:6px;
  padding:6px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.segBtn{
  border:0;
  padding:8px 10px;
  border-radius:12px;
  background: transparent;
  color: var(--muted);
  font-weight:700;
}
.segBtn.isOn{
  color: rgba(0,0,0,.92);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,229,255,.82));
}

.btn{
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:10px 12px;
  font-weight:800;
}
.btn:hover{background: rgba(255,255,255,.09)}
.btn.ghost{background: transparent}
.btn.danger{border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.12)}

.hero{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:14px;
  margin-top:10px;
  padding:14px 14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.h1{font-weight:900; font-size:18px}
.heroRight{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding:8px 10px;
  min-width: 120px;
}
.pillK{font-size:11px; color:var(--muted); font-weight:800; text-transform:uppercase}
.pillV{font-size:13px; font-weight:900}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:12px;
}
@media (max-width: 880px){
  .grid2{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardHead{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 12px;
  background: rgba(255,255,255,.03);
  border-bottom:1px solid var(--line);
}
.cardTitle{font-weight:900}
.cardHint{font-size:12px; color:var(--muted); font-weight:800}

.list{padding:8px}
.rowItem{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  margin-bottom:8px;
}
.rowItem:hover{background: rgba(255,255,255,.06)}
.rowMain{min-width:0}
.rowTitle{
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rowSub{font-size:12px; color:var(--muted); margin-top:2px}
.rowRight{display:flex; align-items:center; gap:8px}
.metric{
  font-weight:900;
  padding:7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size:12px;
  white-space:nowrap;
}
.metric.up{border-color: rgba(92,255,178,.30); background: rgba(92,255,178,.10)}
.metric.down{border-color: rgba(255,77,109,.30); background: rgba(255,77,109,.12)}

.tabs{
  display:flex; gap:8px; padding:8px 10px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.tabBtn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding:8px 10px;
  border-radius: 12px;
  font-weight:900;
}
.tabBtn.isOn{
  color: rgba(0,0,0,.9);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,229,255,.82));
  border-color: transparent;
}

.foot{margin-top:16px; padding:10px; text-align:center}

/* Sponsors row */
.sponsorRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:12px;
}
@media (max-width: 880px){
  .sponsorRow{grid-template-columns:1fr}
}
.sponsor{
  display:flex; align-items:center; gap:12px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding:12px;
}
.sBadge{
  font-weight:900;
  font-size:11px;
  color: rgba(0,0,0,.9);
  padding:8px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(0,229,255,.82));
}
.sBody{min-width:0}
.sTitle{font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sDesc{font-size:12px; color: var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sArrow{margin-left:auto; font-size:20px; color: rgba(255,255,255,.8)}

/* Admin extras */
.admin .split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  padding: 10px;
}
@media (max-width: 980px){
  .admin .split{grid-template-columns:1fr}
}
.miniHead{
  padding:10px 10px 0;
  font-weight:900;
  color: rgba(255,255,255,.9);
}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:10px}
.input{
  flex:1;
  min-width: 180px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
.gridForm{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  padding:10px;
}
.gridForm label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color: var(--muted);
  font-weight:800;
}
.gridForm .col2{grid-column: 1 / -1}

.buttonLike{cursor:pointer}

.tag{
  display:inline-block;
  margin-left:8px;
  padding:4px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size:11px;
  color: var(--muted);
}

.tag.ok{border-color: rgba(92,255,178,.35); background: rgba(92,255,178,.10); color: rgba(255,255,255,.85)}
.tag.bad{border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.12); color: rgba(255,255,255,.85)}

.miniBtn{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:8px 10px;
  border-radius: 12px;
  font-weight:900;
}
.miniBtn.danger{border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.12)}
.dayBlock{margin-bottom:10px}