/* Back to Top — minimal indigo */
html { scroll-behavior: smooth; }

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1.5px solid #c7d2fe;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
}

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

.back-to-top:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18);
    background: #eef2ff;
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.1);
}

.back-to-top-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-1px);
}

/* Hide tooltip — keep accessible title attribute only */
.back-to-top-tooltip { display: none; }

@media (max-width: 600px) {
    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 20px;
        right: 18px;
        border-radius: 8px;
    }
}
