/* ───────── Full–screen dark overlay ───────── */
#page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62,29,116, 0.8);
    z-index: 2147483647;
    transition: opacity .35s ease;
}

/* fades out after load */
#page-loader.fade {
    opacity: 0;
    pointer-events: none;
}

/* ───────── Spinner (pure CSS) ───────── */
.loader-spinner {
    width: 64px;
    height: 64px;
    border: 8px solid rgba(100,72,165, .5);
    border-top-color: #00ccd6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }