        :root {
            /* --- Premium Spacey Palette (Light Mode - Anthracite Edition) --- */

            /* Primary Gradient: Anthracite to Deep Black */
            --primary-gradient: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
            --primary-color: #374151;
            /* Anthracite */
            --primary-glow: rgba(55, 65, 81, 0.4);

            /* Secondary / Accents */
            --secondary-color: #9ca3af;
            --accent-purple: #8b5cf6;
            /* Keep subtle accents for "Space" feel */
            --accent-pink: #ec4899;

            /* Backgrounds */
            --bg-body: #f3f4f6;
            --bg-glass: rgba(255, 255, 255, 0.75);
            --bg-glass-hover: rgba(255, 255, 255, 0.9);

            /* Text */
            --text-main: #1f2937;
            /* Gray 900 */
            --text-muted: #6b7280;
            /* Gray 500 */
            --text-on-primary: #ffffff;

            /* Borders */
            --border-glass: 1px solid rgba(255, 255, 255, 0.8);
            --border-light: 1px solid rgba(229, 231, 235, 0.5);

            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
            --shadow-neon: 0 0 15px rgba(55, 65, 81, 0.3);

            /* Radius */
            --radius-md: 0.75rem;
            --radius-lg: 1.25rem;
            /* Softer, larger curves */
        }

        body {
            background-color: var(--bg-body);
            font-family: 'Inter', sans-serif;
            color: var(--text-main);
            -webkit-font-smoothing: antialiased;
            margin: 0;
            min-height: 100vh;
            overflow-x: hidden;

            /* --- Aurora Background Effect --- */
            background-image:
                radial-gradient(at 0% 0%, rgba(151, 215, 0, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
                radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.1) 0px, transparent 50%);
            background-attachment: fixed;
            background-size: 100% 100%;
        }

        /* Subtle Grid Overlay */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
            background-size: 32px 32px;
            opacity: 0.4;
            z-index: -1;
            pointer-events: none;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-weight: 700;
            letter-spacing: -0.03em;
            color: var(--text-main);
            background: linear-gradient(to right, #1f2937, #4b5563);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* --- Glass Sidebar --- */
        .sidebar {
            width: 280px;
            /* Slightly wider for premium feel */
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            background: var(--bg-glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-right: var(--border-glass);
            padding-top: 2rem;
            box-shadow: var(--shadow-glass);
            z-index: 3000;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-header {
            padding: 0 2rem 2rem 2rem;
        }

        .sidebar .nav-link {
            font-size: 0.95rem;
            font-weight: 500;
            padding: 0.85rem 1.5rem;
            margin: 0.5rem 1rem;
            border-radius: var(--radius-md);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 14px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .sidebar .nav-link i {
            font-size: 1.25rem;
            color: #9ca3af;
            transition: all 0.3s ease;
        }

        /* Hover State */
        .sidebar .nav-link:hover {
            background: rgba(255, 255, 255, 0.6);
            color: #0ea5e9;
            /* Cyan hover */
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        }

        .sidebar .nav-link:hover i {
            color: #0ea5e9;
            transform: scale(1.1);
        }

        /* Active State */
        .sidebar .nav-link.active {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 10px 20px -5px rgba(55, 65, 81, 0.4);
        }

        .sidebar .nav-link.active i {
            color: white;
        }

        /* Content Wrapper */
        .content-wrapper {
            margin-left: 280px;
            padding: 2.5rem 3.5rem;
            transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* --- Premium Glass Cards --- */
        .card {
            border: var(--border-glass) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
            /* Highlight top edge */
            border-radius: var(--radius-lg) !important;
            background: var(--bg-glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: var(--shadow-glass);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            /* Bouncy spring */
            margin-bottom: 2rem;
            color: var(--text-main);
            position: relative;
            /* overflow: hidden; */
        }

        /* Card Hover Float */
        .card:hover {
            transform: translateY(-8px) scale(1.01);
            background: var(--bg-glass-hover);
            box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(151, 215, 0, 0.1);
            /* Subtle glow */
            z-index: 10;
        }

        /* Card Header Styling */
        .card-header {
            background: transparent;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
            padding: 1.25rem 1.5rem;
            font-weight: 600;
        }

        /* --- Buttons --- */
        .btn-primary {
            background: var(--primary-gradient);
            border: none;
            color: white;
            font-weight: 600;
            padding: 0.6rem 1.25rem;
            border-radius: var(--radius-md);
            box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(55, 65, 81, 0.5);
            filter: brightness(1.2);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        /* --- Tables --- */
        .table {
            --bs-table-bg: transparent;
        }

        .table thead th {
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.7rem;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            background-color: rgba(249, 250, 251, 0.5);
            padding: 1rem 1.5rem;
        }

        .table tbody td {
            padding: 1.25rem 1.5rem;
            color: var(--text-main);
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
            vertical-align: middle;
            font-size: 0.95rem;
        }

        .table tbody tr {
            transition: background-color 0.2s ease;
        }

        .table tbody tr:hover {
            background-color: rgba(255, 255, 255, 0.4);
        }

        footer {
            color: var(--text-muted) !important;
            margin-left: 280px;
            transition: margin-left 0.4s ease;
            opacity: 0.7;
        }

        /* --- Pipeline Status Pills (Modernized) --- */
        .status-pill {
            padding: 0.35em 0.8em;
            border-radius: 50rem;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        /* Pipeline Cards (Left Border + Gradient) */
        .card-draft {
            border-left: 4px solid #9ca3af !important;
            background: linear-gradient(to right, rgba(243, 244, 246, 0.4), rgba(255, 255, 255, 0.6));
        }

        .card-open {
            border-left: 4px solid #0ea5e9 !important;
            background: linear-gradient(to right, rgba(224, 242, 254, 0.4), rgba(255, 255, 255, 0.6));
        }

        .card-offer {
            border-left: 4px solid #f59e0b !important;
            background: linear-gradient(to right, rgba(254, 243, 199, 0.4), rgba(255, 255, 255, 0.6));
        }

        .card-sold {
            border-left: 4px solid #10b981 !important;
            background: linear-gradient(to right, rgba(209, 250, 229, 0.4), rgba(255, 255, 255, 0.6));
        }

        .card-lost {
            border-left: 4px solid #ef4444 !important;
            background: linear-gradient(to right, rgba(254, 226, 226, 0.4), rgba(255, 255, 255, 0.6));
        }

        /* --- Animations --- */
        @keyframes fadeSlideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-enter {
            animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            opacity: 0;
            /* Start hidden */
        }

        .delay-1 {
            animation-delay: 0.1s;
        }

        .delay-2 {
            animation-delay: 0.2s;
        }

        .delay-3 {
            animation-delay: 0.3s;
        }

        .delay-4 {
            animation-delay: 0.4s;
        }

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

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

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* --- Responsive / Mobile --- */
        @media (max-width: 991.98px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.sidebar-open {
                transform: translateX(0);
                box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
            }

            .content-wrapper {
                margin-left: 0;
                padding: 1.5rem;
                padding-top: 5rem;
                /* Space for mobile header */
            }

            footer {
                margin-left: 0;
            }

            /* Mobile Header (Renamed to bust cache) */
            .top-bar-mobile {
                display: flex !important;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                height: 60px;
                background: #ffffff;
                /* Solid white to ensure visibility */
                border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                z-index: 2000;
                padding: 0 1.5rem;
                align-items: center;
                justify-content: space-between;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            }

            /* Overlay */
            .sidebar-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                backdrop-filter: blur(4px);
                z-index: 2500;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .sidebar-overlay.show {
                display: block;
                opacity: 1;
            }
        }

        /* Desktop: Hide Mobile Header */
        @media (min-width: 992px) {
            .top-bar-mobile {
                display: none !important;
                /* overflow: hidden; */
            }
        }

        /* Desktop Collapsed State */
        body.sidebar-collapsed .sidebar {
            transform: translateX(-280px);
        }

        body.sidebar-collapsed .content-wrapper {
            margin-left: 0;
        }

        body.sidebar-collapsed footer {
            margin-left: 0;
        }

        /* Admin Badge Link */
        .admin-badge-link {
            color: #6b7280;
            /* text-muted */
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            margin: 1.5rem 1rem 0.5rem 1rem;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .admin-badge-link:hover {
            background: rgba(255, 255, 255, 0.6);
            color: #0ea5e9;
            transform: translateX(4px);
        }

        .admin-badge-link.active {
            background-color: #1f2937;
            /* Dark Anthracite */
            color: #ffffff !important;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .admin-badge-link i {
            font-size: 1.2rem;
            color: #9ca3af;
        }

        .admin-badge-link:hover i {
            color: #0ea5e9;
        }

        /* --- Charts --- */
        .chart-wrapper {
            position: relative;
            height: 300px;
            width: 100%;
        }

        .chart-glass-container {
            position: relative;
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: var(--radius-md);
            padding: 1rem;
            box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
            height: 100%;
            /* Default to full height of parent or set explicitly inline */
        }