/* ==========================================================================
   Floating WhatsApp Widget - Dark Cyber & Neon Theme
   ========================================================================== */

.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Floating Trigger Button */
.wa-float-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    border: none;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float-btn:hover {
    transform: scale(1.1);
}

/* Pulsating Neon Ring Effect */
.wa-pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPulse 2s infinite;
    pointer-events: none;
}

@keyframes waPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Chat Box Popup Window */
.wa-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #0e121b;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.wa-chat-header {
    background: #141a26;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.wa-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #00f0ff;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #00ff66;
    border-radius: 50%;
    border: 2px solid #141a26;
}

.wa-header-info h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 700;
}

.wa-header-info p {
    color: #8a94a6;
    font-size: 0.75rem;
    margin: 0;
}

.wa-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #8a94a6;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.wa-close-btn:hover {
    color: #ffffff;
}

/* Chat Body Message */
.wa-chat-body {
    padding: 18px;
    background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.05), transparent);
}

.wa-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border-top-left-radius: 2px;
    padding: 12px;
    position: relative;
}

.wa-message p {
    color: #f0f4f8;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.wa-time {
    display: block;
    font-size: 0.65rem;
    color: #8a94a6;
    text-align: right;
}

/* Chat Footer CTA */
.wa-chat-footer {
    padding: 12px 18px 18px;
}

.wa-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.wa-start-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .wa-widget-container {
        bottom: 20px;
        right: 20px;
    }
    
    .wa-chat-box {
        width: calc(100vw - 40px);
        right: 0;
    }
}