/* ── Wrapper ── */
.flb-group {
    position: fixed;
    bottom: 28px;
    right: 22px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    font-family: 'DM Sans', sans-serif;
    animation: flbSlideIn 0.5s 0.3s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes flbSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Main support button ── */
.flb-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px 0 6px;
    height: 50px;
    border-radius: 50px;
    background: linear-gradient(135deg, #e3982d 0%, #c77f1f 100%);
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.flb-main:hover {
    background: linear-gradient(135deg, #007968 0%, #005f52 100%);
    transform: translateY(-3px) scale(1.03);
}

.flb-main:active {
    transform: translateY(-1px) scale(1.01);
}

/* ── Pulse ring ── */
.flb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid rgba(227, 152, 45, 0.6);
    animation: flbRing 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes flbRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70%,
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* ── Notification dot ── */
.flb-dot {
    position: absolute;
    top: 8px;
    right: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
    animation: flbDotPop 0.4s cubic-bezier(.36, .07, .19, .97) both,
        flbDotBeat 2s 1s ease-in-out infinite;
}

@keyframes flbDotPop {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flbDotBeat {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

/* ── Icon ── */
.flb-main-ico {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s, transform 0.22s;
}

.flb-main:hover .flb-main-ico {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-8deg);
}

.flb-main-ico svg {
    width: 16px;
    height: 16px;
}

/* ── Label ── */
.flb-main-lbl {
    z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .flb-group {
        bottom: 20px;
        right: 16px;
        gap: 8px;
    }

    .flb-main {
        height: 44px;
        padding: 0 16px 0 5px;
        font-size: 0.77rem;
        gap: 8px;
    }

    .flb-main-ico {
        width: 32px;
        height: 32px;
    }
}
