.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;

    width: 50px;
    height: 50px;
    border-radius: 50%;

    background-color: #fdfbf7; /* matching cream */
    color: #e54b4b; /* matching red */
    border: 3px solid #e54b4b;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    box-shadow: 3px 3px 0px #1a365d;

    /* Hidden by default with smooth fade-in */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

/* Shown state handled by JavaScript */
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #1a365d;
    background-color: #fff9e6;
}

.back-to-top-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #1a365d;
}
