.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 99985;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 50%;
    background: rgba(18, 26, 46, 0.92);
    color: #e8c547;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s, border-color 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(201, 162, 39, 0.18);
    border-color: rgba(201, 162, 39, 0.55);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45);
}

@media (max-width: 991px) {
    .back-to-top {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .back-to-top {
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 14px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}
