/* GB10 Cluster Dashboard — Premium Dark UI */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== TYPE SCALE (4 steps) ===== */
/* xs: 0.75rem | sm: 0.875rem | base: 1rem | lg: 1.25rem | xl: 1.5rem | 2xl: 2rem */

:root {
    --bg-primary: #080b14;
    --bg-gradient: linear-gradient(135deg, #080b14 0%, #0f1629 40%, #151030 70%, #0d0f1a 100%);
    --glass: rgba(15, 23, 42, 0.45);
    --glass-strong: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(148, 163, 184, 0.08);
    --glass-border-hover: rgba(148, 163, 184, 0.15);
    --glass-glow: rgba(34, 211, 238, 0.04);
    --bg-card-solid: #0f172a;
    --border: rgba(51, 65, 85, 0.5);

    --accent: #22d3ee;
    --accent-bright: #67e8f9;
    --accent-dim: rgba(34, 211, 238, 0.12);
    --accent-glow: rgba(34, 211, 238, 0.2);
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.3);
    --yellow: #fbbf24;
    --red: #f87171;
    --red-glow: rgba(248, 113, 113, 0.2);
    --purple: #a78bfa;
    --purple-glow: rgba(167, 139, 250, 0.15);
    --orange: #fb923c;

    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-faint: #475569;
}

* { box-sizing: border-box; }

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 0.875rem;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 600px 300px at 20% 10%, rgba(34, 211, 238, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 80%, rgba(167, 139, 250, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== GLASS CARD ===== */
.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}
.card:hover { border-color: var(--glass-border-hover); }
.card-glow { box-shadow: 0 0 40px var(--glass-glow), inset 0 1px 0 rgba(255,255,255,0.03); }

/* ===== HEALTH DIAL (hero gauge) ===== */
.health-dial-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.health-dial {
    width: 168px;
    height: 98px;   /* matches viewBox 180:105 ≈ 1.714 ratio */
    display: block;
    overflow: visible;  /* allow drop-shadow glow to extend */
}
.health-dial-bg {
    fill: none;
    stroke: rgba(51, 65, 85, 0.5);
    stroke-width: 10;
    stroke-linecap: round;
}
.health-dial-fg {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 204.2;
    /* Smooth progress + color transition */
    transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s ease;
    filter: drop-shadow(0 0 6px currentColor);
}
.health-dial-score {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    fill: var(--text);
    text-anchor: middle;
    dominant-baseline: middle;
    font-variant-numeric: tabular-nums;
}
.health-dial-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-anchor: middle;
    dominant-baseline: middle;
    text-transform: uppercase;
}
.health-dial-label.ok { fill: #34d399; }
.health-dial-label.warn { fill: #fbbf24; }
.health-dial-label.crit { fill: #f87171; }
.health-dial-label.dead { fill: #94a3b8; }

.health-dial-fg.ok { stroke: #34d399; }
.health-dial-fg.warn { stroke: #fbbf24; }
.health-dial-fg.crit {
    stroke: #f87171;
    animation: dial-pulse-crit 1.8s ease-in-out infinite;
}
.health-dial-fg.dead { stroke: #475569; filter: none; }

@keyframes dial-pulse-crit {
    0%, 100% { filter: drop-shadow(0 0 6px #f87171); }
    50% { filter: drop-shadow(0 0 14px #f87171) drop-shadow(0 0 22px rgba(248,113,113,0.4)); }
}

/* ===== HOST EXPAND / COLLAPSE ===== */
/* Make the whole host header a click target */
.host-header-clickable {
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
    transition: background 0.15s;
}
.host-header-clickable:hover {
    background: rgba(51, 65, 85, 0.25);
}

/* Prominent pill-style toggle button (not just icon) */
.host-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 8px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    color: #67e8f9;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.host-expand-btn:hover {
    background: rgba(34, 211, 238, 0.16);
    border-color: rgba(34, 211, 238, 0.5);
}
.host-expand-btn:active {
    transform: scale(0.96);
}
.host-expand-btn svg {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.expand-label {
    font-family: 'Inter', sans-serif;
}

/* Collapsed host: reduce panel padding so it feels compact */
.host-collapsed { padding: 14px !important; }
.host-collapsed .host-panel-body,
.host-collapsed .space-y-3 > * + * { margin-top: 8px !important; }
.host-collapsed .host-header-clickable:hover {
    /* Extra visual feedback when collapsed (user likely about to expand) */
    background: rgba(34, 211, 238, 0.06);
}

/* In TV mode, a collapsed host's hero metrics grow (user focuses on expanded) */
body.tv-mode .host-collapsed .hero-metric { padding: 20px !important; }
body.tv-mode .host-collapsed .hero-metric .text-lg {
    font-size: 2.6rem !important;
    line-height: 1 !important;
}
body.tv-mode .host-collapsed .hero-metric .metric-label {
    font-size: 0.9rem !important;
    margin-top: 8px !important;
}

/* ===== THRESHOLD-CROSS FLASH ===== */
/* Fired when a metric crosses into a new severity band.
   Subtle: only brightness + scale, no color swap. */
.metric-flash {
    animation: metric-flash 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes metric-flash {
    0%   { filter: brightness(1) saturate(1);   transform: scale(1); }
    30%  { filter: brightness(1.5) saturate(1.3); transform: scale(1.03); }
    100% { filter: brightness(1) saturate(1);   transform: scale(1); }
}

/* Dial flash — slightly longer and more pronounced */
.dial-flash .health-dial-fg {
    animation: dial-flash 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dial-flash {
    0%   { filter: drop-shadow(0 0 6px currentColor); }
    40%  { filter: drop-shadow(0 0 22px currentColor) drop-shadow(0 0 40px currentColor); }
    100% { filter: drop-shadow(0 0 6px currentColor); }
}

/* ===== TV / NOC MODE (wall-mount fullscreen) ===== */
body.tv-mode header.top-bar { display: none; }
body.tv-mode main {
    max-width: 100vw !important;
    padding: 18px 32px !important;
}
body.tv-mode {
    overflow: hidden;
}
body.tv-mode::before {
    /* Darker vignette for display contrast */
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
    z-index: 100;
}

/* Giant health dial — preserves 180:105 viewBox ratio */
body.tv-mode .health-dial {
    width: 280px;
    height: 163px;
    flex-shrink: 0;
}
body.tv-mode .health-dial-wrap {
    padding-left: 8px;
}
/* Score sits a touch higher and label further below so they don't overlap at large size */
body.tv-mode .health-dial-score {
    font-size: 48px;
    transform: translateY(-4px);
    transform-origin: center;
}
body.tv-mode .health-dial-label {
    font-size: 13px;
    letter-spacing: 0.22em;
    transform: translateY(10px);
    transform-origin: center;
}
body.tv-mode .health-dial-caption .cluster-name { font-size: 1.4rem; }
body.tv-mode .health-dial-caption .cluster-hosts { font-size: 0.9rem; }

/* Amplified cluster summary */
body.tv-mode .summary-bar {
    padding: 20px 32px !important;
    gap: 26px !important;
}
body.tv-mode .summary-bar .font-bold {
    font-size: 1.35rem !important;
}
body.tv-mode .summary-bar .text-xs {
    font-size: 0.85rem !important;
}
body.tv-mode .sparkline-container {
    width: 90px !important;
    height: 30px !important;
}

/* Bigger hero metrics per host */
body.tv-mode .hero-metric {
    padding: 22px !important;
}
body.tv-mode .hero-metric .text-lg {
    font-size: 2.2rem !important;
    line-height: 1 !important;
}
body.tv-mode .hero-metric .metric-label {
    font-size: 0.8rem !important;
    margin-top: 6px !important;
}

/* LLM badge emphasized */
body.tv-mode .llm-card {
    padding: 18px !important;
}
body.tv-mode .llm-stat-value {
    font-size: 1.9rem !important;
}

/* Hide command panel + recent commands in TV mode — not glanceable */
body.tv-mode .card > .flex.items-center.justify-between:has(> div > span.text-sm.font-semibold) {
    /* Fallback: hide the command panel card. Use data attribute instead to be safe. */
}
body.tv-mode [data-hide-in-tv] { display: none !important; }

/* TV badge + exit hint */
.tv-badge {
    position: fixed;
    top: 20px;
    right: 28px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-family: 'JetBrains Mono', monospace;
    z-index: 200;
    backdrop-filter: blur(12px);
    display: none;
}
body.tv-mode .tv-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tv-exit-hint {
    display: none;
}
body.tv-mode .tv-exit-hint {
    display: block;
    position: fixed;
    bottom: 16px;
    right: 28px;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    z-index: 200;
    opacity: 0.6;
}

/* Host panels fill more space in TV */
body.tv-mode .host-grid {
    gap: 18px !important;
}
body.tv-mode .card {
    padding: 20px !important;
}

/* Cluster label beside dial (small, subordinate) */
.health-dial-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}
.health-dial-caption .cluster-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}
.health-dial-caption .cluster-hosts {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px;
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(148,163,184,0.06) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(34,211,238,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== METRIC VALUES — animated ===== */
.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
}
.metric-value-lg {
    font-size: 1.5rem;
    font-weight: 800;
}
.metric-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
    font-weight: 500;
}

/* Hero metric cards */
.hero-metric {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    transition: all 0.3s;
}
.hero-metric:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
}

/* ===== STATUS DOTS ===== */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
    animation: pulse-green 2s infinite;
}
.status-dot.warning {
    background: var(--yellow);
    box-shadow: 0 0 10px rgba(251,191,36,0.3);
}
.status-dot.offline {
    background: var(--red);
    box-shadow: 0 0 10px var(--red-glow);
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 4px var(--green-glow); }
    50% { box-shadow: 0 0 14px var(--green-glow), 0 0 24px rgba(52,211,153,0.08); }
}

/* Live pulse */
.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(30, 41, 59, 0.6);
    overflow: hidden;
}
.progress-fill {
    position: relative;   /* contain the ::after overlay inside this element */
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;   /* never steal clicks — this is a decorative gradient sheen */
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    border-radius: 3px;
}

/* ===== CHARTS ===== */
.chart-container {
    position: relative;
    height: 140px;
    width: 100%;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    padding: 4px;
}
.chart-container canvas,
.chart-container-lg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.chart-container-lg { height: 160px; }

/* ===== SPARKLINE (inline mini chart) ===== */
.sparkline-container {
    display: inline-block;
    width: 60px;
    height: 20px;
    vertical-align: middle;
}

/* ===== COLLAPSIBLE WIDGET (native <details>) ===== */
details.widget {
    border: none;
    padding: 0;
}
details.widget > summary {
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background 0.15s;
}
details.widget > summary::-webkit-details-marker,
details.widget > summary::marker { display: none; }
details.widget > summary:hover { background: rgba(51,65,85,0.15); }
details.widget > summary .widget-chevron {
    width: 14px; height: 14px;
    color: var(--text-faint);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    transform: rotate(-90deg);
}
details.widget[open] > summary .widget-chevron {
    transform: rotate(0deg);
}
details.widget > .widget-body {
    margin-top: 8px;
}

/* ===== WIDGET HEADERS ===== */
.widget-header {
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-icon {
    width: 14px; height: 14px;
    color: var(--text-dim);
    flex-shrink: 0;
}
.widget-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== COMMAND PANEL ===== */
.cmd-btn {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}
.cmd-btn:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}
.cmd-btn.destructive { border-color: rgba(248,113,113,0.2); }
.cmd-btn.destructive:hover {
    border-color: var(--red);
    background: rgba(248,113,113,0.08);
    box-shadow: 0 0 15px var(--red-glow);
}
.cmd-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Terminal output */
.cmd-output {
    background: #020617;
    border: 1px solid rgba(51,65,85,0.2);
    border-radius: 10px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 50vh;
    overflow-y: auto;
    color: var(--green);
}

/* ===== TABS ===== */
.tab-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-weight: 500;
}
.tab-btn:hover { color: var(--text); background: rgba(30,41,59,0.5); }
.tab-btn.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: rgba(34,211,238,0.2);
}

/* ===== ALERT BADGE ===== */
.alert-badge {
    background: var(--red);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1.3;
}

/* ===== MODAL ===== */
.modal-overlay {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}
.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

/* ===== TOAST ===== */
.toast {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== RECONNECTING ===== */
.reconnect-banner {
    background: rgba(251,191,36,0.1);
    border-bottom: 1px solid rgba(251,191,36,0.2);
    color: var(--yellow);
    padding: 8px 16px;
    text-align: center;
    font-size: 0.875rem;
    backdrop-filter: blur(12px);
}

/* ===== HOST PANEL ===== */
.host-panel.highlighted {
    border-color: var(--accent) !important;
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(34,211,238,0.05);
}
.device-img {
    height: 40px; width: auto;
    border-radius: 6px;
    transition: all 0.3s;
}
.device-img.offline { opacity: 0.3; filter: grayscale(1); }

/* ===== TABLE ===== */
.proc-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
}
.proc-table th {
    color: var(--text-dim);
    font-weight: 600;
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(51,65,85,0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.proc-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(51,65,85,0.15);
    font-variant-numeric: tabular-nums;
}
.proc-table tr:hover td { background: rgba(34,211,238,0.03); }

/* ===== KEBAB MENU ===== */
.kebab-btn {
    color: var(--text-dim);
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.kebab-btn:hover { color: var(--text); background: rgba(51,65,85,0.4); }
.kebab-dropdown {
    position: absolute;
    right: 0; top: 100%;
    margin-top: 4px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    min-width: 180px;
    z-index: 30;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.kebab-item {
    display: block; width: 100%; text-align: left;
    padding: 7px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border: none; background: none;
}
.kebab-item:hover { color: var(--text); background: rgba(51,65,85,0.4); }
.kebab-item.destructive { color: var(--red); }
.kebab-item.destructive:hover { background: rgba(248,113,113,0.08); }

/* ===== TOP BAR ===== */
.top-bar {
    background: rgba(8, 11, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(71,85,105,0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.6); }

/* ===== UTILITIES ===== */
[x-cloak] { display: none !important; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* LLM widget */
.llm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(167,139,250,0.12) 0%, rgba(236,72,153,0.12) 100%);
    border: 1px solid rgba(167,139,250,0.3);
    color: #c4b5fd;
    font-family: 'JetBrains Mono', monospace;
}
.llm-badge .llm-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167,139,250,0.6);
    animation: pulse-purple 2s ease-in-out infinite;
}
@keyframes pulse-purple {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.llm-card {
    background: linear-gradient(135deg, rgba(167,139,250,0.05) 0%, rgba(236,72,153,0.03) 100%);
    border: 1px solid rgba(167,139,250,0.15);
    border-radius: 12px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}
.llm-stat { text-align: center; }
.llm-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a78bfa;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.llm-stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.swap-badge {
    font-size: 0.625rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: var(--yellow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .host-grid { grid-template-columns: 1fr !important; }
    .summary-bar { flex-wrap: wrap; gap: 12px; }
    .summary-bar > .ml-auto { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
    .card { padding: 14px; border-radius: 12px; }
    .hero-metric { padding: 10px 12px; }
    .metric-value { font-size: 1rem; }
    .cmd-btn { padding: 6px 10px; font-size: 0.75rem; }
}
