#global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 10, 16, 0.58);
    backdrop-filter: blur(1.8px);
    -webkit-backdrop-filter: blur(1.8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

#global-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.global-loading-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    max-width: 320px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(5, 15, 35, 0.92);
    color: #f8fbff;
    font: 700 0.92rem/1.2 "Segoe UI", "Trebuchet MS", sans-serif;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.global-loading-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.32);
    border-top-color: #ffffff;
    animation: global-loading-spin 0.85s linear infinite;
    flex-shrink: 0;
}

@keyframes global-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body.global-loading-active,
body.global-loading-active * {
    cursor: progress !important;
}

.is-global-loading {
    pointer-events: none !important;
    opacity: 0.75 !important;
}

@media print {
    #global-loading-overlay {
        display: none !important;
    }
}
