/* ============================================================
   WhatsApp Floating Button
   ============================================================ */

.wa-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: wa-bounce-in 0.5s ease;
}
.wa-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
    color: #fff;
    text-decoration: none;
}
.wa-float-btn:active {
    transform: scale(0.95);
}
.wa-float-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Tooltip */
.wa-float-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(-50%) translateX(6px);
}
.wa-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow: 2px -2px 4px rgba(0,0,0,0.06);
}
.wa-float-btn:hover .wa-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Pulse ring behind button */
.wa-float-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0;
    animation: wa-pulse-ring 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes wa-pulse-ring {
    0%   { transform: scale(1); opacity: 0.35; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

@keyframes wa-bounce-in {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    50%  { transform: scale(1.15) rotate(5deg); }
    70%  { transform: scale(0.95) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Mobile */
@media (max-width: 575.98px) {
    .wa-float-btn {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .wa-float-btn svg {
        width: 24px;
        height: 24px;
    }
    .wa-float-tooltip {
        display: none;
    }
}
