/* Short, composited interactions; no scroll hijacking or permanent hidden content. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: no-preference) {
    :is(.modern-app-body, .auth-v2, .admin-ui) :is(.btn, .btn-modern-buy, .btn-auth-primary, .auth-v2-submit, .orders-action-primary, .orders-action-secondary, .twofa-submit, .guest-auth-links a) {
        transition: transform 180ms var(--motion-ease), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }
    :is(.modern-app-body, .auth-v2, .admin-ui) :is(.btn, .btn-modern-buy, .btn-auth-primary, .auth-v2-submit, .orders-action-primary, .orders-action-secondary, .twofa-submit):active:not(:disabled) { transform: scale(.98); }
    :is(.modern-app-body, .auth-v2, .admin-ui) :is(input, select, textarea) { transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
    .modern-nav-link, .modern-sub-nav a, .admin-ui .nav-sidebar .nav-link, .auth-v2-tabs a { transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
    .modal.fade .modal-dialog { transition: transform 240ms var(--motion-ease); transform: translateY(14px); }
    .modal.show .modal-dialog { transform: none; }
    .modal.fade, .modal-backdrop.fade { transition: opacity 180ms ease; }
    .btn-modern-buy .btn-arrow, .auth-v2-browse > i { transition: transform 200ms var(--motion-ease); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    :is(.btn-modern-buy, .btn-auth-primary, .auth-v2-submit, .orders-action-primary, .twofa-submit):hover:not(:disabled) { transform: translateY(-2px); }
    .btn-modern-buy:hover .btn-arrow, .auth-v2-browse:hover > i { transform: translateX(3px); }
    .modern-app-body .product-plan-card { transition: transform 260ms var(--motion-ease), box-shadow 260ms ease, border-color 200ms ease; }
    .modern-app-body .product-plan-card:hover { transform: translateY(-3px); }
}
@media (hover: none) { .modern-app-body .product-plan-card:hover, .modern-app-body .topbar-wallet-pill:hover, .modern-app-body .btn-modern-buy:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    :is(.modern-app-body, .auth-v2, .admin-ui) *, :is(.modern-app-body, .auth-v2, .admin-ui) *::before, :is(.modern-app-body, .auth-v2, .admin-ui) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
