/* Prevent page scroll while popup is open */
body.popup-open {
  overflow: hidden;
}

/* Fullscreen overlay */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
  backdrop-filter: blur(6px) saturate(1.05);
  z-index: 9999;
  padding: 32px;
}

/* Card that holds content, uses a 3-row grid */
.popup .card {
  width: 80%;
  max-width: var(--max-width);
  height: min(70vh, 720px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--gap);
  align-items: center;
  justify-items: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 20px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.popup .title {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 700;
  color: var(--bg-color);
  text-align: center;
  margin: 0;
}

.popup .body-text {
  max-width: 78ch;
  color: #e8eef0;
  text-align: center;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  margin: 0;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup .body-text span {
  max-width: 100%;
  color: #c1c1c1;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup .buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* responsive: stack buttons on small screens */
@media (max-width: 520px) {
  .card {
    padding: 20px;
    gap: 12px;
  }
  .buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

/* small close control (optional, hidden on very small devices) */
.popup .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.popup .close:hover {
  background: rgba(255, 255, 255, 0.03);
}
