:root{
  --bg:#070812;
  --card:#0e1020cc;
  --stroke:#2b2f55;
  --text:#e8e9ff;
  --muted:#a3a6d6;
  --accent:#7c4dff;
  --accent2:#00e5ff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:var(--bg);
}
.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(124,77,255,.25), transparent 60%),
    radial-gradient(800px 500px at 80% 30%, rgba(0,229,255,.18), transparent 55%),
    radial-gradient(900px 700px at 40% 90%, rgba(124,77,255,.12), transparent 60%);
  pointer-events:none;
}

.topbar{
  position:sticky; top:0;
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px;
  border-bottom:1px solid rgba(43,47,85,.6);
  background:rgba(7,8,18,.75);
  backdrop-filter: blur(10px);
}
.brand{font-weight:800; letter-spacing:.5px}
.nav{display:flex; gap:12px; align-items:center}
.link{color:var(--text); text-decoration:none; opacity:.9}
.link:hover{opacity:1}

.wrap{max-width:1100px; margin:24px auto; padding:0 14px;}
.card{
  background:var(--card);
  border:1px solid rgba(43,47,85,.8);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

h1{margin:0 0 14px 0; font-size:22px}
.hint{margin-top:12px; color:var(--muted); font-size:13px}

.form{display:grid; gap:10px}
label{color:var(--muted); font-size:13px}
input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(43,47,85,.9);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
input:focus, select:focus{border-color:rgba(124,77,255,.9)}
.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(43,47,85,.9);
  background:rgba(0,0,0,.25);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{border-color:rgba(124,77,255,.7)}
.btn.primary{
  border-color:rgba(124,77,255,.9);
  background:linear-gradient(135deg, rgba(124,77,255,.9), rgba(0,229,255,.25));
}
.btn.ghost{background:transparent}

.alert{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,80,80,.55);
  background:rgba(255,80,80,.10);
  margin-bottom:10px;
}

.row{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}

.table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  overflow:hidden;
  border-radius:14px;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(43,47,85,.6);
  font-size:13px;
}
.table th{color:var(--muted); text-align:left; font-weight:600}
.inline{display:flex; gap:8px; align-items:center}
.inline input{max-width:220px}

.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}
.stat{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(43,47,85,.6);
  background:rgba(0,0,0,.18);
}
.stat .k{color:var(--muted); font-size:12px}
.stat .v{font-size:16px; margin-top:6px; font-weight:700}

@media (max-width: 900px){
  .grid{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 520px){
  .grid{grid-template-columns:1fr}
}
