.scroll-nav {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1045;
}

.scroll-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: var(--front-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(31, 42, 68, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.scroll-nav-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(31, 42, 68, 0.25);
}

.scroll-nav-btn:focus-visible {
    outline: 2px solid rgba(31, 162, 166, 0.35);
    outline-offset: 3px;
}

html[data-bs-theme='dark'] .scroll-nav-btn {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 576px) {
    .scroll-nav {
        right: 1rem;
        bottom: 1rem;
    }

    .scroll-nav-btn {
        width: 42px;
        height: 42px;
    }
}
