.kairos-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #07549a;
    background: rgba(240, 248, 255, .84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.kairos-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.kairos-loading-card {
    min-width: min(260px, 84vw);
    padding: 28px 30px 24px;
    text-align: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(7, 84, 154, .16);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(4, 47, 85, .2);
}

.kairos-loading-logo-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
}

.kairos-loading-logo-wrap::before,
.kairos-loading-logo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(7, 84, 154, .2);
    border-radius: 50%;
    animation: kairosLoadingPulse 1.8s ease-out infinite;
}

.kairos-loading-logo-wrap::after {
    animation-delay: .6s;
}

.kairos-loading-logo {
    width: 52px;
    height: 52px;
    color: #07549a;
    filter: drop-shadow(0 7px 12px rgba(7, 84, 154, .2));
    animation: kairosLogoSpin 1.25s cubic-bezier(.55, .15, .45, .85) infinite;
}

.kairos-loading-text {
    color: #062d55;
    font: 800 16px/1.45 'Manrope', 'Noto Sans SC', sans-serif;
}

.kairos-loading-hint {
    margin-top: 5px;
    color: #587996;
    font: 500 12px/1.5 'Noto Sans SC', sans-serif;
}

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

@keyframes kairosLogoSpin {
    to { transform: rotate(360deg); }
}

@keyframes kairosLoadingPulse {
    0% { transform: scale(.68); opacity: .65; }
    75%, 100% { transform: scale(1.22); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .kairos-loading-logo {
        animation: kairosLoadingBreathe 1.2s ease-in-out infinite alternate;
    }

    .kairos-loading-logo-wrap::before,
    .kairos-loading-logo-wrap::after {
        animation: none;
    }
}

@keyframes kairosLoadingBreathe {
    to { transform: scale(1.08); opacity: .68; }
}
