/* Hero — live WhatsApp community preview (growth.afripaystudio.com) */
.al-lp-hero-visual--wa-live {
  min-height: clamp(380px, 52vw, 520px);
  align-items: stretch;
}

.al-lp-hero-wa-live__glow {
  position: absolute;
  inset: 8% 0 12%;
  background: radial-gradient(ellipse at 50% 45%, rgba(34, 197, 94, 0.22), transparent 68%);
  pointer-events: none;
}

.al-lp-hero-wa-live__stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  width: min(100%, 340px);
  margin: 0 auto;
}

.al-lp-hero-wa-live__phone {
  position: relative;
  z-index: 3;
  width: min(100%, 300px);
  margin: 0 auto;
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  animation: al-lp-hero-wa-float 7s ease-in-out infinite;
}

.al-lp-hero-wa-live__community-shot {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.42);
}

.al-lp-hero-wa-live__community-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.al-lp-hero-wa-live__community-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@keyframes al-lp-hero-wa-float {
  0%, 100% { transform: perspective(900px) rotateY(-6deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-4deg) rotateX(2deg) translateY(-8px); }
}

.al-lp-hero-wa-live__device {
  border-radius: 28px;
  overflow: hidden;
  background: #0b141a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 28px 60px rgba(2, 6, 23, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.al-lp-hero-wa-live__status {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, #1f2c34, #111b21);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.al-lp-hero-wa-live__back {
  color: #25d366;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.al-lp-hero-wa-live__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.al-lp-hero-wa-live__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.al-lp-hero-wa-live__group {
  color: #e9edef;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-lp-hero-wa-live__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  color: #8696a0;
  font-weight: 600;
}

.al-lp-hero-wa-live__online {
  color: #25d366;
}

.al-lp-hero-wa-live__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.al-lp-hero-wa-live__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: al-lp-hero-wa-pulse 2s ease-out infinite;
}

@keyframes al-lp-hero-wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.al-lp-hero-wa-live__chat {
  position: relative;
  min-height: 265px;
  max-height: 305px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 12px 44px;
  background:
    linear-gradient(180deg, rgba(17, 27, 33, 0.35), rgba(17, 27, 33, 0.15)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='60' cy='36' r='2'/%3E%3Ccircle cx='96' cy='72' r='2'/%3E%3C/g%3E%3C/svg%3E");
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.al-lp-hero-wa-live__chat::-webkit-scrollbar {
  display: none;
}

.al-lp-hero-wa-live__chat-track {
  display: grid;
  gap: 8px;
  align-content: start;
}

.al-lp-hero-wa-live__bubble {
  justify-self: start;
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 10px 10px 10px 4px;
  background: #005c4b;
  color: #e9edef;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: al-lp-hero-wa-bubble-in 0.55s ease forwards;
  animation-delay: var(--al-wa-hero-delay, 0s);
}

.al-lp-hero-wa-live__bubble--member {
  justify-self: end;
  border-radius: 10px 10px 4px 10px;
  background: #202c33;
  color: #d1d7db;
}

@keyframes al-lp-hero-wa-bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

.al-lp-hero-wa-live__bubble--static {
  opacity: 1;
  transform: none;
  animation: none;
}

.al-lp-hero-wa-live__typing {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #202c33;
}

.al-lp-hero-wa-live__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696a0;
  animation: al-lp-hero-wa-typing 1.2s ease-in-out infinite;
}

.al-lp-hero-wa-live__typing span:nth-child(2) { animation-delay: 0.15s; }
.al-lp-hero-wa-live__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes al-lp-hero-wa-typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.al-lp-hero-wa-live__input {
  padding: 10px 12px 12px;
  background: #1f2c34;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #667781;
  font-size: 11px;
}

@media (max-width: 768px) {
  .al-lp-hero-wa-live__phone {
    transform: none;
    animation: none;
  }

  .al-lp-hero-wa-live__stack {
    width: min(100%, 320px);
  }
}
