/* === MODAL SYSTEM === */
.modal-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 25, 22, 0.72);
  z-index: 9999;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-wrap.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-wrap.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-section);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger-red);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: var(--sky-blue);
  color: var(--medical-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.modal-success-msg {
  text-align: center;
  padding: 20px 0;
}

.modal-success-msg i {
  font-size: 4rem;
  color: var(--success-green);
  margin-bottom: 16px;
  display: block;
}
