*{box-sizing:border-box}
:root{
  --bg:#050914;
  --bg2:#071425;
  --panel:#0b1728;
  --panel2:#0e1e34;
  --border:rgba(122,169,255,.15);
  --text:#f5f8ff;
  --muted:#8fa4bf;
  --blue:#5ea9ff;
  --blue2:#2765ff;
  --green:#39e58c;
  --yellow:#ffc857;
  --red:#ff6073;
}
html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:
radial-gradient(circle at 10% 0%,rgba(39,101,255,.22),transparent 28%),
linear-gradient(155deg,var(--bg),var(--bg2))}
body{min-height:100vh;overflow-x:hidden}
button,input{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.bg-orb{position:fixed;border-radius:50%;filter:blur(80px);opacity:.12;pointer-events:none}
.orb-1{width:320px;height:320px;background:#2765ff;top:-120px;left:-110px}
.orb-2{width:380px;height:380px;background:#0094ff;right:-180px;top:25%}

.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{
  width:min(520px,100%);
  border:1px solid var(--border);
  border-radius:28px;
  background:rgba(8,18,33,.94);
  padding:34px;
  box-shadow:0 28px 80px rgba(0,0,0,.42)
}
.brand-row{display:flex;align-items:center;gap:12px}
.brand-row>div:last-child{display:flex;flex-direction:column}
.brand-row strong{font-size:18px;letter-spacing:.05em}
.brand-row span{font-size:10px;color:var(--muted);letter-spacing:.18em;margin-top:3px}
.brand-mark{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(145deg,#89c8ff,#2865ff 55%,#132f72);
  font-weight:900;box-shadow:0 12px 28px rgba(39,101,255,.34)
}
.login-copy{margin:42px 0 28px}
.eyebrow{color:#7fb6ff;font-size:11px;font-weight:800;letter-spacing:.16em;margin:0 0 10px}
.login-copy h1{font-size:40px;line-height:1.05;letter-spacing:-.04em;margin:0 0 14px}
.login-copy p:last-child{color:var(--muted);line-height:1.65}
.login-form{display:grid;gap:16px}
.login-form label{display:grid;gap:8px}
.login-form label span{font-size:12px;color:#b7c7da}
.login-form input,.console-box input{
  width:100%;border:1px solid rgba(122,169,255,.16);
  background:#07111f;color:#fff;border-radius:14px;padding:14px 15px;outline:none
}
.login-form input:focus,.console-box input:focus{border-color:rgba(94,169,255,.55);box-shadow:0 0 0 3px rgba(94,169,255,.08)}
.login-form button{
  border:0;border-radius:14px;padding:14px;background:linear-gradient(135deg,#2b68ff,#4da6ff);
  color:white;font-weight:800;box-shadow:0 14px 30px rgba(39,101,255,.25)
}
.login-note,.form-message{font-size:11px;color:#7890ad;line-height:1.55}
.form-message{min-height:16px;margin:0}

.dashboard{min-height:100vh;display:grid;grid-template-columns:260px 1fr}
.sidebar{
  position:sticky;top:0;height:100vh;padding:24px 18px;border-right:1px solid var(--border);
  background:rgba(5,12,23,.96);display:flex;flex-direction:column
}
.sidebar-brand{padding:4px 8px 28px}
.menu{display:grid;gap:7px}
.menu-item{
  border:0;background:transparent;color:#91a6c0;text-align:left;padding:13px 14px;border-radius:13px
}
.menu-item:hover,.menu-item.active{background:rgba(74,128,255,.1);color:#fff}
.menu-item.active{box-shadow:inset 0 0 0 1px rgba(100,156,255,.13)}
.sidebar-footer{margin-top:auto;display:flex;align-items:center;gap:9px;color:#8fa4bf;font-size:12px;padding:10px}
.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green)}

.main{padding:28px 32px 50px;min-width:0}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}
.topbar h2{font-size:30px;letter-spacing:-.04em;margin:0}
.top-actions{display:flex;align-items:center;gap:14px;color:var(--muted)}
.ghost{background:#0a1728;color:#d9e6f5;border:1px solid var(--border);padding:10px 14px;border-radius:12px}

.panel-section{display:none}
.active-section{display:block}
.hero-card,.stat-card,.service-card,.section-card{
  background:linear-gradient(145deg,rgba(13,29,51,.96),rgba(7,17,31,.96));
  border:1px solid var(--border);box-shadow:0 18px 45px rgba(0,0,0,.24)
}
.hero-card{border-radius:24px;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.hero-card h3{font-size:27px;letter-spacing:-.035em;margin:14px 0 8px}
.hero-card p{color:var(--muted);margin:0}
.hero-badge{display:inline-flex;color:var(--green);background:rgba(57,229,140,.08);border:1px solid rgba(57,229,140,.16);padding:8px 11px;border-radius:999px;font-size:12px;font-weight:800}
.hero-score{text-align:center;min-width:120px}
.hero-score strong{display:block;font-size:50px;letter-spacing:-.06em}
.hero-score span{color:var(--muted);font-size:11px}

.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px}
.stat-card{border-radius:19px;padding:19px}
.stat-card>span{color:var(--muted);font-size:12px}
.stat-card strong{display:block;font-size:22px;margin:10px 0}
.stat-card small{color:var(--muted)}
.progress{height:7px;background:#07101c;border-radius:999px;overflow:hidden;margin-top:14px}
.progress i{display:block;height:100%;background:linear-gradient(90deg,#2865ff,#63b6ff);border-radius:999px}

.service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:16px}
.service-card{border-radius:19px;padding:20px;display:flex;align-items:center;justify-content:space-between}
.service-card h4{margin:10px 0 4px;font-size:17px}
.service-card p{margin:0;color:var(--muted);font-size:12px}
.service-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:rgba(67,127,255,.1)}
.chip{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:800}
.online{color:var(--green);background:rgba(57,229,140,.08);border:1px solid rgba(57,229,140,.16)}

.section-card{border-radius:22px;padding:24px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.section-head h3{margin:0 0 7px;font-size:23px}
.section-head p{margin:0;color:var(--muted)}
.action-row{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}
.action{border:0;border-radius:12px;padding:11px 16px;color:white;font-weight:800}
.success{background:#168751}.warning{background:#9a6d12}.danger{background:#9a2d3c}
.console-box{display:block;margin-top:24px}
.console-box>span{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}
.console-box>div{display:grid;grid-template-columns:1fr auto;gap:10px}
.console-box button{border:0;border-radius:12px;background:#2865ff;color:white;padding:0 18px}

.table-wrap{overflow:auto;margin-top:22px}
table{width:100%;border-collapse:collapse;min-width:540px}
th,td{text-align:left;padding:14px;border-bottom:1px solid rgba(255,255,255,.055)}
th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}
td{font-size:13px}
.service-list,.log-list{display:grid;gap:10px;margin-top:22px}
.service-list>div,.log-list>div{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;border-radius:14px;background:#071321;border:1px solid rgba(255,255,255,.05)}
.log-list>div{justify-content:flex-start;gap:16px}
.log-list time{color:#6fa9ff;font-size:11px}

.toast{
  position:fixed;right:22px;bottom:22px;background:#0d1c30;border:1px solid var(--border);
  color:#dce8f8;padding:13px 16px;border-radius:13px;box-shadow:0 18px 40px rgba(0,0,0,.35);
  opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s
}
.toast.show{opacity:1;transform:translateY(0)}

@media(max-width:980px){
  .dashboard{grid-template-columns:84px 1fr}
  .sidebar{padding:20px 10px}
  .sidebar-brand>div:last-child,.menu-item{font-size:0}
  .menu-item::first-letter{font-size:16px}
  .sidebar-footer span:last-child{display:none}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
  .dashboard{display:block}
  .sidebar{position:static;width:100%;height:auto;border-right:0;border-bottom:1px solid var(--border)}
  .sidebar-brand{padding-bottom:16px}
  .menu{display:flex;overflow:auto}
  .menu-item{font-size:12px!important;white-space:nowrap}
  .sidebar-footer{display:none}
  .main{padding:20px 15px 35px}
  .topbar{align-items:flex-start}
  .stats-grid,.service-grid{grid-template-columns:1fr}
  .hero-card{align-items:flex-start;flex-direction:column}
  .hero-score{text-align:left}
  .login-card{padding:25px}
  .login-copy h1{font-size:34px}
}

.live-console{
  margin-top:24px;
  border:1px solid rgba(104,154,255,.17);
  border-radius:18px;
  overflow:hidden;
  background:#02060c;
  box-shadow:inset 0 0 30px rgba(24,75,150,.07)
}
.console-header{
  min-height:48px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:0 14px;
  background:#09111c;
  border-bottom:1px solid rgba(255,255,255,.055)
}
.console-header>div{display:flex;gap:7px}
.console-header strong{
  font-size:11px;
  letter-spacing:.08em;
  color:#aebfd4
}
.console-dot{display:inline-block;width:9px;height:9px;border-radius:50%}
.console-dot.red{background:#ff5f57}
.console-dot.yellow{background:#febc2e}
.console-dot.green{background:#28c840}
.console-live{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:6px;
  color:#56e59a;
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em
}
.console-live i{
  width:7px;height:7px;border-radius:50%;
  background:#39e58c;
  box-shadow:0 0 10px rgba(57,229,140,.8);
  animation:consolePulse 1.5s infinite
}
@keyframes consolePulse{50%{opacity:.35}}
.console-output{
  height:290px;
  overflow-y:auto;
  padding:15px 17px;
  font-family:Consolas,"Courier New",monospace;
  font-size:12px;
  line-height:1.65;
  color:#c7d4e5;
  scrollbar-width:thin;
  scrollbar-color:#1f4773 #050a10
}
.console-output div{white-space:pre-wrap;word-break:break-word}
.console-output time{color:#58718d;margin-right:8px}
.console-output .info{color:#73b5ff}
.console-output .success-log{color:#46dc91}
.console-output .warning-log{color:#ffcd69}
.console-output .error-log{color:#ff7282}
.live-console .console-box{
  margin:0;
  padding:14px;
  border-top:1px solid rgba(255,255,255,.055);
  background:#060d16
}
.live-console .console-box>span{margin-bottom:7px}
#sendConsoleButton{
  border:0;
  border-radius:12px;
  background:#2865ff;
  color:white;
  padding:0 18px;
  font-weight:800
}
@media(max-width:680px){
  .console-header{grid-template-columns:auto 1fr auto}
  .console-header strong{padding-left:10px}
  .console-output{height:240px;font-size:11px}
}

.chip.offline{
  color:var(--red);
  background:rgba(255,96,115,.08);
  border:1px solid rgba(255,96,115,.16)
}
.login-form button:disabled{
  opacity:.65;
  cursor:wait
}
