/* Join Community WhatsApp popup (PromptSolutions v3.1) - ps-pop- prefixed only. */

.ps-pop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 20, 35, .55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.ps-pop-overlay.ps-pop-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ps-pop-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(6, 20, 35, .35), 0 4px 16px rgba(6, 20, 35, .18);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform .3s ease;
}

.ps-pop-overlay.ps-pop-show .ps-pop-card {
  transform: none;
  animation: ps-pop-in .35s ease;
}

@keyframes ps-pop-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ps-pop-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f5;
  color: #33424f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}

.ps-pop-close:hover {
  background: #dde6ec;
  color: #0b1c2c;
}

.ps-pop-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-pop-icon svg {
  display: block;
}

.ps-pop-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #0b1c2c;
}

.ps-pop-text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #47586a;
}

.ps-pop-join {
  display: block;
  padding: 13px 18px;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.ps-pop-join:hover {
  background: #1EBE5B;
  color: #fff;
  transform: translateY(-1px);
}

.ps-pop-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #7a8b9c;
}

@media (max-width: 480px) {
  .ps-pop-card {
    padding: 24px 20px;
  }

  .ps-pop-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-pop-overlay,
  .ps-pop-card,
  .ps-pop-join {
    transition: none;
  }

  .ps-pop-overlay.ps-pop-show .ps-pop-card {
    animation: none;
  }
}
