.global-back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: linear-gradient(145deg, #3d82cf, #1f67b8);
    color: #fff;
    font-size: .88rem;
    box-shadow: 0 9px 22px rgba(10, 52, 114, .24);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.9);
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease, box-shadow .2s ease, background .2s ease;
}

.global-back-to-top i {
    line-height: 1;
}

.global-back-to-top:hover,
.global-back-to-top:focus-visible {
    background: linear-gradient(145deg, #ff963f, #ed7415);
    box-shadow: 0 11px 25px rgba(237, 116, 21, .28);
    transform: translateY(-2px) scale(1);
}

.global-back-to-top:focus-visible {
    outline: 3px solid rgba(255, 150, 63, .3);
    outline-offset: 3px;
}

.global-back-to-top:active {
    transform: translateY(0) scale(.95);
}

.global-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.global-back-to-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .global-back-to-top {
        right: .75rem;
        bottom: .75rem;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .global-back-to-top {
        transition: none;
    }
}
