/* KBM Phase 28 — Auth Gated Submit UX v1.3.4 Video Punch Fixes */
:root{--kbm-auth-yellow:#ffcc13;--kbm-auth-navy:#061b33;--kbm-auth-text:#0f172a;--kbm-auth-muted:#64748b;--kbm-auth-border:#e2e8f0}
body:not(.logged-in) a[href*="/submit-ad/"],body:not(.logged-in) a[href*="/submit-machine-sale/"],body:not(.logged-in) a[href*="/submit-provider/"],body:not(.logged-in) a[href*="/submit-driver/"]{cursor:pointer}
#kbm-auth-modal.kbm-p28-auth-polished,.kbm-auth-modal.kbm-p28-auth-polished{z-index:1002000!important;position:fixed!important;inset:0!important;align-items:center!important;justify-content:center!important;padding:14px!important;direction:rtl!important}
#kbm-auth-modal.kbm-p28-auth-polished.open,.kbm-auth-modal.kbm-p28-auth-polished.open,#kbm-auth-modal.kbm-p28-auth-polished.is-open,.kbm-auth-modal.kbm-p28-auth-polished.is-open{display:flex!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-backdrop{position:absolute!important;inset:0!important;background:rgba(15,23,42,.72)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-card{position:relative!important;margin:0!important;width:min(520px,calc(100vw - 28px))!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important;background:#fff!important;border:1px solid rgba(226,232,240,.95)!important;border-radius:30px!important;padding:22px!important;box-shadow:0 34px 110px rgba(2,6,23,.36)!important;color:var(--kbm-auth-text)!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-card:before{content:'ورود امن کاریاب ماشین';display:inline-flex;background:#fff7cc;color:#111827;border:1px solid #fde68a;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:950;margin-bottom:10px}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-title{font-size:clamp(24px,5vw,34px)!important;line-height:1.45!important;font-weight:950!important;letter-spacing:-.03em!important;text-align:right!important;margin:0 0 4px!important;color:#0f172a!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-title:after{content:'برای ثبت آگهی، ابتدا شماره موبایل را تأیید کنید. بعد از ورود، همان فرم انتخاب‌شده باز می‌شود.';display:block;font-size:13px;font-weight:700;color:#64748b;line-height:2;margin-top:6px;letter-spacing:0}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-close{position:absolute!important;top:16px!important;left:16px!important;width:44px!important;height:44px!important;border-radius:16px!important;border:1px solid #e2e8f0!important;background:#fff!important;color:#0f172a!important;font-size:24px!important;display:grid!important;place-items:center!important;box-shadow:0 8px 22px rgba(15,23,42,.08)!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-form{display:grid!important;gap:12px!important;margin-top:14px!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-form label{display:grid!important;gap:8px!important;margin:0!important;font-size:15px!important;font-weight:950!important;color:#0f172a!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-form input{width:100%!important;height:58px!important;border-radius:18px!important;border:1px solid #dbe3ee!important;background:#fff!important;padding:0 16px!important;font-size:18px!important;direction:ltr!important;text-align:left!important;box-shadow:0 8px 22px rgba(15,23,42,.04) inset!important;outline:none!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-form input:focus{border-color:#ffcc13!important;box-shadow:0 0 0 4px rgba(255,204,19,.22)!important}
#kbm-auth-modal.kbm-p28-auth-polished #kbm-send-otp{height:58px!important;border-radius:18px!important;background:#082b42!important;color:#fff!important;font-size:17px!important;font-weight:950!important;border:0!important;box-shadow:0 14px 30px rgba(8,43,66,.18)!important}
#kbm-auth-modal.kbm-p28-auth-polished button[type="submit"]{height:58px!important;border-radius:18px!important;background:linear-gradient(135deg,#ffcc13,#ffd95a)!important;color:#111827!important;font-size:18px!important;font-weight:950!important;border:0!important;box-shadow:0 18px 34px rgba(255,204,19,.28)!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-hint{font-size:13px!important;line-height:1.9!important;color:#64748b!important}
#kbm-auth-modal.kbm-p28-auth-polished #kbm-otp-msg{border-radius:14px!important;padding:10px 12px!important;background:#fff5f5!important;border:1px solid #fecdd3!important;line-height:1.9!important;font-size:13px!important}
.kbm-p28-auth-gate{direction:rtl!important}.kbm-p28-auth-gate__btn:focus-visible,#kbm-auth-modal.kbm-p28-auth-polished button:focus-visible{outline:3px solid rgba(255,204,19,.55)!important;outline-offset:2px!important}
@media(max-width:520px){#kbm-auth-modal.kbm-p28-auth-polished{align-items:flex-end!important;padding:8px!important}#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-card{width:100%!important;max-height:calc(100dvh - 16px)!important;border-radius:28px 28px 22px 22px!important;padding:20px 16px!important}#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-close{top:14px!important;left:14px!important}.kbm-clean-auth-required .kbm-clean-head{margin-top:6px!important}}


/* PEP-VIDEO-PUNCH-FIXES-01: keep OTP above chooser/menu layers and make it mobile-bottom-sheet safe. */
body.kbm-submit-router-lock #kbm-auth-modal.kbm-p28-auth-polished,
body.kbm-p28-menu-open #kbm-auth-modal.kbm-p28-auth-polished{z-index:1003000!important}
#kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-card{scrollbar-gutter:stable both-edges!important}
@media(max-width:520px){
  #kbm-auth-modal.kbm-p28-auth-polished .kbm-auth-form input{height:56px!important;font-size:17px!important}
  #kbm-auth-modal.kbm-p28-auth-polished #kbm-send-otp,
  #kbm-auth-modal.kbm-p28-auth-polished button[type="submit"]{height:56px!important}
}
