.global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.global-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.global-loading-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.global-loading-panel {
    text-align: center;
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    min-width: 220px;
}

.global-loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: global-loading-spin 0.75s linear infinite;
}

.global-loading-text {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.global-loading-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    direction: rtl;
    margin-bottom: 0.5rem;
}

.global-loading-progress-fill {
    height: 100%;
    width: 0;
    margin-right: 0;
    margin-left: auto;
    border-radius: 999px;
    background: linear-gradient(to left, #3b82f6, #6366f1, #9333ea);
    transition: width 0.2s ease-out;
    transform-origin: right center;
}

.global-loading-percent {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
    direction: rtl;
    unicode-bidi: plaintext;
}

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