.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(26, 26, 24, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--faint);
  line-height: 1;
}

.modal h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-err {
  background: #fdf2f2;
  border: 1px solid #f5c6c2;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 14px;
  display: none;
}

.modal-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.modal-link {
  background: none;
  border: none;
  color: var(--olive);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font);
}

.modal-hint {
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  margin-top: 8px;
}

.success-view {
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  font-size: 44px;
  margin-bottom: 16px;
}

.success-box {
  background: var(--olive-bg);
  border: 1px solid var(--olive-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  color: var(--olive);
  font-weight: 600;
  margin-top: 18px;
}
