:root {
    --bg-dark: #0a2d46;
    --bg-panel: #10374e;
    --bg-panel-hover: #174b6a;
    --accent: #add8f5;
    --accent-hover: #277fa3;
    --text-main: #f0f8ff;
    --text-muted: #8ab6d6;
    --glass-bg: rgba(16, 55, 78, 0.6);
    --glass-border: rgba(173, 216, 245, 0.2);
    
    /* Spacing & Radius Tokens */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

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

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

body.app-active {
    overflow: hidden;
    height: 100vh;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* View Containers */
.view-container {
    display: none;
    height: 100vh;
    width: 100vw;
}

.view-container.active {
    display: flex;
}

.boot-view {
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.boot-card {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.boot-logo {
    width: 220px;
    max-width: 58vw;
    height: auto;
}

.boot-pulse {
    width: 150px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #2b8ab3, transparent);
    animation: bootPulse 1.1s ease-in-out infinite;
}

@keyframes bootPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scaleX(0.75);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

html.yc-has-session-token:not(.yc-app-ready) #landing-view.active,
html.yc-has-session-token:not(.yc-app-ready) #auth-view.active {
    display: none;
}

.hidden {
    display: none !important;
}
