/**
 * Back-to-top control (left side).
 */
.mm-scroll-top {
    position: fixed;
    left: 0.85rem;
    bottom: 5.75rem;
    z-index: 1500;
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(15, 20, 32, 0.92), rgba(8, 10, 18, 0.96));
    color: #e2e8f0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.mm-scroll-top[hidden] {
    display: none !important;
}

.mm-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mm-scroll-top:hover {
    border-color: rgba(244, 125, 49, 0.55);
    color: #fff;
}

.mm-scroll-top:focus-visible {
    outline: 2px solid rgba(244, 125, 49, 0.7);
    outline-offset: 2px;
}

.mm-scroll-top i {
    font-size: 0.95rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .mm-scroll-top {
        left: 0.55rem;
        bottom: 5.25rem;
        width: 2.4rem;
        height: 2.4rem;
    }
}
