
:root{
  --bg:#0b1220;
  --panel:#101a2e;
  --panel2:#0e172a;
  --text:#e6edf7;
  --muted:#a9b4c7;
  --gold:#d4af37;
  --gold2:#f1d27a;
  --danger:#ff5a5f;
  --ok:#2ee59d;
  --line:rgba(212,175,55,.18);
  --shadow:0 18px 55px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(212,175,55,.10), transparent 60%),
              radial-gradient(900px 700px at 110% 10%, rgba(66,125,255,.12), transparent 60%),
              linear-gradient(180deg, #070b14, var(--bg) 40%, #070b14);
  color:var(--text);
}
a{color:var(--gold2); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px; margin:0 auto; padding:18px}
.topbar{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:14px 16px; border:1px solid var(--line); background:rgba(16,26,46,.78);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand{
  display:flex; align-items:center; gap:10px;
}
.badge{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(145deg, rgba(212,175,55,.95), rgba(212,175,55,.35));
  box-shadow:0 8px 18px rgba(212,175,55,.12);
}
.brand h1{font-size:15px; margin:0; letter-spacing:.4px}
.brand small{display:block; color:var(--muted); font-size:12px; margin-top:2px}
.nav a{margin-left:10px; font-size:14px}
.grid{
  display:grid; gap:14px; margin-top:14px;
  grid-template-columns: 1.25fr .75fr;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,26,46,.85), rgba(14,23,42,.75));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card h2{margin:0 0 10px 0; font-size:16px}
.card h3{margin:0 0 10px 0; font-size:14px; color:var(--gold2)}
.muted{color:var(--muted)}
hr.sep{border:none; border-top:1px solid var(--line); margin:14px 0}
.row{display:flex; gap:10px; flex-wrap:wrap}
.row > *{flex:1}
label{display:block; font-size:12px; color:var(--muted); margin:10px 0 6px}
input,select,textarea{
  width:100%;
  padding:11px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(6,10,18,.55);
  color: var(--text);
  outline:none;
}
input:focus,select:focus,textarea:focus{border-color: rgba(241,210,122,.55); box-shadow:0 0 0 3px rgba(212,175,55,.08)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius: 12px;
  border:1px solid rgba(212,175,55,.35);
  background: linear-gradient(180deg, rgba(212,175,55,.22), rgba(212,175,55,.12));
  color: var(--text);
  cursor:pointer; font-weight:600;
}
.btn:hover{filter:brightness(1.05)}
.btn.secondary{
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}
.btn.danger{
  border-color: rgba(255,90,95,.35);
  background: linear-gradient(180deg, rgba(255,90,95,.18), rgba(255,90,95,.08));
}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px; border:1px solid var(--line);
  background: rgba(212,175,55,.06); font-size:12px; color:var(--gold2)
}
.pill.ok{background: rgba(46,229,157,.10); border-color: rgba(46,229,157,.22); color: #bffbe5}
.pill.bad{background: rgba(255,90,95,.10); border-color: rgba(255,90,95,.24); color: #ffd0d2}
.table{
  width:100%; border-collapse:separate; border-spacing:0;
  overflow:hidden; border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
}
.table th, .table td{
  padding:10px 10px; font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
}
.table th{color:var(--muted); text-align:left; background: rgba(6,10,18,.45)}
.table tr:last-child td{border-bottom:none}
.kpis{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:12px;
}
@media (max-width: 700px){
  .kpis{grid-template-columns:1fr}
}
.kpi{
  border:1px solid rgba(212,175,55,.18);
  background: rgba(6,10,18,.45);
  border-radius: 16px;
  padding:12px;
}
.kpi .v{font-size:22px; font-weight:800}
.kpi .k{font-size:12px; color:var(--muted); margin-top:2px}
.alert{
  border:1px solid rgba(241,210,122,.25);
  background: rgba(212,175,55,.08);
  padding:10px 12px; border-radius: 14px;
  margin:12px 0;
}
.alert.ok{border-color: rgba(46,229,157,.25); background: rgba(46,229,157,.10)}
.alert.bad{border-color: rgba(255,90,95,.28); background: rgba(255,90,95,.10)}
.small{font-size:12px}
.qrbox{
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
}
.qrbox img{
  width:118px; height:118px; border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
}
.footer{color:var(--muted); font-size:12px; margin-top:16px; text-align:center}
