.global-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.global-popup.is-hiding {
  pointer-events: none;
}

.global-popup.is-hiding .popup-overlay {
  opacity: 0;
}

.global-popup.is-hiding .popup-content {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(1, 190, 255, 0.18), transparent 36%),
    rgba(7, 1, 39, 0.58);
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease;
}

.popup-content {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 30px;
  border: 1px solid rgba(1, 190, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(1, 190, 255, 0.08), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.96));
  box-shadow:
    0 36px 90px rgba(7, 1, 39, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #2f2f2f;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.popup-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 1, 39, 0.06);
  color: #070127;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-close:hover {
  background: rgba(1, 190, 255, 0.14);
  transform: rotate(90deg);
}

.popup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(1, 190, 255, 0.1);
  color: #017bb8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.popup-eyebrow i {
  font-size: 16px;
}

.popup-title {
  margin: 0 48px 18px 0;
  color: #070127;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.popup-body {
  font-size: 16px;
  line-height: 1.85;
  color: #53536a;
}

.popup-copy p {
  margin: 0 0 14px;
}

.popup-copy strong {
  color: #070127;
}

.popup-highlight,
.popup-section {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(1, 190, 255, 0.12);
  box-shadow: 0 12px 28px rgba(7, 1, 39, 0.06);
}

.popup-highlight {
  background:
    linear-gradient(135deg, rgba(1, 190, 255, 0.1), rgba(86, 197, 144, 0.08)),
    rgba(255, 255, 255, 0.96);
}

.popup-highlight-label,
.popup-section-title {
  margin-bottom: 10px;
  color: #070127;
  font-size: 15px;
  font-weight: 700;
}

.popup-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.popup-list li {
  position: relative;
  padding-left: 20px;
}

.popup-list li + li {
  margin-top: 8px;
}

.popup-list li::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #01beff, #56c590);
  box-shadow: 0 0 0 5px rgba(1, 190, 255, 0.08);
}

.popup-signoff {
  margin-top: 22px;
  color: #070127;
  text-align: right;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #73737b;
  font-size: 14px;
  white-space: nowrap;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #01beff;
}

.popup-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 22px;
}

.popup-footer-spacer {
  min-width: 1px;
}

.popup-footer .checkbox {
  justify-self: end;
}

.popup-cancel,
.popup-confirm {
  min-width: 132px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.popup-cancel {
  background: #fff;
  border-color: rgba(7, 1, 39, 0.12);
  color: #070127;
}

.popup-cancel:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(7, 1, 39, 0.08);
}

.popup-confirm {
  background: linear-gradient(135deg, #01beff, #0091ea);
  color: #fff;
  box-shadow: 0 18px 32px rgba(1, 145, 234, 0.24);
}

.popup-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(1, 145, 234, 0.28);
}

@media (max-width: 640px) {
  .global-popup {
    padding: 14px;
  }

  .popup-content {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .popup-title {
    margin-right: 40px;
    font-size: 24px;
  }

  .popup-body {
    font-size: 15px;
  }

  .popup-highlight,
  .popup-section {
    padding: 16px;
    border-radius: 18px;
  }

  .popup-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .popup-footer-spacer {
    display: none;
  }

  .popup-footer .checkbox {
    justify-self: end;
    order: 2;
  }

  .popup-cancel,
  .popup-confirm {
    width: 100%;
  }
}
