﻿#loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 15, 40, 0.65); /* dark purple glass overlay */
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}



/* Spinner (clean + premium) */
.spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(122, 77, 187, 0.15);
    border-top: 4px solid var(--primary-light);
    border-right: 4px solid var(--gold);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Simple spin only (remove glow chaos) */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Icon becomes subtle accent, not “emoji UI” */
.loader-icon {
    font-size: 1.4rem;
    margin-top: 14px;
    color: var(--primary-light);
    opacity: 0.9;
}

/* Loading text */
.loading-text {
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: azure;
}

/* subtle fade in instead of bounce (more premium) */
.loading-text {
    animation: fadeInPulse 1.6s ease-in-out infinite;
}

@keyframes fadeInPulse {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}
.loader-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

    .loader-logo img {
        width: 70px;
        height: 70px;
        object-fit: contain;
        border-radius: 10px;
        /* subtle premium feel */
        box-shadow: 0 4px 12px rgba(41, 16, 74, 0.2);
        animation: float 2.4s ease-in-out infinite;
    }

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}