/* Fixed left-side social toggle and expandable social list. */
.tarabar-sticky-social,
.tarabar-sticky-social * {
    box-sizing: border-box;
}

.tarabar-sticky-social {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    direction: ltr;
}

.tarabar-social-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff !important;
    background: #0d1b2a !important; /* رنگ سرمه‌ای تیره و جذاب */
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Larger white Telegram icon on the floating button */
.tarabar-social-toggle svg {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.tarabar-social-toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    background: #1b263b !important;
}

.tarabar-social-toggle:focus-visible,
.tarabar-social-item:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.tarabar-social-list {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 160px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-10px, -50%);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.tarabar-sticky-social.is-open .tarabar-social-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.tarabar-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
    transition: transform .18s ease, filter .18s ease;
    white-space: nowrap;
}

.tarabar-social-item:hover {
    transform: translateX(3px);
    filter: brightness(.95);
    color: #fff;
}

.tarabar-social-item svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.tarabar-social-item span {
    font-size: 13px;
    line-height: 1.4;
}

.tarabar-eitaa {
    background: #f57c00;
}

.tarabar-bale {
    background: #19b394;
}

.tarabar-rubika {
    background: #e91e63;
}

.tarabar-instagram {
    background: linear-gradient(45deg, #e1306c, #c13584);
}

.tarabar-whatsapp {
    background: #25d366;
}

.tarabar-telegram {
    background: #29b6f6;
}

@media (max-width: 767px) {
    .tarabar-sticky-social {
        left: 10px;
    }

    .tarabar-social-toggle {
        width: 46px;
        height: 46px;
    }

    .tarabar-social-toggle svg {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .tarabar-social-list {
        left: calc(100% + 8px);
        gap: 6px;
        min-width: 148px;
        padding: 8px;
    }

    .tarabar-social-item {
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tarabar-social-toggle,
    .tarabar-social-list,
    .tarabar-social-item {
        transition: none;
    }
}
