#loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid rgba(0,0,0,0.08);
    border-top-color: #c0392b; /* accent color */
    box-sizing: border-box;
    animation: spin 5s linear 1; /* rotate once over 5s */
}

/* Fade-out helper when script adds .hidden */
#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .spinner { width: 60px; height: 60px; border-width: 6px; }
}