.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 440px;
  max-width: 90vw;
  position: relative;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a2e;
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: #333;
}
.modal-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: block;
}
.modal-title {
  font-weight: 700;
  font-size: 24px;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.modal-sub {
  font-size: 15px;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.5;
}
.form-group {
  text-align: left;
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  color: #1a1a2e;
  background: #fff;
}
.form-group input:focus {
  border-color: #a97cff;
}
.modal-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, oklch(0.65 0.24 285) 0%, oklch(0.42 0.22 285) 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px oklch(0.65 0.24 285);
}
.modal-success {
  display: none;
}
.modal-success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.modal-success h3 {
  font-size: 22px;
  color: #1a1a2e;
  margin: 0;
}
.modal-success p {
  font-size: 15px;
  color: #666;
  margin: 0;
}
