:root {
    --primary: #013E37;
    --accent: #C8A165;
    --bg: #FAF9F8;
    --dark-bg: #001412;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    font-family: 'Manrope', -apple-system, system-ui, sans-serif;
    overscroll-behavior: none;
    overflow: hidden;
}

/* Unified Premium Splash Screen */
.splash-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
    color: white;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

/* When React mounts, hide the splash screen smoothly */
#root.mounted .splash-container {
    opacity: 0;
    pointer-events: none;
}

.splash-text-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    text-align: center;
}

.splash-title {
    font-family: 'Montserrat', -apple-system, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 7.2vw, 2.7rem);
    margin: 0;
    color: #FFFFFF;
    letter-spacing: 2px;
    line-height: 1.1;
}

.splash-logo {
    margin-bottom: 24px;
    animation: splash-pulse 2s ease-in-out infinite;
}

.splash-logo img {
    border-radius: 50%;
    object-fit: cover;
}

.splash-progress-container {
    position: absolute;
    bottom: env(safe-area-inset-bottom, 40px);
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 2;
}

.splash-progress-bar {
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: splash-progress 3s linear forwards;
}

.ambient-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(1, 62, 55, 1) 0%, rgba(0, 20, 18, 1) 100%);
    z-index: 0;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

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

@keyframes splash-progress {
    to {
        transform: scaleX(1);
    }
}

/* Remove all legacy skeleton styles to keep it lean */
#dashboard-skeleton, #login-skeleton, #customer-home-skeleton {
    display: none !important;
}