:root {
        --wa-primary: #075E54;
        --wa-secondary: #25D366;
        --wa-light-bg: #e5ddd5;
        --wa-glass: rgba(255, 255, 255, 0.9);
        --wa-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    #modern-whatsapp-container {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        z-index: 9999;
    }

    /* الزر العائم المتطور */
    .wa-floating-button {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background: var(--wa-secondary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        z-index: 10001;
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transform: scale(0);
    }

    .wa-floating-button.show {
        transform: scale(1);
    }

    .wa-floating-button:hover {
        transform: scale(1.1) translateY(-5px);
        background: #20bd5a;
    }

    .wa-icon-container svg {
        width: 32px;
        height: 32px;
    }

    /* نبض الحالة المتصلة */
    .wa-status-online {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 12px;
        height: 12px;
        background: #ff4b2b;
        /* تنبيه بسيط لجذب الانتباه */
        border: 2px solid white;
        border-radius: 50%;
        animation: wa-pulse 2s infinite;
    }

    /* نافذة الدردشة الزجاجية */
    .wa-glass-card {
        position: fixed;
        bottom: 100px;
        right: 25px;
        width: 350px;
        max-width: 90vw;
        background: var(--wa-glass);
        backdrop-filter: blur(15px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: var(--wa-shadow);
        display: none;
        flex-direction: column;
        overflow: hidden;
        z-index: 10000;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .wa-glass-card.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    /* رأس النافذة */
    .wa-card-header {
        background: var(--wa-primary);
        padding: 20px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .wa-admin-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .wa-avatar-wrapper {
        position: relative;
        width: 45px;
        height: 45px;
    }

    .wa-avatar-wrapper img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .wa-name {
        display: block;
        font-weight: bold;
        font-size: 16px;
    }

    .wa-status {
        font-size: 12px;
        opacity: 0.9;
    }

    /* منطقة المحادثة */
    .wa-card-body {
        padding: 20px;
        background: #e5ddd5;
        background-image: radial-gradient(#d1c7bc 1px, transparent 1px);
        background-size: 16px 16px;
        min-height: 150px;
    }

    .wa-chat-bubble {
        background: white;
        padding: 12px 15px;
        border-radius: 0 15px 15px 15px;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        max-width: 85%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        position: relative;
    }

    /* زر الإرسال */
    .wa-card-footer {
        padding: 15px;
        background: white;
    }

    .wa-send-btn {
        background: var(--wa-secondary);
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
        font-weight: bold;
        transition: background 0.3s;
    }

    .wa-send-btn:hover {
        background: #1da851;
    }

    @keyframes wa-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.4);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(255, 75, 43, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
        }
    }

    .wa-close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        opacity: 0.7;
    }

    .wa-close-btn:hover {
        opacity: 1;
    }
