.upo-loading-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(248, 249, 250, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.upo-loading-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.upo-loading-card {
    width: min(100%, 430px);
    padding: 32px;
    border: 1px solid rgba(0, 32, 72, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.upo-loading-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background: #e8eef5;
    color: #002048;
    font-size: 1.85rem;
}

.upo-loading-icon::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 3px solid rgba(0, 32, 72, 0.12);
    border-top-color: #002048;
    animation: upo-loading-spin 0.9s linear infinite;
}

.upo-loading-title {
    margin-bottom: 8px;
    color: #002048;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.upo-loading-message {
    color: #767f8c;
    font-size: 0.96rem;
    line-height: 1.55;
}

body.upo-loading-active {
    overflow: hidden;
}

body.upo-loading-active .navbar,
body.upo-loading-active .main-wrapper,
body.upo-loading-active .footer,
body.upo-loading-active .footer-wrapper {
    filter: blur(4px);
    transition: filter 180ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .upo-loading-backdrop,
    body.upo-loading-active .navbar,
    body.upo-loading-active .main-wrapper,
    body.upo-loading-active .footer,
    body.upo-loading-active .footer-wrapper {
        transition: none;
    }

    .upo-loading-icon::before {
        animation: none;
    }
}
