/* Site-wide busy overlay */
#apald-busy-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 5, 25, 0.72);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    cursor: wait;
}

#apald-busy-overlay.is-visible {
    display: flex;
}

#apald-busy-overlay .apald-busy-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--apald-cyan, #00d2ff);
    border-radius: 50%;
    animation: apald-busy-spin 0.8s linear infinite;
}

#apald-busy-overlay .apald-busy-message {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    max-width: 280px;
    padding: 0 1rem;
}

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

/* Optional: prevent double-clicks on marked buttons */
button.apald-busy-disabled,
.apald-busy-disabled {
    pointer-events: none;
    opacity: 0.7;
}