/* Simple, responsive popup styles */
#af-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99998;
  opacity: 0;
  transition: opacity .25s ease;
}

#af-popup {
  position: fixed;
  z-index: 99999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: #ffffff;
  width: min(92vw, 640px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  font-family: inherit;
  padding: 20px 20px 24px;
}

.afp-hidden { display: none !important; }

#af-popup.afp-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#af-popup-overlay.afp-visible { opacity: 1; }

.afp-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
.afp-close:hover { color: #111; }

.afp-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
}

.afp-message {
  margin: 0 0 16px;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  font-weight: 600;
}

.afp-line { display: block; }

.afp-color-1 { color: #e53935; font-weight: 800; } /* red */
.afp-color-2 { color: #1e88e5; font-weight: 800; } /* blue */

.afp-domain-old, .afp-domain-new {
  font-weight: 800;
  word-break: break-all;
}

.afp-actions { display: flex; gap: 10px; justify-content: flex-end; }

.afp-btn {
  appearance: none;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.afp-btn-primary { background: #111; color: #fff; }
.afp-btn-primary:hover { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  #af-popup, #af-popup-overlay { transition: none; }
}