.page-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.page-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

body.page-nav-lock {
    overflow: hidden;
    touch-action: none;
}

.page-nav-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 36px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 32px rgba(67, 89, 113, 0.12);
    transform: scale(0.96);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-nav-overlay.is-active .page-nav-overlay__content {
    transform: scale(1);
}

.page-nav-overlay__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(105, 108, 255, 0.18);
    border-top-color: #696cff;
    border-radius: 50%;
    animation: page-nav-spin 0.75s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.page-nav-overlay__text {
    font-size: 13px;
    color: #697a8d;
    letter-spacing: 0.02em;
    user-select: none;
}

.page-nav-overlay--warm .page-nav-overlay__spinner {
    border-color: rgba(255, 152, 0, 0.2);
    border-top-color: #ff9800;
}

.page-nav-overlay--warm .page-nav-overlay__content {
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.15);
}

@keyframes page-nav-spin {
    to { transform: rotate(360deg); }
}
