/* ════════════════════════════════════════
   FLAVOR FLOATING v7.1 - LIGHT + GLASS
   ════════════════════════════════════════ */

#fl-fab-call,
#fl-fab-social {
    position: fixed;
    bottom: 20px;
    z-index: 9990;
    font-family: inherit;
    line-height: 1;
}

#fl-fab-call *,
#fl-fab-social * {
    box-sizing: border-box;
}

#fl-fab-call svg,
#fl-fab-social svg {
    display: block;
}


/* ── CALL BUTTON (RIGHT) - WhatsApp Green ── */
#fl-fab-call {
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
    border: 1px solid rgba(255, 255, 255, .2);
    transition: transform .25s, box-shadow .25s;
}

#fl-fab-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .55);
    color: #fff;
    text-decoration: none;
}

#fl-fab-call svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}


/* ── SOCIAL BUTTON (LEFT) - Primary + Accent ── */
#fl-fab-social {
    left: 20px;
    width: 56px;
    height: 56px;
}

#fl-fab-social-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2D5F93, #4B84BF, #A4B400);
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 95, 147, .4);
    transition: transform .25s, box-shadow .25s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#fl-fab-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 95, 147, .55);
}

#fl-fab-social-btn .fab-icon-chat,
#fl-fab-social-btn .fab-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .25s, transform .25s;
}

#fl-fab-social-btn .fab-icon-chat svg,
#fl-fab-social-btn .fab-icon-close svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

#fl-fab-social-btn .fab-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

#fl-fab-social.is-open #fl-fab-social-btn {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    box-shadow: 0 6px 20px rgba(239, 68, 68, .4);
}

#fl-fab-social.is-open #fl-fab-social-btn .fab-icon-chat {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

#fl-fab-social.is-open #fl-fab-social-btn .fab-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}


/* ════════════════════════════════════════
   SOCIAL MENU - با backdrop-filter
   ════════════════════════════════════════ */
#fl-fab-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
    min-width: 180px;
}

#fl-fab-social.is-open #fl-fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#fl-fab-menu .fl-fab-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    color: #1E293B;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s, transform .2s, border-color .2s;
}

#fl-fab-menu .fl-fab-item:hover {
    transform: translateX(4px);
    text-decoration: none;
}

#fl-fab-menu .fl-fab-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#fl-fab-menu .fl-fab-item--whatsapp svg  { fill: #25D366; stroke: none; }
#fl-fab-menu .fl-fab-item--telegram svg  { fill: #229ED9; stroke: none; }
#fl-fab-menu .fl-fab-item--instagram svg { fill: #E4405F; stroke: none; }
#fl-fab-menu .fl-fab-item--linkedin svg  { fill: #0A66C2; stroke: none; }
#fl-fab-menu .fl-fab-item--email svg     { fill: none; stroke: #2D5F93; stroke-width: 2; }

#fl-fab-menu .fl-fab-item--whatsapp:hover  { background: #25D366; color: #fff; border-color: #25D366; }
#fl-fab-menu .fl-fab-item--whatsapp:hover svg { fill: #fff; }

#fl-fab-menu .fl-fab-item--telegram:hover  { background: #229ED9; color: #fff; border-color: #229ED9; }
#fl-fab-menu .fl-fab-item--telegram:hover svg { fill: #fff; }

#fl-fab-menu .fl-fab-item--instagram:hover { background: #E4405F; color: #fff; border-color: #E4405F; }
#fl-fab-menu .fl-fab-item--instagram:hover svg { fill: #fff; }

#fl-fab-menu .fl-fab-item--linkedin:hover  { background: #0A66C2; color: #fff; border-color: #0A66C2; }
#fl-fab-menu .fl-fab-item--linkedin:hover svg { fill: #fff; }

#fl-fab-menu .fl-fab-item--email:hover     { background: linear-gradient(135deg, #2D5F93, #A4B400); color: #fff; border-color: transparent; }
#fl-fab-menu .fl-fab-item--email:hover svg { stroke: #fff; }


/* ── HIDE ON OFFCANVAS ── */
body.fl-hide-fab #fl-fab-call,
body.fl-hide-fab #fl-fab-social {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, visibility .2s;
}


/* ── RTL ── */
[dir="rtl"] #fl-fab-call {
    right: 20px;
    left: auto;
}

[dir="rtl"] #fl-fab-social {
    left: 20px;
    right: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    #fl-fab-call {
        bottom: 16px;
        right: 16px;
        padding: 12px;
        border-radius: 14px;
        gap: 0;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
    #fl-fab-call .fl-fab-label {
        display: none;
    }
    #fl-fab-social {
        bottom: 16px;
        left: 16px;
        width: 50px;
        height: 50px;
    }
    #fl-fab-social-btn {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
    #fl-fab-social-btn .fab-icon-chat svg,
    #fl-fab-social-btn .fab-icon-close svg {
        width: 22px;
        height: 22px;
    }
    #fl-fab-menu {
        min-width: 170px;
    }
    #fl-fab-menu .fl-fab-item {
        padding: 9px 12px;
        font-size: 12px;
    }
}