.scgp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.54);
  direction: rtl;
}

.scgp-backdrop.is-open {
  display: flex;
}

.scgp-modal {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
  text-align: center;
  font-family: inherit;
}

.scgp-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.scgp-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #0da7a3;
  color: #fff;
  font-weight: 800;
}

.scgp-modal h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

.scgp-subtitle {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.scgp-phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.scgp-prefix {
  flex: 0 0 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5e7;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.scgp-phone-row input,
.scgp-otp-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe5e7;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

.scgp-phone-row input:focus,
.scgp-otp-row input:focus {
  border-color: #0da7a3;
  box-shadow: 0 0 0 3px rgba(13, 167, 163, 0.12);
}

.scgp-phone-row input:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.scgp-edit-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -2px auto 12px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe5e7;
  border-radius: 999px;
  background: #fff;
  color: #0da7a3;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.scgp-otp-row {
  margin-bottom: 12px;
}

.scgp-otp-row input {
  text-align: center;
  letter-spacing: 0;
  word-spacing: 0;
  font-weight: 800;
}

.scgp-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 14px;
}

.scgp-message.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.scgp-primary,
.scgp-secondary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.scgp-primary {
  background: #0da7a3;
  color: #fff;
}

.scgp-primary:disabled,
.scgp-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scgp-secondary {
  margin-top: 10px;
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 480px) {
  .scgp-modal {
    padding: 20px;
  }

  .scgp-prefix {
    flex-basis: 92px;
  }
}
