.app-page-shell {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.996);
    transition: opacity 220ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

body.page-ready .app-page-shell {
    opacity: 1;
    transform: none;
    will-change: auto;
}

body.page-exiting .app-page-shell {
    opacity: 0.72;
    transform: translate3d(0, 6px, 0) scale(0.992);
    pointer-events: none;
}

body.page-exiting .telegram-bottom-nav,
body.page-exiting .sticky-checkout-outer,
body.page-exiting .xizmat-top-action {
    pointer-events: none;
}

body.modal-open .app-page-shell {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: auto !important;
}

body.modal-open .modal {
    z-index: 1085 !important;
    pointer-events: auto !important;
}

body.modal-open .modal.show .modal-dialog,
body.modal-open .modal.show .modal-content {
    pointer-events: auto !important;
}

body.modal-open .modal-backdrop {
    z-index: 1075 !important;
}

@media (prefers-reduced-motion: reduce) {
    .app-page-shell {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
