.tbm-floating-contact {
    position: fixed;
    z-index: 99999;
    width: 66px;
    height: 66px;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    font-family: Vazir, Vazirmatn, Tahoma, Arial, sans-serif !important;
    animation: tbm-arrive 0.72s ease 2.4s forwards, tbm-shake 0.72s ease 3.18s 1;
}

.tbm-floating-contact *,
.tbm-bio-links,
.tbm-bio-links * {
    font-family: Vazir, Vazirmatn, Tahoma, Arial, sans-serif !important;
}

.tbm-position-bottom-right {
    right: 22px;
    bottom: 22px;
}

.tbm-position-bottom-left {
    left: 22px;
    bottom: 22px;
}

.tbm-position-top-right {
    right: 22px;
    top: 22px;
}

.tbm-position-top-left {
    left: 22px;
    top: 22px;
}

.tbm-contact-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    padding: 0;
    box-sizing: border-box;
    color: var(--tbm-text, #fff) !important;
    background: var(--tbm-primary, #16a34a) !important;
    border: 2px solid var(--tbm-border, #7c3aed) !important;
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24) !important;
    cursor: pointer;
    font-family: Vazir, Vazirmatn, Tahoma, Arial, sans-serif !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tbm-contact-toggle::before {
    content: none !important;
    display: none !important;
}

.tbm-contact-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.tbm-contact-toggle:hover,
.tbm-contact-toggle:focus {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28) !important;
    filter: brightness(1.04);
    outline: none !important;
}

.tbm-contact-toggle svg,
.tbm-contact-toggle img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
    fill: currentColor;
}

.tbm-contact-menu {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: min(318px, calc(100vw - 28px));
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.2), 0 4px 14px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.tbm-position-bottom-left .tbm-contact-menu {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.tbm-position-top-right .tbm-contact-menu {
    top: 82px;
    bottom: auto;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
}

.tbm-position-top-left .tbm-contact-menu {
    top: 82px;
    right: auto;
    bottom: auto;
    left: 0;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top left;
}

.tbm-floating-contact.is-open .tbm-contact-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.tbm-contact-menu::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
}

.tbm-position-bottom-left .tbm-contact-menu::after {
    right: auto;
    left: 26px;
}

.tbm-position-top-right .tbm-contact-menu::after,
.tbm-position-top-left .tbm-contact-menu::after {
    top: -7px;
    bottom: auto;
    border: 0;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tbm-position-top-left .tbm-contact-menu::after {
    right: auto;
    left: 26px;
}

.tbm-contact-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 9px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-family: Vazir, Vazirmatn, Tahoma, Arial, sans-serif !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tbm-contact-item:hover,
.tbm-contact-item:focus {
    color: #111827;
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    transform: translateX(-2px);
    outline: none;
}

.tbm-contact-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fff;
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px rgba(15, 23, 42, 0.16);
}

.tbm-contact-item-icon svg,
.tbm-contact-item-icon img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    fill: currentColor;
}

.tbm-contact-item-text {
    overflow: hidden;
    color: inherit;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbm-bio-links {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 54px) 18px;
    box-sizing: border-box;
    color: var(--tbm-bio-text, #172033);
    background: var(--tbm-bio-bg, #f8fafc);
    border-radius: 18px;
    font-family: Vazir, Vazirmatn, Tahoma, Arial, sans-serif !important;
    text-align: center;
}

.tbm-bio-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.tbm-bio-logo img {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 50%;
}

.tbm-bio-text {
    max-width: 430px;
    margin: 0 auto 22px;
    color: var(--tbm-bio-text, #172033);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.9;
}

.tbm-bio-button-list {
    display: grid;
    gap: 12px;
    width: min(100%, 430px);
    margin: 0 auto;
}

.tbm-bio-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 11px 56px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: var(--tbm-bio-radius, 14px);
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    font-family: Vazir, Vazirmatn, Tahoma, Arial, sans-serif !important;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.tbm-bio-button:hover,
.tbm-bio-button:focus {
    color: inherit;
    text-decoration: none !important;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    outline: none;
}

.tbm-bio-button-icon {
    position: absolute;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.tbm-bio-button-icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tbm-bio-button-text {
    display: block;
    overflow-wrap: anywhere;
    text-align: center;
}

@keyframes tbm-arrive {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

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

@keyframes tbm-shake {
    0%, 100% {
        transform: translateX(0);
    }

    18%, 54% {
        transform: translateX(-5px);
    }

    36%, 72% {
        transform: translateX(5px);
    }
}

@media (max-width: 600px) {
    .tbm-position-bottom-right {
        right: 14px;
        bottom: 14px;
    }

    .tbm-position-bottom-left {
        left: 14px;
        bottom: 14px;
    }

    .tbm-position-top-right {
        right: 14px;
        top: 14px;
    }

    .tbm-position-top-left {
        left: 14px;
        top: 14px;
    }

    .tbm-contact-toggle {
        width: 60px;
        height: 60px;
    }

    .tbm-floating-contact {
        width: 60px;
        height: 60px;
    }

    .tbm-contact-menu {
        bottom: 76px;
    }

    .tbm-position-top-right .tbm-contact-menu,
    .tbm-position-top-left .tbm-contact-menu {
        top: 76px;
    }

    .tbm-bio-links {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 26px 14px;
        border-radius: 12px;
    }

    .tbm-bio-logo {
        margin-bottom: 12px;
    }

    .tbm-bio-logo img {
        width: 86px;
        height: 86px;
    }

    .tbm-bio-text {
        max-width: 100%;
        margin-bottom: 18px;
        font-size: 14.5px;
        line-height: 1.8;
    }

    .tbm-bio-button-list {
        width: 100%;
        gap: 10px;
    }

    .tbm-bio-button {
        width: 100%;
        min-height: 50px;
        padding: 10px 48px 10px 16px;
        font-size: 14px;
        line-height: 1.55;
    }

    .tbm-bio-button-icon {
        right: 12px;
        width: 26px;
        height: 26px;
    }

    .tbm-bio-button-icon img {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 380px) {
    .tbm-bio-links {
        padding-right: 10px;
        padding-left: 10px;
    }

    .tbm-bio-button {
        padding-right: 44px;
        padding-left: 12px;
        font-size: 13.5px;
    }
}
