        /* LIGHT THEME — Sidebar & Command Palette */
        [data-theme="light"] .sidebar {
            background: linear-gradient(180deg, #fefefe 0%, #f8f9fb 100%);
        }
        [data-theme="light"] .sidebar-ambient {
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
        }
        [data-theme="light"] .sidebar::before { opacity: 0; }
        [data-theme="light"] .sidebar::after {
            background: linear-gradient(180deg, transparent 0%, rgba(var(--primary-rgb), 0.06) 30%, rgba(var(--primary-rgb), 0.14) 50%, rgba(var(--primary-rgb), 0.06) 70%, transparent 100%);
        }
        [data-theme="light"] .sidebar-scroll-wrapper::before {
            background: linear-gradient(to bottom, #f8f9fb, transparent);
        }
        [data-theme="light"] .sidebar-scroll-wrapper::after {
            background: linear-gradient(to top, #f8f9fb, transparent);
        }
        [data-theme="light"] .sidebar-hover-beam {
            background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(var(--primary-rgb), 0.025) 0%, transparent 70%);
        }
        [data-theme="light"] .brand {
            background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
            -webkit-background-clip: text;
            background-clip: text;
        }
        [data-theme="light"] .brand-logo {
            box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 16px -4px rgba(var(--primary-rgb), 0.35);
        }
        [data-theme="light"] .sidebar-header-btn:hover { background: rgba(0,0,0,0.05); }
        [data-theme="light"] .sidebar-search {
            background: rgba(0,0,0,0.025);
            border-color: rgba(0,0,0,0.06);
        }
        [data-theme="light"] .sidebar-search::before {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), transparent 60%);
        }
        [data-theme="light"] .sidebar-search:hover {
            background: rgba(0,0,0,0.04);
            border-color: rgba(var(--primary-rgb), 0.18);
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.04), 0 2px 8px -4px rgba(var(--primary-rgb), 0.1);
        }
        [data-theme="light"] .sidebar-search kbd {
            background: rgba(0,0,0,0.03);
            border-color: rgba(0,0,0,0.06);
        }
        [data-theme="light"] .sidebar-search:hover kbd {
            background: rgba(var(--primary-rgb), 0.05);
            border-color: rgba(var(--primary-rgb), 0.1);
        }
        [data-theme="light"] .nav-item .nav-icon {
            background: rgba(0,0,0,0.035);
            border-color: rgba(0,0,0,0.025);
        }
        [data-theme="light"] .nav-item:hover {
            background: rgba(0,0,0,0.035);
        }
        [data-theme="light"] .nav-item:hover .nav-icon {
            background: rgba(0,0,0,0.055);
            border-color: rgba(0,0,0,0.04);
        }
        [data-theme="light"] .nav-item.active {
            background: rgba(var(--primary-rgb), 0.06);
            border-color: rgba(var(--primary-rgb), 0.06);
            box-shadow: 0 0 16px -6px rgba(var(--primary-rgb), 0.1);
        }
        [data-theme="light"] .nav-item.active .nav-icon {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(236,72,153,0.06));
            border-color: rgba(var(--primary-rgb), 0.1);
        }
        [data-theme="light"] .nav-section { opacity: 0.5 !important; }
        [data-theme="light"] .nav-section:hover { opacity: 0.75 !important; }
        [data-theme="light"] .sidebar-footer {
            border-top-color: rgba(0,0,0,0.04);
        }
        [data-theme="light"] .sidebar-footer::before {
            background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.06), transparent);
        }
        [data-theme="light"] .sidebar-footer-avatar {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(236,72,153,0.06));
            border-color: rgba(var(--primary-rgb), 0.08);
        }
        [data-theme="light"] .sidebar-footer-avatar::after {
            border-color: #f8f9fb;
        }
        /* Profile Popover – Light */
        [data-theme="light"] .profile-popover {
            background: linear-gradient(165deg, rgba(255,255,255,0.98), rgba(248,249,251,0.99));
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 -12px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03) inset;
        }
        [data-theme="light"] .profile-popover-header {
            border-bottom-color: rgba(0,0,0,0.06);
        }
        [data-theme="light"] .profile-popover-avatar {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(236,72,153,0.06));
            border-color: rgba(var(--primary-rgb), 0.1);
        }
        [data-theme="light"] .profile-popover-item:hover {
            background: rgba(var(--primary-rgb), 0.06);
        }
        [data-theme="light"] .profile-popover-divider {
            background: rgba(0,0,0,0.06);
        }
        [data-theme="light"] .profile-popover-theme-btn {
            border-color: rgba(0,0,0,0.08);
            background: rgba(0,0,0,0.02);
        }
        [data-theme="light"] .profile-popover-theme-btn:hover {
            background: rgba(var(--primary-rgb), 0.06);
            border-color: rgba(var(--primary-rgb), 0.12);
        }
        [data-theme="light"] .profile-popover-theme-btn.active-theme {
            background: rgba(var(--primary-rgb), 0.08);
            border-color: rgba(var(--primary-rgb), 0.2);
        }
        [data-theme="light"] .profile-popover-item-shortcut {
            background: rgba(0,0,0,0.04);
        }
        [data-theme="light"] .nav-separator {
            background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
        }
        [data-theme="light"] .sidebar-scroll:hover { scrollbar-color: rgba(0,0,0,0.08) transparent; }
        [data-theme="light"] .sidebar-scroll:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); }
        /* Command Palette – Light */
        [data-theme="light"] .cmd-palette-overlay {
            background: rgba(255,255,255,0.55);
        }
        [data-theme="light"] .cmd-palette {
            background: rgba(255,255,255,0.98);
            border-color: rgba(0,0,0,0.08);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 24px 80px -12px rgba(0,0,0,0.18), 0 0 60px -20px rgba(var(--primary-rgb), 0.08);
        }
        [data-theme="light"] .cmd-palette-input { color: var(--text-main); }
        [data-theme="light"] .cmd-palette-input-wrap { border-bottom-color: rgba(0,0,0,0.05); }
        [data-theme="light"] .cmd-palette-input-wrap::after {
            background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
        }
        [data-theme="light"] .cmd-palette-close-btn {
            border-color: rgba(0,0,0,0.1);
            background: rgba(0,0,0,0.03);
        }
        [data-theme="light"] .cmd-palette-close-btn:hover {
            background: rgba(239,68,68,0.08);
            border-color: rgba(239,68,68,0.15);
        }
        [data-theme="light"] .cmd-palette-item:hover,
        [data-theme="light"] .cmd-palette-item.selected {
            background: rgba(var(--primary-rgb), 0.06);
        }
        [data-theme="light"] .cmd-palette-item.selected {
            box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.08);
        }
        [data-theme="light"] .cmd-palette-item .cpi-icon {
            background: rgba(0,0,0,0.035);
            border-color: rgba(0,0,0,0.03);
        }
        [data-theme="light"] .cmd-palette-item.selected .cpi-icon,
        [data-theme="light"] .cmd-palette-item:hover .cpi-icon {
            background: rgba(var(--primary-rgb), 0.08);
            border-color: rgba(var(--primary-rgb), 0.06);
        }
        [data-theme="light"] .cmd-palette-footer {
            border-top-color: rgba(0,0,0,0.04);
        }
        [data-theme="light"] .cmd-palette-footer kbd {
            background: rgba(0,0,0,0.03);
            border-color: rgba(0,0,0,0.06);
        }


           SIDEBAR — FORTUNE 500 UI SYSTEM
           Benchmark: Linear · Raycast · Arc · Notion · Vercel · Stripe
           ============================================================= */

        .sidebar {
            background: var(--bg-deep);
            padding: 0;
            transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
            border-right: none;
            isolation: isolate;
        }
        /* Multi-stop animated edge line */
        .sidebar::after {
            content: '';
            position: absolute;
            top: 0; right: 0;
            width: 1px; height: 100%;
            background: linear-gradient(
                180deg,
                transparent 0%,
                rgba(var(--primary-rgb), 0.04) 10%,
                rgba(var(--primary-rgb), 0.25) 30%,
                rgba(236, 72, 153, 0.2) 45%,
                rgba(99, 102, 241, 0.18) 60%,
                rgba(var(--primary-rgb), 0.25) 75%,
                rgba(var(--primary-rgb), 0.04) 90%,
                transparent 100%
            );
            pointer-events: none;
            z-index: 5;
            animation: edge-shimmer 12s ease-in-out infinite alternate;
        }
        @keyframes edge-shimmer {
            0%   { opacity: 0.5; filter: hue-rotate(0deg); }
            50%  { opacity: 1;   filter: hue-rotate(15deg); }
            100% { opacity: 0.5; filter: hue-rotate(-10deg); }
        }
        /* Noise grain for texture depth */
        .sidebar::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 0;
            opacity: 0.35;
            mix-blend-mode: overlay;
        }
        .sidebar > * { position: relative; z-index: 1; }
        .sidebar.hidden { transform: translateX(-100%); }

        /* Ambient mesh glow ball */
        .sidebar-ambient {
            position: absolute;
            width: 180px; height: 180px;
            top: 60px; left: 50%;
            transform: translateX(-50%);
            border-radius: 50%;
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, rgba(236,72,153,0.06) 40%, transparent 70%);
            filter: blur(50px);
            pointer-events: none;
            z-index: 0;
            animation: ambient-drift 16s ease-in-out infinite alternate;
        }
        @keyframes ambient-drift {
            0%   { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.7; }
            33%  { transform: translateX(-40%) translateY(60px) scale(1.15); opacity: 0.5; }
            66%  { transform: translateX(-60%) translateY(-40px) scale(0.9); opacity: 0.8; }
            100% { transform: translateX(-50%) translateY(20px) scale(1.05); opacity: 0.6; }
        }

        /* Mouse-tracking hover beam */
        .sidebar-hover-beam {
            position: absolute;
            left: 0; top: 0;
            width: 100%; height: 44px;
            background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(var(--primary-rgb), 0.04) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
            opacity: 0;
            transition: top 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
            will-change: top, opacity;
        }
        .sidebar:hover .sidebar-hover-beam { opacity: 1; }

        /* ── SCROLL SYSTEM ── */
        .sidebar-scroll-wrapper {
            position: relative;
        }
        /* Top + bottom fade masks */
        .sidebar-scroll-wrapper::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 24px;
            background: linear-gradient(to bottom, var(--bg-deep), transparent);
            pointer-events: none;
            z-index: 4;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .sidebar-scroll-wrapper.scrolled-top::before { opacity: 1; }
        .sidebar-scroll-wrapper::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 56px;
            background: linear-gradient(to top, var(--bg-deep), transparent);
            pointer-events: none;
            z-index: 4;
        }
        .sidebar-scroll {
            padding: 0 4px 36px 4px;
        }

        /* ── BRAND HEADER ── */
        .sidebar-header {
            padding: 22px 14px 6px 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        .brand {
            font-size: 1.05rem;
            font-weight: 750;
            letter-spacing: -0.4px;
            display: flex;
            align-items: center;
            gap: 0;
            margin: 0;
            user-select: none;
            background: linear-gradient(135deg, #fff 0%, rgba(var(--primary-rgb), 0.9) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% 100%;
            animation: brand-shimmer 6s ease-in-out infinite alternate;
        }
        @keyframes brand-shimmer {
            0%   { background-position: 0% 50%; }
            100% { background-position: 100% 50%; }
        }
        .brand-logo {
            width: 34px; height: 34px;
            border-radius: 11px;
            background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 35%, #ec4899 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.82rem;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
            box-shadow:
                0 0 0 1px rgba(255,255,255,0.1),
                0 4px 24px -4px rgba(var(--primary-rgb), 0.55),
                0 0 50px -8px rgba(var(--primary-rgb), 0.2),
                inset 0 1px 1px rgba(255,255,255,0.15);
            animation: logo-breathe 4s ease-in-out infinite;
        }
        @keyframes logo-breathe {
            0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 24px -4px rgba(var(--primary-rgb), 0.55), 0 0 50px -8px rgba(var(--primary-rgb), 0.2), inset 0 1px 1px rgba(255,255,255,0.15); }
            50%      { box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 4px 28px -2px rgba(var(--primary-rgb), 0.7), 0 0 60px -4px rgba(var(--primary-rgb), 0.3), inset 0 1px 1px rgba(255,255,255,0.2); }
        }
        .brand-logo::before {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: inherit;
            background: conic-gradient(from 0deg, rgba(var(--primary-rgb),0.5), rgba(236,72,153,0.4), rgba(99,102,241,0.3), rgba(236,72,153,0.4), rgba(var(--primary-rgb),0.5));
            z-index: -1;
            animation: logo-ring-spin 8s linear infinite;
            opacity: 0.6;
        }
        @keyframes logo-ring-spin { to { transform: rotate(360deg); } }
        .brand-logo::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
        }
        .sidebar-header-actions {
            margin-left: auto;
            display: flex; gap: 2px;
        }
        .sidebar-header-btn {
            width: 30px; height: 30px;
            border-radius: 8px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.8rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
        }
        .sidebar-header:hover .sidebar-header-btn { opacity: 0.5; }
        .sidebar-header-btn:hover {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.06);
            color: var(--text-main);
            opacity: 1 !important;
        }

        /* ── COMMAND BAR (Trigger) — Spotlight vibes ── */
        .sidebar-search {
            margin: 8px 10px 14px 10px;
            padding: 9px 13px;
            border-radius: 10px;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.04);
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            color: var(--text-muted);
            font-size: 0.78rem;
            font-weight: 500;
            user-select: none;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }
        .sidebar-search::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), transparent 60%);
            opacity: 0;
            transition: opacity 0.3s;
        }
        .sidebar-search:hover::before { opacity: 1; }
        .sidebar-search:hover {
            background: rgba(255,255,255,0.05);
            border-color: rgba(var(--primary-rgb), 0.15);
            color: var(--text-main);
            box-shadow:
                0 0 0 3px rgba(var(--primary-rgb), 0.05),
                0 2px 12px -4px rgba(var(--primary-rgb), 0.15);
            transform: translateY(-1px);
        }
        .sidebar-search svg { opacity: 0.35; flex-shrink: 0; position: relative; z-index: 1; }
        .sidebar-search:hover svg { opacity: 0.7; }
        .sidebar-search kbd {
            margin-left: auto;
            padding: 2px 7px;
            border-radius: 5px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.07);
            font-size: 0.6rem;
            font-family: var(--font-mono);
            color: var(--text-muted);
            line-height: 1.5;
            letter-spacing: 0.5px;
            position: relative; z-index: 1;
            transition: all 0.15s;
        }
        .sidebar-search:hover kbd {
            background: rgba(var(--primary-rgb), 0.08);
            border-color: rgba(var(--primary-rgb), 0.15);
            color: rgba(255,255,255,0.7);
        }

        /* ═══════════════════════════════════════════════════════════ */

        /* ── COMMAND PALETTE MODAL — Raycast quality ── */
        .cmd-palette-overlay {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(20px) saturate(1.4);
            -webkit-backdrop-filter: blur(20px) saturate(1.4);
            z-index: 10000;
            display: flex; align-items: flex-start; justify-content: center;
            padding-top: min(18vh, 160px);
            opacity: 0; visibility: hidden;
            transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
        }
        .cmd-palette-overlay.open { opacity: 1; visibility: visible; }
        .cmd-palette {
            width: 580px; max-width: 92vw; max-height: 440px;
            background: rgba(16, 16, 22, 0.97);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 18px;
            box-shadow:
                0 0 0 1px rgba(255,255,255,0.04),
                0 0 1px rgba(var(--primary-rgb), 0.3),
                0 24px 80px -12px rgba(0,0,0,0.75),
                0 0 120px -30px rgba(var(--primary-rgb), 0.15);
            display: flex; flex-direction: column;
            overflow: hidden;
            transform: scale(0.94) translateY(-16px);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .cmd-palette-overlay.open .cmd-palette {
            transform: scale(1) translateY(0);
        }
        .cmd-palette-input-wrap {
            display: flex; align-items: center; gap: 14px;
            padding: 18px 22px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            position: relative;
        }
        .cmd-palette-close-btn {
            width: 28px; height: 28px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            color: var(--text-muted);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            font-size: 1rem;
            flex-shrink: 0;
            transition: all 0.15s;
            padding: 0;
            line-height: 1;
        }
        .cmd-palette-close-btn:hover {
            background: rgba(239,68,68,0.12);
            border-color: rgba(239,68,68,0.2);
            color: #ef4444;
        }
        .cmd-palette-input-wrap::after {
            content: '';
            position: absolute;
            bottom: -1px; left: 20px; right: 20px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.2), transparent);
        }
        .cmd-palette-input-wrap svg { opacity: 0.35; flex-shrink: 0; }
        .cmd-palette-input {
            flex: 1; background: none; border: none; outline: none;
            color: var(--text-main);
            font-size: 1.08rem; font-family: var(--font-main); font-weight: 500;
            caret-color: var(--primary);
            letter-spacing: -0.01em;
        }
        .cmd-palette-input::placeholder { color: var(--text-muted); opacity: 0.35; }
        .cmd-palette-results {
            flex: 1; overflow-y: auto; padding: 8px;
            scrollbar-width: none;
        }
        .cmd-palette-results::-webkit-scrollbar { display: none; }
        .cmd-palette-group-label {
            font-size: 0.58rem; font-weight: 700;
            text-transform: uppercase; letter-spacing: 1.2px;
            color: var(--text-muted); opacity: 0.4;
            padding: 14px 14px 5px 14px;
        }
        .cmd-palette-item {
            display: flex; align-items: center; gap: 13px;
            padding: 10px 14px; border-radius: 11px;
            cursor: pointer; color: var(--text-muted);
            font-size: 0.87rem; font-weight: 500;
            transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        .cmd-palette-item:hover,
        .cmd-palette-item.selected {
            background: rgba(var(--primary-rgb), 0.08);
            color: var(--text-main);
        }
        .cmd-palette-item.selected {
            box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.12);
        }
        .cmd-palette-item .cpi-icon {
            width: 32px; height: 32px;
            border-radius: 9px;
            background: rgba(255,255,255,0.04);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.9rem; flex-shrink: 0;
            transition: all 0.15s;
            border: 1px solid rgba(255,255,255,0.03);
        }
        .cmd-palette-item.selected .cpi-icon,
        .cmd-palette-item:hover .cpi-icon {
            background: rgba(var(--primary-rgb), 0.12);
            border-color: rgba(var(--primary-rgb), 0.1);
            box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.12);
        }
        .cmd-palette-item .cpi-keys {
            margin-left: auto; display: flex; gap: 4px;
            opacity: 0; transition: opacity 0.12s;
        }
        .cmd-palette-item:hover .cpi-keys,
        .cmd-palette-item.selected .cpi-keys { opacity: 0.5; }
        .cmd-palette-item .cpi-keys kbd {
            padding: 1px 5px; border-radius: 4px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.07);
            font-size: 0.56rem; font-family: var(--font-mono);
            color: var(--text-muted);
        }
        .cmd-palette-empty {
            padding: 40px; text-align: center;
            color: var(--text-muted); opacity: 0.35; font-size: 0.85rem;
        }
        .cmd-palette-footer {
            padding: 10px 20px;
            border-top: 1px solid rgba(255,255,255,0.04);
            display: flex; align-items: center; gap: 18px;
            font-size: 0.58rem; color: var(--text-muted); opacity: 0.35;
        }
        .cmd-palette-footer kbd {
            padding: 1px 5px; border-radius: 4px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            font-family: var(--font-mono); font-size: 0.56rem;
            margin: 0 2px;
        }


        /* ── NAV SECTION HEADERS — Notion style ── */
        .nav-section {
            font-size: 0.6rem;
            font-weight: 650;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: var(--text-muted);
            margin-top: 22px;
            margin-bottom: 4px;
            padding: 5px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            border-radius: 7px;
            transition: all 0.15s ease;
            user-select: none;
            opacity: 0.45 !important;
        }
        .nav-section:hover {
            opacity: 0.8 !important;
            color: var(--text-main);
        }
        .nav-section:first-child { margin-top: 4px; }
        .nav-section-chevron {
            width: 14px; height: 14px;
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s;
            opacity: 0; font-size: 0.52rem;
        }
        .nav-section:hover .nav-section-chevron { opacity: 0.6; }
        .nav-section.collapsed .nav-section-chevron {
            transform: rotate(-90deg); opacity: 0.4;
        }
        .nav-section-group {
            overflow: hidden;
            transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
            max-height: 600px; opacity: 1;
        }
        .nav-section-group.collapsed { max-height: 0; opacity: 0; }

        /* ── NAV ITEMS — Linear / Arc level ── */
        .nav-item {
            display: flex;
            align-items: center;
            gap: 11px;
            padding: 7px 10px;
            margin: 2px 4px;
            border-radius: 10px;
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            font-weight: 500;
            font-size: 0.84rem;
            border: 1px solid transparent;
            position: relative;
            letter-spacing: -0.01em;
            line-height: 1.35;
        }
        .nav-item .nav-icon {
            width: 30px; height: 30px;
            border-radius: 9px;
            background: rgba(255,255,255,0.035);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.88rem;
            flex-shrink: 0;
            transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 1px solid rgba(255,255,255,0.025);
            position: relative;
        }
        .nav-item .nav-icon svg {
            width: 18px;
            height: 18px;
            display: block;
            color: currentColor;
        }
        .brand-logo svg {
            width: 18px;
            height: 18px;
            display: block;
        }
        .profile-popover-item-icon svg {
            width: 18px;
            height: 18px;
            display: block;
            color: currentColor;
        }
        .nav-item .nav-label {
            transition: color 0.15s, transform 0.15s;
        }
        .nav-item:hover {
            background: rgba(255,255,255,0.04);
            color: var(--text-main);
            border-color: rgba(255,255,255,0.03);
        }
        .nav-item:hover .nav-icon {
            background: rgba(255,255,255,0.065);
            border-color: rgba(255,255,255,0.06);
            transform: scale(1.08);
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .nav-item:hover .nav-label {
            transform: translateX(2px);
        }
        .nav-item:active {
            transform: scale(0.97);
            transition-duration: 0.06s;
        }
        /* Active indicator — glowing left edge bar */
        .nav-item::before {
            content: '';
            position: absolute;
            left: -1px; top: 50%;
            transform: translateY(-50%) scaleY(0);
            width: 3px; height: 55%;
            border-radius: 0 4px 4px 0;
            background: linear-gradient(180deg, var(--primary), #ec4899);
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow:
                0 0 12px rgba(var(--primary-rgb), 0.6),
                0 0 24px rgba(var(--primary-rgb), 0.2);
        }
        /* Active nav-item — DRAMATIC glow state */
        .nav-item.active {
            background: rgba(var(--primary-rgb), 0.06);
            color: #fff;
            font-weight: 600;
            border-color: rgba(var(--primary-rgb), 0.08);
            box-shadow: 0 0 20px -6px rgba(var(--primary-rgb), 0.15);
        }
        .nav-item.active::before {
            transform: translateY(-50%) scaleY(1);
        }
        .nav-item.active .nav-icon {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(236,72,153,0.12));
            border-color: rgba(var(--primary-rgb), 0.2);
            box-shadow:
                0 0 16px rgba(var(--primary-rgb), 0.25),
                inset 0 0 8px rgba(var(--primary-rgb), 0.1);
            transform: scale(1.04);
        }
        .nav-item.active .nav-label {
            text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
        }

        /* Badge — pulsing with glow */
        .nav-badge {
            margin-left: auto;
            min-width: 20px; height: 20px;
            padding: 0 6px;
            border-radius: 10px;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #fff;
            font-size: 0.58rem;
            font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            line-height: 1;
            box-shadow: 0 0 12px rgba(239, 68, 68, 0.4), 0 0 4px rgba(239, 68, 68, 0.2);
            animation: badge-pulse 2.5s ease-in-out infinite;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        @keyframes badge-pulse {
            0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4), 0 0 4px rgba(239, 68, 68, 0.2); transform: scale(1); }
            50%      { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 0 6px rgba(239, 68, 68, 0.3); transform: scale(1.05); }
        }

        /* External arrow — smooth reveal */
        .nav-item.nav-external::after {
            content: '↗';
            margin-left: auto;
            font-size: 0.6rem;
            opacity: 0;
            transition: opacity 0.15s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform: translate(-4px, 2px);
            color: var(--primary);
        }
        .nav-item.nav-external:hover::after {
            opacity: 0.6;
            transform: translate(0, 0);
        }


        /* ── SIDEBAR FOOTER — Notion/Linear style ── */
        .sidebar-footer {
            flex-shrink: 0;
            padding: 12px 14px;
            border-top: 1px solid rgba(255,255,255,0.03);
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }
        .sidebar-footer::before {
            content: '';
            position: absolute;
            top: -1px; left: 14px; right: 14px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
        }
        .sidebar-footer-avatar {
            width: 28px; height: 28px;
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(236,72,153,0.1));
            border: 1px solid rgba(var(--primary-rgb), 0.12);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.65rem; font-weight: 700;
            color: var(--primary);
            flex-shrink: 0;
            position: relative;
        }
        .sidebar-footer-avatar::after {
            content: '';
            position: absolute;
            bottom: -3px; right: -3px;
            width: 9px; height: 9px;
            border-radius: 50%;
            background: var(--avatar-dot-color, #22c55e);
            border: 2px solid var(--bg-deep);
            box-shadow: 0 0 6px rgba(34,197,94,0.4);
            animation: status-blink 3s ease-in-out infinite;
        }
        @keyframes status-blink {
            0%, 90%, 100% { opacity: 1; }
            95% { opacity: 0.4; }
        }
        .sidebar-footer-info {
            display: flex; flex-direction: column; min-width: 0;
        }
        .sidebar-footer-version {
            font-size: 0.6rem;
            color: var(--text-muted);
            font-weight: 600;
            letter-spacing: 0.3px;
            font-family: var(--font-mono);
            opacity: 0.5;
        }
        .sidebar-footer-label {
            font-size: 0.55rem;
            color: var(--text-muted);
            opacity: 0.25;
            letter-spacing: 0.1px;
        }

        /* ── Profile Popover ── */
        .profile-popover {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 10px;
            right: 10px;
            background: linear-gradient(165deg, rgba(22,22,30,0.98), rgba(12,12,18,0.99));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            padding: 6px;
            z-index: 999;
            backdrop-filter: blur(24px) saturate(1.4);
            -webkit-backdrop-filter: blur(24px) saturate(1.4);
            box-shadow: 0 -12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 -2px 20px rgba(var(--primary-rgb), 0.06);
            opacity: 0;
            transform: translateY(8px) scale(0.97);
            pointer-events: none;
            transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .profile-popover.active {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .profile-popover-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 10px 8px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            margin-bottom: 4px;
        }
        .profile-popover-avatar {
            width: 36px; height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(236,72,153,0.15));
            border: 1px solid rgba(var(--primary-rgb), 0.15);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.8rem; font-weight: 700;
            color: var(--primary);
            flex-shrink: 0;
        }
        .profile-popover-user {
            min-width: 0;
        }
        .profile-popover-name {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .profile-popover-status {
            font-size: 0.62rem;
            color: var(--text-muted);
            opacity: 0.6;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .profile-popover-status-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--avatar-dot-color, #22c55e);
            flex-shrink: 0;
        }
        .profile-popover-items {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .profile-popover-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
            font-size: 0.75rem;
            color: var(--text-muted);
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-family: inherit;
        }
        .profile-popover-item:hover {
            background: rgba(var(--primary-rgb), 0.08);
            color: var(--text-main);
        }
        .profile-popover-item-icon {
            width: 18px;
            text-align: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }
        .profile-popover-item-label {
            flex: 1;
            white-space: nowrap;
        }
        .profile-popover-item-shortcut {
            font-size: 0.58rem;
            color: var(--text-muted);
            opacity: 0.35;
            font-family: var(--font-mono);
            background: rgba(255,255,255,0.04);
            padding: 2px 5px;
            border-radius: 4px;
            letter-spacing: 0.3px;
        }
        .profile-popover-divider {
            height: 1px;
            margin: 4px 8px;
            background: rgba(255,255,255,0.05);
        }
        .profile-popover-theme-row {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px 10px;
            border-radius: 8px;
        }
        .profile-popover-theme-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 5px 8px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.02);
            color: var(--text-muted);
            font-size: 0.65rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
            font-family: inherit;
        }
        .profile-popover-theme-btn:hover {
            background: rgba(var(--primary-rgb), 0.08);
            border-color: rgba(var(--primary-rgb), 0.15);
            color: var(--text-main);
        }
        .profile-popover-theme-btn.active-theme {
            background: rgba(var(--primary-rgb), 0.12);
            border-color: rgba(var(--primary-rgb), 0.25);
            color: var(--primary);
            font-weight: 600;
        }

        /* ── Separator ── */
        .nav-separator {
            height: 1px;
            margin: 12px 14px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
            position: relative;
        }

        /* ── Staggered entrance animation ── */
        @keyframes nav-item-enter {
            from { opacity: 0; transform: translateX(-8px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        .sidebar-scroll .nav-item {
            animation: nav-item-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
        }
        .sidebar-scroll .nav-item:nth-child(1) { animation-delay: 0.02s; }
        .sidebar-scroll .nav-item:nth-child(2) { animation-delay: 0.04s; }
        .sidebar-scroll .nav-item:nth-child(3) { animation-delay: 0.06s; }
        .sidebar-scroll .nav-item:nth-child(4) { animation-delay: 0.08s; }
        .sidebar-scroll .nav-item:nth-child(5) { animation-delay: 0.10s; }
        .sidebar-scroll .nav-item:nth-child(6) { animation-delay: 0.12s; }
        .sidebar-scroll .nav-item:nth-child(7) { animation-delay: 0.14s; }
        .sidebar-scroll .nav-item:nth-child(8) { animation-delay: 0.16s; }
        .sidebar-scroll .nav-section-group .nav-item:nth-child(1) { animation-delay: 0.04s; }
        .sidebar-scroll .nav-section-group .nav-item:nth-child(2) { animation-delay: 0.06s; }
        .sidebar-scroll .nav-section-group .nav-item:nth-child(3) { animation-delay: 0.08s; }
        .sidebar-scroll .nav-section-group .nav-item:nth-child(4) { animation-delay: 0.10s; }
        .sidebar-scroll .nav-section-group .nav-item:nth-child(5) { animation-delay: 0.12s; }

        /* Dragging state */
        .nav-item.dragging {
            opacity: 0.4;
            background: rgba(var(--primary-rgb), 0.04);
        }

        /* ── Dropdown Menu ── */
        .nav-item-dropdown {
            position: relative;
        }
        .nav-item-dropdown:hover .nav-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(4px);
        }
        .nav-item-dropdown:hover .nav-dropdown-arrow {
            transform: rotate(180deg);
        }
        .nav-dropdown-arrow {
            font-size: 0.65rem;
            transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            margin-left: 6px;
        }
        .nav-dropdown {
            position: absolute;
            top: 100%;
            left: 4px;
            right: 4px;
            min-width: 160px;
            background: var(--bg-glass);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 6px 0;
            margin-top: 4px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.02);
            backdrop-filter: blur(10px);
        }
        .nav-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.15s;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 500;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
        }
        .nav-dropdown-item:hover {
            background: rgba(255,255,255,0.05);
            color: var(--text-main);
        }
        .nav-dropdown-item:active {
            background: rgba(255,255,255,0.08);
            transform: scale(0.98);
        }
        .nav-dropdown-item .nav-icon {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            background: rgba(255,255,255,0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            flex-shrink: 0;
            transition: all 0.15s;
            border: 1px solid rgba(255,255,255,0.02);
        }
        .nav-dropdown-item:hover .nav-icon {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.04);
        }


