    :root {
      --bg:        #0d0f14;
      --bg2:       #13161e;
      --bg3:       #1a1e29;
      --bg4:       #212636;
      --border:    rgba(255,255,255,0.07);
      --border-hi: rgba(255,255,255,0.13);
      --text:      #e8eaf0;
      --muted:     #6b7280;
      --accent:    #5865f2;
      --accent2:   #7983f5;
      --green:     #3ba55d;
      --green-bg:  rgba(59,165,93,0.12);
      --red:       #ed4245;
      --red-bg:    rgba(237,66,69,0.12);
      --yellow:    #faa61a;
      --yellow-bg: rgba(250,166,26,0.12);
      --radius:    12px;
      --radius-sm: 8px;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Syne', sans-serif;
      min-height: 100vh;
      padding-bottom: 80px;
      overflow-x: hidden;
    }

    /* ── Background grid ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(88,101,242,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88,101,242,0.03) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      z-index: 0;
    }

    /* ── Nav ── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(13,15,20,0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      padding: 0 2rem;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-brand {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 1rem;
      color: var(--accent2);
      letter-spacing: 0.05em;
      text-decoration: none;
    }
    .nav-brand span { color: var(--muted); }
    .nav-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
      color: var(--muted);
      font-family: 'JetBrains Mono', monospace;
    }
    .nav-pulse {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 6px var(--green);
      animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }

    /* ── Main wrapper ── */
    main {
      position: relative;
      z-index: 1;
      max-width: 960px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem;
    }

    /* ── Page header ── */
    .page-header {
      margin-bottom: 2.5rem;
      animation: fadeUp .5s ease both;
    }
    .page-header h1 {
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.2;
      background: linear-gradient(135deg, #fff 30%, var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .page-header p {
      margin-top: .5rem;
      color: var(--muted);
      font-size: .9rem;
      font-family: 'JetBrains Mono', monospace;
    }
    #last-updated {
      color: var(--accent2);
    }

    /* ── Summary cards ── */
    .summary-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 12px;
      margin-bottom: 2rem;
      animation: fadeUp .5s .1s ease both;
    }
    .summary-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      transition: border-color .2s;
    }
    .summary-card:hover { border-color: var(--border-hi); }
    .summary-card .label {
      font-size: .7rem;
      font-family: 'JetBrains Mono', monospace;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: .35rem;
    }
    .summary-card .value {
      font-size: 1.75rem;
      font-weight: 700;
      line-height: 1;
    }
    .summary-card.s-online .value  { color: var(--green); }
    .summary-card.s-offline .value { color: var(--red); }
    .summary-card.s-servers .value { color: var(--accent2); }
    .summary-card.s-bots .value    { color: var(--text); }

    /* ── Category section ── */
    .category {
      margin-bottom: 2rem;
      animation: fadeUp .5s .2s ease both;
    }
    .category-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: .75rem;
    }
    .category-tag {
      font-size: .68rem;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--accent2);
      background: rgba(88,101,242,0.12);
      border: 1px solid rgba(88,101,242,0.25);
      border-radius: 4px;
      padding: 2px 8px;
    }
    .category-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
    }
    .category-line {
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ── Bot table ── */
    .bot-table {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .bot-row {
      display: grid;
      grid-template-columns: 1fr 140px 160px;
      align-items: center;
      padding: .75rem 1.1rem;
      border-bottom: 1px solid var(--border);
      transition: background .15s;
    }
    .bot-row:last-child { border-bottom: none; }
    .bot-row:hover { background: var(--bg3); }

    .bot-name-cell {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .bot-avatar {
      width: 32px; height: 32px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: .7rem;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
    }
    .bot-name {
      font-weight: 600;
      font-size: .9rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .bot-id {
      font-family: 'JetBrains Mono', monospace;
      font-size: .68rem;
      color: var(--muted);
      margin-top: 1px;
    }

    /* Status badge */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: .72rem;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 20px;
      letter-spacing: .04em;
    }
    .status-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .badge-online  { background: var(--green-bg);  color: #4ade80; }
    .badge-online .status-dot  { background: #4ade80; box-shadow: 0 0 5px #4ade80; animation: pulse 2s infinite; }
    .badge-offline { background: var(--red-bg);    color: #f87171; }
    .badge-offline .status-dot { background: #f87171; }
    .badge-error   { background: var(--yellow-bg); color: var(--yellow); }
    .badge-error .status-dot   { background: var(--yellow); animation: pulse 1s infinite; }

    /* Server count */
    .server-cell {
      font-family: 'JetBrains Mono', monospace;
      font-size: .8rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .server-cell i { font-size: .7rem; color: var(--accent); }
    .server-cell .count { color: var(--text); font-weight: 600; }

    /* Loading skeleton */
    .skeleton {
      background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 4px;
      height: 14px;
    }
    @keyframes shimmer { to { background-position: -200% 0; } }

    /* Error / empty state */
    .state-msg {
      padding: 2rem;
      text-align: center;
      color: var(--muted);
      font-family: 'JetBrains Mono', monospace;
      font-size: .8rem;
    }
    .state-msg i { font-size: 1.5rem; display: block; margin-bottom: .5rem; opacity: .4; }

    /* ── Footer ── */
    footer#home-footer {
      position: fixed;
      left: 0; right: 0; bottom: 0;
      width: 100%;
      padding: 10px 20px;
      box-sizing: border-box;
      font-size: clamp(.75rem, 2.5vw, .9rem);
      background: rgba(13,15,20,0.92);
      backdrop-filter: blur(12px);
      border-top: 1px solid var(--border);
      z-index: 200;
      font-family: 'Syne', sans-serif;
      color: var(--muted);
    }
    footer#home-footer a { color: var(--accent2); text-decoration: none; }
    footer#home-footer a:hover { text-decoration: underline; }
    footer#home-footer .footer-flex {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    footer#home-footer .footer-flex p { margin: 0; white-space: nowrap; }
    @media (max-width: 700px) {
      footer#home-footer .footer-flex { flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
      footer#home-footer .footer-flex p { white-space: normal; text-align: center; }
      .bot-row { grid-template-columns: 1fr 110px; }
      .server-cell { display: none; }
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }