.ywa-auth-modal,.ywa-auth-inline,.ywa-auth-modal *,.ywa-auth-inline *{box-sizing:border-box;font-family:var(--ywa-font,'Vazirmatn',Tahoma,Arial,sans-serif)}
.ywa-auth-modal[hidden]{display:none!important}.ywa-auth-modal{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:18px;direction:rtl}.ywa-auth-backdrop{position:absolute;inset:0;background:rgba(4,16,36,.62);backdrop-filter:blur(8px)}
.ywa-auth-card{position:relative;width:min(560px,100%);max-height:calc(100dvh - 36px);overflow:auto;padding:28px;border:1px solid rgba(23,111,242,.14);border-radius:var(--ywa-radius,24px);background:linear-gradient(150deg,var(--ywa-surface,#fff),#fbfdff);box-shadow:0 30px 90px rgba(6,27,63,.28);color:var(--ywa-dark,#071A35);isolation:isolate}
.ywa-auth-inline{width:100%;direction:rtl}.ywa-auth-inline>.ywa-auth-card{margin:20px auto;box-shadow:0 18px 55px rgba(6,27,63,.12)}
.ywa-auth-card:after{content:"";position:absolute;z-index:-1;left:-120px;bottom:-140px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(23,111,242,.13),rgba(255,101,0,.06) 45%,transparent 70%)}
.ywa-auth-close{position:absolute;left:14px;top:12px;width:40px;height:40px;border:1px solid #dfe7f2;border-radius:13px;background:#fff;color:#5d6b7f;font-size:27px;line-height:1;cursor:pointer}.ywa-auth-close:hover{color:#e03c3c;border-color:#ffc6c6}
.ywa-auth-brand{display:flex;align-items:center;gap:13px;padding-left:44px}.ywa-auth-brand img{width:60px;height:60px;object-fit:contain;border-radius:16px;background:#fff;padding:5px;border:1px solid #e3eaf6}.ywa-auth-brand strong,.ywa-auth-brand small{display:block}.ywa-auth-brand strong{font-size:20px;color:var(--ywa-dark)}.ywa-auth-brand small{font-size:16px;color:#6b7a91;margin-top:5px}
.ywa-auth-line{display:flex;gap:7px;margin:20px 0 17px}.ywa-auth-line span,.ywa-auth-line i,.ywa-auth-line b{height:5px;border-radius:99px;display:block}.ywa-auth-line span{width:53%;background:linear-gradient(90deg,var(--ywa-primary),var(--ywa-secondary))}.ywa-auth-line i{width:29%;background:linear-gradient(90deg,var(--ywa-secondary),var(--ywa-accent))}.ywa-auth-line b{width:18%;background:linear-gradient(90deg,var(--ywa-accent),#ff9b4e)}
.ywa-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:20px}.ywa-auth-tabs button{min-height:46px;border:1px solid #dfe7f2;border-radius:14px;background:#f7f9fd;color:#68778e;font-size:16px;font-weight:800;cursor:pointer;transition:.2s}.ywa-auth-tabs button.is-active{border-color:transparent;background:linear-gradient(135deg,var(--ywa-primary),var(--ywa-secondary));color:#fff;box-shadow:0 10px 24px rgba(23,111,242,.2)}
.ywa-auth-panel{display:none;animation:ywa-in .22s ease both}.ywa-auth-panel.is-active{display:block}@keyframes ywa-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.ywa-auth-panel h2{margin:0 0 8px!important;color:var(--ywa-dark)!important;font-size:25px!important;line-height:1.45!important}.ywa-auth-panel>p{margin:0 0 18px;color:#6b7a91;font-size:16px;line-height:1.9}
.ywa-auth-form{display:grid;gap:14px}.ywa-auth-form label:not(.ywa-check):not(.ywa-hp){display:grid;gap:7px;color:#31425b;font-size:16px;font-weight:800}.ywa-auth-form input{width:100%;min-height:50px;border:1px solid #d8e1ee!important;border-radius:14px!important;background:#fff!important;padding:11px 13px!important;color:#17263d!important;font-family:inherit!important;font-size:16px!important;box-shadow:none!important;outline:0!important;transition:.2s}.ywa-auth-form input:focus{border-color:var(--ywa-secondary)!important;box-shadow:0 0 0 4px rgba(23,111,242,.11)!important}
.ywa-password-wrap{position:relative}.ywa-password-wrap input{padding-left:72px!important}.ywa-password-wrap button{position:absolute;left:8px;top:50%;transform:translateY(-50%);border:0;background:#eef4ff;color:var(--ywa-primary);border-radius:10px;padding:7px 9px;font-family:inherit;font-size:16px;font-weight:800;cursor:pointer}
.ywa-check{display:flex!important;align-items:flex-start;gap:8px;font-size:16px!important;font-weight:600!important;color:#5d6c82!important;line-height:1.8}.ywa-check input{width:17px!important;height:17px!important;min-height:0!important;margin-top:3px;accent-color:var(--ywa-primary)}.ywa-check a{color:var(--ywa-primary);text-decoration:none;font-weight:800}
.ywa-auth-submit,.ywa-auth-trigger{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;background:linear-gradient(135deg,var(--ywa-primary),var(--ywa-secondary));color:#fff!important;text-decoration:none!important;font-family:inherit;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 13px 26px rgba(23,111,242,.2);transition:.2s}.ywa-auth-submit{min-height:52px;width:100%;padding:11px 18px}.ywa-auth-trigger{min-height:44px;padding:9px 18px}.ywa-auth-submit:hover,.ywa-auth-trigger:hover{transform:translateY(-1px);filter:saturate(1.08)}.ywa-auth-submit:disabled{opacity:.65;cursor:wait;transform:none}
.ywa-auth-text-button,.ywa-auth-back{border:0;background:transparent;color:var(--ywa-primary);font-family:inherit;font-size:16px;font-weight:800;cursor:pointer;padding:0}.ywa-auth-text-button{display:block;margin:16px auto 0}.ywa-auth-back{margin:0 0 13px}.ywa-auth-text-button:hover,.ywa-auth-back:hover{text-decoration:underline}
.ywa-auth-message{margin:0 0 16px;padding:12px 14px;border-radius:13px;font-size:16px;line-height:1.8;background:#eef4ff;color:#174d9e;border:1px solid #cfddf8}.ywa-auth-message.is-error{background:#fff1f1;color:#a82e2e;border-color:#ffcfcf}.ywa-auth-message.is-success{background:#ecfbf3;color:#16724b;border-color:#c6efda}
.ywa-hp{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}.ywa-body-lock{overflow:hidden!important}.ywa-logged-in{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px;border:1px solid #dfe7f2;border-radius:18px;background:#fff}.ywa-logged-in a{display:inline-flex;padding:9px 14px;border-radius:11px;background:var(--ywa-primary);color:#fff;text-decoration:none}.ywa-auth-modal.is-open{display:grid!important}
@media(max-width:640px){.ywa-auth-modal{padding:10px;align-items:end}.ywa-auth-card{width:100%;max-height:calc(100dvh - 10px);border-radius:24px 24px 0 0;padding:22px 16px 20px}.ywa-auth-brand img{width:52px;height:52px}.ywa-auth-brand strong{font-size:17px}.ywa-auth-brand small{font-size:12px}.ywa-auth-panel h2{font-size:22px!important}.ywa-auth-form input{font-size:16px!important}.ywa-auth-tabs button{min-height:44px}.ywa-auth-line{margin:16px 0}.ywa-logged-in{display:block}.ywa-logged-in a{margin-top:12px}}

/* SMS OTP */
.ywa-otp-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:10px;align-items:end}.ywa-otp-row>label{margin:0}.ywa-send-otp{min-height:48px;border:0;border-radius:13px;background:#edf4ff;color:var(--ywa-primary);font-family:inherit;font-weight:800;cursor:pointer;padding:0 12px}.ywa-send-otp:disabled{opacity:.68;cursor:not-allowed}.ywa-auth-tabs{flex-wrap:wrap}.ywa-auth-tabs button{min-width:92px}@media(max-width:520px){.ywa-otp-row{grid-template-columns:1fr}.ywa-send-otp{width:100%}}

/* Smart single-flow authentication */
.ywa-identifier-preview{display:inline-flex;align-items:center;min-height:36px;margin:0 0 16px!important;padding:7px 11px;border-radius:11px;background:#eef4ff;color:var(--ywa-primary)!important;font-size:16px!important;font-weight:800}
.ywa-auth-secondary{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin-top:11px;border:1px solid #cfddf8;border-radius:13px;background:#f5f8ff;color:var(--ywa-primary);font-family:inherit;font-weight:850;cursor:pointer}
.ywa-auth-secondary:hover{background:#eaf2ff}
.ywa-auth-secondary[hidden]{display:none!important}
.ywa-auth-back{display:inline-flex;align-items:center;gap:5px;margin-bottom:12px;padding:7px 10px;border-radius:10px;background:#f1f5fb;text-decoration:none!important}
.ywa-auth-panel[data-ywa-panel="start"] h2{font-size:27px!important}
@media(max-width:640px){.ywa-auth-panel[data-ywa-panel="start"] h2{font-size:23px!important}}

/* Popup viewport fixes — v1.2.1 */
.ywa-auth-modal{overflow:hidden!important;padding:12px!important;align-items:center!important;justify-items:center!important}
.ywa-auth-modal .ywa-auth-card{width:min(540px,calc(100vw - 24px))!important;max-width:540px!important;max-height:none!important;overflow:hidden!important;padding:24px!important;border-radius:22px!important}
.ywa-auth-modal .ywa-auth-panel{min-width:0!important;overflow:hidden!important}
.ywa-auth-modal .ywa-auth-form,.ywa-auth-modal .ywa-auth-form label,.ywa-auth-modal .ywa-password-wrap{min-width:0!important}
.ywa-auth-modal input,.ywa-auth-modal button{max-width:100%!important}
@media(max-width:640px){
  .ywa-auth-modal{padding:8px!important;align-items:center!important}
  .ywa-auth-modal .ywa-auth-card{width:calc(100vw - 16px)!important;max-width:none!important;padding:18px 14px 16px!important;border-radius:20px!important}
  .ywa-auth-modal .ywa-auth-brand{gap:10px;padding-left:42px}
  .ywa-auth-modal .ywa-auth-brand img{width:48px;height:48px}
  .ywa-auth-modal .ywa-auth-line{margin:13px 0 12px}
  .ywa-auth-modal .ywa-auth-panel h2{font-size:20px!important;margin-bottom:5px!important}
  .ywa-auth-modal .ywa-auth-panel>p{font-size:12px;line-height:1.75;margin-bottom:12px}
  .ywa-auth-modal .ywa-auth-form{gap:10px}
  .ywa-auth-modal .ywa-auth-form input{min-height:46px!important}
  .ywa-auth-modal .ywa-auth-submit{min-height:48px}
}
@media(max-height:700px){
  .ywa-auth-modal .ywa-auth-card{padding-top:16px!important;padding-bottom:14px!important}
  .ywa-auth-modal .ywa-auth-brand img{width:44px;height:44px}
  .ywa-auth-modal .ywa-auth-brand strong{font-size:16px}
  .ywa-auth-modal .ywa-auth-brand small{display:none}
  .ywa-auth-modal .ywa-auth-line{margin:10px 0}
  .ywa-auth-modal .ywa-auth-panel>p{margin-bottom:9px;line-height:1.6}
  .ywa-auth-modal .ywa-auth-form{gap:8px}
  .ywa-auth-modal .ywa-auth-form input{min-height:43px!important}
  .ywa-auth-modal .ywa-auth-submit{min-height:45px}
}

/* YusefWeb Auth UI v1.3.0 */
.ywa-auth-modal{
  overflow:hidden!important;
  padding:12px!important;
  align-items:center!important;
  justify-items:center!important;
}
.ywa-auth-modal .ywa-auth-card{
  width:min(560px,calc(100vw - 24px))!important;
  max-width:560px!important;
  max-height:calc(100dvh - 24px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-width:none;
  padding:25px!important;
  border-radius:24px!important;
  animation:ywaCardOpen .28s cubic-bezier(.2,.78,.25,1) both;
}
.ywa-auth-modal .ywa-auth-card::-webkit-scrollbar{display:none;width:0;height:0}
.ywa-auth-modal:not(.is-open) .ywa-auth-card{animation:ywaCardClose .18s ease both}
@keyframes ywaCardOpen{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
@keyframes ywaCardClose{from{opacity:1;transform:none}to{opacity:0;transform:translateY(10px) scale(.98)}}
.ywa-auth-panel{display:none!important;opacity:0;transform:translateX(-12px) scale(.985);transform-origin:center;transition:opacity .2s ease,transform .22s ease}
.ywa-auth-panel.is-active{display:block!important;opacity:1;transform:none}
.ywa-auth-panel.is-entering{animation:ywaPanelIn .26s cubic-bezier(.2,.75,.25,1) both}
.ywa-auth-panel.is-leaving{display:block!important;animation:ywaPanelOut .15s ease both}
@keyframes ywaPanelIn{from{opacity:0;transform:translateX(-14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes ywaPanelOut{from{opacity:1;transform:none}to{opacity:0;transform:translateX(10px) scale(.99)}}
.ywa-auth-message.is-animated{animation:ywaMessageIn .25s ease both}
@keyframes ywaMessageIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.ywa-auth-submit,.ywa-send-otp{position:relative;overflow:hidden}
.ywa-auth-submit.is-loading,.ywa-send-otp.is-loading{color:transparent!important;pointer-events:none}
.ywa-auth-submit.is-loading:before,.ywa-send-otp.is-loading:before{
  content:"";position:absolute;inset:50% auto auto 50%;width:19px;height:19px;margin:-10px 0 0 -10px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;color:#fff;animation:ywaSpin .72s linear infinite
}
.ywa-send-otp.is-loading:before{color:var(--ywa-primary)}
@keyframes ywaSpin{to{transform:rotate(360deg)}}
.ywa-otp-stage{
  display:flex;align-items:center;gap:13px;margin:2px 0 14px;padding:13px 14px;border:1px solid #dce7f7;border-radius:16px;background:linear-gradient(135deg,#f6f9ff,#eef5ff);transition:.25s ease
}
.ywa-otp-stage>span:last-child{display:grid;gap:2px;min-width:0}
.ywa-otp-stage strong{font-size:16px;color:#23456f}
.ywa-otp-stage small{font-size:16px;color:#74839a;line-height:1.7}
.ywa-otp-orbit{position:relative;display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:15px;background:#fff;color:var(--ywa-primary);box-shadow:0 8px 22px rgba(11,58,145,.10)}
.ywa-otp-orbit i,.ywa-otp-orbit b{position:absolute;border-radius:50%;border:1.5px solid transparent;opacity:0}
.ywa-otp-orbit i{inset:-5px;border-top-color:var(--ywa-secondary)}
.ywa-otp-orbit b{inset:-10px;border-bottom-color:var(--ywa-accent)}
.ywa-otp-stage.is-sending .ywa-otp-orbit i{opacity:1;animation:ywaOrbit .9s linear infinite}
.ywa-otp-stage.is-sending .ywa-otp-orbit b{opacity:.7;animation:ywaOrbit 1.4s linear infinite reverse}
.ywa-otp-stage.is-sent{border-color:#bfe8d4;background:linear-gradient(135deg,#f2fff8,#eafaf2)}
.ywa-otp-stage.is-sent .ywa-otp-orbit{color:#138658;background:#fff}
.ywa-otp-stage.is-complete{border-color:#a9c9ff;box-shadow:0 0 0 4px rgba(23,111,242,.08)}
.ywa-otp-stage.is-error{border-color:#ffc9c9;background:#fff5f5}
.ywa-otp-stage.is-error .ywa-otp-orbit{color:#b93434}
@keyframes ywaOrbit{to{transform:rotate(360deg)}}
.ywa-otp-stage--compact{margin-top:0;padding:10px 12px}
.ywa-otp-stage--compact .ywa-otp-orbit{width:40px;height:40px;flex-basis:40px;border-radius:13px}
.ywa-otp-row{grid-template-columns:minmax(0,1fr) 132px!important;gap:10px!important;align-items:end!important}
.ywa-otp-label{min-width:0}
.ywa-otp-code-input{
  min-height:58px!important;text-align:center!important;letter-spacing:.42em!important;font-size:23px!important;font-weight:900!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;direction:ltr!important;padding-inline:20px!important;background:linear-gradient(180deg,#fff,#fbfdff)!important
}
.ywa-otp-code-input::placeholder{letter-spacing:.2em;color:#bdc8d8;opacity:1}
.ywa-otp-code-input.is-complete{border-color:var(--ywa-secondary)!important;box-shadow:0 0 0 4px rgba(23,111,242,.10)!important;animation:ywaCodeReady .3s ease both}
.ywa-otp-code-input.is-error{border-color:#e25454!important;animation:ywaShake .28s ease both}
@keyframes ywaCodeReady{0%{transform:scale(.985)}60%{transform:scale(1.008)}100%{transform:none}}
@keyframes ywaShake{0%,100%{transform:none}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.ywa-send-otp{min-height:58px!important;border:1px solid #cfe0fb!important;background:linear-gradient(180deg,#f4f8ff,#eaf2ff)!important;box-shadow:none!important;transition:.2s ease!important}
.ywa-send-otp:not(:disabled):hover{transform:translateY(-1px);border-color:#9ec2f7!important;background:#e8f1ff!important}
.ywa-otp-submit{margin-top:2px}

@media(max-width:640px){
  .ywa-auth-modal{padding:8px!important;align-items:center!important}
  .ywa-auth-modal .ywa-auth-card{width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;padding:18px 14px 16px!important;border-radius:20px!important}
  .ywa-auth-brand{padding-left:42px!important}
  .ywa-auth-brand img{width:48px!important;height:48px!important}
  .ywa-auth-brand strong{font-size:17px!important}
  .ywa-auth-brand small{font-size:12px!important}
  .ywa-auth-line{margin:13px 0 12px!important}
  .ywa-auth-panel h2{font-size:20px!important;margin-bottom:5px!important}
  .ywa-auth-panel>p{font-size:12px!important;line-height:1.75!important;margin-bottom:12px!important}
  .ywa-auth-form{gap:10px!important}
  .ywa-auth-form input{min-height:46px!important}
  .ywa-otp-row{grid-template-columns:1fr!important}
  .ywa-send-otp{width:100%;min-height:48px!important}
  .ywa-otp-code-input{min-height:56px!important;font-size:22px!important;letter-spacing:.34em!important}
  .ywa-otp-stage{padding:11px 12px;margin-bottom:11px}
  .ywa-otp-stage small{font-size:12px}
}
@media(max-height:680px){
  .ywa-auth-modal .ywa-auth-card{padding-top:14px!important;padding-bottom:12px!important}
  .ywa-auth-brand img{width:42px!important;height:42px!important}
  .ywa-auth-brand small{display:none!important}
  .ywa-auth-line{margin:9px 0!important}
  .ywa-auth-panel>p{margin-bottom:8px!important;line-height:1.55!important}
  .ywa-auth-form{gap:8px!important}
  .ywa-otp-stage{padding:9px 11px;margin-bottom:8px}
  .ywa-otp-orbit{width:38px;height:38px;flex-basis:38px}
}

/* YusefWeb Auth polished single flow — v1.4.0 */
.ywa-auth-modal .ywa-auth-card,
.ywa-auth-inline .ywa-auth-card{
  overflow:hidden!important;
}
.ywa-auth-close{
  position:absolute!important;
  z-index:5!important;
  top:16px!important;
  left:16px!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(11,69,189,.13)!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,#fff,#eef4ff)!important;
  color:var(--ywa-primary)!important;
  box-shadow:0 10px 26px rgba(11,58,145,.13)!important;
  font-size:19px!important;
  line-height:1!important;
  cursor:pointer!important;
  transition:transform .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease!important;
}
.ywa-auth-close:hover{transform:rotate(5deg) scale(1.04);background:#fff3ea!important;color:#e65000!important;box-shadow:0 13px 30px rgba(255,106,0,.18)!important}
.ywa-auth-close i{display:block!important;margin:0!important;font-size:19px!important;line-height:1!important}
.ywa-auth-brand{padding-left:54px!important}
.ywa-auth-brand small{display:none!important}
.ywa-auth-panel>p:not(.ywa-identifier-preview){display:none!important}
.ywa-auth-panel h2{margin-bottom:14px!important}
.ywa-auth-back{display:inline-flex!important;align-items:center!important;gap:7px!important;border:0!important;color:var(--ywa-primary)!important;font-family:inherit!important;font-weight:800!important;cursor:pointer!important}
.ywa-auth-back i{font-size:16px}
.ywa-field-label{display:block!important}
.ywa-smart-field{position:relative;display:flex;align-items:center;width:100%;border:1.5px solid #cfd9e9;border-radius:15px;background:#fff;box-shadow:0 8px 25px rgba(11,58,145,.05);transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease,background .22s ease}
.ywa-smart-field:focus-within{border-color:var(--ywa-secondary);box-shadow:0 0 0 4px rgba(23,111,242,.10),0 14px 30px rgba(11,58,145,.08);transform:translateY(-1px)}
.ywa-smart-field input{width:100%!important;border:0!important;box-shadow:none!important;background:transparent!important;padding-inline-end:52px!important;margin:0!important}
.ywa-smart-field__state{position:absolute;left:13px;display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#eef4ff;color:#7c8ca4;opacity:.7;transition:.22s ease}
.ywa-smart-field__state i{font-size:16px;line-height:1}
.ywa-smart-field.is-checking{border-color:#6ea2f5;background:#fbfdff}
.ywa-smart-field.is-checking .ywa-smart-field__state{color:var(--ywa-primary);opacity:1}
.ywa-smart-field.is-checking .ywa-smart-field__state i{animation:ywaSpin .75s linear infinite}
.ywa-smart-field.is-valid{border-color:#20a46b;background:linear-gradient(180deg,#fff,#f7fff9);box-shadow:0 0 0 4px rgba(32,164,107,.08)}
.ywa-smart-field.is-valid .ywa-smart-field__state{background:#e8fff3;color:#168755;opacity:1}
.ywa-smart-field.is-valid .ywa-smart-field__state i:before{content:"\f00c"}
.ywa-smart-field.is-invalid{border-color:#e25555;background:linear-gradient(180deg,#fff,#fff8f8);box-shadow:0 0 0 4px rgba(226,85,85,.08);animation:ywaShake .28s ease both}
.ywa-smart-field.is-invalid .ywa-smart-field__state{background:#fff0f0;color:#c93838;opacity:1}
.ywa-smart-field.is-invalid .ywa-smart-field__state i:before{content:"\f00d"}
.ywa-smart-field__help{display:block;margin-top:7px;color:#7a8798;font-size:16px;line-height:1.8;transition:color .2s ease}
.ywa-field-label:has(.ywa-smart-field.is-valid) .ywa-smart-field__help{color:#168755}
.ywa-field-label:has(.ywa-smart-field.is-invalid) .ywa-smart-field__help{color:#c93838}
.ywa-identifier-preview{direction:ltr;text-align:center;justify-content:center;width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.02em}
.ywa-resend-otp{width:100%!important;min-height:44px!important;margin-top:-2px!important;border:0!important;background:transparent!important;color:var(--ywa-primary)!important;box-shadow:none!important}
.ywa-resend-otp[hidden]{display:none!important}
.ywa-otp-label{display:block!important}
.ywa-otp-stage{margin-bottom:12px!important}
.ywa-otp-orbit .fa-solid{position:relative!important;inset:auto!important;border:0!important;opacity:1!important;font-size:20px!important}
.ywa-auth-submit span{position:relative;z-index:1}
@media(max-width:640px){
  .ywa-auth-close{top:12px!important;left:12px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:12px!important}
  .ywa-auth-brand{padding-left:46px!important}
  .ywa-auth-brand strong{font-size:16px!important}
  .ywa-auth-panel h2{font-size:20px!important;margin-bottom:12px!important}
  .ywa-smart-field input{min-height:50px!important;font-size:14px!important}
  .ywa-smart-field__help{font-size:12px}
}

/* Mobile viewport and smart-field corrections — v1.4.1 */
.ywa-auth-modal{overflow:hidden!important}
.ywa-auth-modal .ywa-auth-card{max-height:calc(100dvh - 24px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;scrollbar-width:none!important}
.ywa-auth-modal .ywa-auth-card::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.ywa-auth-modal .ywa-auth-panel,.ywa-auth-modal .ywa-auth-form{overflow:visible!important}
.ywa-smart-field{overflow:hidden!important}
.ywa-smart-field input{padding-left:14px!important;padding-right:52px!important;text-align:left!important;direction:ltr!important}
.ywa-smart-field__state{right:11px!important;left:auto!important;pointer-events:none!important}
.ywa-smart-field__help{position:static!important;display:block!important;clear:both!important;margin:7px 2px 0!important;padding:0!important;white-space:normal!important;overflow:visible!important;text-align:right!important}
@media(max-width:640px){
  .ywa-auth-modal{align-items:center!important;padding:8px!important}
  .ywa-auth-modal .ywa-auth-card{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:18px 14px 20px!important;border-radius:20px!important}
  .ywa-auth-panel{padding-bottom:2px!important}
  .ywa-auth-form{gap:11px!important}
  .ywa-auth-form label:not(.ywa-check):not(.ywa-hp){gap:6px!important}
  .ywa-smart-field input{min-height:50px!important;font-size:16px!important}
  .ywa-smart-field__state{width:30px!important;height:30px!important;right:10px!important}
  .ywa-otp-code-input{font-size:22px!important;letter-spacing:.4em!important}
}
@media(max-height:620px){
  .ywa-auth-modal{align-items:stretch!important}
  .ywa-auth-modal .ywa-auth-card{max-height:calc(100dvh - 12px)!important;margin:auto!important}
}

/* Identifier switch and OTP feedback refinements — v1.4.2 */
.ywa-auth-panel .ywa-auth-back{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:40px!important;
  margin:0 0 14px!important;
  padding:8px 13px!important;
  border:1px solid rgba(11,58,145,.14)!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,#fff,#eef4ff)!important;
  color:var(--ywa-primary)!important;
  box-shadow:0 9px 22px rgba(11,58,145,.09)!important;
  font-size:16px!important;
  font-weight:900!important;
  line-height:1!important;
  text-decoration:none!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
.ywa-auth-panel .ywa-auth-back:hover{transform:translateY(-1px)!important;border-color:rgba(23,111,242,.28)!important;box-shadow:0 12px 26px rgba(11,58,145,.13)!important;text-decoration:none!important}
.ywa-auth-panel .ywa-auth-back i{display:grid!important;place-items:center!important;width:20px!important;height:20px!important;border-radius:7px!important;background:var(--ywa-primary)!important;color:#fff!important;font-size:16px!important}
.ywa-auth-panel[data-ywa-panel="otp"] .ywa-auth-message.is-success,
.ywa-auth-panel[data-ywa-panel="register"] .ywa-auth-message.is-success{display:none!important}
@media(max-width:640px){
  .ywa-auth-panel .ywa-auth-back{min-height:38px!important;padding:7px 11px!important;margin-bottom:12px!important}
}

/* Manual phone verification flow — v1.4.5 */
.ywa-start-otp[hidden]{display:none!important}
.ywa-start-otp{display:grid;gap:12px;padding-top:2px;animation:ywa-in .22s ease both}
.ywa-start-otp .ywa-otp-stage{margin:0!important}
.ywa-start-otp .ywa-resend-otp{margin-top:0!important}
.ywa-start-otp .ywa-auth-secondary{margin-top:0!important}
.ywa-verified-phone-card{display:flex;align-items:center;gap:11px;min-height:64px;padding:11px 13px;border:1px solid #bfe8d4;border-radius:15px;background:linear-gradient(135deg,#f2fff8,#eafaf2);box-shadow:0 10px 26px rgba(19,134,88,.08)}
.ywa-verified-phone-card__icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#fff;color:#138658;box-shadow:0 8px 20px rgba(19,134,88,.11)}
.ywa-verified-phone-card__icon i{font-size:20px}
.ywa-verified-phone-card small,.ywa-verified-phone-card strong{display:block}
.ywa-verified-phone-card small{color:#628372;font-size:16px;line-height:1.7}
.ywa-verified-phone-card strong{margin-top:3px;direction:ltr;text-align:right;color:#08734a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:16px;letter-spacing:.03em}
.ywa-auth-submit[data-ywa-initial-send][hidden],.ywa-auth-secondary[data-ywa-password-login][hidden]{display:none!important}
@media(max-width:640px){
  .ywa-start-otp{gap:10px}
  .ywa-verified-phone-card{min-height:58px;padding:9px 11px}
  .ywa-verified-phone-card__icon{width:36px;height:36px;flex-basis:36px;border-radius:11px}
}


/* Readable typography floor — v1.4.7 */
.ywauth-modal,.ywauth-wrap,.ywauth-account{font-size:16px;line-height:1.85}
.ywauth-modal :where(input,textarea,select,button,option,label),.ywauth-wrap :where(input,textarea,select,button,option,label){font-size:16px}
@media(max-width:900px){.ywauth-modal,.ywauth-wrap,.ywauth-account{font-size:12px}.ywauth-modal :where(input,textarea,select,button,option,label),.ywauth-wrap :where(input,textarea,select,button,option,label){font-size:12px}}


/* Vazirmatn weight balance and responsive mobile type — v1.4.8 */
.ywa-auth-modal,.ywa-auth-inline,.ywa-auth-account{font-family:'Vazirmatn','YusefWebVazirmatn',Tahoma,Arial,sans-serif!important;font-weight:400}
.ywa-auth-modal :where(p,span,small,label,input,select,option){font-weight:400}
.ywa-auth-modal :where(strong,b){font-weight:600}
.ywa-auth-modal :where(button,.ywa-auth-submit,.ywa-auth-trigger){font-weight:600!important}
.ywa-auth-modal :where(h1,h2,h3){font-weight:750!important}
@media(max-width:640px){
  .ywa-auth-modal,.ywa-auth-inline{font-size:clamp(12px,3.45vw,15px)!important;line-height:1.85}
  .ywa-auth-modal :where(p,span,small,label,input,select,option,button,a){font-size:clamp(12px,3.45vw,15px)!important}
  .ywa-auth-panel h2{font-size:clamp(20px,6vw,25px)!important}
}

/* Keep authentication controls dimensionally stable — v1.5.0 */
.ywa-auth-card :where(button,.ywa-auth-submit,.ywa-auth-trigger,.ywa-send-otp,.ywa-auth-back,.ywa-auth-close):hover,
.ywa-auth-card :where(button,.ywa-auth-submit,.ywa-auth-trigger,.ywa-send-otp,.ywa-auth-back,.ywa-auth-close):focus-visible{
  transform:none!important;
}
.ywa-auth-card :where(button,.ywa-auth-submit,.ywa-auth-trigger,.ywa-send-otp,.ywa-auth-back,.ywa-auth-close){
  transition-property:background-color,border-color,color,box-shadow,filter!important;
  transition-duration:.18s!important;
}

/* Numeric image CAPTCHA, password/reset helpers — v1.5.2 */
.ywa-password-hint,
.ywa-reset-description{
  display:block!important;
  margin:-2px 2px 2px!important;
  color:#65768e!important;
  font-size:14px!important;
  line-height:1.9!important;
  font-weight:400!important;
}
.ywa-auth-panel>p.ywa-reset-description{display:block!important}
.ywa-local-captcha{
  display:grid!important;
  gap:9px!important;
  width:100%!important;
  margin:2px 0!important;
  padding:13px!important;
  border:1px solid rgba(25,118,233,.18)!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,rgba(244,250,255,.96),rgba(251,248,255,.92))!important;
  box-shadow:0 10px 24px rgba(31,87,154,.06)!important;
}
.ywa-local-captcha-media{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  direction:ltr!important;
}
.ywa-local-captcha-media img{
  display:block!important;
  width:205px!important;
  height:64px!important;
  max-width:calc(100% - 52px)!important;
  border:1px solid rgba(25,118,233,.16)!important;
  border-radius:13px!important;
  background:#f7fbff!important;
  object-fit:cover!important;
}
.ywa-local-captcha-refresh{
  display:grid!important;
  place-items:center!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(25,118,233,.22)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#1764cf!important;
  box-shadow:none!important;
  font-family:Arial,sans-serif!important;
  font-size:23px!important;
  font-weight:700!important;
  line-height:1!important;
  cursor:pointer!important;
  transform:none!important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease!important;
}
.ywa-local-captcha-refresh:hover,
.ywa-local-captcha-refresh:focus-visible{
  transform:none!important;
  background:#edf7ff!important;
  border-color:rgba(25,118,233,.38)!important;
  color:#0b45bd!important;
  box-shadow:0 6px 16px rgba(25,118,233,.10)!important;
}
.ywa-local-captcha-refresh:disabled{opacity:.65!important;cursor:wait!important}
.ywa-local-captcha-label{
  display:grid!important;
  gap:7px!important;
  margin:0!important;
  color:#273b58!important;
  font-weight:600!important;
  font-size:14px!important;
}
.ywa-local-captcha-input{
  width:100%!important;
  min-height:48px!important;
  margin:0!important;
  direction:ltr!important;
  text-align:center!important;
  letter-spacing:6px!important;
  text-transform:none!important;
  font-size:19px!important;
  font-weight:700!important;
  font-variant-numeric:tabular-nums!important;
  ime-mode:disabled!important;
}
.ywa-local-captcha>small{
  display:block!important;
  margin:0!important;
  color:#60758c!important;
  line-height:1.75!important;
  font-size:12px!important;
  font-weight:400!important;
}
.ywa-local-captcha-error{
  padding:11px 12px!important;
  border:1px solid #fecdd3!important;
  border-radius:13px!important;
  background:#fff1f2!important;
  color:#9f1239!important;
  font-size:13px!important;
  font-weight:600!important;
}
.ywa-local-captcha-honeypot{
  position:absolute!important;
  inline-size:1px!important;
  block-size:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  opacity:0!important;
  pointer-events:none!important;
}
.ywa-local-captcha-feedback{
  display:block!important;
  min-height:0!important;
  color:#a3193d!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.75!important;
}
.ywa-local-captcha-feedback:empty{display:none!important}
@media(max-width:640px){
  .ywa-password-hint,
  .ywa-reset-description{font-size:12px!important}
  .ywa-local-captcha{padding:11px!important;border-radius:15px!important;gap:8px!important}
  .ywa-local-captcha-media{width:100%!important;gap:8px!important}
  .ywa-local-captcha-media img{
    width:calc(100% - 52px)!important;
    max-width:calc(100% - 52px)!important;
    height:58px!important;
    min-width:0!important;
  }
  .ywa-local-captcha-refresh{
    flex-basis:44px!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
  }
  .ywa-local-captcha-label{font-size:12px!important}
  .ywa-local-captcha-input{
    min-height:48px!important;
    letter-spacing:4px!important;
    font-size:18px!important;
  }
  .ywa-local-captcha>small,
  .ywa-local-captcha-feedback{font-size:12px!important}
}
