:root{
  --bg:#070A12;
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.70);
  --line:rgba(234,240,255,.14);
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --accent:#6AE4FF;
  --accent2:#B36BFF;
  --good:#53f3a6;
  --bad:#ff6b6b;
  --shadow: 0 22px 70px rgba(0,0,0,.55);
  --r:22px;
  --r2:16px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(106,228,255,.18), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(179,107,255,.18), transparent 55%),
    radial-gradient(900px 500px at 70% 95%, rgba(83,243,166,.10), transparent 60%),
    var(--bg);
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7,10,18,.78), rgba(7,10,18,.40));
  border-bottom:1px solid rgba(234,240,255,.08);
}
.nav-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  height:78px;
  gap:12px;
}
.brand{display:flex; align-items:center; gap:12px; min-width: 170px}
.logo{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 30px rgba(106,228,255,.16);
  position:relative;
  overflow:hidden;
}
.logo:after{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 55%);
  transform: rotate(25deg);
  opacity:.35;
}
.brand b{letter-spacing:.2px; font-size:15.5px}
.menu{
  display:flex; align-items:center; justify-content:center;
  gap:14px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(234,240,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  white-space:nowrap;
}
.menu a{
  color: rgba(234,240,255,.78);
  padding:10px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  line-height:1;
  transition:.18s ease;
  white-space:nowrap;
}
.menu a:hover{color:var(--text); background: rgba(255,255,255,.06)}
.actions{
  display:flex; align-items:center; justify-content:flex-end;
  gap:10px;
  min-width: 240px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  cursor:pointer;
  transition:.18s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09)}
.btn.primary{
  border:none;
  color:#071024;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.btn.primary:hover{filter:brightness(1.04)}
.btn.ghost{background:transparent}
.burger{display:none}

.card{
  border:1px solid rgba(234,240,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.048));
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.section{padding:34px 0}
h1,h2,h3{letter-spacing:-.3px}
h1{margin:0 0 10px;font-size: clamp(28px, 4vw, 44px);line-height:1.08}
h2{margin:0 0 10px;font-size: clamp(20px, 2.4vw, 30px)}
.grad{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.sub{margin:0 0 18px; color:var(--muted); line-height:1.65; max-width:76ch}
.muted{color:var(--muted)}
.grid{display:grid;gap:14px}
.grid-2{grid-template-columns:1fr 1fr}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pill{
  padding:8px 10px;border-radius:999px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(234,240,255,.78);
  font-size: 12.8px;
}
.input{
  display:flex;flex-direction:column;gap:8px;
  padding:12px;border-radius:16px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.18);
}
label{font-size:12.5px;color:rgba(234,240,255,.72)}
input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
input:focus{border-color: rgba(106,228,255,.55)}
.help{font-size:12.5px;color:rgba(234,240,255,.58);line-height:1.55}
.alert{
  padding:12px 14px;border-radius:16px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.25);
  color:var(--text);
}
.alert.good{border-color: rgba(83,243,166,.35)}
.alert.bad{border-color: rgba(255,107,107,.40)}
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid rgba(234,240,255,.12);
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(234,240,255,.10);
  text-align:left;
  font-size:13.5px;
}
.table th{color:rgba(234,240,255,.78);font-weight:800;background:rgba(255,255,255,.04)}
.table tr:last-child td{border-bottom:none}
.kpi{
  padding:16px;border-radius:18px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(255,255,255,.05);
}
.kpi b{font-size:22px}
.kpi span{display:block;color:var(--muted);font-size:12.8px;margin-top:4px}
.footer{
  padding:26px 0 34px;
  border-top: 1px solid rgba(234,240,255,.10);
  color: var(--muted);
  font-size:13px;
}
.footer-grid{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap}
.toast{
  position: fixed; right:16px; bottom:16px; z-index:100;
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  color: var(--text);
  display:none;
  box-shadow: var(--shadow);
  font-size: 13.5px;
}
@media (max-width: 980px){
  .nav-inner{grid-template-columns:1fr auto}
  .menu{display:none}
  .burger{display:inline-flex}
  .actions{min-width:auto}
  .grid-2,.grid-3{grid-template-columns:1fr}
}
