/* ── 13. LOADER POLISH — pulsing spinner overlay ── */
#loader {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#loader.on {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
#loader .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
#loader.on .spinner {
    animation: spin 0.8s linear infinite, pulseGlow 2s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 64, 0.3); }
    50%       { box-shadow: 0 0 40px rgba(255, 0, 64, 0.6); }
}

