.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 30px;
    z-index: 9998;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, .94);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #2ee66b, #16ad4c);
    box-shadow: 0 12px 30px rgba(18, 152, 69, .34), 0 4px 10px rgba(15, 23, 42, .16);
    text-decoration: none;
    isolation: isolate;
    animation: whatsapp-float-motion 3.8s ease-in-out infinite;
    transition: transform .22s ease, box-shadow .22s ease;
}

.whatsapp-float::before {
    position: absolute;
    inset: -7px;
    z-index: -1;
    border: 2px solid rgba(37, 211, 102, .32);
    border-radius: inherit;
    content: '';
    animation: whatsapp-pulse 2.4s ease-out infinite;
}

.whatsapp-float:hover {
    color: #fff;
    box-shadow: 0 16px 36px rgba(18, 152, 69, .42), 0 5px 12px rgba(15, 23, 42, .18);
    text-decoration: none;
    transform: translateY(-3px) scale(1.06);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, .42);
    outline-offset: 5px;
}

.whatsapp-icon {
    width: 43px;
    height: 43px;
    fill: currentColor;
}

.whatsapp-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #ef3340;
    box-shadow: 0 4px 10px rgba(190, 24, 33, .35);
    font: 700 12px/1 Arial, sans-serif;
}

@keyframes whatsapp-float-motion {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

@keyframes whatsapp-pulse {
    0% { opacity: .8; transform: scale(.92); }
    75%, 100% { opacity: 0; transform: scale(1.18); }
}

@media (max-width: 575px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    .whatsapp-icon {
        width: 34px;
        height: 34px;
    }

    .whatsapp-badge {
        top: -5px;
        right: -3px;
        width: 21px;
        height: 21px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float::before {
        animation: none;
    }

    .whatsapp-float {
        transition: none;
    }
}

/* Hide when mobile menu is open */
body:has(.navbar-collapse.show) .whatsapp-float {
    display: none !important;
}
