/* OTP popup — uses the same dark/gold tournament theme as the rest of the
   microsite. Sits at z-index 30 so it always wins over the lead-gate. */

.otp-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 10, 16, 0.86);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.otp-overlay.hidden {
  display: none !important;
}

.otp-card {
  width: min(440px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(140deg, rgba(3, 16, 24, 0.96), rgba(8, 33, 48, 0.84));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 22px 22px 18px;
  position: relative;
}

.otp-card h3 {
  margin: 0 0 6px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.06em;
  color: #fef08a;
  text-align: center;
}

.otp-card .otp-desc {
  margin: 0 0 14px;
  color: #d2e6f4;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.otp-card .otp-desc strong {
  color: #facc15;
  font-weight: 700;
}

.otp-input-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 8px;
}

.otp-input-wrap input {
  width: 220px;
  text-align: center;
  letter-spacing: 0.45em;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(3, 12, 20, 0.72);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otp-input-wrap input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.otp-input-wrap input.input-error {
  border-color: rgba(239, 68, 68, 0.82);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22);
}

.otp-error,
.otp-info {
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0 0;
}

.otp-error { color: #fca5a5; }
.otp-info { color: #cbd5e1; }

.otp-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.otp-actions .btn {
  flex: 1;
}

.otp-resend-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
}

.otp-resend-row .otp-resend {
  background: none;
  border: 0;
  padding: 4px 6px;
  color: #facc15;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.otp-resend-row .otp-resend:disabled {
  color: rgba(250, 204, 21, 0.4);
  cursor: not-allowed;
}

.otp-timer { font-variant-numeric: tabular-nums; }

.otp-loader {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 20, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
}

.otp-loader.active { display: flex; }

.otp-loader .otp-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(250, 204, 21, 0.25);
  border-top-color: #facc15;
  animation: otpSpin 0.85s linear infinite;
}

.otp-timer-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 10, 16, 0.78);
}

.otp-timer-modal.hidden { display: none !important; }

.otp-timer-modal .content-box-otp {
  width: min(380px, 92vw);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(140deg, rgba(3, 16, 24, 0.96), rgba(8, 33, 48, 0.84));
  padding: 22px;
  text-align: center;
  color: #f1f5f9;
}

.otp-timer-modal .text-timer {
  font-size: 14px;
  margin-bottom: 14px;
}

.otp-timer-modal .ok-close-timer button {
  border-radius: 10px;
  padding: 10px 22px;
  border: 0;
  background: linear-gradient(110deg, #facc15, #fde68a);
  color: #041118;
  font-weight: 700;
  cursor: pointer;
}

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