@keyframes floating-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floating-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, .35),
                    0 0 0 0 rgba(126, 172, 47, .5);
    }
    50% {
        box-shadow: 0 8px 28px rgba(0, 0, 0, .4),
                    0 0 0 8px rgba(126, 172, 47, 0);
    }
}

@keyframes floating-pulse-ring {
    0% {
        transform: scale(1);
        opacity: .6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes floating-shine {
    0% {
        left: -80%;
    }
    100% {
        left: 120%;
    }
}

.floating-btn {
    position: fixed;
    right: 20px;
    bottom: 110px;
    z-index: 39;
    text-decoration: none;
    cursor: pointer;
    display: block;
    animation: floating-bob 3s ease-in-out infinite;
}

.floating-btn__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid var(--color-1xbet-green, #7eac2f);
    animation: floating-pulse-ring 2.4s ease-out infinite;
    pointer-events: none;
}

.floating-btn__pulse--delay {
    animation-delay: 1.2s;
}

.floating-btn__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    background: linear-gradient(135deg, #1d4268 0%, #0f2840 100%);
    border: 2px solid var(--color-1xbet-green, #7eac2f);
    border-radius: 50px;
    overflow: hidden;
    animation: floating-glow 2.5s ease-in-out infinite;
    transition: transform .25s ease, border-color .25s ease, padding .3s ease;
}

.floating-btn__content::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    animation: floating-shine 4s ease-in-out infinite;
    pointer-events: none;
}

.floating-btn__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #2aabee 0%, #229ed9 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(34, 158, 217, .45);
    transition: transform .25s ease;
}

.floating-btn__icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.floating-btn__info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

.floating-btn__info strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.floating-btn__info small {
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    margin-top: 2px;
}

.floating-btn:hover {
    animation-play-state: paused;
}

.floating-btn:hover .floating-btn__content {
    transform: scale(1.06);
    border-color: #ff0;
    padding-right: 22px;
}

.floating-btn:hover .floating-btn__icon {
    transform: rotate(-12deg) scale(1.08);
}

.floating-btn:hover .floating-btn__pulse {
    animation-play-state: paused;
}

.floating-btn:active .floating-btn__content {
    transform: scale(1.02);
}

@media (min-width: 1500px) {
    .floating-btn {
        right: calc((100vw - 1440px) / 2 + 20px);
    }
}

@media (max-width: 768px) {
    .floating-btn {
        right: 12px;
        bottom: 90px;
    }

    .floating-btn__content {
        padding: 8px 14px 8px 8px;
        gap: 8px;
    }

    .floating-btn__icon {
        width: 38px;
        height: 38px;
    }

    .floating-btn__icon img {
        width: 20px;
        height: 20px;
    }

    .floating-btn__info strong {
        font-size: 12px;
    }

    .floating-btn__info small {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .floating-btn__info small {
        display: none;
    }

    .floating-btn__content {
        padding: 8px 12px 8px 8px;
    }
}
