* {
  box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
  --bg: #08101d;
  --panel: rgba(18, 30, 49, 0.9);
  --border: rgba(148, 163, 184, 0.2);
  --text: #e5edf8;
  --muted: #94a3b8;
  --success: #22c55e;
  --danger: #ef4444;
}

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 30%),
    linear-gradient(180deg, #07101d, #0b1220);
  color: var(--text);
}

.container {
  max-width: 1280px;
  margin: auto;
  padding: 32px 20px 60px;
}

/* ===== HEADER ===== */
.premium-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.header h1 {
  margin: 0 0 8px 0;
}

.subtitle {
  color: var(--muted);
}

.hero-device {
  max-width: 220px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== CARDS ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.tool-card {
  text-decoration: none;
  color: inherit;
}

/* ===== STATUS ===== */
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

/* DOT BASE */
.status-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

/* ===== PULSING ===== */
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ACTIVE STATES */
.status-ok {
  background: var(--success);
  animation: pulse-green 2s infinite;
}

.status-bad {
  background: var(--danger);
  animation: pulse-red 2s infinite;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

td, th {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

/* ===== STATUS PILLS ===== */
.status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
}

/* RUNNING (WITH GLOW) */
.status-running {
  background: rgba(34,197,94,0.2);
  color: #bbf7d0;
  position: relative;
}

/* GLOW EFFECT */
.status-running::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse-green 2s infinite;
}

/* STOPPED */
.status-stopped,
.status-exited,
.status-dead,
.status-created {
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
}

/* ===== DISK ===== */
.disk-item {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 10px;
}

/* ===== TECHNOLOGIES ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tech-block {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
}

.tech-block h4 {
  margin: 0 0 8px 0;
  color: var(--muted);
}

.tech-block p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* MINI GRAPHS */
.mini-graph {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 50px;
  margin-top: 10px;
}

.bar {
  width: 3px;
  background: #60a5fa;
}

.card p {
  margin: 6px 0;
}
