:root{
  --bg:#070d1b;
  --bg-2:#0f1a31;
  --panel:#101b34;
  --panel-2:#152542;
  --text:#edf2ff;
  --muted:#9fb0d5;
  --border:rgba(255,255,255,0.13);
  --accent:#5b8dff;
  --accent-2:#54d1ff;
  --ok:#52d273;
  --warn:#f0b85d;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(84,209,255,0.14), transparent 60%),
    radial-gradient(1000px 560px at 100% -10%, rgba(91,141,255,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), #060b17 70%);
  min-height:100vh;
}

.wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
}

.nav{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 22px;
  border-bottom:1px solid var(--border);
  background:rgba(8,14,30,0.72);
  backdrop-filter: blur(10px);
}
.brand{
  font-weight:700;
  letter-spacing:0.3px;
  display:flex;
  align-items:center;
  gap:10px;
}
.brand::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:0 0 18px rgba(91,141,255,0.65);
}
.nav-right{ display:flex; gap:10px; align-items:center; }
.nav a{
  color:var(--text);
  text-decoration:none;
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:12px;
  transition: all .18s ease;
}
.nav a:hover{
  border-color:var(--border);
  background:rgba(255,255,255,0.05);
}

.btn{
  border:1px solid var(--border);
  color:var(--text);
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  padding:10px 13px;
  border-radius:12px;
  cursor:pointer;
}
.btn:hover{ background:rgba(255,255,255,0.12); }
.btn-secondary{ background:rgba(255,255,255,0.03); }

.panel{
  background:linear-gradient(180deg, rgba(17,30,56,0.88), rgba(13,24,46,0.88));
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow:0 16px 40px rgba(0,0,0,0.28);
}

.hero{
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(141,173,255,0.25);
  background:linear-gradient(120deg, rgba(91,141,255,0.25), rgba(84,209,255,0.16));
}

.stats{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:12px;
  margin-top:14px;
}
.stat{
  background:linear-gradient(180deg, rgba(21,37,66,0.92), rgba(14,27,51,0.92));
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
}
.stat .k{ color:var(--muted); font-size:12px; }
.stat .v{ font-size:22px; font-weight:700; margin-top:6px; }
.stat .s{ color:var(--muted); font-size:12px; margin-top:4px; }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }

label{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-bottom:6px;
}
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(6,11,23,0.55);
  color:var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color:rgba(91,141,255,0.6);
  box-shadow:0 0 0 3px rgba(91,141,255,0.2);
}

textarea{ min-height: 120px; resize: vertical; }

.mt-18{ margin-top:18px; }
.muted{ color:var(--muted); }

.chip{
  display:inline-flex;
  align-items:center;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.04);
  font-size:12px;
}
.chip.ok{ border-color:rgba(82,210,115,0.45); color:#a7f3be; }
.chip.warn{ border-color:rgba(240,184,93,0.45); color:#ffe0ad; }

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
}
th, td{
  padding:11px 12px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  text-align:left;
  font-size:14px;
}
th{
  color:var(--muted);
  font-weight:600;
}
tr:hover td{ background:rgba(255,255,255,0.03); }

.pulse{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
}
.pulse > span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, #4f8cff, #54d1ff);
}

.chart{
  height:360px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  background:rgba(8,15,29,0.5);
}

@media (max-width: 1100px){
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .wrap{ padding:12px; }
  .nav{ padding:12px; }
  .grid-3{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
}

