/* Shared OTP modal */
.otp-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.otp-modal.is-open {
  display: flex;
}

.otp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, 0.55);
  backdrop-filter: blur(4px);
}

.otp-modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  padding: 1.35rem 1.25rem 1.4rem;
  animation: otpIn 0.35s cubic-bezier(.22, 1, .36, 1);
}

@keyframes otpIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.otp-modal__close {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 1.1rem;
}

.otp-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.otp-modal__sub {
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.7;
}

.otp-modal__field {
  margin-bottom: 0.85rem;
}

.otp-modal__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.otp-modal__field input {
  width: 100%;
  border: 1.5px solid #e5eaf2;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  letter-spacing: 0.04em;
}

.otp-modal__field input:focus {
  outline: 0;
  border-color: #93b4e8;
  box-shadow: 0 0 0 3px rgba(34, 60, 120, 0.12);
}

.otp-modal__msg {
  min-height: 1.2rem;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #b45309;
}

.otp-modal__msg.is-ok { color: #047857; }
.otp-modal__msg.is-err { color: #da1e28; }

.otp-modal__timer {
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #223c78;
  margin: 0.35rem 0 0.85rem;
  font-variant-numeric: tabular-nums;
}

.otp-modal__actions {
  display: grid;
  gap: 0.55rem;
}

.otp-modal__btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #223c78;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.otp-modal__btn:hover {
  background: #1a2f5e;
  transform: translateY(-1px);
}

.otp-modal__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.otp-modal__btn--ghost {
  background: #fff;
  color: #223c78;
  border: 1.5px solid #d7e0ef;
}

.otp-modal__step { display: none; }
.otp-modal__step.is-active { display: block; }
