:root {
  color-scheme: dark;
  --bg: #050815;
  --panel: rgba(13, 21, 39, .72);
  --panel-strong: rgba(10, 17, 32, .88);
  --glass: rgba(255, 255, 255, .075);
  --text: #eef5ff;
  --muted: #93a4bb;
  --soft: #66758d;
  --line: rgba(170, 189, 220, .16);
  --accent: #52d6ff;
  --accent-2: #9d7cff;
  --accent-3: #6df2c5;
  --green: #34d399;
  --yellow: #f7c948;
  --red: #ff647c;
  --shadow: rgba(0, 0, 0, .42);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -8%, rgba(82, 214, 255, .22), transparent 28rem),
    radial-gradient(circle at 86% 2%, rgba(157, 124, 255, .20), transparent 32rem),
    linear-gradient(135deg, #050815, #071021 56%, #080716);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.035), transparent);
  transform: translateX(-100%);
  animation: scan 9s ease-in-out infinite;
}
.hidden { display: none !important; }
.bg-orb { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(24px); opacity: .72; mix-blend-mode: screen; }
.orb-a { width: 22rem; height: 22rem; left: -7rem; top: 12rem; background: rgba(82,214,255,.18); animation: floatA 12s ease-in-out infinite; }
.orb-b { width: 28rem; height: 28rem; right: -10rem; top: 0; background: rgba(157,124,255,.16); animation: floatB 16s ease-in-out infinite; }
.orb-c { width: 20rem; height: 20rem; left: 45%; bottom: -10rem; background: rgba(109,242,197,.12); animation: floatA 14s ease-in-out infinite reverse; }
.grid-noise { position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at center, black, transparent 82%); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card, .panel, .metric-card, .glass {
  background: linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
  border: 1px solid var(--line);
  box-shadow: 0 24px 100px var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(130%);
}
.login-card { width: min(470px, 100%); padding: 38px; border-radius: 30px; position: relative; overflow: hidden; }
.login-card::after { content:""; position:absolute; width: 180px; height: 180px; right:-70px; top:-70px; background: radial-gradient(circle, rgba(82,214,255,.24), transparent 70%); }
.brand, .eyebrow { color: var(--accent); letter-spacing: .15em; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; gap: 10px; }
h1, h2, h3, p { margin: 0; }
.login-card h1 { margin-top: 16px; font-size: clamp(32px, 5vw, 44px); letter-spacing: -.06em; }
.login-card p { margin: 14px 0 26px; color: var(--muted); line-height: 1.75; }
form { display: grid; gap: 12px; }
input, button { border: 0; border-radius: 16px; padding: 15px 17px; font: inherit; }
input { color: var(--text); background: rgba(3, 8, 18, .72); border: 1px solid var(--line); outline: none; transition: border .2s, box-shadow .2s; }
input:focus { border-color: rgba(82,214,255,.75); box-shadow: 0 0 0 4px rgba(82,214,255,.12); }
button { cursor: pointer; color: #04101f; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent-3)); transition: transform .2s, filter .2s; }
button:hover { transform: translateY(-1px); filter: brightness(1.07); }
button.ghost { color: var(--text); background: rgba(255,255,255,.075); border: 1px solid var(--line); }
.error { min-height: 20px; margin-top: 14px; color: var(--red); }
.shell { padding: 30px; max-width: 1840px; margin: 0 auto; position: relative; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) auto; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.hero-copy { padding: 28px 0; }
.hero h1 { margin: 10px 0 10px; font-size: clamp(36px, 5vw, 76px); line-height: .96; letter-spacing: -.07em; }
.hero h1 em { display: block; font-style: normal; font-size: clamp(18px, 2vw, 28px); color: var(--muted); letter-spacing: -.02em; margin-top: 10px; font-weight: 700; }
#subline { color: var(--muted); line-height: 1.7; }
.hero-health { border-radius: 28px; padding: 22px; display: flex; gap: 18px; align-items: center; }
.hero-health strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.hero-health p { color: var(--muted); margin-top: 7px; line-height: 1.5; }
.top-actions { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-end; }
.status { border-radius: 999px; padding: 11px 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; font-weight: 800; }
.status.online { color: var(--green); box-shadow: 0 0 28px rgba(52,211,153,.12); }
.status.offline { color: var(--red); }
.pulse-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(109,242,197,.6); animation: pulse 1.8s infinite; }
.ring { --p: 0; width: 108px; height: 108px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-3) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.ring::after { content:""; position:absolute; inset: 9px; border-radius: inherit; background: #081020; box-shadow: inset 0 0 22px rgba(0,0,0,.45); }
.ring span { position: relative; z-index: 1; font-size: 28px; font-weight: 900; letter-spacing: -.05em; }
.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.metric-card, .panel { border-radius: 26px; overflow: hidden; position: relative; }
.metric-card { min-height: 186px; padding: 20px; transition: transform .25s ease, border-color .25s ease; }
.metric-card:hover, .panel:hover { border-color: rgba(82,214,255,.28); }
.metric-card:hover { transform: translateY(-3px); }
.metric-card::before, .panel::before { content:""; position:absolute; inset: 0; pointer-events:none; background: radial-gradient(circle at 24% 0%, rgba(82,214,255,.12), transparent 34%), linear-gradient(120deg, rgba(255,255,255,.07), transparent 34%); opacity: .75; }
.card-icon { float: right; width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.075); color: var(--accent); font-weight: 900; }
.label { color: var(--muted); font-weight: 900; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.value { font-size: clamp(38px, 4vw, 58px); font-weight: 900; letter-spacing: -.07em; margin-top: 18px; }
.value.small { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.04em; line-height: 1.25; }
.value small { font-size: 19px; color: var(--muted); }
.hint { color: var(--muted); margin-top: 11px; font-size: 13px; line-height: 1.5; }
.bar { height: 9px; background: rgba(255,255,255,.075); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--accent), var(--accent-2)); transition: width .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 18px rgba(82,214,255,.36); }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.panel { padding: 20px; min-height: 100px; }
.panel > * { position: relative; z-index: 1; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.section-head h2 { font-size: 19px; letter-spacing: -.03em; }
.section-head p, .section-head span { color: var(--muted); font-size: 12px; margin-top: 4px; }
canvas { width: 100%; height: 360px; display: block; border-radius: 18px; }
.info-list { display: grid; gap: 10px; }
.info-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.info-item strong { color: var(--text); text-align: right; word-break: break-word; }
.core-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 10px; }
.core { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.055); border: 1px solid var(--line); }
.core b { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.disk-list { display: grid; gap: 13px; max-height: 360px; overflow: auto; padding-right: 4px; }
.disk-item { padding: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.14); border-radius: 18px; }
.disk-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 850; }
.disk-sub { margin-top: 8px; color: var(--muted); font-size: 12px; word-break: break-all; }
.table-wrap { max-height: 560px; overflow: auto; border-radius: 16px; border: 1px solid var(--line); }
.table-wrap.compact { max-height: 340px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; position: sticky; top: 0; background: rgba(7, 13, 25, .96); backdrop-filter: blur(12px); z-index: 2; }
td.cmd { max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display:inline-flex; align-items:center; border-radius:999px; padding: 3px 8px; background: rgba(82,214,255,.10); color: #b8ecff; border: 1px solid rgba(82,214,255,.18); font-size: 12px; font-weight: 800; }
.task-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.task-columns.security { grid-template-columns: 1fr; }
.wide-col { grid-column: 1 / -1; }
h3 { color: var(--muted); font-size: 13px; margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
ul { list-style: none; margin: 0; padding: 0; max-height: 175px; overflow: auto; }
li { color: #d6e1f0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; word-break: break-word; }
.reveal { animation: reveal .7s cubic-bezier(.2,.8,.2,1) both; }
.delay-1 { animation-delay: .08s; } .delay-2 { animation-delay: .16s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(109,242,197,.55); } 75%,100% { box-shadow: 0 0 0 13px rgba(109,242,197,0); } }
@keyframes floatA { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(28px,-18px,0) scale(1.08); } }
@keyframes floatB { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-22px,26px,0) scale(1.05); } }
@keyframes scan { 0%, 35% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
@media (max-width: 1320px) { .hero { grid-template-columns: 1fr; } .top-actions { justify-content: flex-start; } .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid > * { grid-column: 1 / -1; } }
@media (max-width: 720px) { .shell { padding: 18px; } .quick-grid, .task-columns { grid-template-columns: 1fr; } .hero-copy { padding-top: 14px; } .hero-health { flex-direction: column; align-items: flex-start; } .value { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
