.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.modal-close svg {
  width: 16px; height: 16px;
}

.modal h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 24px 0 8px;
}

.modal p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.75;
}

.modal a {
  color: var(--indigo-light);
  text-decoration: none;
}

.modal a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .modal { padding: 28px 24px; }
}
