/* Global WhatsApp float — colorful motion (not Astro-scoped) */
.wa-float {
  position: fixed !important;
  right: 20px !important;
  bottom: 24px !important;
  z-index: 99999 !important;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

.wa-float a.wa-float__btn {
  pointer-events: auto;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #25d366, #128c7e 50%, #00bcd4) !important;
  background-size: 200% 200% !important;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.5),
    0 0 0 0 rgba(37, 211, 102, 0.4);
  overflow: visible;
  animation:
    aoslon-wa-enter 0.6s cubic-bezier(0.34, 1.5, 0.64, 1) both,
    aoslon-wa-gradient 3s ease-in-out infinite,
    aoslon-wa-bob 2.5s ease-in-out infinite;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.wa-float a.wa-float__btn:hover,
.wa-float a.wa-float__btn:focus-visible {
  color: #fff !important;
  transform: translateY(-6px) scale(1.12);
  filter: saturate(1.35) brightness(1.08);
  box-shadow:
    0 0 0 6px rgba(37, 211, 102, 0.22),
    0 0 28px rgba(37, 211, 102, 0.65),
    0 0 48px rgba(0, 188, 212, 0.35),
    0 14px 32px rgba(7, 94, 84, 0.35);
  outline: none;
  animation:
    aoslon-wa-gradient 1.2s ease-in-out infinite,
    aoslon-wa-bob 1.2s ease-in-out infinite;
}

/* Color rings */
.wa-float .wa-float__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  border-radius: 50%;
  border: 3px solid #25d366;
  box-sizing: border-box;
  pointer-events: none;
  animation: aoslon-wa-ring 2.2s ease-out infinite;
}

.wa-float .wa-float__ring--a {
  border-color: #25d366;
  animation-delay: 0s;
}
.wa-float .wa-float__ring--b {
  border-color: #00e5ff;
  animation-delay: 0.7s;
}
.wa-float .wa-float__ring--c {
  border-color: #c6ff00;
  animation-delay: 1.4s;
}

/* Spinning conic glow */
.wa-float .wa-float__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  margin-left: -39px;
  margin-top: -39px;
  border-radius: 50%;
  background: conic-gradient(
    #25d366,
    #00e5ff,
    #ffeb3b,
    #76ff03,
    #25d366
  );
  filter: blur(12px);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
  animation: aoslon-wa-spin 4s linear infinite;
}

.wa-float a.wa-float__btn:hover .wa-float__glow {
  opacity: 1;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -45px;
  animation-duration: 2s;
}

.wa-float .wa-float__icon {
  position: relative;
  z-index: 2;
  display: flex;
  color: #fff;
  animation: aoslon-wa-wiggle 2.6s ease-in-out infinite;
}

.wa-float a.wa-float__btn:hover .wa-float__icon {
  animation: aoslon-wa-wiggle-fast 0.6s ease-in-out infinite;
}

.wa-float .wa-float__tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #075e54, #25d366);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(7, 94, 84, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.wa-float .wa-float__tip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left-color: #25d366;
}

.wa-float a.wa-float__btn:hover .wa-float__tip,
.wa-float a.wa-float__btn:focus-visible .wa-float__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@keyframes aoslon-wa-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes aoslon-wa-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes aoslon-wa-bob {
  0%,
  100% {
    box-shadow:
      0 4px 16px rgba(37, 211, 102, 0.5),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(0, 229, 255, 0.4),
      0 0 0 12px rgba(37, 211, 102, 0);
  }
}

@keyframes aoslon-wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.35);
    opacity: 0;
  }
}

@keyframes aoslon-wa-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aoslon-wa-wiggle {
  0%,
  65%,
  100% {
    transform: rotate(0);
  }
  70% {
    transform: rotate(-16deg);
  }
  78% {
    transform: rotate(14deg);
  }
  86% {
    transform: rotate(-10deg);
  }
  93% {
    transform: rotate(6deg);
  }
}

@keyframes aoslon-wa-wiggle-fast {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-18deg) scale(1.08);
  }
  50% {
    transform: rotate(16deg) scale(1.12);
  }
  75% {
    transform: rotate(-12deg) scale(1.06);
  }
}

@media (max-width: 560px) {
  .wa-float {
    right: 14px !important;
    bottom: 18px !important;
  }
  .wa-float a.wa-float__btn {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float a.wa-float__btn,
  .wa-float .wa-float__ring,
  .wa-float .wa-float__glow,
  .wa-float .wa-float__icon {
    animation: none !important;
  }
}
