        :root {
            --glass-bg: rgba(15, 23, 42, 0.6);
            --glass-border: rgba(99, 102, 241, 0.12);
            --glass-border-hover: rgba(99, 102, 241, 0.25);
            --accent: #6366f1;
            --accent-glow: rgba(99, 102, 241, 0.3);
            --bg-deep: #020617;
            --bg-surface: #0f172a;
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-deep);
            color: #e2e8f0;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Animated background */
        .bg-mesh {
            position: fixed;
            inset: 0;
            z-index: 0;
            background:
                radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
            pointer-events: none;
        }

        .bg-grid {
            position: fixed;
            inset: 0;
            z-index: 0;
            background-image:
                linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
        }

        /* Glassmorphism */
        .glass {
            background: var(--glass-bg);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid var(--glass-border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .glass:hover {
            border-color: var(--glass-border-hover);
            box-shadow: 0 0 40px var(--accent-glow), 0 4px 24px rgba(0,0,0,0.3);
            transform: translateY(-4px);
        }

        /* Header */
        .dashboard-header {
            position: relative;
            z-index: 10;
            border-bottom: 1px solid var(--glass-border);
            background: rgba(2, 6, 23, 0.7);
            backdrop-filter: blur(16px);
        }

        .header-glow {
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0.5;
        }

        /* Command Cards */
        .cmd-card {
            position: relative;
            overflow: hidden;
            min-height: 160px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .cmd-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .cmd-card:hover::before {
            opacity: 1;
        }

        .cmd-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08), transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }

        .cmd-card:hover::after {
            opacity: 1;
        }

        .cmd-name {
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: -0.02em;
            word-break: break-word;
        }

        .cmd-prefix {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent);
            opacity: 0.4;
            line-height: 1;
        }

        .explain-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: #64748b;
        }

        .explain-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 8px var(--accent-glow);
        }

        /* Loading */
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 60vh;
            gap: 1.5rem;
        }

        .loading-ring {
            width: 48px;
            height: 48px;
            border: 2px solid rgba(99, 102, 241, 0.1);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loading-ring-inner {
            width: 32px;
            height: 32px;
            border: 2px solid rgba(99, 102, 241, 0.15);
            border-top-color: rgba(139, 92, 246, 0.6);
            border-radius: 50%;
            animation: spin 1.5s linear infinite reverse;
        }

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

        .loading-text {
            font-size: 0.875rem;
            color: #64748b;
            letter-spacing: 0.05em;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 100;
            background: rgba(2, 6, 23, 0.85);
            backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.flex {
            opacity: 1;
        }

        .modal-overlay.hidden {
            display: none;
            opacity: 0;
        }

        .modal-content {
            width: 100%;
            max-width: 520px;
            background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
            border: 1px solid var(--glass-border-hover);
            border-radius: 1.5rem;
            padding: 2rem;
            position: relative;
            transform: scale(0.9) translateY(20px);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.1);
        }

        .modal-content.scale-100 {
            transform: scale(1) translateY(0);
        }

        .modal-close {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid var(--glass-border);
            background: rgba(15, 23, 42, 0.5);
            color: #94a3b8;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .modal-close:hover {
            background: rgba(99, 102, 241, 0.15);
            color: #e2e8f0;
            border-color: var(--accent);
        }

        .modal-cmd-name {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .modal-cmd-name::before {
            content: '';
            width: 4px;
            height: 28px;
            background: linear-gradient(180deg, var(--accent), rgba(139, 92, 246, 0.6));
            border-radius: 2px;
        }

        .modal-cmd-desc {
            font-size: 1rem;
            line-height: 1.7;
            color: #cbd5e1;
            padding: 1.25rem;
            background: rgba(99, 102, 241, 0.05);
            border-radius: 1rem;
            border-left: 3px solid var(--accent);
            font-style: italic;
        }

        .modal-label {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: #475569;
            margin-bottom: 0.75rem;
        }

        /* Stats bar */
        .stats-bar {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: #64748b;
        }

        .stat-value {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
            color: #e2e8f0;
        }

        .stat-icon {
            color: var(--accent);
            opacity: 0.6;
            font-size: 0.75rem;
        }

        .live-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #22c55e;
        }

        .live-dot {
            width: 6px;
            height: 6px;
            background: #22c55e;
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(0.8); }
        }

        /* Responsive Grid */
        .command-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 1rem;
        }

        @media (min-width: 640px) {
            .command-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.25rem;
            }
        }

        @media (min-width: 1024px) {
            .command-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
        }

        @media (min-width: 1280px) {
            .command-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Empty state */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 40vh;
            gap: 1rem;
            color: #475569;
        }

        .empty-state i {
            font-size: 3rem;
            opacity: 0.3;
            color: var(--accent);
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(99, 102, 241, 0.2);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(99, 102, 241, 0.4);
        }

        /* Safe text rendering */
        .safe-text {
            word-break: break-word;
            overflow-wrap: break-word;
        }
                /* Search bar styles - add this */
        .search-container {
            max-width: 500px;
            margin: 0 auto 2rem auto;
            position: relative;
        }
        .search-container i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
            z-index: 10;
        }
        .search-container input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid #334155;
            border-radius: 2rem;
            color: white;
            font-size: 0.9rem;
            backdrop-filter: blur(8px);
        }
        .search-container input:focus {
            outline: none;
            border-color: #8b5cf6;
            box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
        }
        .search-container input::placeholder {
            color: #64748b;
        }
        .clear-search {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #64748b;
            display: none;
            z-index: 10;
        }
        .clear-search:hover {
            color: #f87171;
        }
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 3rem;
            background: rgba(30, 41, 59, 0.4);
            border-radius: 2rem;
            border: 1px solid #334155;
        }
        .no-results i {
            font-size: 3rem;
            color: #475569;
            margin-bottom: 1rem;
        }
        .no-results p {
            color: #94a3b8;
            font-size: 1.1rem;
        }
        .no-results .suggestion {
            font-size: 0.8rem;
            color: #64748b;
            margin-top: 0.5rem;
        }
        .search-description {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.search-description p {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}