/* ============ FLOATING WHATSAPP ============ */
.wa-float-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.wa-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: 3px solid #0a0a0a;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: waPulse 2s infinite;
}

.wa-float-btn:hover {
    transform: scale(1.1) rotate(-8deg);
    background: linear-gradient(135deg, #128c7e, #075e54);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.7);
}

.wa-float-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waBadgeBounce 1s infinite;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 20px rgba(37, 211, 102, 0); }
}

@keyframes waBadgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ============ POPUP CHAT ============ */
.wa-float-popup {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 340px;
    background: white;
    border-radius: 18px;
    border: 3px solid #0a0a0a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: none;
    animation: waSlideUp 0.3s ease;
    transform-origin: bottom right;
}

.wa-float-popup.show {
    display: block;
}

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

.wa-popup-header {
    background: linear-gradient(135deg, #25d366, #128c7e);
    padding: 14px 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid #0a0a0a;
}

.wa-popup-avatar {
    width: 44px;
    height: 44px;
    background: white;
    color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #0a0a0a;
    flex-shrink: 0;
}

.wa-popup-info { flex: 1; min-width: 0; }
.wa-popup-name {
    font-weight: 900;
    font-size: 0.95rem;
    -webkit-text-stroke: 0.3px rgba(0,0,0,0.3);
}
.wa-popup-status {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.wa-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid white;
    animation: waStatusPulse 1.5s infinite;
}
@keyframes waStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.wa-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.wa-popup-close:hover {
    background: #dc2626;
    border-color: white;
    transform: rotate(90deg);
}

.wa-popup-body {
    padding: 16px;
    background: #f5f5f5;
}

.wa-popup-message {
    background: white;
    padding: 12px 16px;
    border-radius: 12px 12px 12px 4px;
    border: 2px solid #0a0a0a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 0.88rem;
    font-weight: 600;
    color: #0a0a0a;
}

.wa-popup-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.wa-quick-btn {
    padding: 10px 14px;
    background: white;
    border: 2px solid #0a0a0a;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0a0a0a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.wa-quick-btn:hover {
    background: #25d366;
    color: white;
    border-color: #0a0a0a;
    transform: translateX(4px);
}

.wa-quick-btn i { color: #25d366; font-size: 1rem; }
.wa-quick-btn:hover i { color: white; }

.wa-popup-footer {
    padding: 12px 16px;
    background: white;
    border-top: 2px solid #e5e5e5;
}

.wa-popup-send {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: 2px solid #0a0a0a;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.wa-popup-send:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Mobile */
@media (max-width: 480px) {
    .wa-float-wrap { bottom: 16px; right: 16px; }
    .wa-float-btn { width: 56px; height: 56px; font-size: 1.5rem; }
    .wa-float-popup { width: calc(100vw - 32px); right: -4px; }
}