:root{
  --bg:#0b1220;
  --panel:#0f1b2e;
  --panel2:#0c1627;
  --line:rgba(255,255,255,.08);
  --text:#e9eefb;
  --muted:rgba(233,238,251,.72);
  --accent:#21c55d;
  --warn:#f59e0b;
  --danger:#ef4444;
  --chip:rgba(255,255,255,.06);
  --btn:#1b2b46;
  --btn2:#243a60;
}

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

a{ color:inherit; text-decoration:none; }

.container{
  max-width: 1400px;
  margin:0 auto;
  padding:14px;
}

.topbar{
  position: sticky;
  top:0;
  z-index:10;
  background: rgba(11,18,32,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.3px;
}
.brand .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(33,197,93,.15);
}

.pills{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.pill{
  padding:7px 10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:999px;
  font-size: 13px;
  color: var(--muted);
}
.pill strong{ color:var(--text); }

.btn{
  border:1px solid var(--line);
  background: var(--btn);
  color:var(--text);
  border-radius:10px;
  padding:9px 12px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{ background: var(--btn2); }
.btn.ghost{ background: transparent; }
.btn.green{ background: rgba(33,197,93,.16); border-color: rgba(33,197,93,.35); }
.btn.green:hover{ background: rgba(33,197,93,.24); }

.layout{
  display:grid;
  grid-template-columns: 260px 1fr 340px;
  gap:12px;
  padding-top:12px;
}

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
}

.panel .head{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.panel .head h2{
  margin:0;
  font-size:14px;
  letter-spacing:.2px;
  color: var(--muted);
  font-weight:700;
  text-transform: uppercase;
}

.sidebar .item{
  display:flex;
  justify-content:space-between;
  padding:11px 12px;
  border-bottom:1px solid rgba(255,255,255,.05);
  color:var(--muted);
}
.sidebar .item:hover{
  background: rgba(255,255,255,.03);
  color:var(--text);
}
.badge{
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--chip);
  font-size:12px;
  color: var(--muted);
}

.matches .row{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:10px;
}
.matches .teams{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.matches .teams strong{ font-size:15px; }
.matches .meta{
  font-size:12px;
  color:var(--muted);
}
.odds{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
  align-content:start;
}
.oddbtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:3px;
  min-height: 58px;
}
.oddbtn:hover{ background: rgba(255,255,255,.06); }
.oddbtn .lbl{ font-size:12px; color: var(--muted); }
.oddbtn .val{ font-size:15px; font-weight:800; }

.betslip .body{ padding:12px; }
.ticket{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.18);
  margin-bottom:10px;
}
.ticket .t1{ display:flex; justify-content:space-between; gap:8px; }
.ticket .t1 strong{ font-size:14px; }
.ticket .t2{ margin-top:6px; color: var(--muted); font-size:12px; }

input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}
input::placeholder{ color: rgba(233,238,251,.45); }

.small{ font-size:12px; color: var(--muted); }
.sep{ height:1px; background: var(--line); margin:10px 0; }

.auth{
  max-width: 430px;
  margin: 60px auto;
  padding: 16px;
}
.auth .card{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,.03);
  padding: 18px;
}
.error{
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
  padding:10px 12px;
  border-radius:12px;
  margin-bottom:10px;
}

@media (max-width: 1100px){
  .layout{ grid-template-columns: 230px 1fr; }
  .betslip{ display:none; }
}
@media (max-width: 780px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ display:none; }
}

