.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(110, 7, 243, 0.2);
    border-radius: 50%;
    color: #fff;
    background: #6e07f3;
    box-shadow: 0 10px 30px rgba(20, 28, 58, 0.18);
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

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

.scroll-top svg {
    width: 20px;
    height: 20px;
}

.scroll-top:hover {
    background: #5b05ca;
    box-shadow: 0 14px 35px rgba(110, 7, 243, 0.25);
    transform: translateY(-4px);
}

.scroll-top:focus-visible {
    outline: 3px solid rgba(110, 7, 243, 0.3);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 42px;
        height: 42px;
    }

    .scroll-top svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top {
        transition: none;
    }
}