/* Register popup (mobile + OTP) */
html.otp-lock { overflow: hidden; }
.otp-modal[hidden], .otp-pane[hidden] { display: none !important; }
.otp-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; font-family: "Poppins", "Baloo Tamma 2", system-ui, sans-serif; color: #1a1210; }
.otp-backdrop { position: absolute; inset: 0; background: rgba(26, 10, 4, .62); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.otp-sheet {
  position: relative; width: min(440px, 100%); background: #fffdf8; border-radius: 26px; padding: 30px 28px 26px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.55); transform: translateY(18px) scale(.98); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease; overflow: hidden;
}
.otp-sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #ffc400 0 50%, #d0121b 50% 100%); }
.otp-modal.is-open .otp-backdrop { opacity: 1; }
.otp-modal.is-open .otp-sheet { transform: none; opacity: 1; }
.otp-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #eadfca; background: #fff; cursor: pointer; font-size: 14px; color: #1a1210; }
.otp-x:hover { background: #fff4d6; }
.otp-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.otp-brand img { height: 40px; width: auto; }
.otp-brand span { font-family: "Baloo Tamma 2", sans-serif; font-weight: 800; color: #d0121b; font-size: 15px; padding-top: 3px; }
.otp-step { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d0121b; }
.otp-sheet h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.otp-sub { margin: 0 0 18px; color: #5f5650; font-size: 15px; }
.otp-pane label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 7px; }
.otp-pane input { font: 500 16px "Poppins", sans-serif; color: #1a1210; }
#otpName { width: 100%; height: 52px; border: 1.5px solid #eadfca; border-radius: 14px; padding: 0 16px; outline: none; background: #fff; transition: .2s; }
.otp-phone { display: flex; height: 52px; border: 1.5px solid #eadfca; border-radius: 14px; overflow: hidden; background: #fff; transition: .2s; }
.otp-phone span { display: grid; place-items: center; padding: 0 14px; background: #fff4d6; font-weight: 600; font-size: 14.5px; border-right: 1.5px solid #eadfca; white-space: nowrap; }
.otp-phone input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 14px; letter-spacing: .04em; }
#otpName:focus, .otp-phone:focus-within, .otp-boxes input:focus { border-color: #1a1210; box-shadow: 0 0 0 4px rgba(255,196,0,.35); }
.otp-pane .bad { border-color: #d0121b !important; background: #fff6f6; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-boxes input { width: 100%; height: 58px; text-align: center; font-size: 24px !important; font-weight: 800 !important; border: 1.5px solid #eadfca; border-radius: 14px; outline: none; background: #fff; transition: .2s; }
.otp-err { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: #a50d14; background: #fff1f1; border-radius: 10px; padding: 8px 12px; }
.otp-btn {
  width: 100%; margin-top: 20px; height: 54px; border: 0; border-radius: 999px; cursor: pointer;
  background: #d0121b; color: #fff; font: 700 16px "Poppins", sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 14px 30px -12px rgba(208,18,27,.8); transition: .2s;
}
.otp-btn:hover { background: #a50d14; transform: translateY(-1px); }
.otp-fine { margin: 14px 0 0; text-align: center; font-size: 13px; color: #7a6d63; }
.otp-link { background: none; border: 0; padding: 0; font: 600 13px "Poppins", sans-serif; color: #d0121b; cursor: pointer; text-decoration: underline; }
.otp-sub .otp-link { font-size: 14px; }
.otp-link:disabled { color: #a99b90; text-decoration: none; cursor: default; }
.otp-done { text-align: center; padding: 10px 0 6px; }
.otp-tick { width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center; font-size: 42px; color: #fff; background: #15803d; box-shadow: 0 0 0 10px #e7f6ec; animation: otpPop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes otpPop { from { transform: scale(.4); opacity: 0; } }
.otp-bar { height: 5px; border-radius: 5px; background: #f1e8d6; overflow: hidden; margin: 18px auto 0; width: 70%; }
.otp-bar span { display: block; height: 100%; background: #d0121b; animation: otpBar 1.4s linear forwards; }
@keyframes otpBar { from { width: 0; } to { width: 100%; } }
@media (max-width: 480px) {
  .otp-modal { place-items: end center; padding: 0; }
  .otp-sheet { border-radius: 26px 26px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .otp-boxes { gap: 6px; }
  .otp-boxes input { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .otp-sheet, .otp-backdrop { transition: none; } .otp-tick, .otp-bar span { animation: none; } .otp-bar span { width: 100%; } }
.otp-btn:disabled { opacity: .7; cursor: wait; }
#recaptcha-container { margin: 0; }
