/* KT779 Support Bubble */

.support-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
}

/* Main support button */
.support-btn {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffbf00, #ff9800);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 170, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.support-btn::before,
.support-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.45);
    pointer-events: none;
    z-index: -1;
}

.support-btn::before {
    animation: ripple 2s infinite;
}

.support-btn::after {
    animation: ripple 2s infinite 0.8s;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* Contact cards */
.contact-item {
    position: relative;
    z-index: 1;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #222;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    will-change: transform, opacity;
}

.contact-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: filter 0.25s ease;
}

.contact-item span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.25s ease;
}

.contact-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.35);
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.contact-item:hover::after {
    animation: hoverRipple 0.6s ease-out;
}

@keyframes hoverRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.contact-item.telegram:hover {
    background: #229ED9;
    color: #fff;
}

.contact-item.facebook:hover {
    background: #1877F2;
    color: #fff;
}

.contact-item.telegram:hover img,
.contact-item.facebook:hover img {
    filter: brightness(0) invert(1);
}

/* Open state */
.support-wrapper.is-open .contact-item {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.support-wrapper.is-open .contact-item.telegram {
    transition-delay: 0.05s;
}

.support-wrapper.is-open .contact-item.facebook {
    transition-delay: 0.12s;
}

/* Mobile */
@media (max-width: 767px) {
    .support-wrapper {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .support-btn {
        width: 75px;
        height: 75px;
        font-size: 20px;
    }

    .contact-item {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        gap: 6px;
    }

    .contact-item img {
        width: 32px;
        height: 32px;
    }

    .contact-item span {
        font-size: 12px;
    }
}
