#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    opacity: 0; /* <-- use opacity instead of display none */
    pointer-events: none; /* disable interaction when hidden */
    z-index: 999;
    background: rgb(209, 180, 130);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto; /* re-enable interaction */
}

#scrollTopBtn:hover {
  background-color: #555;
}

#scrollTopBtn .hover-text {
    display: none; /* hidden by default */
    position: absolute;
    top: 50%; /* vertically center */
    right: 125%; /* position to the left outside the button */
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none; /* so it doesn't block button hover */
}

#scrollTopBtn:hover .hover-text {
  display: block;
}

@media (hover: none) and (pointer: coarse) {
    #scrollTopBtn .hover-text {
        display: none !important;
    }

    #scrollTopBtn:hover {
        background-color: rgb(209, 180, 130); /* original color */
    }
}

