.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #009CFE 0%, #0168EF 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 156, 254, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
    outline: none;
    padding: 0;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: pulseGlow 2s infinite;
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 156, 254, 0.6);
    animation: none;
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 156, 254, 0.5);
}

.up-arrow-svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover .up-arrow-svg {
    transform: translateY(-2px);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 6px 20px rgba(0, 156, 254, 0.4), 0 0 0 0 rgba(0, 156, 254, 0.5);
    }

    70% {
        box-shadow: 0 6px 20px rgba(0, 156, 254, 0.4), 0 0 0 12px rgba(0, 156, 254, 0);
    }

    100% {
        box-shadow: 0 6px 20px rgba(0, 156, 254, 0.4), 0 0 0 0 rgba(0, 156, 254, 0);
    }
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .up-arrow-svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .up-arrow-svg {
        width: 16px;
        height: 16px;
    }
}