:root{
  --bg:#0b0f14; --card:#121a23; --text:#e7eef7; --muted:#a9b4c0;
  --line:#233041; --accent:#ffd166;
  --danger:#ff6b6b; --ok:#2dd4bf;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; font-family:var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,209,102,.18), transparent 55%),
              radial-gradient(900px 500px at 110% 10%, rgba(45,212,191,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
.wrap{ max-width:1100px; margin:0 auto; padding:28px 18px 60px; }
.topbar{
  position:sticky; top:0; z-index:10;
  background: rgba(11,15,20,.82); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .inner{ max-width:1100px; margin:0 auto; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.badge{ font-size:12px; padding:3px 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); }
.nav{ display:flex; gap:10px; flex-wrap:wrap; }
.nav a{ padding:8px 10px; border:1px solid transparent; border-radius:12px; color:var(--muted); }
.nav a:hover{ border-color:var(--line); color:var(--text); text-decoration:none; }
.card{
  background: linear-gradient(180deg, rgba(18,26,35,.95), rgba(18,26,35,.78));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.grid{ display:grid; gap:14px; grid-template-columns: repeat(12, 1fr); }
.col-3{ grid-column: span 3; }
.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }
@media (max-width: 960px){
  .col-3,.col-4,.col-6,.col-8{ grid-column: span 12; }
}
.h1{ font-size:22px; margin:0 0 10px; }
.muted{ color:var(--muted); }
.kpi{ display:flex; flex-direction:column; gap:6px; }
.kpi .n{ font-size:28px; font-weight:900; }
.kpi .t{ font-size:12px; color:var(--muted); letter-spacing:.2px; text-transform:uppercase; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,.06); }
.btn-accent{ border-color: rgba(255,209,102,.35); background: rgba(255,209,102,.10); }
.btn-danger{ border-color: rgba(255,107,107,.40); background: rgba(255,107,107,.10); }
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.hr{ height:1px; background:var(--line); margin:14px 0; }
input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color:var(--text);
}
label{ display:block; font-size:12px; color:var(--muted); margin:10px 0 6px; }
table{ width:100%; border-collapse:collapse; }
th,td{ padding:10px 8px; border-bottom:1px solid rgba(35,48,65,.7); vertical-align:top; }
th{ text-align:left; font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.2px; }
.pill{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; border:1px solid var(--line); font-size:12px; color:var(--muted); }
.pill.ok{ border-color: rgba(45,212,191,.35); color:#b7fff2; }
.pill.bad{ border-color: rgba(255,107,107,.35); color:#ffd0d0; }
.msg{ padding:10px 12px; border-radius:12px; border:1px solid var(--line); background: rgba(255,255,255,.04); }
.msg.ok{ border-color: rgba(45,212,191,.35); }
.msg.err{ border-color: rgba(255,107,107,.35); }
