:root {
  --bg: #0a0e16; --bg2: #0d1220; --panel: rgba(22,29,45,.72); --panel2: #1b2436; --line: #27324a;
  --text: #e9eefc; --muted: #8291ad; --accent: #4fd1ff; --accent2: #7c6cff; --ok: #35e39a; --warn: #ffb648; --bad: #ff5577;
  --glow-accent: 0 0 16px rgba(79,209,255,.35); --glow-ok: 0 0 10px rgba(53,227,154,.55);
  --glow-warn: 0 0 10px rgba(255,182,72,.55); --glow-bad: 0 0 12px rgba(255,85,119,.65);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, sans-serif; }
body {
  background:
    radial-gradient(1100px 650px at 85% -10%, rgba(124,108,255,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(79,209,255,.12), transparent 60%),
    linear-gradient(var(--bg), var(--bg2));
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(79,209,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,209,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 75%);
}
button, input, select, textarea { font: inherit; color: inherit; }
#app { display: flex; height: 100vh; position: relative; z-index: 1; }

#sidebar {
  width: 246px; background: linear-gradient(180deg, rgba(17,23,38,.9), rgba(13,18,32,.9));
  backdrop-filter: blur(10px); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 10px; gap: 6px;
}
.brand-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.brand {
  font-weight: 800; font-size: 18px; padding: 4px 8px 14px; letter-spacing: .02em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------- mode toggle (light/night uslubidagi switch) */
.theme-switch {
  display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-bottom: 10px;
}
.ts-icon { font-size: 13px; line-height: 1; opacity: .6; transition: opacity .15s; }
.theme-switch.on .ts-left { opacity: .35; }
.theme-switch:not(.on) .ts-right { opacity: .35; }
.ts-track {
  width: 38px; height: 20px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line);
  position: relative; transition: background .2s, border-color .2s;
}
.ts-knob {
  position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); transition: transform .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.theme-switch.on .ts-track { background: #06130a; border-color: #1e4d2b; }
.theme-switch.on .ts-knob { transform: translateX(18px); background: #35e05a; box-shadow: 0 0 8px rgba(53,224,90,.7); }
.side-title { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 14px 8px 4px; }
#server-list { overflow: auto; flex: 1; }
#sidebar-body { flex: 1; overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.nav-item, .srv-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: 1px solid transparent;
  border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-item:hover, .srv-item:hover { background: var(--panel2); }
.nav-item.active, .srv-item.active { background: rgba(79,209,255,.08); border-color: rgba(79,209,255,.35); color: var(--accent); box-shadow: inset 0 0 14px rgba(79,209,255,.08); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--ok); box-shadow: var(--glow-ok); animation: pulse 2.2s ease-in-out infinite; }
.dot.err { background: var(--bad); box-shadow: var(--glow-bad); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.srv-item small { color: var(--muted); display: block; font-size: 11px; }
.icon-btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 7px; width: 26px; height: 26px; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }

#main { flex: 1; overflow: auto; padding: 24px 28px; position: relative; z-index: 1; }
h1 { font-size: 21px; margin: 0 0 16px; font-weight: 700; letter-spacing: .01em; }
h2 { font-size: 13px; margin: 20px 0 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.btn {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: var(--accent); box-shadow: var(--glow-accent); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #04111c; font-weight: 700; box-shadow: 0 0 18px rgba(124,108,255,.35); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); box-shadow: var(--glow-bad); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
input[type=text], input[type=password], input[type=number], select, textarea {
  background: rgba(10,14,22,.65); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-accent); }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat-card {
  display: flex; align-items: center; gap: 12px; background: var(--panel); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
}
.stat-ic { font-size: 22px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--panel2); border-radius: 10px; flex: none; }

.widget-card {
  background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; display: flex; flex-direction: column;
}
.widget-card:hover { border-color: rgba(79,209,255,.5); box-shadow: 0 0 22px rgba(79,209,255,.12); transform: translateY(-1px); }
.widget-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.widget-ic { font-size: 15px; }
.widget-head b { font-size: 13px; font-weight: 700; }
.widget-dots { color: var(--muted); font-size: 11px; letter-spacing: 2px; opacity: .6; }
.widget-body { padding: 14px 13px; font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-foot { padding: 8px 13px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 17px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s;
}
.card:hover { border-color: rgba(79,209,255,.5); box-shadow: 0 0 22px rgba(79,209,255,.12); transform: translateY(-1px); }
.card .head { display: flex; align-items: center; gap: 8px; min-height: 0; }
.card .head:not(:empty) { margin-bottom: 10px; }
.card .head b { font-size: 15px; font-weight: 700; }

.device-pic { width: 84px; height: 84px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 6px 16px rgba(79,209,255,.18)); }
.device-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.device-name { text-align: center; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 7px; }
.device-ip { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 10px; font-family: Consolas, monospace; }
.metric { margin: 9px 0; }
.metric .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.bar { height: 7px; background: rgba(255,255,255,.05); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #7ef0c4); box-shadow: var(--glow-ok); transition: width .5s ease; }
.bar > i.warn { background: linear-gradient(90deg, var(--warn), #ffd58a); box-shadow: var(--glow-warn); }
.bar > i.bad { background: linear-gradient(90deg, var(--bad), #ff8fa8); box-shadow: var(--glow-bad); }
.kv { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; gap: 8px; }
.errbox { color: var(--bad); font-size: 12px; word-break: break-word; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.status-pill.ok { background: rgba(53,227,154,.14); color: var(--ok); }
.status-pill.warn { background: rgba(255,182,72,.14); color: var(--warn); }
.status-pill.crit { background: rgba(255,85,119,.16); color: var(--bad); }
.status-pill.muted { background: rgba(255,255,255,.06); color: var(--muted); }
.status-pill.accent { background: rgba(79,209,255,.14); color: var(--accent); }

.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; border: 1px solid; cursor: default; }
.badge.warn { color: var(--warn); border-color: var(--warn); background: rgba(255,182,72,.1); box-shadow: var(--glow-warn); }
.badge.crit { color: var(--bad); border-color: var(--bad); background: rgba(255,85,119,.12); box-shadow: var(--glow-bad); animation: pulse 1.6s ease-in-out infinite; }

.alerts { display: flex; flex-direction: column; gap: 7px; }
.alert-item { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 9px; font-size: 13px; border: 1px solid; background: var(--panel); }
.alert-item.warn { border-color: rgba(255,182,72,.4); color: var(--warn); }
.alert-item.crit { border-color: rgba(255,85,119,.45); color: var(--bad); box-shadow: 0 0 14px rgba(255,85,119,.1); }
.ok-panel { color: var(--ok); border-color: rgba(53,227,154,.35); text-align: center; font-weight: 600; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; cursor: pointer; color: var(--muted); font-weight: 500; transition: color .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-color: var(--accent); text-shadow: 0 0 12px rgba(79,209,255,.5); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
td.r, th.r { text-align: right; }
.panel { background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }

#files-wrap { position: relative; }
#files-wrap.drop::after { content: "Yuklash uchun shu yerga tashlang"; position: absolute; inset: 0; background: rgba(79,209,255,.12); border: 2px dashed var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; backdrop-filter: blur(3px); }
tr.file { cursor: default; user-select: none; }
tr.file:hover { background: var(--panel2); }
tr.file.sel { background: rgba(79,209,255,.14); }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--panel2); }
.fname { overflow: hidden; text-overflow: ellipsis; max-width: 520px; }

:root { --term-size: 13px; }
.log {
  background: #0b0d0a; border: 1px solid var(--line); border-radius: 10px; padding: 11px;
  font: var(--term-size)/1.55 Consolas, 'Cascadia Mono', 'Courier New', monospace; color: #cfd8c5;
  white-space: pre-wrap; word-break: break-all; min-height: 160px; max-height: 420px; overflow: auto;
  box-shadow: inset 0 0 24px rgba(0,0,0,.5);
}
.log.term-tall { max-height: none; height: calc(100vh - 300px); }
.zoom-ctrl .zoom-btn { padding: 5px 9px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }

.deploy-bar { height: 10px; background: rgba(255,255,255,.05); border-radius: 6px; overflow: hidden; position: relative; }
.deploy-bar > i {
  display: block; height: 100%; border-radius: 6px; transition: width .4s ease;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; box-shadow: 0 0 14px rgba(79,209,255,.5);
}
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }

#modal-root:not(:empty) { position: fixed; inset: 0; background: rgba(4,6,12,.65); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal { background: #121a2b; border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: min(560px, 92vw); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(79,209,255,.06); }
.modal.wide { width: min(900px, 94vw); }
.modal h3 { margin: 0 0 14px; }
.modal textarea.editor { height: 55vh; font: 13px/1.5 Consolas, monospace; white-space: pre; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
#toast { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.toast { background: #141d30; border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 9px 14px; border-radius: 8px; max-width: 420px; word-break: break-word; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.err { border-left-color: var(--bad); }
.progress { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; box-shadow: var(--glow-accent); }

/* ---------------------------------------------------------------- splash */
#splash {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(124,108,255,.14), transparent 65%),
    linear-gradient(var(--bg), var(--bg2));
  animation: splashOut .55s ease forwards; animation-delay: 1.9s;
}
.splash-ring {
  position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 1px solid rgba(79,209,255,.25);
  box-shadow: 0 0 40px rgba(79,209,255,.12) inset; animation: ringPulse 1.8s ease-in-out infinite;
}
.splash-ring::before {
  content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 1px dashed rgba(124,108,255,.18); animation: ringSpin 10s linear infinite;
}
.splash-logo { width: 72px; height: 72px; filter: drop-shadow(0 0 22px rgba(79,209,255,.65)); animation: logoIn .7s cubic-bezier(.2,.9,.25,1.2) both; position: relative; z-index: 1; }
.splash-title {
  margin-top: 26px; font-size: 26px; font-weight: 800; letter-spacing: .14em; color: var(--text);
  animation: fadeUp .6s ease .35s both;
}
.splash-title span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-sub { margin-top: 6px; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; animation: fadeUp .6s ease .5s both; }
.splash-bar { margin-top: 30px; width: 180px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; animation: fadeUp .6s ease .65s both; }
.splash-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); box-shadow: var(--glow-accent); animation: barFill 1.3s ease .7s forwards; }

@keyframes logoIn { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes ringPulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes barFill { to { width: 100%; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

.hidden { display: none !important; }

/* ------------------------------------------------------------- lock screen */
#lock-screen {
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(900px 600px at 50% 40%, rgba(124,108,255,.14), transparent 65%), linear-gradient(var(--bg), var(--bg2));
}
#lock-screen .splash-logo { animation: logoIn .5s ease both; }
#lock-screen .splash-title { margin-top: 20px; animation: fadeUp .5s ease .1s both; }
.lock-form { margin-top: 26px; width: 240px; display: flex; flex-direction: column; gap: 10px; animation: fadeUp .5s ease .2s both; }
.lock-form input { text-align: center; letter-spacing: .1em; }
.lock-form .btn { width: 100%; }
.lock-form .errbox { text-align: center; font-size: 12px; min-height: 16px; }

/* ================================================================
   HACKING MODE — Matrix-uslub yashil-qora terminal mavzusi
   ================================================================ */
body.hacking-mode {
  --bg: #050b06; --bg2: #061008; --panel: #071a0c; --panel2: #081f0f;
  --line: #113a1d; --text: #4fff7f; --muted: #1f8a46;
  --accent: #35e05a; --accent2: #1ee88f; --ok: #35e05a; --warn: #e8d93a; --bad: #ff4d4d;
  background: #030603 !important; color: var(--text) !important;
  font-family: 'Consolas','SFMono-Regular',Menlo,'Courier New',monospace !important;
}
body.hacking-mode::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 8000;
  background: repeating-linear-gradient(to bottom, rgba(53,224,90,.035) 0px, rgba(53,224,90,.035) 1px, transparent 2px, transparent 3px);
  mix-blend-mode: overlay;
}
body.hacking-mode #sidebar,
body.hacking-mode #main,
body.hacking-mode .widget-card,
body.hacking-mode .stat-card,
body.hacking-mode .panel,
body.hacking-mode .card,
body.hacking-mode .modal,
body.hacking-mode table,
body.hacking-mode input,
body.hacking-mode textarea,
body.hacking-mode select,
body.hacking-mode .log,
body.hacking-mode .editor,
body.hacking-mode .btn {
  background: #050f08 !important; color: var(--text) !important;
  border-color: var(--line) !important;
  text-shadow: 0 0 6px rgba(53,224,90,.35);
}
body.hacking-mode .brand { background: linear-gradient(90deg, #35e05a, #6dffa0) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; text-shadow: none; }
body.hacking-mode h1, body.hacking-mode h2, body.hacking-mode h3 {
  color: #6dffa0 !important; text-shadow: 0 0 10px rgba(53,224,90,.6);
}
body.hacking-mode .nav-item.active, body.hacking-mode .srv-item.active, body.hacking-mode .btn.primary {
  color: #061008 !important; background: var(--accent) !important; border-color: var(--accent) !important;
  box-shadow: 0 0 14px rgba(53,224,90,.5);
}
body.hacking-mode .nav-item:hover, body.hacking-mode .srv-item:hover { background: #0c2414 !important; }
body.hacking-mode .status-pill.ok, body.hacking-mode .status-pill.accent { box-shadow: 0 0 10px rgba(53,224,90,.5); }
body.hacking-mode .status-pill.crit, body.hacking-mode .status-pill.bad { box-shadow: 0 0 10px rgba(255,77,77,.5); }
body.hacking-mode .muted { color: var(--muted) !important; }
body.hacking-mode ::selection { background: rgba(53,224,90,.35); color: #eafff0; }
body.hacking-mode #splash,
body.hacking-mode #lock-screen {
  background: radial-gradient(900px 600px at 50% 40%, rgba(53,224,90,.14), transparent 65%), #030603 !important;
}
body.hacking-mode .splash-title { color: #6dffa0; text-shadow: 0 0 16px rgba(53,224,90,.7); }
body.hacking-mode .device-pic img { filter: grayscale(1) sepia(1) hue-rotate(60deg) saturate(4) brightness(.8); }

/* ---- hujum monitori */
#attack-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 13px; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
#attack-banner.crit { background: linear-gradient(90deg, #b3122f, #ff3355); animation: pulse 1.4s ease-in-out infinite; }
#attack-banner.warn { background: linear-gradient(90deg, #8a5a00, #d08a00); }
#attack-banner .ab-ic { font-size: 18px; }
#attack-banner .ab-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#attack-banner .btn { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.4); color: #fff; }
.toast.attack { cursor: pointer; border-left-color: var(--warn); }
.toast.attack.err { border-left-color: var(--bad); box-shadow: var(--glow-bad), 0 8px 24px rgba(0,0,0,.4); }
.intr-hero { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 12px 0 16px; }
.intr-hero .ih-title { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.intr-hero .ih-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.intr-hero.ok { border-color: rgba(53,227,154,.4); background: rgba(53,227,154,.06); } .intr-hero.ok .ih-title { color: var(--ok); }
.intr-hero.warn { border-color: rgba(255,182,72,.45); background: rgba(255,182,72,.07); } .intr-hero.warn .ih-title { color: var(--warn); }
.intr-hero.crit { border-color: var(--bad); background: rgba(255,85,119,.1); box-shadow: var(--glow-bad); } .intr-hero.crit .ih-title { color: var(--bad); animation: pulse 1.2s ease-in-out infinite; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.subtab { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 20px; font-size: 12px; cursor: pointer; }
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--accent); border-color: var(--accent); background: rgba(79,209,255,.08); }
.cc { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.nav-badge { float: right; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 7px; animation: pulse 1.4s ease-in-out infinite; }
.intr-check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.intr-check:last-of-type { border-bottom: 0; }
.intr-check .okc { color: var(--ok); font-weight: 800; } .intr-check .noc { color: var(--bad); font-weight: 800; }
body.has-attack-banner #app { padding-top: 46px; box-sizing: border-box; }
#attack-banner { min-height: 46px; box-sizing: border-box; }
