#global-loading[hidden] {
    display: none;
}

#global-loading {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(2px);
}

.global-loading-card {
    width: min(360px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #206bc4);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .32);
}

.global-loading-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-loading-spinner {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: global-loading-spin .8s linear infinite;
}

.global-loading-title {
    font-size: 16px;
    font-weight: 700;
}

.global-loading-message {
    margin-top: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.global-loading-track {
    height: 5px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
}

.global-loading-bar {
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    animation: global-loading-progress 1.15s ease-in-out infinite;
}

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

@keyframes global-loading-progress {
    from { transform: translateX(-130%); }
    to { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
    .global-loading-spinner,
    .global-loading-bar { animation: none; }
    .global-loading-bar { width: 100%; }
}
