.glass-panel {
            background: linear-gradient(135deg, rgba(20, 13, 36, 0.85) 0%, rgba(28, 18, 50, 0.55) 100%);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(168, 85, 247, 0.2);
        }
        .glass-panel:hover {
            border-color: rgba(168, 85, 247, 0.45);
        }
        .text-glow {
            text-shadow: 0 0 24px rgba(168, 85, 247, 0.65);
        }
        .cyber-grid {
            background-size: 36px 36px;
            background-image: 
                linear-gradient(to right, rgba(168, 85, 247, 0.04) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
        }
        ::-webkit-scrollbar {
            width: 7px;
            height: 7px;
        }
        ::-webkit-scrollbar-track {
            background: #09060f;
        }
        ::-webkit-scrollbar-thumb {
            background: #2e1d4d;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #6d28d9;
        }


#diag-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    filter: saturate(0.65);
}

#diag-results > div {
    padding: 0.25rem 0;
}

/* Dark Purple enhancements from modular portal */
:root {
    --bg-base: #0a0612;
    --bg-surface: #130924;
    --accent-purple: #9333ea;
    --accent-neon: #a855f7;
    --status-green: #10b981;
    --status-red: #ef4444;
}

body {
    background-color: var(--bg-base) !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(147, 51, 234, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(112, 26, 117, 0.1) 0%, transparent 45%) !important;
}

.glass-panel {
    background: rgba(26, 14, 46, 0.65) !important;
    border-color: rgba(147, 51, 234, 0.25) !important;
}

/* Modular-style diagnostics metrics */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
    margin-right: 8px;
}
.status-indicator.testing {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: pulse 1.2s infinite;
}
.status-indicator.ready {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.metric-box {
    background: rgba(19, 9, 36, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.metric-label {
    font-size: 11px;
    color: #a892b7;
    margin-bottom: 4px;
}
.metric-val {
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.btn-test {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #9333ea, #a855f7);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-test:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}
.btn-test:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
