:root{
  --bg0:#050A18;
  --bg1:#06102A;
  --card:rgba(255,255,255,.06);
  --line:rgba(120,170,255,.18);
  --txt:rgba(235,245,255,.92);
  --muted:rgba(235,245,255,.70);
  --muted2:rgba(235,245,255,.52);

  --blue1:#00D4FF;
  --blue2:#2F6BFF;
  --blue3:#7C4DFF;

  --good:#2DFFB3;
  --warn:#FFD86B;
  --bad:#FF4D7D;

  --shadow: 0 28px 80px rgba(0,0,0,.62);
  --r: 22px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--txt);
  font-family:var(--sans);
  background:
    radial-gradient(900px 600px at 15% 18%, rgba(0,212,255,.18), transparent 58%),
    radial-gradient(900px 600px at 82% 22%, rgba(47,107,255,.18), transparent 56%),
    radial-gradient(1100px 750px at 50% 95%, rgba(124,77,255,.13), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

/* FX layers */
.gridFx{
  position:fixed; inset:0;
  background:
    linear-gradient(rgba(90,150,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,150,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(800px 500px at 50% 30%, #000 55%, transparent 75%);
  opacity:.75;
  pointer-events:none;
}

.noise{
  pointer-events:none;
  position:fixed; inset:-20%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.26;
  animation: drift 10s linear infinite;
}

.scanline{
  position:fixed; inset:0;
  background: linear-gradient(180deg, transparent, rgba(0,212,255,.08), transparent);
  opacity:.22;
  animation: scan 4.6s linear infinite;
  pointer-events:none;
}

@keyframes drift{to{transform:translate3d(-6%,-4%,0)}}
@keyframes scan{
  0%{transform:translateY(-120%)}
  100%{transform:translateY(120%)}
}

.wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding: clamp(18px, 4vw, 44px);
}

.shell{
  width:min(1180px, 100%);
  border-radius: calc(var(--r) + 10px);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow:hidden;
  position:relative;
}

.shell::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(650px 260px at 16% 10%, rgba(0,212,255,.20), transparent 60%),
    radial-gradient(620px 260px at 86% 14%, rgba(47,107,255,.20), transparent 60%),
    radial-gradient(680px 340px at 50% 110%, rgba(124,77,255,.15), transparent 60%);
  opacity:.9;
  pointer-events:none;
}

.topbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(120,170,255,.16);
  background: rgba(0,0,0,.18);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.12em;
  color:rgba(235,245,255,.78);
}

.statusDot{
  width:10px; height:10px;
  border-radius:999px;
  background: conic-gradient(from 180deg, var(--blue1), var(--blue2), var(--blue3), var(--blue1));
  box-shadow: 0 0 0 4px rgba(0,212,255,.08);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{transform:scale(1); opacity:.85}
  50%{transform:scale(1.25); opacity:1}
}

.pill{
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(120,170,255,.22);
  background: rgba(255,255,255,.05);
  font-family:var(--mono);
  font-size:12px;
  color:rgba(235,245,255,.78);
}
.pillKey{opacity:.7}
.pillVal{color:rgba(235,245,255,.92)}

.content{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  padding: clamp(18px, 3vw, 26px);
}
@media (max-width: 980px){
  .content{grid-template-columns:1fr}
}

.left{
  position:relative;
  padding: 6px 6px 10px 6px;
}
.right{
  position:relative;
  padding: 6px;
}

.logoCard{
  position:relative;
  width:min(440px, 100%);
  border-radius: var(--r);
  border:1px solid rgba(120,170,255,.20);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.logo{
  display:block;
  width:100%;
  height:auto;
  padding: 18px;
  filter: drop-shadow(0 18px 30px rgba(0,212,255,.10));
}

.logoGlow{
  position:absolute; inset:-40%;
  background: radial-gradient(closest-side, rgba(0,212,255,.22), transparent 60%);
  opacity:.75;
  pointer-events:none;
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow{
  0%,100%{transform:translate(0,0)}
  50%{transform:translate(6%, 4%)}
}

h1{
  margin:16px 0 10px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height:1.05;
  letter-spacing:-.02em;
}

.sub{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.55;
  max-width: 62ch;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 14px 0 14px;
}

.btn{
  appearance:none;
  border:1px solid rgba(120,170,255,.22);
  background: rgba(255,255,255,.05);
  color:var(--txt);
  padding:12px 14px;
  border-radius:14px;
  font-weight:650;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select:none;
}

.btn:hover{
  transform:translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(120,170,255,.34);
}

.btn:active{transform:translateY(0)}

.btn.primary{
  border-color: rgba(0,212,255,.35);
  background: linear-gradient(135deg, rgba(0,212,255,.22), rgba(47,107,255,.16));
  box-shadow: 0 10px 30px rgba(0,212,255,.10);
}

.btn.primary:hover{
  border-color: rgba(0,212,255,.52);
  box-shadow: 0 12px 36px rgba(0,212,255,.14);
}

.terminal{
  border-radius: 18px;
  border:1px solid rgba(120,170,255,.18);
  background: rgba(0,0,0,.30);
  overflow:hidden;
}

.terminalTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid rgba(120,170,255,.14);
  background: rgba(255,255,255,.04);
}

.dots{display:flex; gap:7px}
.d{width:10px;height:10px;border-radius:50%}
.d.r{background:#ff5c73}
.d.y{background:#ffd25c}
.d.g{background:#33d69f}

.terminalTop code{
  font-family:var(--mono);
  font-size:12px;
  color:rgba(235,245,255,.72);
}

.terminalBody{
  padding:12px;
  font-family:var(--mono);
  font-size:12px;
  line-height:1.6;
  color:rgba(235,245,255,.82);
  max-height: 220px;
  overflow:auto;
}

.dim{color:rgba(235,245,255,.54)}
.ok{color:rgba(45,255,179,.95)}
.w{color:rgba(255,216,107,.95)}
.x{color:rgba(255,77,125,.95)}

.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top: 14px;
  color:var(--muted2);
  font-size:12px;
  flex-wrap:wrap;
}

.footer .links a{
  color:rgba(235,245,255,.82);
  text-decoration:none;
  border-bottom:1px dashed rgba(120,170,255,.35);
}
.footer .links a:hover{
  color:rgba(235,245,255,.95);
  border-bottom-color: rgba(0,212,255,.55);
}
.sep{opacity:.55; padding:0 6px}

.panel{
  border-radius: var(--r);
  border:1px solid rgba(120,170,255,.18);
  background: rgba(0,0,0,.18);
  padding: 16px;
  min-height: 100%;
}

.panelHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom: 12px;
}

.panelTitle{font-weight:800}
.panelSub{font-size:12px; color:var(--muted2); margin-top:4px}

.badge{
  font-family:var(--mono);
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(120,170,255,.22);
  background: rgba(255,255,255,.05);
  color:rgba(235,245,255,.72);
  white-space:nowrap;
}

.rows{display:flex; flex-direction:column; gap:10px; margin-top: 10px}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(120,170,255,.14);
  background: rgba(0,0,0,.18);
}

.rowLeft{display:flex; align-items:center; gap:12px; min-width:0}
.led{
  width:10px; height:10px;
  border-radius:999px;
  box-shadow: 0 0 0 4px rgba(0,212,255,.06);
}
.led.good{background:var(--good)}
.led.warn{background:var(--warn)}
.led.bad{background:var(--bad)}

.rowTxt{display:flex; flex-direction:column; gap:2px; min-width:0}
.rowTxt b{font-size:13px}
.rowTxt span{font-size:12px; color:var(--muted2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 34ch}

.rowVal{
  font-family:var(--mono);
  font-size:12px;
  color:rgba(235,245,255,.74);
  white-space:nowrap;
}

.meter{
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(120,170,255,.14);
  background: rgba(0,0,0,.18);
}

.meterHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:rgba(235,245,255,.76);
  margin-bottom: 10px;
}

.mono{font-family:var(--mono)}

.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(235,245,255,.08);
  border:1px solid rgba(120,170,255,.12);
  overflow:hidden;
}

.barFill{
  height:100%;
  width: 23%;
  background: linear-gradient(90deg, rgba(0,212,255,.85), rgba(47,107,255,.85));
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(0,212,255,.22);
  transition: width .4s ease;
}

.meterFoot{
  margin-top: 10px;
  font-size:12px;
  color:rgba(235,245,255,.62);
}

@media (prefers-reduced-motion: reduce){
  .noise, .scanline, .statusDot, .logoGlow {animation:none!important}
  .btn{transition:none!important}
}
