/* VPS Panel v3 — elegant + bright + animated · by Ofir Baranes 2026 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brighter palette — deep blue-violet instead of plain black */
  --bg: #0d0e1f;
  --bg-2: #131433;
  --bg-3: #1a1b3e;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hi: rgba(255, 255, 255, 0.09);
  --surface-hi2: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #f5f5fa;
  --text-dim: #a5a8c5;
  --text-faint: #6d70a0;

  --accent: #a78bfa;
  --accent-2: #60a5fa;
  --accent-3: #22d3ee;
  --accent-glow: rgba(167, 139, 250, 0.35);
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --green: #4ade80;
  --orange: #fb923c;
  --red: #f87171;
  --pink: #f472b6;
  --indigo: #818cf8;

  --grad-1: linear-gradient(135deg, #a78bfa, #60a5fa);
  --grad-2: linear-gradient(135deg, #22d3ee, #818cf8);
  --grad-3: linear-gradient(135deg, #f472b6, #a78bfa);
  --grad-4: linear-gradient(135deg, #4ade80, #22d3ee);
  --grad-warm: linear-gradient(135deg, #fb923c, #f472b6);

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-1: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-2: 0 12px 28px rgba(0,0,0,0.35);
  --shadow-3: 0 24px 56px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body {
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(167,139,250,0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(96,165,250,0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(34,211,238,0.08), transparent 60%);
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

code, pre, kbd, .mono { font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace; font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── LOGIN ──────────────────────────────────────────────────────────── */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 20px;
}
.login-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 25% 30%, rgba(167,139,250,0.30), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(96,165,250,0.25), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(244,114,182,0.15), transparent 50%);
  filter: blur(60px);
  animation: float 18s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-30px) scale(1.05); }
  66%     { transform: translate(-30px,20px) scale(0.98); }
}
.login-card {
  max-width: 420px; width: 100%;
  background: rgba(20, 21, 50, 0.60);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border-hi);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
  animation: card-in 0.6s var(--spring);
}
.login-card::before {
  content: '';
  position: absolute; inset: -1px;
  background: var(--grad-1);
  z-index: -1;
  border-radius: 28px;
  opacity: 0.5;
  filter: blur(20px);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 0.6; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.logo-ring {
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--blue), var(--cyan), var(--pink), var(--accent));
  padding: 3px;
  animation: spin 8s linear infinite;
}
.logo-inner {
  background: var(--bg-2);
  width: 100%; height: 100%;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 40px;
  animation: spin 8s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-card h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.3px;
  background: var(--grad-1); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.login-card .hint {
  color: var(--text-dim); font-size: 13px; margin-top: 6px; margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
}
.input-wrap { position: relative; margin-bottom: 14px; }
.input-wrap input {
  width: 100%; padding: 16px 22px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  color: var(--text); border-radius: 14px;
  font-family: inherit; font-size: 15px; text-align: center;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.14);
}
.login-card button {
  width: 100%; padding: 15px;
  border: none; color: #fff;
  background: var(--grad-1);
  font-weight: 700; font-family: inherit; font-size: 15px;
  border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: 0 10px 30px var(--accent-glow);
}
.login-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-glow);
}
.login-card button:active { transform: scale(0.97); }
.login-card button .arrow { transition: transform .25s var(--spring); display: inline-block; }
.login-card button:hover .arrow { transform: translateX(-6px); }
.login-card footer { margin-top: 26px; font-size: 11px; color: var(--text-faint); letter-spacing: 0.5px; }

/* ─── LAYOUT ─────────────────────────────────────────────────────────── */
body:not(.login-body) { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 280px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(19,20,51,0.85) 0%, rgba(13,14,31,0.95) 100%);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 50;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.sidebar-brand::before {
  content: ''; position: absolute; bottom: -1px; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.sb-logo {
  font-size: 30px;
  filter: drop-shadow(0 0 14px var(--accent-glow));
  animation: logo-float 4s ease-in-out infinite;
}
@keyframes logo-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-2px); }
}
.sb-title {
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px;
  background: var(--grad-1); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.sb-sub { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px; }
.sb-close {
  display: none; margin-right: auto;
  background: none; border: none; color: var(--text-dim);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px;
}

.sidebar-search { padding: 16px 18px; }
.search-hint {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px; color: var(--text-dim); cursor: pointer;
  font-family: inherit; font-weight: 500;
  transition: all .2s;
}
.search-hint:hover {
  background: var(--surface-hi);
  color: var(--text);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
.search-hint span {
  margin-right: auto;
  padding: 2px 7px;
  background: var(--surface-hi2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 8px 14px 12px;
  scrollbar-width: thin;
}

.nav-group { margin-bottom: 18px; }
.nav-heading {
  padding: 10px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 1.3px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px;
  background: none; border: none; color: var(--text-dim);
  border-radius: 10px;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-align: right;
  transition: all .2s var(--ease);
  position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; transition: transform .2s; }
.nav-item:hover {
  background: var(--surface);
  color: var(--text);
}
.nav-item:hover i { transform: scale(1.15); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(96,165,250,0.10));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(167,139,250,0.25);
}
.nav-item.active::before {
  content: '';
  position: absolute; right: -14px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 2px;
  background: var(--grad-1);
  box-shadow: 0 0 10px var(--accent-glow);
}
.nav-item.active i { color: var(--accent); }
.nav-item .dot {
  margin-left: auto; margin-right: 0;
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.health-badge {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}
.health-badge:hover { background: var(--surface-hi); border-color: var(--border-hi); transform: translateY(-1px); }
.health-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  position: relative;
}
.health-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.health-badge.warn .health-dot, .health-badge.warn .health-dot::after { background: var(--orange); box-shadow: 0 0 16px var(--orange); }
.health-badge.err  .health-dot, .health-badge.err  .health-dot::after { background: var(--red);    box-shadow: 0 0 16px var(--red); }
.health-text { display: flex; flex-direction: column; line-height: 1.1; }
.health-score { font-size: 15px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.health-label { font-size: 10px; color: var(--text-dim); letter-spacing: 0.3px; }
.logout-btn {
  width: 38px; height: 38px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; color: var(--text);
  cursor: pointer; font-size: 13px;
  transition: all .2s var(--spring);
}
.logout-btn:hover {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.3);
  color: var(--red);
  transform: rotate(180deg);
}

/* ─── MAIN ───────────────────────────────────────────────────────────── */
.main { flex: 1; min-width: 0; padding-bottom: 60px; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 14, 31, 0.70);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.menu-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 18px; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--surface); }
.breadcrumbs { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.breadcrumbs b { color: var(--text); font-weight: 700; }
.topbar-right { margin-right: auto; display: flex; gap: 8px; }
.topbar-btn {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 13px;
  position: relative;
  transition: all .2s var(--spring);
}
.topbar-btn:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
#refresh-all:hover i { animation: spin 0.6s; }
.notif-dot {
  position: absolute; top: 8px; left: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ─── RIBBON ─────────────────────────────────────────────────────────── */
.ribbon {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  padding: 20px 28px;
}
.ribbon-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  position: relative;
  transition: all .25s;
  overflow: hidden;
}
.ribbon-cell::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60%; height: 2px;
  background: var(--grad-1);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.ribbon-cell:hover { background: var(--surface-hi); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ribbon-cell:hover::before { transform: scaleX(1); }
.r-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 6px;
}
.r-head i { font-size: 11px; color: var(--accent); }
.r-val {
  font-size: 23px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, var(--text), var(--text-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.r-spark { display: block; width: 100% !important; height: 34px !important; margin-top: 6px; }
.r-progress {
  margin-top: 12px;
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.r-progress > div {
  height: 100%;
  background: var(--grad-1);
  border-radius: 3px;
  transition: width .5s var(--ease-out);
  box-shadow: 0 0 12px var(--accent-glow);
}
.ribbon-cell.warn .r-progress > div { background: var(--grad-warm); box-shadow: 0 0 12px rgba(251,146,60,0.4); }
.ribbon-cell.err  .r-progress > div { background: linear-gradient(90deg, var(--red), #dc2626); box-shadow: 0 0 12px rgba(248,113,113,0.5); }
.ribbon-cell.warn { border-color: rgba(251,146,60,0.3); }
.ribbon-cell.err  { border-color: rgba(248,113,113,0.4); }

/* ─── VIEW ───────────────────────────────────────────────────────────── */
.view-container { padding: 0 28px 20px; max-width: 1500px; }
.view { animation: view-in .35s var(--ease-out); }
@keyframes view-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.view h1 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text), var(--text-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.view .subtitle { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
.view h2 {
  font-size: 19px; font-weight: 700; margin: 26px 0 12px;
  letter-spacing: -0.2px;
  display: flex; align-items: center; gap: 10px;
}
.view h3 { font-size: 14.5px; font-weight: 700; color: var(--text); }

/* ─── CARDS ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  animation: card-in 0.4s var(--ease-out);
}
.card:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.card-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: 14px; font-weight: 700;
}
.card-title i { color: var(--accent); font-size: 15px; }
.card-title .chip {
  margin-right: auto; padding: 3px 9px;
  background: var(--surface-hi2);
  border: 1px solid var(--border);
  border-radius: 999px; font-size: 10.5px;
  color: var(--text-dim); font-weight: 600;
  letter-spacing: 0.5px;
}

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Stagger card animations */
.grid > * { animation: card-in 0.4s var(--ease-out) backwards; }
.grid > *:nth-child(1) { animation-delay: 0.05s; }
.grid > *:nth-child(2) { animation-delay: 0.1s; }
.grid > *:nth-child(3) { animation-delay: 0.15s; }
.grid > *:nth-child(4) { animation-delay: 0.2s; }
.grid > *:nth-child(5) { animation-delay: 0.25s; }
.grid > *:nth-child(6) { animation-delay: 0.3s; }
.grid > *:nth-child(n+7) { animation-delay: 0.35s; }

/* ─── STAT CARDS ─────────────────────────────────────────────────────── */
.stat {
  display: flex; align-items: center; gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  transition: all .25s;
}
.stat::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--grad-1);
  border-radius: 0 0 0 2px;
}
.stat.blue::before  { background: var(--grad-2); }
.stat.cyan::before  { background: var(--grad-4); }
.stat.green::before { background: linear-gradient(180deg, var(--green), #22d3ee); }
.stat.orange::before{ background: var(--grad-warm); }
.stat::after {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(30px); pointer-events: none;
  opacity: 0.5;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.stat .stat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px;
  background: rgba(167,139,250,0.15); color: var(--accent);
  position: relative; z-index: 1;
}
.stat.blue .stat-icon  { background: rgba(96,165,250,0.15);  color: var(--blue); }
.stat.cyan .stat-icon  { background: rgba(34,211,238,0.15);  color: var(--cyan); }
.stat.green .stat-icon { background: rgba(74,222,128,0.15);  color: var(--green); }
.stat.orange .stat-icon{ background: rgba(251,146,60,0.15);  color: var(--orange); }
.stat-val {
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.6px;
  font-family: 'JetBrains Mono', monospace;
  position: relative; z-index: 1;
}
.stat-lbl { color: var(--text-dim); font-size: 12px; margin-top: 2px; font-weight: 500; }

/* ─── KV ─────────────────────────────────────────────────────────────── */
.kv { display: flex; flex-direction: column; gap: 7px; }
.kv-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 13px;
  background: rgba(0,0,0,0.2);
  border: 1px solid transparent;
  border-radius: 10px; font-size: 13px;
  transition: all .15s;
}
.kv-row:hover {
  border-color: var(--border);
  background: rgba(0,0,0,0.3);
  transform: translateX(-3px);
}
.kv-key { color: var(--text-dim); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.kv-val {
  font-weight: 600; font-family: 'JetBrains Mono', monospace;
  word-break: break-word; text-align: left;
  max-width: 65%;
}
.kv-val small { color: var(--text-faint); }

/* ─── TABLES ─────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border); }
th {
  font-weight: 600; color: var(--text-dim); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px;
  background: rgba(0,0,0,0.2);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  color: var(--text);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--spring);
  text-decoration: none;
}
.btn:hover {
  background: var(--surface-hi2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn:active { transform: scale(0.96); }
.btn.small { padding: 6px 10px; font-size: 11.5px; border-radius: 8px; }
.btn.danger {
  color: #fecaca;
  border-color: rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.08);
}
.btn.danger:hover { background: rgba(248,113,113,0.18); color: #fff; }
.btn.primary {
  background: var(--grad-1);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn.primary:hover { box-shadow: 0 8px 22px var(--accent-glow); }
.btn.ghost {
  background: transparent;
  border-color: var(--border);
}
.btn.ghost:hover { border-color: var(--border-hi); background: var(--surface); }

/* ─── BADGES ─────────────────────────────────────────────────────────── */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 5px; }
.dot.ok  { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.dot.warn{ background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.dot.err { background: var(--red);    box-shadow: 0 0 8px var(--red); }
.dot.off { background: #555; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  border-radius: 999px; letter-spacing: 0.3px;
  background: var(--surface-hi2);
}
.badge.green  { background: rgba(74,222,128,0.14);   color: var(--green); border: 1px solid rgba(74,222,128,0.25); }
.badge.orange { background: rgba(251,146,60,0.14);   color: var(--orange); border: 1px solid rgba(251,146,60,0.25); }
.badge.red    { background: rgba(248,113,113,0.14);  color: var(--red); border: 1px solid rgba(248,113,113,0.25); }
.badge.blue   { background: rgba(96,165,250,0.14);   color: var(--blue); border: 1px solid rgba(96,165,250,0.25); }
.badge.cyan   { background: rgba(34,211,238,0.14);   color: var(--cyan); border: 1px solid rgba(34,211,238,0.25); }
.badge.purple { background: rgba(167,139,250,0.14);  color: var(--accent); border: 1px solid rgba(167,139,250,0.25); }

/* ─── DOCKER/SERVICE CARDS ───────────────────────────────────────────── */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: all .25s;
  position: relative; overflow: hidden;
  animation: card-in 0.4s var(--ease-out) backwards;
}
.tool-card::before {
  content: ''; position: absolute; inset: -1px;
  padding: 1px; border-radius: inherit;
  background: var(--grad-1); opacity: 0;
  transition: opacity .25s;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.tool-card:hover { background: var(--surface-hi); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tool-card:hover::before { opacity: 1; }
.tc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.tc-title { font-weight: 700; font-size: 15px; }
.tc-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-dim);
  word-break: break-all;
}
.tc-desc { font-size: 13px; color: var(--text); margin-top: 8px; line-height: 1.55; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ─── TOOL HERO ─────────────────────────────────────────────────────── */
.tool-hero {
  background: linear-gradient(135deg, var(--surface), var(--surface-hi));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.tool-hero::before {
  content: ''; position: absolute; top: -50%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(50px); pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.4; transform: translate(0,0); }
  50%      { opacity: 0.7; transform: translate(40px,-20px); }
}
.tool-hero .hero-head { display: flex; align-items: center; gap: 18px; position: relative; }
.tool-hero .hero-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; font-size: 28px;
  background: rgba(167,139,250,0.15); color: var(--accent);
}
.tool-hero h1 {
  margin: 0; font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tool-hero .hero-tag {
  font-size: 12px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}
.tool-hero .hero-desc {
  margin-top: 18px; font-size: 14.5px; color: var(--text);
  line-height: 1.7; position: relative; max-width: 800px;
}
.tool-hero .hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: relative; }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin: 16px 0;
}
.info-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
  transition: all .2s;
}
.info-tile:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.info-tile .it-lbl {
  font-size: 10.5px; color: var(--text-dim);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 5px;
}
.info-tile .it-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; word-break: break-all;
}
.info-tile .it-val a { color: var(--blue); text-decoration: none; }
.info-tile .it-val a:hover { text-decoration: underline; }

.guide-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 26px;
  margin-bottom: 14px;
  transition: all .2s;
  animation: card-in 0.4s var(--ease-out) backwards;
}
.guide-card:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
}
.guide-card h3 {
  font-size: 16px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.guide-card h3 i { color: var(--accent); font-size: 16px; }
.guide-card p { margin-bottom: 10px; color: var(--text); line-height: 1.7; }
.guide-card ul, .guide-card ol { margin: 10px 18px; }
.guide-card li { margin-bottom: 7px; color: var(--text); line-height: 1.65; }
.guide-card code { padding: 2px 7px; background: rgba(0,0,0,0.3); border-radius: 5px; font-size: 12px; color: var(--cyan); border: 1px solid var(--border); }
.guide-card .code-block {
  margin: 14px 0;
  background: #0a0a15;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.guide-card .code-block pre {
  padding: 16px 18px; padding-top: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.6;
  color: #e8e8ee;
  overflow-x: auto; direction: ltr;
}
.guide-card .code-block code { background: none; padding: 0; color: inherit; border: none; }
.guide-card .code-block::before {
  content: attr(data-lang);
  position: absolute; top: 10px; left: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--text-faint); text-transform: uppercase;
}
.guide-card .copy-code {
  position: absolute; top: 8px; right: 10px;
  padding: 4px 10px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  border-radius: 6px;
  font-size: 11px; cursor: pointer;
  font-family: inherit;
}
.guide-card .copy-code:hover { color: var(--text); background: var(--surface-hi2); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  padding: 3px 11px;
  background: rgba(167,139,250,0.10);
  border: 1px solid rgba(167,139,250,0.25);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  transition: all .15s;
}
.tag:hover { background: rgba(167,139,250,0.18); }

/* ─── DISK BARS ──────────────────────────────────────────────────────── */
.disk-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden; margin-top: 8px;
}
.disk-bar > div {
  height: 100%;
  background: var(--grad-1);
  border-radius: 4px;
  transition: width .8s var(--ease-out);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: bar-fill 0.8s var(--ease-out);
}
@keyframes bar-fill { from { width: 0 !important; } }

/* ─── LOG VIEW ──────────────────────────────────────────────────────── */
.log-view {
  background: #0a0a15;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; line-height: 1.6;
  color: #c5d0e8; white-space: pre;
  overflow: auto; max-height: 620px;
  direction: ltr; text-align: left;
}
.logs-controls {
  display: flex; gap: 10px; margin-bottom: 14px;
  align-items: center; flex-wrap: wrap;
}
.logs-controls select, .logs-controls input {
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 11px;
  font-family: inherit; font-size: 13px;
  transition: border-color .2s;
}
.logs-controls select:focus, .logs-controls input:focus {
  outline: none; border-color: var(--accent);
}

.search-input {
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--r-md);
  font-family: inherit; font-size: 14px;
  margin-bottom: 14px;
  transition: all .2s;
}
.search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12);
}

/* ─── ACTION TILES ───────────────────────────────────────────────────── */
.action-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text); font-family: inherit;
  cursor: pointer; text-align: center;
  transition: all .3s var(--spring);
  position: relative; overflow: hidden;
  --tile-color: var(--accent);
}
.action-tile:hover {
  transform: translateY(-4px);
  background: var(--surface-hi);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-2);
}
.action-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--tile-color);
  transform: scaleY(0); transform-origin: top;
  transition: transform .25s;
}
.action-tile:hover::before { transform: scaleY(1); }
.action-tile::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.05), transparent 40%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.action-tile:hover::after { opacity: 1; }
.action-tile i { font-size: 30px; color: var(--tile-color); margin-bottom: 2px; transition: transform .3s var(--spring); }
.action-tile:hover i { transform: scale(1.15) rotate(-5deg); }
.action-tile .at-title { font-weight: 700; font-size: 14px; }
.action-tile .at-desc { font-size: 11.5px; color: var(--text-dim); font-weight: 400; }

.action-result {
  margin-top: 20px; padding: 16px 18px;
  background: #0a0a15; border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all;
  direction: ltr; text-align: left;
  color: #c5d0e8;
  max-height: 320px; overflow: auto;
  display: none;
  animation: view-in 0.3s var(--ease-out);
}
.action-result.show { display: block; }

/* ─── COMMAND PALETTE ────────────────────────────────────────────────── */
.palette {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.palette-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(10px);
}
.palette-card {
  position: relative;
  width: min(680px, 92vw);
  background: rgba(19,20,51,0.95);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: palette-in .25s var(--spring);
}
@keyframes palette-in {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.palette-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.palette-head i { color: var(--text-dim); font-size: 15px; }
.palette-head input {
  flex: 1; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 15.5px; outline: none;
}
.palette-head kbd {
  padding: 4px 10px; background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  border-radius: 6px; font-size: 11px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.palette-list { max-height: 60vh; overflow-y: auto; padding: 8px; }
.palette-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 16px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  transition: all .12s;
}
.palette-item i { color: var(--text-dim); font-size: 14px; width: 20px; text-align: center; }
.palette-item small { margin-right: auto; color: var(--text-faint); font-size: 11px; }
.palette-item:hover, .palette-item.active {
  background: var(--surface-hi);
  transform: translateX(-4px);
}
.palette-item.active i { color: var(--accent); }
.palette-section-heading {
  padding: 12px 16px 4px;
  font-size: 10.5px; color: var(--text-faint);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
}

/* ─── DRAWER ─────────────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.drawer-card {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(440px, 92vw);
  background: rgba(19,20,51,0.95);
  backdrop-filter: blur(40px);
  border-left: 1px solid var(--border-hi);
  animation: drawer-in .3s var(--ease-out);
}
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.drawer-head button {
  background: none; border: none; color: var(--text-dim);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  transition: all .2s;
}
.drawer-head button:hover { color: var(--text); background: var(--surface); }
.drawer-body { padding: 20px 24px; overflow-y: auto; max-height: calc(100vh - 64px); }

.alert {
  display: flex; align-items: start; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
  animation: card-in 0.3s var(--ease-out);
}
.alert i { font-size: 15px; padding-top: 2px; }
.alert.warn i { color: var(--orange); }
.alert.warn { border-color: rgba(251,146,60,0.25); background: rgba(251,146,60,0.05); }
.alert.err  i { color: var(--red); }
.alert.err  { border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.05); }
.alert .alert-text { font-size: 13px; line-height: 1.5; }

/* ─── TOAST ─────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 13px 22px;
  background: rgba(19,20,51,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-3);
  transition: transform .4s var(--spring), opacity .3s;
  opacity: 0; pointer-events: none; z-index: 1000;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok  { border-color: rgba(74,222,128,0.45); }
.toast.err { border-color: rgba(248,113,113,0.45); }

/* ─── LOADING ────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hi) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.loading-row {
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  position: relative; overflow: hidden;
}
.loading-row::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1.5s infinite;
}

/* ─── MODAL (confirm dialog) ─────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.70); backdrop-filter: blur(8px); }
.modal-card {
  position: relative;
  width: min(460px, 92vw);
  background: rgba(19,20,51,0.95);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: var(--shadow-3);
  animation: palette-in 0.3s var(--spring);
}
.modal-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.modal-card p { color: var(--text-dim); margin-bottom: 16px; line-height: 1.5; }
.modal-warning {
  padding: 12px 14px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 10px;
  color: #fecaca;
  font-size: 13px;
  margin-bottom: 16px;
}
.modal-input {
  width: 100%; padding: 12px 16px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  text-align: center; letter-spacing: 0.5px;
}
.modal-input:focus { outline: none; border-color: var(--red); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ribbon { grid-template-columns: repeat(3, 1fr); }
  .sidebar {
    position: fixed; right: 0; top: 0;
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }
  .sidebar.open { transform: translateX(0); }
  .sb-close { display: grid; place-items: center; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (max-width: 640px) {
  .ribbon { grid-template-columns: repeat(2, 1fr); padding: 14px 18px; gap: 10px; }
  .r-val { font-size: 19px; }
  .topbar { padding: 14px 18px; }
  .view-container { padding: 0 18px 20px; }
  .tool-hero { padding: 20px; }
  .view h1 { font-size: 22px; }
  .stat { padding: 16px; gap: 12px; }
  .stat-val { font-size: 23px; }
  .stat .stat-icon { width: 44px; height: 44px; font-size: 19px; }
}
