:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.14);
  --accent: #7c5cff;
  --accent2:#2dd4bf;
  --danger:#ff4d6d;
  --warn:#ffcc00;
  --ok:#22c55e;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius2: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: 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(--sans);
  color:var(--text);
  background:
    radial-gradient(800px 500px at 12% 10%, rgba(124,92,255,0.35), transparent 55%),
    radial-gradient(800px 500px at 80% 30%, rgba(45,212,191,0.18), transparent 55%),
    radial-gradient(900px 700px at 40% 80%, rgba(255,77,109,0.12), transparent 60%),
    linear-gradient(180deg, #070a16, #0b1020 50%, #070a16);
}

a{color:inherit; text-decoration:none}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:22px 18px 60px;
}

.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:36px;height:36px;border-radius:12px;
  background: radial-gradient(14px 14px at 30% 30%, #fff, rgba(255,255,255,0.2)),
              linear-gradient(135deg, rgba(124,92,255,0.95), rgba(45,212,191,0.9));
  box-shadow: 0 14px 30px rgba(124,92,255,0.25);
}

.brand h1{
  font-size:14px;
  margin:0;
  letter-spacing:0.3px;
  font-weight:800;
}
.brand .sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.pill{
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,0.04);
  font-size:12px;
  color:var(--muted);
}
.pill.active{
  background: rgba(124,92,255,0.18);
  border-color: rgba(124,92,255,0.35);
  color: rgba(255,255,255,0.92);
}

.actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.btn:hover{ background: rgba(255,255,255,0.06); }
.btn.primary{
  border-color: rgba(124,92,255,0.55);
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(124,92,255,0.35));
}
.btn.danger{
  border-color: rgba(255,77,109,0.45);
  background: rgba(255,77,109,0.12);
}
.btn.ghost{
  background: transparent;
}

.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding:14px;
}

.card h2{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:0.2px;
}
.muted{ color: var(--muted); }

.kpis{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
@media (max-width: 980px){
  .kpis{ grid-template-columns: repeat(2, 1fr); }
}

.kpi{
  border:1px solid var(--border);
  background: rgba(0,0,0,0.18);
  border-radius: var(--radius2);
  padding:12px;
}
.kpi .label{ font-size:11px; color:var(--muted); }
.kpi .value{ font-size:18px; font-weight:900; margin-top:4px; }
.kpi .hint{ font-size:11px; color:var(--muted); margin-top:6px; }

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 140px;
  flex: 1;
}
.field label{
  font-size:11px;
  color:var(--muted);
}
.input, select, textarea{
  width:100%;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color:var(--text);
  padding:10px 10px;
  outline:none;
  font-size:13px;
}
textarea{ min-height: 90px; resize: vertical; font-family: var(--mono); font-size: 12px; }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(0,0,0,0.18);
}
.table th, .table td{
  text-align:left;
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  font-size:12px;
  vertical-align: top;
}
.table th{ color: rgba(255,255,255,0.88); font-weight:800; background: rgba(255,255,255,0.04); }
.table tr:hover td{ background: rgba(255,255,255,0.03); }

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
  color: var(--muted);
}
.tag.ok{ border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.10); color: rgba(255,255,255,0.88); }
.tag.warn{ border-color: rgba(255,204,0,0.35); background: rgba(255,204,0,0.10); color: rgba(255,255,255,0.88); }
.tag.bad{ border-color: rgba(255,77,109,0.35); background: rgba(255,77,109,0.10); color: rgba(255,255,255,0.88); }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 980px){ .split{ grid-template-columns: 1fr; } }

.notice{
  border:1px solid rgba(124,92,255,0.35);
  background: rgba(124,92,255,0.10);
  padding:10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.88);
  font-size:12px;
}

.footer{
  margin-top:14px;
  color: rgba(255,255,255,0.55);
  font-size:11px;
}

