
    :root {
      --bg-gradient-start: #0f172a;
      --bg-gradient-end: #1e1b4b;
      --card-bg: rgba(255, 255, 255, 0.08);
      --card-border: rgba(255, 255, 255, 0.18);
      --text-main: #f9fafb;
      --text-soft: #cbd5f5;
      --accent-pink: #f472b6;
      --accent-purple: #a855f7;
      --accent-blue: #38bdf8;
      --accent-green: #4ade80;
      --radius-xl: 24px;
      --radius-lg: 18px;
      --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
      --transition-fast: 160ms ease-out;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      min-height: 100vh;
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      color: var(--text-main);
      background: radial-gradient(circle at top left, #1d2542 0, transparent 45%),
        radial-gradient(circle at bottom right, #1e293b 0, transparent 45%),
        linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    /* --------------------
       LOADING OVERLAY
    --------------------- */
    .loader-overlay {
      position: fixed;
      inset: 0;
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), transparent 55%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.95), transparent 60%),
        linear-gradient(135deg, #020617, #020617);
      transition: opacity 320ms ease-out, visibility 320ms ease-out;
    }

    .loader-card {
      padding: 18px 24px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(148, 163, 184, 0.65);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .loader-spinner {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      border: 3px solid rgba(51, 65, 85, 0.9);
      border-top-color: var(--accent-blue);
      border-right-color: var(--accent-purple);
      animation: loader-spin 900ms linear infinite;
    }

    .loader-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .loader-title {
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text-soft);
      opacity: 0.9;
    }

    .loader-name {
      font-size: 17px;
      font-weight: 600;
      letter-spacing: -0.02em;
    }

    .loader-sub {
      font-size: 12px;
      color: var(--text-soft);
      opacity: 0.85;
    }

    .loader-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    @keyframes loader-spin {
      to { transform: rotate(360deg); }
    }

    /* --------------------
       MAIN SHELL (original)
    --------------------- */
    .shell {
      position: relative;
      width: 100%;
      max-width: 1120px;
      min-height: 640px;
      max-height: 720px;
      border-radius: 32px;
      padding: 24px 24px 18px;
      background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.08),
          rgba(15, 23, 42, 0.4)
        );
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(26px);
      -webkit-backdrop-filter: blur(26px);
      display: flex;
      flex-direction: column;
      gap: 18px;
      overflow: hidden;
    }

    @media (max-width: 900px) {
      .shell {
        max-height: none;
        min-height: 100%;
      }
    }

    .top-bar {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    @media (max-width: 720px) {
      .top-bar {
        flex-direction: column;
      }
    }

    .brand {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .brand-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: rgba(15, 23, 42, 0.65);
      border: 1px solid rgba(148, 163, 184, 0.55);
      color: var(--text-soft);
    }

    .brand-pill-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--accent-green);
      box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
    }

    .brand h1 {
      font-weight: 600;
      font-size: 24px;
      letter-spacing: -0.02em;
    }

    .brand-sub {
      font-size: 13px;
      color: var(--text-soft);
    }

    .quick-metrics {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    @media (max-width: 720px) {
      .quick-metrics {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
      }
    }

    .metric {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 11px;
      color: var(--text-soft);
      min-width: 80px;
    }

    .metric-label-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .metric-value {
      font-size: 11px;
    }

    .metric-bar {
      position: relative;
      border-radius: 999px;
      height: 6px;
      width: 100%;
      background: rgba(15, 23, 42, 0.8);
      overflow: hidden;
      border: 1px solid rgba(148, 163, 184, 0.5);
    }

    .metric-fill {
      height: 100%;
      border-radius: inherit;
      width: 40%;
      transform-origin: left center;
    }

    .metric-fill.cpu {
      background: linear-gradient(
        90deg,
        var(--accent-green),
        var(--accent-blue)
      );
      width: 28%;
    }

    .metric-fill.ram {
      background: linear-gradient(
        90deg,
        var(--accent-blue),
        var(--accent-purple)
      );
      width: 46%;
    }

    .metric-fill.disk {
      background: linear-gradient(
        90deg,
        var(--accent-pink),
        var(--accent-purple)
      );
      width: 62%;
    }

    .tiles-grid {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      padding: 4px 2px 0;
    }

    @media (max-width: 960px) {
      .tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .tiles-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .tile {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 14px 14px 12px;
      border-radius: var(--radius-lg);
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.55);
      text-decoration: none;
      color: inherit;
      overflow: hidden;
      transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
    }

    .tile::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(
        circle at top left,
        rgba(248, 250, 252, 0.14),
        transparent 55%
      );
      opacity: 0.8;
      pointer-events: none;
    }

    .tile:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 42px rgba(15, 23, 42, 0.8);
      background: rgba(15, 23, 42, 0.85);
      border-color: rgba(248, 250, 252, 0.38);
    }

    .tile-header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }

    .tile-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .status-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: #9ca3af;
      box-shadow: none;
    }

    .status-dot.ok {
      background: var(--accent-green);
      box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
    }

    .status-dot.warn {
      background: #facc15;
      box-shadow: 0 0 8px rgba(250, 204, 21, 0.9);
    }

    .status-dot.down {
      background: #f97373;
      box-shadow: 0 0 8px rgba(248, 113, 113, 0.9);
    }

    .tile-label {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-soft);
    }

    .tile-tag {
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.6);
      background: rgba(15, 23, 42, 0.7);
      color: var(--text-soft);
    }

    .tile-body {
      position: relative;
      z-index: 1;
      margin-bottom: 10px;
    }

    .tile-title {
      font-size: 16px;
      font-weight: 600;
      letter-spacing: -0.01em;
      margin-bottom: 3px;
    }

    .tile-desc {
      font-size: 12px;
      color: var(--text-soft);
    }

    .tile-meta {
      position: relative;
      z-index: 1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
      color: var(--text-soft);
      opacity: 0.9;
    }

    .tile-meta span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 120px;
    }

    .chip {
      font-size: 11px;
      padding: 2px 7px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.65);
      background: rgba(15, 23, 42, 0.8);
    }

    .chip.green {
      border-color: rgba(74, 222, 128, 0.7);
    }

    .chip.blue {
      border-color: rgba(56, 189, 248, 0.7);
    }

    .chip.purple {
      border-color: rgba(168, 85, 247, 0.7);
    }

    .chip.pink {
      border-color: rgba(244, 114, 182, 0.7);
    }

    .status-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 11px;
      color: var(--text-soft);
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid rgba(148, 163, 184, 0.55);
    }

    @media (max-width: 720px) {
      .status-strip {
        flex-direction: column;
        align-items: flex-start;
      }
    }
    .details-shell {
  max-width: 1100px;
  margin: auto;
  padding: 40px;
  color: var(--text-main);
}

.details-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.details-header .sub {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.back-btn {
  display:inline-block;
  margin-top: 10px;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  text-decoration:none;
  color: var(--text-soft);
}

.details-section {
  margin-top: 40px;
}

.details-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.details-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.details-card.wide {
  grid-column: span 2;
}

.disk-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.disk-table th, .disk-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.service-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.service-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-soft);
}
.svc-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  background: #6b7280;
  box-shadow: none;
  vertical-align: middle;
}

.svc-dot.ok {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.svc-dot.down {
  background: #f97373;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

.status-dot.ok {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}
.status-dot.warn {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}
.status-dot.down {
  background: #f97373;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

