/* Scroll-to-top button (reusable) */
.js-scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 152px; /* fallback: clears a ~128px fixed footer + 24px gap */
    z-index: 1050;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* Metronic fixed footer: sit above it using the theme's footer height */
[data-kt-app-footer-fixed=true] .js-scroll-top-btn {
    bottom: calc(var(--bs-app-footer-height, 128px) + 24px);
}

.js-scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .js-scroll-top-btn {
        right: 16px;
    }
}