.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0f172a; /* Slate 900 to match bg */
    z-index: 100; /* Ensure high z-index to overlay everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.global-loader-overlay.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Fluid ring animation based on #6CBF91 */
.fluid-loader {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.fluid-loader::before, .fluid-loader::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    border: 3px solid transparent;
    border-top-color: rgba(108, 191, 145, 0.5); /* #6CBF91 with opacity */
    border-right-color: #6CBF91;
    border-bottom-color: rgba(108, 191, 145, 0.8);
    animation: fluid-spin 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(108, 191, 145, 0.3));
}

.fluid-loader::after {
    border-radius: 40% 60% 55% 45% / 45% 55% 40% 60%;
    border-color: rgba(108, 191, 145, 0.3) transparent #6CBF91 rgba(108, 191, 145, 0.6);
    animation-direction: reverse;
    animation-duration: 4s;
}

@keyframes fluid-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #6CBF91;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    animation: pulse-text 2s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
