 /* ============================================
           SPACE WHITE THEME — CalE85
           Clean, minimal, futuristic
           ============================================ */
        :root {
            --bg: #f7f9fc;
            --bg-soft: #eef2f8;
            --surface: #ffffff;
            --surface-2: #fbfcfe;
            --text: #0a1628;
            --text-soft: #4a5568;
            --text-muted: #8a94a6;
            --border: #e4e9f2;
            --border-soft: #eef1f6;

            --accent: #2563eb;
            --accent-2: #06b6d4;
            --accent-3: #8b5cf6;
            --accent-glow: rgba(37, 99, 235, 0.15);

            --success: #10b981;
            --warn: #f59e0b;
            --danger: #ef4444;

            --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 1px 3px rgba(10, 22, 40, 0.06);
            --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.06), 0 2px 4px rgba(10, 22, 40, 0.04);
            --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.08), 0 4px 12px rgba(10, 22, 40, 0.04);
            --shadow-glow: 0 0 0 3px var(--accent-glow);

            --radius: 14px;
            --radius-sm: 10px;
        }

        * { box-sizing: border-box; }

        body.bg-white {
            background: var(--bg) !important;
            color: var(--text);
            font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
            position: relative;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* cosmic background */
        body.bg-white::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.08), transparent 60%),
                radial-gradient(ellipse 70% 60% at 100% 20%, rgba(6, 182, 212, 0.08), transparent 60%),
                radial-gradient(ellipse 60% 40% at 50% 100%, rgba(37, 99, 235, 0.06), transparent 60%);
            pointer-events: none;
            z-index: 0;
        }

        body.bg-white::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                radial-gradient(1px 1px at 20px 30px, rgba(37, 99, 235, 0.25), transparent),
                radial-gradient(1px 1px at 80px 120px, rgba(139, 92, 246, 0.25), transparent),
                radial-gradient(1.5px 1.5px at 160px 80px, rgba(6, 182, 212, 0.2), transparent),
                radial-gradient(1px 1px at 220px 200px, rgba(37, 99, 235, 0.2), transparent),
                radial-gradient(1px 1px at 320px 60px, rgba(139, 92, 246, 0.2), transparent),
                radial-gradient(1.5px 1.5px at 420px 180px, rgba(6, 182, 212, 0.25), transparent);
            background-size: 500px 300px;
            background-repeat: repeat;
            opacity: 0.6;
            pointer-events: none;
            z-index: 0;
            animation: starDrift 120s linear infinite;
        }

        @keyframes starDrift {
            0%   { background-position: 0 0; }
            100% { background-position: 500px 300px; }
        }

        .container { position: relative; z-index: 2; }

        /* header card */
        .space-header {
            position: relative;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            padding: 16px 28px !important;
            margin-bottom: 2.5rem;
            box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 1);
        }

        .space-header::before {
            content: '';
            position: absolute;
            top: 0; left: 20%; right: 20%;
            height: 1px;
            background: linear-gradient(90deg,
                transparent, var(--accent-3) 30%, var(--accent) 50%, var(--accent-2) 70%, transparent);
            opacity: 0.6;
        }

        /* logo */
        .logo-wrap {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none !important;
            color: var(--text) !important;
            transition: transform 0.2s ease;
        }
        .logo-wrap:hover { transform: translateY(-1px); }

        .logo-badge {
            position: relative;
            width: 52px;
            height: 52px;
            border-radius: 14px;
            background: linear-gradient(135deg, #ffffff 0%, #f1f5fa 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255,255,255,1);
            border: 1px solid var(--border);
        }

        .logo-badge img {
            width: 36px; height: auto;
            animation: gentlePulse 4s ease-in-out infinite;
        }

        @keyframes gentlePulse {
            0%, 100% { transform: scale(1); }
            50%      { transform: scale(1.05); }
        }

        .logo-text { display: flex; flex-direction: column; line-height: 1.1; }

        .brand-name {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 1.35rem;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .brand-tag {
            font-size: 0.72rem;
            font-weight: 500;
            color: var(--text-muted);
            letter-spacing: 0.06em;
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .brand-tag::before {
            content: '';
            width: 6px; height: 6px;
            background: var(--success);
            border-radius: 50%;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
            animation: livePing 2s ease-in-out infinite;
        }

        @keyframes livePing {
            0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
            50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
        }

        /* nav */
        .space-nav {
            gap: 4px;
            padding: 4px;
            background: rgba(244, 247, 251, 0.7);
            border-radius: 12px;
            border: 1px solid var(--border-soft);
        }

        .space-nav .nav-link {
            font-weight: 500;
            font-size: 0.88rem;
            color: var(--text-soft) !important;
            padding: 8px 16px !important;
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .space-nav .nav-link:hover {
            color: var(--accent) !important;
            background: rgba(255, 255, 255, 0.8);
        }

        .space-nav .nav-link.link-secondary,
        .space-nav .nav-link.active {
            color: var(--accent) !important;
            background: #ffffff;
            box-shadow: var(--shadow-sm);
            font-weight: 600;
        }

        @media (max-width: 767px) {
            .space-header { padding: 12px 18px !important; border-radius: 16px; }
            .logo-badge { width: 44px; height: 44px; }
            .logo-badge img { width: 30px; }
            .brand-name { font-size: 1.1rem; }
            .brand-tag { font-size: 0.65rem; }
            .space-nav .nav-link { font-size: 0.8rem; padding: 6px 10px !important; }
        }