    .chat-widget-container {
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 9999;
        font-family: 'Changa', sans-serif;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .chat-toggle-btn {
        position: relative;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: var(--gradient-primary);
        border: 3px solid rgba(255, 255, 255, 0.3);
        color: white;
        font-size: 30px;
        cursor: pointer;
        box-shadow:
            var(--shadow-whatsapp),
            0 0 0 0 rgba(45, 91, 255, 0.7);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: ripple 2s infinite;
        overflow: visible;
    }

    .chat-toggle-btn:hover {
        transform: scale(1.15) rotate(5deg);
        box-shadow:
            var(--shadow-strong),
            0 0 30px rgba(138, 43, 226, 0.6);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .chat-toggle-btn:active {
        transform: scale(0.95);
    }

    .btn-glow {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        filter: blur(20px);
        opacity: 0.6;
        animation: glowPulse 2s ease-in-out infinite;
        z-index: -1;
    }

    @keyframes glowPulse {

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

        50% {
            transform: scale(1.3);
            opacity: 0.9;
        }
    }

    .notification-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ef4444;
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        border: 3px solid white;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
        animation: badgePulse 1s infinite;
    }

    @keyframes badgePulse {

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

        50% {
            transform: scale(1.1);
        }
    }

    .pulse-dot {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 12px;
        height: 12px;
        background: #10b981;
        border-radius: 50%;
        border: 2px solid white;
        animation: strongPulse 1.5s infinite;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    }

    @keyframes strongPulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
        }

        50% {
            transform: scale(1.4);
            opacity: 0.6;
            box-shadow: 0 0 20px rgba(16, 185, 129, 1);
        }
    }

    @keyframes floatBounce {

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

        25% {
            transform: translateY(-8px) scale(1.02);
        }

        50% {
            transform: translateY(-15px) scale(1.05);
        }

        75% {
            transform: translateY(-8px) scale(1.02);
        }
    }

    @keyframes ripple {
        0% {
            box-shadow:
                0 10px 40px rgba(102, 126, 234, 0.5),
                0 0 0 0 rgba(102, 126, 234, 0.7);
        }

        50% {
            box-shadow:
                0 10px 40px rgba(102, 126, 234, 0.5),
                0 0 0 15px rgba(102, 126, 234, 0);
        }

        100% {
            box-shadow:
                0 10px 40px rgba(102, 126, 234, 0.5),
                0 0 0 0 rgba(102, 126, 234, 0);
        }
    }

    .whatsapp-float-btn {
        position: relative;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
        border: 3px solid rgba(255, 255, 255, 0.3);
        color: white;
        font-size: 32px;
        cursor: pointer;
        box-shadow:
            0 10px 40px rgba(37, 211, 102, 0.5),
            0 0 0 0 rgba(37, 211, 102, 0.7);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: whatsappRipple 2s infinite;
        overflow: visible;
        text-decoration: none;
    }

    .whatsapp-float-btn:hover {
        transform: scale(1.15) rotate(-5deg);
        box-shadow:
            0 15px 50px rgba(37, 211, 102, 0.7),
            0 0 30px rgba(18, 140, 126, 0.6);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
    }

    .whatsapp-float-btn:active {
        transform: scale(0.95);
    }

    .whatsapp-glow {
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    }

    .whatsapp-pulse {
        background: #fff;
        border: 2px solid #25D366;
    }

    .float-btn-tooltip {
        position: absolute;
        left: 80px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(37, 211, 102, 0.95);
        color: white;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }

    .float-btn-tooltip::after {
        content: '';
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-right: 8px solid rgba(37, 211, 102, 0.95);
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    .whatsapp-float-btn:hover .float-btn-tooltip {
        opacity: 1;
        visibility: visible;
        left: 85px;
    }

    @keyframes whatsappRipple {
        0% {
            box-shadow:
                0 10px 40px rgba(37, 211, 102, 0.5),
                0 0 0 0 rgba(37, 211, 102, 0.7);
        }

        50% {
            box-shadow:
                0 10px 40px rgba(37, 211, 102, 0.5),
                0 0 0 15px rgba(37, 211, 102, 0);
        }

        100% {
            box-shadow:
                0 10px 40px rgba(37, 211, 102, 0.5),
                0 0 0 0 rgba(37, 211, 102, 0);
        }
    }

    .chat-widget-box {
        position: fixed;
        bottom: 100px;
        left: 20px;
        width: 400px;
        max-height: calc(100vh - 120px);
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow:
            0 20px 80px rgba(0, 0, 0, 0.15),
            0 8px 32px rgba(102, 126, 234, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        opacity: 0;
        visibility: hidden;
        transform: translateY(30px) scale(0.9);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: hidden;
    }

    .chat-widget-box.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        animation: slideUpBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes slideUpBounce {
        0% {
            transform: translateY(30px) scale(0.9);
            opacity: 0;
        }

        60% {
            transform: translateY(-5px) scale(1.02);
            opacity: 1;
        }

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

    .chat-widget-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 22px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
        position: relative;
        overflow: hidden;
    }

    .chat-widget-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent);
        animation: headerShine 3s infinite;
    }

    @keyframes headerShine {
        0% {
            transform: translateX(-100%) translateY(-100%) rotate(45deg);
        }

        100% {
            transform: translateX(100%) translateY(100%) rotate(45deg);
        }
    }

    .header-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .agent-avatar {
        position: relative;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: white;
        padding: 5px;
    }

    .agent-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

    .status-dot {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 12px;
        height: 12px;
        background: #10b981;
        border: 2px solid white;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    .agent-info h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }

    .status-text {
        font-size: 13px;
        opacity: 0.95;
    }

    .close-chat-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .close-chat-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    .chat-widget-body {
        padding: 20px 22px 48px;
        max-height: calc(100vh - 300px);
        min-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
        scroll-behavior: smooth;
        position: relative;
    }

    .chat-message:last-child {
        margin-bottom: 36px;
    }

    .chat-widget-body::-webkit-scrollbar {
        width: 8px;
    }

    .chat-widget-body::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
        margin: 10px 0;
    }

    .chat-widget-body::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 10px;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    }

    .chat-widget-body::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5568d3 0%, #6a4193 100%);
    }

    .typing-indicator {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 15px;
        background: white;
        border-radius: 15px;
        width: fit-content;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .typing-indicator span {
        width: 8px;
        height: 8px;
        background: #667eea;
        border-radius: 50%;
        animation: typingDot 1.4s infinite;
    }

    .typing-indicator span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-indicator span:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes typingDot {

        0%,
        60%,
        100% {
            transform: translateY(0);
            opacity: 0.6;
        }

        30% {
            transform: translateY(-10px);
            opacity: 1;
        }
    }

    .chat-message {
        margin-bottom: 15px;
        animation: slideIn 0.5s ease;
    }

    .chat-message:first-child {
        margin-top: 0;
    }

    .bot-message .message-content {
        background: white;
        padding: 15px;
        border-radius: 15px 15px 15px 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .bot-message .message-content p {
        margin: 0 0 10px 0;
        line-height: 1.6;
    }

    .bot-message .message-content p:last-child {
        margin-bottom: 0;
    }

    .message-time {
        display: inline-block;
        font-size: 11px;
        color: #999;
        margin-top: 5px;
    }

    .quick-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 15px;
    }

    .service-chip {
        position: relative;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 12px 10px;
        border-radius: 12px;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .service-chip::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent);
        transition: left 0.5s;
    }

    .service-chip:hover::before {
        left: 100%;
    }

    .service-chip:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
        color: white;
    }

    .service-chip:active {
        transform: translateY(-1px) scale(1.02);
    }

    .service-chip i {
        font-size: 16px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    .cta-message {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
    }

    .cta-text {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 15px !important;
    }

    .whatsapp-btn,
    .call-btn {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 24px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        font-size: 14px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        margin-bottom: 12px;
        overflow: hidden;
    }

    .whatsapp-btn::before,
    .call-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .whatsapp-btn:hover::before,
    .call-btn:hover::before {
        width: 300px;
        height: 300px;
    }

    .whatsapp-btn {
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
        color: white;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-btn:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
        color: white;
    }

    .whatsapp-btn:active {
        transform: translateY(-1px) scale(1.01);
    }

    .whatsapp-btn i {
        font-size: 20px;
        animation: whatsappPulse 2s infinite;
    }

    @keyframes whatsappPulse {

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

        50% {
            transform: scale(1.1);
        }
    }

    .call-btn {
        background: white;
        color: #667eea;
        border: 2px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .call-btn:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        color: #667eea;
        border-color: rgba(255, 255, 255, 0.8);
    }

    .call-btn:active {
        transform: translateY(-1px) scale(1.01);
    }

    .call-btn i {
        font-size: 18px;
        animation: phoneRing 1.5s infinite;
    }

    @keyframes phoneRing {

        0%,
        100% {
            transform: rotate(0deg);
        }

        10%,
        30% {
            transform: rotate(-15deg);
        }

        20%,
        40% {
            transform: rotate(15deg);
        }

        50% {
            transform: rotate(0deg);
        }
    }

    /* Promo Message - Enhanced */
    .promo-message {
        animation-delay: 1.5s;
    }

    .promo-card {
        position: relative;
        background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
        padding: 24px;
        border-radius: 18px;
        color: white;
        display: flex;
        gap: 16px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(25, 84, 123, 0.4);
    }

    .promo-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
        animation: promoGlow 4s linear infinite;
    }

    @keyframes promoGlow {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .promo-icon {    
        animation: iconFloat 3s ease-in-out infinite;
    }
    .promo-icon img {
        width: 60px;
        height: 60px;
        border-radius: 50px;
        object-fit: cover;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    @keyframes iconFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    .promo-content {
        position: relative;
        z-index: 1;
    }

    .promo-content h5 {
        margin: 0 0 10px 0;
        font-size: 17px;
        font-weight: 800;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .promo-content p {
        margin: 0 0 14px 0;
        font-size: 14px;
        opacity: 0.95;
        line-height: 1.5;
    }

    .promo-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: white;
        color: #19547b;
        padding: 10px 18px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 700;
        font-size: 13px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .promo-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
    }

    .promo-link:hover::before {
        left: 100%;
    }

    .promo-link:hover {
        transform: translateX(8px) scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        color: #19547b;
    }

    .promo-link i {
        transition: transform 0.3s;
    }

    .promo-link:hover i {
        transform: translateX(3px);
    }

    /* Offer Message - Enhanced */
    .offer-message {
        position: relative;
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
        padding: 20px;
        border-radius: 18px;
        text-align: center;
        animation-delay: 2s;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(240, 147, 251, 0.4);
    }

    .offer-message::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #f093fb, #f5576c, #f093fb);
        background-size: 400%;
        z-index: -1;
        filter: blur(20px);
        opacity: 0.7;
        animation: offerGlow 3s ease-in-out infinite;
    }

    @keyframes offerGlow {

        0%,
        100% {
            background-position: 0% 50%;
            opacity: 0.7;
        }

        50% {
            background-position: 100% 50%;
            opacity: 1;
        }
    }

    .offer-message::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: offerPulse 2s ease-out infinite;
    }

    @keyframes offerPulse {
        0% {
            width: 100px;
            height: 100px;
            opacity: 1;
        }

        100% {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
    }

    .offer-badge {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 12px;
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .offer-badge i {
        animation: giftShake 1s ease-in-out infinite;
        font-size: 24px;
    }

    @keyframes giftShake {

        0%,
        100% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(-10deg);
        }

        75% {
            transform: rotate(10deg);
        }
    }

    .offer-message p {
        position: relative;
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.6;
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Footer - Enhanced */
    .chat-widget-footer {
        padding: 18px 20px;
        background: linear-gradient(180deg, white 0%, #f9fafb 100%);
        border-top: 1px solid rgba(229, 231, 235, 0.8);
        text-align: center;
    }

    .footer-text {
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        color: #6b7280;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .footer-text i {
        color: #10b981;
        animation: clockTick 2s infinite;
        font-size: 14px;
    }

    @keyframes clockTick {

        0%,
        100% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(10deg);
        }

        75% {
            transform: rotate(-10deg);
        }
    }

    /* Animations */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    /* Messages visible by default */
    .chat-message {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animate only on first open */
    .chat-widget-box.active.first-open .slide-in {
        animation: slideIn 0.6s ease forwards;
    }

    .chat-widget-box.active.first-open .delay-1 {
        animation-delay: 0.3s;
    }

    .chat-widget-box.active.first-open .delay-2 {
        animation-delay: 0.6s;
    }

    .chat-widget-box.active.first-open .delay-3 {
        animation-delay: 0.9s;
    }

    .chat-widget-box.active.first-open .delay-4 {
        animation-delay: 1.2s;
    }

    /* RTL Support - Enhanced (Arabic) */
    html:lang(ar) .chat-widget-container,
    [dir="rtl"] .chat-widget-container {
        left: auto !important;
        right: 20px !important;
        align-items: flex-end;
    }

    html:lang(ar) .chat-widget-box,
    [dir="rtl"] .chat-widget-box {
        left: auto !important;
        right: 20px !important;
    }

    html:lang(ar) .whatsapp-float-btn,
    [dir="rtl"] .whatsapp-float-btn {
        right: 0;
        left: auto;
    }

    html:lang(ar) .chat-toggle-btn,
    [dir="rtl"] .chat-toggle-btn {
        right: 0;
        left: auto;
    }

    html:lang(ar) .whatsapp-float-btn:hover,
    [dir="rtl"] .whatsapp-float-btn:hover {
        transform: scale(1.15) rotate(5deg);
    }

    html:lang(ar) .chat-toggle-btn:hover,
    [dir="rtl"] .chat-toggle-btn:hover {
        transform: scale(1.15) rotate(-5deg);
    }

    /* Text Alignment for Arabic */
    html:lang(ar) .chat-widget-box,
    [dir="rtl"] .chat-widget-box {
        text-align: right;
        direction: rtl;
    }

    html:lang(ar) .chat-widget-body,
    [dir="rtl"] .chat-widget-body {
        direction: rtl;
    }

    html:lang(ar) .message-content,
    [dir="rtl"] .message-content {
        text-align: right;
    }

    html:lang(ar) .bot-message .message-content,
    [dir="rtl"] .bot-message .message-content {
        border-radius: 15px 15px 5px 15px;
    }

    html:lang(ar) .promo-card,
    [dir="rtl"] .promo-card {
        text-align: right;
    }

    html:lang(ar) .offer-message,
    [dir="rtl"] .offer-message {
        text-align: right;
    }

    html:lang(ar) .chat-widget-footer,
    [dir="rtl"] .chat-widget-footer {
        direction: rtl;
    }

    html:lang(ar) .promo-link:hover,
    [dir="rtl"] .promo-link:hover {
        transform: translateX(5px);
    }

    /* Tooltip on the LEFT side for Arabic (opposite direction) */
    html:lang(ar) .float-btn-tooltip,
    [dir="rtl"] .float-btn-tooltip {
        right: 80px;
        left: auto;
    }

    html:lang(ar) .float-btn-tooltip::after,
    [dir="rtl"] .float-btn-tooltip::after {
        right: -8px;
        left: auto;
        border-left: 8px solid rgba(37, 211, 102, 0.95);
        border-right: none;
    }

    html:lang(ar) .whatsapp-float-btn:hover .float-btn-tooltip,
    [dir="rtl"] .whatsapp-float-btn:hover .float-btn-tooltip {
        right: 85px;
        left: auto;
    }

    /* Mobile Responsive - Enhanced */
    @media (max-width: 480px) {
        .chat-widget-container {
            gap: 15px;
        }

        .whatsapp-float-btn {
            width: 60px;
            height: 60px;
            font-size: 28px;
        }

        .chat-toggle-btn {
            width: 60px;
            height: 60px;
            font-size: 24px;
        }

        .notification-badge {
            width: 20px;
            height: 20px;
            font-size: 10px;
        }

        .chat-widget-box {
            width: calc(100vw - 30px);
            max-width: 100%;
            left: 15px !important;
            right: auto;
            bottom: 85px;
            max-height: calc(100vh - 110px);
        }

        html:lang(ar) .chat-widget-box,
        [dir="rtl"] .chat-widget-box {
            left: auto !important;
            right: 15px !important;
        }

        .chat-widget-header {
            padding: 18px;
        }

        .agent-avatar {
            width: 45px;
            height: 45px;
        }

        .agent-info h4 {
            font-size: 16px;
        }

        .status-text {
            font-size: 12px;
        }

        .chat-widget-body {
            padding: 18px;
            max-height: calc(100vh - 260px);
            min-height: 300px;
        }

        .quick-services {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .service-chip {
            padding: 14px 12px;
            font-size: 14px;
        }

        .whatsapp-btn,
        .call-btn {
            padding: 13px 20px;
            font-size: 13px;
        }

        .promo-card {
            flex-direction: column;
            text-align: center;
            padding: 20px;
        }

        .promo-icon {
            font-size: 42px;
        }

        .promo-content h5 {
            font-size: 16px;
        }

        .offer-message {
            padding: 18px;
        }
    }

    /* Tablet Responsive */
    @media (min-width: 481px) and (max-width: 768px) {
        .chat-widget-box {
            width: 360px;
            max-height: calc(100vh - 130px);
        }

        .chat-widget-body {
            max-height: calc(100vh - 280px);
        }
    }