/* Floating Contact Button - دکمه تماس شناور، گوشه پایین راست */
.floating-contact {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9998;
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}
.floating-contact > * {
    pointer-events: auto;
}

.floating-contact-main {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.floating-contact-main:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.floating-contact-main i {
    color: #fff;
    font-size: 22px;
}

.floating-contact-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    display: none;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: flex-end;
}
.floating-contact.active .floating-contact-options {
    display: flex;
}

.floating-contact-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}
.floating-contact-option svg {
    display: block;
}

.floating-contact-option.phone-fixed {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}
.floating-contact-option.phone-fixed:hover {
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.45);
}

.floating-contact-option.phone-mobile {
    background: linear-gradient(135deg, #059669, #047857);
}
.floating-contact-option.phone-mobile:hover {
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45);
}

.floating-contact-option.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.floating-contact-option.whatsapp:hover {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.floating-contact-option.bale {
    background: linear-gradient(135deg, #00a693, #008f7a);
}
.floating-contact-option.bale:hover {
    box-shadow: 0 4px 16px rgba(0, 166, 147, 0.45);
}

.floating-contact-option.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584);
}
.floating-contact-option.instagram:hover {
    box-shadow: 0 4px 16px rgba(228, 64, 95, 0.45);
}

.floating-contact-option:hover {
    transform: scale(1.1);
}

/* برچسب متن کنار آیکون */
.contact-badge {
    position: absolute;
    right: 100%;
    margin-right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.floating-contact-option:hover .contact-badge {
    opacity: 1;
}

@keyframes floatingContactSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 80px !important;
        right: 18px !important;
    }
    .floating-contact-main {
        width: 52px;
        height: 52px;
    }
    .floating-contact-main i {
        font-size: 20px;
    }
    .floating-contact-option {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .floating-contact-options {
        margin-bottom: 10px;
    }
    .contact-badge {
        font-size: 11px;
        padding: 4px 10px;
        margin-right: 8px;
    }
}
