/* Mensiy teacher-subscription payment modal */
.ms-pay-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; direction: rtl;
}
.ms-pay-modal {
  width: min(420px, 100%);
  background: #141416;
  border-radius: 20px;
  padding: 20px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  color: #f2f2f2;
}
.ms-pay-modal h2 {
  margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; text-align: center;
}
.ms-pay-modal .ms-pay-sub {
  margin: 0 0 16px; text-align: center; color: #9aa0a6; font-size: 0.88rem; font-weight: 600;
}
.ms-pay-card {
  border-radius: 16px; padding: 14px 14px 12px; margin-bottom: 12px;
}
.ms-pay-card.instapay { background: #fff; color: #1a1a1a; }
.ms-pay-card.vodafone { background: #e60000; color: #fff; }
.ms-pay-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.ms-pay-card .handle {
  font-weight: 800; font-size: 0.95rem; direction: ltr; text-align: left;
}
.ms-pay-card.instapay .handle { color: #6b7280; font-weight: 700; }
.ms-pay-card .brand { font-weight: 800; font-size: 1rem; }
.ms-pay-btn {
  width: 100%; border: none; border-radius: 12px; padding: 12px 14px;
  font-family: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer;
}
.ms-pay-btn.purple { background: #5b2d8e; color: #fff; }
.ms-pay-btn.white { background: #fff; color: #e60000; }
.ms-pay-btn.green { background: #1faa4a; color: #fff; margin-top: 4px; }
.ms-pay-hint {
  text-align: center; color: #9aa0a6; font-size: 0.84rem; font-weight: 600;
  margin: 10px 0 12px; line-height: 1.6;
}
.ms-pay-steps {
  margin: 12px 0 8px;
  padding: 0 18px 0 0;
  color: #e8eef0;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.85;
}
.ms-pay-steps li { margin-bottom: 4px; }
.ms-pay-code {
  text-align: center; font-weight: 800; color: #f5d078; margin-bottom: 10px;
  font-size: 0.95rem; direction: ltr;
}
.ms-pay-close {
  display: block; width: 100%; margin-top: 10px; background: none; border: none;
  color: #9aa0a6; font-family: inherit; font-weight: 700; cursor: pointer; padding: 8px;
}
.ms-pay-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #222; color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem; z-index: 10000;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
