/* --- LOADING STATE --- */
/* Prevent FOUC by covering everything until Config is Loaded */
body.loading-config {
    overflow: hidden !important;
}

body.loading-config::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* Neutral background */
    z-index: 99999;
    /* Above everything including #cover */
}

/* Simple Spinner */
body.loading-config::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D4AF37;
    /* Gold fallback */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fade Out Effect for smooth reveal */
body.config-loaded::before,
body.config-loaded::after {
    display: none;
    /* Or transition opacity if element existed */
}