:root{
  --bg:#0b1020;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.09);
  --border:rgba(255,255,255,.12);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --brand:#6ea8ff;
  --brand2:#4c7dff;
  --ok:#37d67a;
  --warn:#ffb020;
  --danger:#ff4d6d;
  --shadow:0 20px 60px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(110,168,255,.25), transparent 55%),
    radial-gradient(900px 450px at 110% 10%, rgba(255,77,109,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(55,214,122,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{color:inherit}
button, input, select{font:inherit}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:34px 18px 50px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.title{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.title h1{
  margin:0;
  font-size:28px;
  letter-spacing:.2px;
}
.title .sub{
  margin:0;
  color:var(--muted);
  font-size:13.5px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:linear-gradient(180deg, rgba(110,168,255,.18), rgba(110,168,255,.08));
  border:1px solid rgba(110,168,255,.22);
  border-radius:999px;
  color:rgba(234,240,255,.92);
  font-size:12.5px;
}

.panel{
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.panel-inner{padding:16px}

.grid{
  display:grid;
  grid-template-columns: 1.1fr 1.6fr 1fr;
  gap:12px;
}

.card{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
  backdrop-filter: blur(8px);
}

.card h3{
  margin:0 0 10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.3px;
  color:rgba(234,240,255,.9);
  text-transform:uppercase;
}

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

input[type="text"], input[type="number"], select{
  width:100%;
  padding:10px 11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
input::placeholder{color:rgba(234,240,255,.40)}
input:focus, select:focus{
  border-color:rgba(110,168,255,.55);
  box-shadow:0 0 0 4px rgba(110,168,255,.15);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:rgba(234,240,255,.92);
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{background:rgba(255,255,255,.11)}
.btn:active{transform: translateY(1px)}

.btn-primary{
  background:linear-gradient(180deg, rgba(110,168,255,.95), rgba(76,125,255,.95));
  border-color:rgba(110,168,255,.55);
  color:#081026;
  font-weight:700;
}
.btn-primary:hover{filter:brightness(1.03)}
.btn-danger{
  background:linear-gradient(180deg, rgba(255,77,109,.95), rgba(255,77,109,.75));
  border-color:rgba(255,77,109,.55);
  color:#1a0610;
  font-weight:700;
}

.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
  margin-top:12px;
}
.stat{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
}
.stat .k{color:rgba(234,240,255,.65); font-size:12px}
.stat .v{margin-top:6px; font-size:18px; font-weight:800}

.table-wrap{
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
}

.table-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  color:rgba(234,240,255,.70);
  font-size:12.5px;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
  padding:0 12px 14px;
}
th{
  text-align:left;
  font-size:12px;
  color:rgba(234,240,255,.60);
  font-weight:700;
  padding:0 10px 6px;
}
td{
  padding:10px;
  background:rgba(0,0,0,.18);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
tr td:first-child{
  border-left:1px solid rgba(255,255,255,.08);
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
}
tr td:last-child{
  border-right:1px solid rgba(255,255,255,.08);
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(234,240,255,.86);
  font-size:12px;
}
.pill.ok{border-color:rgba(55,214,122,.30); background:rgba(55,214,122,.10)}
.pill.muted{color:rgba(234,240,255,.70)}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.actions .btn{padding:8px 10px; border-radius:10px; font-size:12.5px}
.actions .btn-primary{padding:8px 10px}

.small-note{
  padding:0 16px 16px;
  color:rgba(234,240,255,.55);
  font-size:12.5px;
}

@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr}
}
@media (max-width: 520px){
  .stats{grid-template-columns:1fr}
  .title h1{font-size:24px}
}
