:root{
  --bg:#070A0F;
  --panel:#0C1220;
  --panel2:#0F1730;
  --stroke:rgba(255,255,255,.08);
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.62);
  --green:#34F7B3;
  --blue:#5AA8FF;
  --warn:#FFCF5A;
  --red:#FF5A7A;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(90,168,255,.14), transparent 55%),
              radial-gradient(900px 600px at 90% 20%, rgba(52,247,179,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:5;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--stroke);
  background: rgba(7,10,15,.72);
  backdrop-filter: blur(10px);
}

.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, rgba(52,247,179,.9), rgba(90,168,255,.9));
  display:flex; align-items:center; justify-content:center;
  font-weight:800; color:#04110C;
  box-shadow: 0 12px 30px rgba(52,247,179,.12);
}

/* Generic NBA badge (not official NBA logo) */
.nba-badge{display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.04);
}
.nba-badge svg{width:22px; height:22px; display:block}
.nba-badge span{font-weight:800; font-size:12px; letter-spacing:.6px; color:rgba(255,255,255,.85)}
.nba-ball{fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.20); stroke-width:2}
.nba-line{fill:none; stroke: rgba(255,255,255,.35); stroke-width:2; stroke-linecap:round}
.titles .h1{font-weight:800; letter-spacing:.4px}
.titles .sub{font-size:12px; color:var(--muted); margin-top:2px}

.top-actions{display:flex; align-items:flex-end; gap:10px}
.baseurl label{display:block; font-size:11px; color:var(--muted); margin:0 0 6px 2px}
.baseurl input{
  width:min(420px, 52vw);
  height:40px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:0 12px;
  outline:none;
}
.baseurl input:focus{border-color:rgba(90,168,255,.55); box-shadow:0 0 0 4px rgba(90,168,255,.12)}

.layout{display:grid; grid-template-columns: 260px 1fr; gap:16px; padding:16px}
.sidebar{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(12,18,32,.92), rgba(12,18,32,.82));
  border-radius:16px;
  padding:14px;
  height: calc(100vh - 110px);
  position:sticky; top:84px;
  box-shadow: var(--shadow);
}
.nav-title{font-size:12px; color:var(--muted); margin:4px 6px 10px}
.nav{display:flex; flex-direction:column; gap:8px}
.nav-item{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.nav-item:hover{border-color:rgba(52,247,179,.25)}
.nav-item.active{
  border-color: rgba(52,247,179,.45);
  background: linear-gradient(135deg, rgba(52,247,179,.10), rgba(90,168,255,.08));
  box-shadow: 0 0 0 4px rgba(52,247,179,.08);
}
.sidebar-foot{margin-top:14px; padding-top:14px; border-top:1px solid var(--stroke)}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:999px;
  border:1px solid rgba(52,247,179,.25);
  color: rgba(52,247,179,.95);
  background: rgba(52,247,179,.06);
  font-size:12px; font-weight:700;
}
.small{font-size:12px}
.muted{color:var(--muted)}
.content{min-height: calc(100vh - 110px)}
.view{display:none}
.view.active{display:block}

.card{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(12,18,32,.88), rgba(12,18,32,.78));
  border-radius:16px;
  box-shadow: var(--shadow);
  overflow:hidden;
  margin-bottom:16px;
}
.card-h{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px;
  padding:14px 14px 12px;
  border-bottom:1px solid var(--stroke);
}
.card-title{font-weight:800; letter-spacing:.2px}
.card-sub{font-size:12px; color:var(--muted); margin-top:4px}
.card-inner{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  border-radius:14px;
  padding:12px;
  min-height:120px;
}

.row{display:flex; align-items:center; gap:8px}
.gap{gap:10px}
.btn{
  height:38px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  cursor:pointer;
  font-weight:800;
  letter-spacing:.2px;
}
.btn-primary{
  background: linear-gradient(135deg, rgba(52,247,179,.95), rgba(90,168,255,.95));
  color:#06120D;
  border-color: transparent;
}
.btn-ghost{
  background: rgba(255,255,255,.03);
  color:var(--text);
}
.btn:hover{filter: brightness(1.05)}
.btn:active{transform: translateY(1px)}

.form{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
  padding:12px 14px 14px;
}
.field{display:flex; flex-direction:column; gap:6px}
.field.wide{grid-column: 1 / -1}
label{font-size:11px; color:var(--muted)}
input, select{
  height:38px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding:0 10px;
  outline:none;
}
input:focus, select:focus{border-color: rgba(90,168,255,.55); box-shadow:0 0 0 4px rgba(90,168,255,.10)}
textarea.textarea{
  width:100%;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding:10px;
  font-family: var(--mono);
  outline:none;
}
textarea.textarea:focus{border-color: rgba(52,247,179,.45); box-shadow:0 0 0 4px rgba(52,247,179,.08)}

.pre{
  margin:0;
  padding:12px 14px 14px;
  font-family: var(--mono);
  font-size:12px;
  color: rgba(234,240,255,.92);
  overflow:auto;
  max-height: 520px;
  background: rgba(0,0,0,.18);
}
.pre.small{font-size:11px}

.pad{padding:12px 14px 14px}
.list{margin:0; padding-left:18px; color: rgba(234,240,255,.88)}
.list li{margin:8px 0}

.kbd{
  display:inline-block;
  padding:2px 7px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  font-family: var(--mono);
  font-size:11px;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.split{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  padding:12px 14px 14px;
  border-top:1px solid var(--stroke);
}
.mini-title{font-size:12px; color:var(--muted); margin:0 0 10px 2px}

.summary{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.kv{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:10px;
  background: rgba(255,255,255,.02);
}
.k{font-size:11px; color:var(--muted)}
.v{font-weight:900; margin-top:6px}

.table{
  width:100%;
  overflow:auto;
  border:1px solid var(--stroke);
  border-radius:14px;
  background: rgba(255,255,255,.02);
}
table{width:100%; border-collapse:collapse; font-size:12px}
th, td{padding:10px 10px; border-bottom:1px solid rgba(255,255,255,.06); text-align:left; white-space:nowrap}
th{color:rgba(234,240,255,.75); font-size:11px; text-transform:uppercase; letter-spacing:.08em}
tr:hover td{background: rgba(52,247,179,.04)}
.badge{
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  display:inline-flex; align-items:center; gap:6px;
}
.badge.a{background: rgba(52,247,179,.10); color: rgba(52,247,179,.95); border:1px solid rgba(52,247,179,.25)}
.badge.b{background: rgba(90,168,255,.10); color: rgba(90,168,255,.95); border:1px solid rgba(90,168,255,.25)}
.badge.c{background: rgba(255,207,90,.10); color: rgba(255,207,90,.95); border:1px solid rgba(255,207,90,.25)}
.badge.d{background: rgba(255,90,122,.10); color: rgba(255,90,122,.95); border:1px solid rgba(255,90,122,.25)}

/* Slate list */
.slate-list{display:flex;flex-direction:column;gap:10px;margin-top:8px;}
.slate-row{padding:10px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);}
.slate-row.top{border-color:rgba(52,247,179,.25); box-shadow:0 0 0 1px rgba(52,247,179,.08) inset;}
.slate-row .r1{display:flex;justify-content:space-between;gap:10px;align-items:baseline;}
.slate-row .match{font-weight:700;letter-spacing:.2px;}
.slate-row .picks{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.slate-row .small{font-size:12px;opacity:.85;}
.pill{display:inline-flex;gap:6px;align-items:center;padding:6px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);}
.pill .lbl{opacity:.75}
.pill.hot{border-color:rgba(52,247,179,.25);background:rgba(52,247,179,.08)}
.pill.warn{border-color:rgba(255,207,90,.25);background:rgba(255,207,90,.08)}

.footer{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 16px 18px;
  border-top:1px solid var(--stroke);
  color: var(--muted);
}

@media (max-width: 980px){
  .layout{grid-template-columns: 1fr; }
  .sidebar{position:relative; top:auto; height:auto}
  .grid2{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .form{grid-template-columns: 1fr 1fr}
  .baseurl input{width: min(520px, 70vw)}
}
