:root{
  --bg:#0b0f14;
  --card:#111827;
  --muted:#9ca3af;
  --text:#e5e7eb;
  --brand:#17bd54;
  --danger:#ef4444;
  --ok:#22c55e;
  --border:#1f2937;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(23,189,84,.18), transparent 55%),
              radial-gradient(1000px 500px at 90% 20%, rgba(255,255,255,.06), transparent 55%),
              var(--bg);
  color:var(--text);
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  position:sticky; top:0;
  background:rgba(11,15,20,.85);
  backdrop-filter: blur(10px);
}

.brand{
  font-weight:800;
  letter-spacing:.5px;
  color:var(--brand);
}

.nav a{
  color:var(--text);
  text-decoration:none;
  margin-left:14px;
  opacity:.9;
}
.nav a:hover{opacity:1; color:var(--brand);}

.container{padding:18px; max-width:1200px; margin:0 auto;}
.alert{
  border:1px solid rgba(23,189,84,.25);
  background:rgba(23,189,84,.10);
  padding:10px 12px;
  border-radius:12px;
  margin:12px 0;
}

.center{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px;}
.card{
  width:420px;
  background:rgba(17,24,39,.9);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.card h1{margin:0 0 10px; color:var(--brand)}
label{display:block; margin:10px 0 6px; color:var(--muted)}
input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#0f172a;
  color:var(--text);
  outline:none;
}
input:focus, select:focus{border-color: rgba(23,189,84,.65);}

button, .btn{
  display:inline-block;
  border:none;
  border-radius:12px;
  padding:10px 12px;
  background:var(--brand);
  color:#04140a;
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
}
button:hover, .btn:hover{filter:brightness(1.05);}
.ghost{
  background:transparent;
  border:1px solid rgba(23,189,84,.35);
  color:var(--text);
}

.hint{color:var(--muted); font-size:.9rem}

.grid{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin:12px 0;}
.grid-2{display:grid; grid-template-columns: 1.2fr .8fr; gap:12px; margin:12px 0;}
.stat{
  background:rgba(17,24,39,.75);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
}
.stat-title{color:var(--muted); font-size:.9rem}
.stat-value{font-size:1.6rem; font-weight:800}
.stat-value.small{font-size:1rem; font-weight:700}

.card2{
  background:rgba(17,24,39,.75);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(17,24,39,.6);
}
table{width:100%; border-collapse:collapse; min-width:900px;}
th, td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:.92rem;
}
th{color:var(--muted); font-weight:700}
.truncate{max-width:280px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.inline{display:inline}
.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  font-weight:700;
  font-size:.85rem;
}
.badge.ok{background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.25)}
.badge.bad{background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.25)}
.pre{
  background:#0f172a;
  border:1px solid var(--border);
  padding:12px;
  border-radius:18px;
  overflow:auto;
  max-height:420px;
}

.form-row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.form-row input{flex:1; min-width:240px}
.form-row select{width:140px}

@media (max-width: 900px){
  .grid, .grid-2{grid-template-columns:1fr}
  table{min-width:700px}
}
