.ava-auth,.ava-auth *{box-sizing:border-box}.ava-auth{--ava-primary:#e7273f;--ava-secondary:#001b5c;--ava-success:#16a34a;--ava-error:#dc2626;--ava-bg:#fff;--ava-text:#172033;--ava-radius:24px;max-width:460px;width:100%;margin:0 auto;font-family:Vazirmatn,Tahoma,Arial,sans-serif;color:var(--ava-text);overflow:visible}.ava-auth__card{position:relative;width:100%;padding:28px;background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.92)),var(--ava-bg-image);background-size:cover;background-position:center;border:1px solid rgba(15,23,42,.08);border-radius:var(--ava-radius);box-shadow:0 18px 55px rgba(0,27,92,.12);overflow:hidden}.ava-auth--dark .ava-auth__card{background:#101827;color:#fff;border-color:rgba(255,255,255,.1)}.ava-auth__card:before{content:"";position:absolute;inset:-70px auto auto -50px;width:180px;height:180px;background:radial-gradient(circle,var(--ava-primary),transparent 68%);opacity:.13;pointer-events:none}.ava-auth__logo{display:block;max-width:168px;max-height:64px;object-fit:contain;margin:0 auto 18px}.ava-auth__head{text-align:center}.ava-auth__badge{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;border-radius:99px;background:rgba(231,39,63,.1);color:var(--ava-primary);font-weight:800;font-size:12px;letter-spacing:.08em}.ava-auth__head h3{margin:12px 0 8px;font-size:24px;line-height:1.35;font-weight:900;color:inherit}.ava-auth__head p{margin:0 0 22px;color:color-mix(in srgb,var(--ava-text) 68%,transparent);font-size:14px;line-height:1.9}.ava-auth--dark .ava-auth__head p{color:rgba(255,255,255,.72)}.ava-auth__label{display:block;margin:0 0 8px;font-size:14px;font-weight:800}.ava-auth__profile{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.ava-auth__profile-field{margin:0}.ava-auth__profile-field span{display:block;margin-bottom:8px}.ava-auth__profile-field:has(input[type=email]),.ava-auth__profile-field:has(input[type=password]){grid-column:1/-1}.ava-auth__input{width:100%;height:54px;border:1px solid rgba(15,23,42,.14);border-radius:18px;background:#fff;padding:0 16px;font-size:16px;outline:none;transition:border-color .2s,box-shadow .2s}.ava-auth__input[data-ava-mobile]{font-size:18px;direction:ltr;text-align:left}.ava-auth__input:focus{border-color:var(--ava-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--ava-primary) 18%,transparent)}.ava-auth__button{width:100%;min-height:52px;margin-top:14px;border:0;border-radius:18px;background:linear-gradient(135deg,var(--ava-primary),#ff5b59);color:#fff;font-weight:900;font-size:15px;cursor:pointer;transition:transform .2s,opacity .2s,box-shadow .2s;box-shadow:0 14px 28px rgba(231,39,63,.22)}.ava-auth__button:hover{transform:translateY(-1px)}.ava-auth__button:disabled{opacity:.55;cursor:not-allowed;transform:none}.ava-auth__button--ghost{background:#f3f5f8;color:var(--ava-secondary);box-shadow:none}.ava-auth__link{display:block;margin:12px auto 0;border:0;background:transparent;color:var(--ava-secondary);font-weight:800;cursor:pointer}.ava-auth--dark .ava-auth__link{color:#fff}.ava-auth__link:disabled{opacity:.45;cursor:not-allowed}.ava-auth__notice{margin:0 0 16px;padding:12px 14px;border-radius:16px;font-size:13px;line-height:1.7;background:#eff6ff;color:#1d4ed8}.ava-auth__notice[data-type=success]{background:#ecfdf3;color:var(--ava-success)}.ava-auth__notice[data-type=error]{background:#fef2f2;color:var(--ava-error)}.ava-auth__otp-title{text-align:center;margin:2px 0 14px;font-weight:900}.ava-auth__otp-boxes{display:flex;justify-content:center;gap:10px;direction:ltr;min-height:58px;transition:gap .38s ease,transform .38s ease}.ava-auth__otp-input{width:48px;height:56px;border:1px solid rgba(15,23,42,.14);border-radius:16px;background:#fff;text-align:center;font-size:24px;font-weight:900;outline:none;transition:all .22s ease;color:#111827}.ava-auth__otp-input:focus{border-color:var(--ava-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--ava-primary) 16%,transparent)}.ava-auth__otp-boxes.is-error .ava-auth__otp-input{border-color:var(--ava-error);animation:avaShake .36s ease}.ava-auth__otp-boxes.is-checking .ava-auth__otp-input{opacity:.75}.ava-auth__otp-boxes.is-success{gap:0;transform:scale(.94)}.ava-auth__otp-boxes.is-success .ava-auth__otp-input{width:14px;border-color:var(--ava-success);background:#ecfdf3;color:transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--ava-success) 15%,transparent);margin:0 -1px;opacity:0}.ava-auth__success{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin:14px auto 0;color:var(--ava-success);animation:avaPop .36s ease both}.ava-auth__success svg{width:58px;height:58px;border-radius:18px;background:#ecfdf3;padding:13px;box-shadow:0 0 0 6px rgba(22,163,74,.09)}.ava-auth__success path{fill:none;stroke:var(--ava-success);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:48;stroke-dashoffset:48;animation:avaDraw .52s .12s ease forwards}.ava-auth__one-time{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.ava-auth__timer{width:max-content;min-width:82px;margin:18px auto 4px;padding:8px 14px;border-radius:99px;background:rgba(0,27,92,.06);font-weight:900;direction:ltr;text-align:center;color:var(--ava-secondary)}.ava-auth__footer{margin-top:20px;padding-top:14px;border-top:1px solid rgba(15,23,42,.08);text-align:center;font-size:12px;color:#7c8597}.ava-auth__footer a{color:var(--ava-primary);text-decoration:none;font-weight:800}.ava-auth-popup-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:0;border-radius:14px;background:#e7273f;color:#fff;font-family:Vazirmatn,Tahoma,Arial;font-weight:900;cursor:pointer}.ava-auth-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:18px}.ava-auth-modal.is-open{display:flex}.ava-auth-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(8px)}.ava-auth-modal__dialog{position:relative;z-index:1;width:min(460px,100%);max-height:calc(100dvh - 32px);overflow:auto;scrollbar-width:thin}.ava-auth-modal__close{position:absolute;z-index:2;top:10px;left:10px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.92);font-size:24px;line-height:1;cursor:pointer}.ava-auth-modal .ava-auth{margin:0}@keyframes avaShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes avaPop{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:scale(1)}}@keyframes avaDraw{to{stroke-dashoffset:0}}@media(max-width:480px){.ava-auth{max-width:100%}.ava-auth__card{padding:22px 16px;border-radius:calc(var(--ava-radius) * .75)}.ava-auth__head h3{font-size:21px}.ava-auth__otp-boxes{gap:7px}.ava-auth__otp-input{width:clamp(40px,13vw,48px);height:54px;font-size:22px;border-radius:14px}.ava-auth__profile{grid-template-columns:1fr}.ava-auth-modal{align-items:flex-start;padding:12px;padding-top:max(12px,env(safe-area-inset-top))}.ava-auth-modal__dialog{max-height:calc(100dvh - 24px)}}@media(prefers-reduced-motion:reduce){.ava-auth *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* Ava Mobile Auth: modal click shield and theme conflict reset */
html.ava-auth-modal-open,
html.ava-auth-modal-open body{
    overflow:hidden!important;
    overscroll-behavior:contain!important;
}

#ava-ma-popup.ava-auth-modal{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    margin:0!important;
    padding:18px!important;
    display:none!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:2147483647!important;
    pointer-events:auto!important;
    isolation:isolate!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    contain:layout style!important;
}

#ava-ma-popup.ava-auth-modal.is-open{
    display:flex!important;
}

#ava-ma-popup .ava-auth-modal__backdrop{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    background:rgba(15,23,42,.55)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
    z-index:0!important;
    pointer-events:auto!important;
    cursor:default!important;
}

#ava-ma-popup .ava-auth-modal__dialog{
    position:relative!important;
    z-index:2!important;
    width:min(460px,calc(100vw - 36px))!important;
    max-height:calc(100dvh - 36px)!important;
    margin:auto!important;
    overflow:auto!important;
    display:block!important;
    pointer-events:auto!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    background:transparent!important;
    touch-action:auto!important;
}

#ava-ma-popup .ava-auth-modal__close{
    position:absolute!important;
    top:10px!important;
    left:10px!important;
    z-index:10!important;
    width:38px!important;
    height:38px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#111827!important;
    font-size:26px!important;
    line-height:1!important;
    cursor:pointer!important;
    pointer-events:auto!important;
    opacity:1!important;
    visibility:visible!important;
    box-shadow:0 8px 24px rgba(15,23,42,.12)!important;
}

#ava-ma-popup .ava-auth,
#ava-ma-popup .ava-auth *,
#ava-ma-popup input,
#ava-ma-popup button,
#ava-ma-popup textarea,
#ava-ma-popup select,
#ava-ma-popup label{
    pointer-events:auto!important;
}

#ava-ma-popup .ava-auth{
    position:relative!important;
    z-index:3!important;
    margin:0!important;
}

#ava-ma-popup .ava-auth__card{
    position:relative!important;
    z-index:3!important;
    overflow:hidden!important;
}

#ava-ma-popup .ava-auth__card:before{
    pointer-events:none!important;
}

#ava-ma-popup .ava-auth__input,
#ava-ma-popup .ava-auth__otp-input{
    position:relative!important;
    z-index:5!important;
    user-select:text!important;
    -webkit-user-select:text!important;
    touch-action:auto!important;
    cursor:text!important;
    background:#fff!important;
}

#ava-ma-popup .ava-auth__button,
#ava-ma-popup .ava-auth__link{
    position:relative!important;
    z-index:5!important;
    cursor:pointer!important;
}

#ava-ma-popup .ava-auth__footer{
    display:none!important;
}

@media(max-width:480px){
    #ava-ma-popup.ava-auth-modal{align-items:flex-start!important;padding:12px!important;padding-top:max(12px,env(safe-area-inset-top))!important;}
    #ava-ma-popup .ava-auth-modal__dialog{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;}
}

/* Ava Mobile Auth 1.0.0 - hard modal isolation fix */
html.ava-auth-modal-open,
html.ava-auth-modal-open body,
body.ava-auth-modal-open{
    overflow:hidden!important;
    overscroll-behavior:contain!important;
}

body > #ava-ma-popup.ava-auth-modal{
    position:fixed!important;
    inset:0!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100vw!important;
    min-width:100vw!important;
    max-width:100vw!important;
    height:100vh!important;
    min-height:100vh!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:18px!important;
    border:0!important;
    display:none!important;
    place-items:center!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(15,23,42,.58)!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
    z-index:2147483647!important;
    pointer-events:auto!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    filter:none!important;
    isolation:isolate!important;
    contain:none!important;
    overflow:auto!important;
}

body > #ava-ma-popup.ava-auth-modal.is-open{
    display:grid!important;
}

body > #ava-ma-popup .ava-auth-modal__backdrop{
    position:absolute!important;
    inset:0!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    z-index:1!important;
    background:transparent!important;
    pointer-events:auto!important;
    cursor:default!important;
}

body > #ava-ma-popup .ava-auth-modal__dialog{
    position:relative!important;
    z-index:2!important;
    width:min(460px,calc(100vw - 36px))!important;
    max-width:calc(100vw - 36px)!important;
    max-height:calc(100vh - 36px)!important;
    max-height:calc(100dvh - 36px)!important;
    margin:auto!important;
    padding:0!important;
    display:block!important;
    overflow:auto!important;
    pointer-events:auto!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    background:transparent!important;
    filter:none!important;
    contain:none!important;
}

body > #ava-ma-popup .ava-auth,
body > #ava-ma-popup .ava-auth *,
body > #ava-ma-popup input,
body > #ava-ma-popup button,
body > #ava-ma-popup textarea,
body > #ava-ma-popup select,
body > #ava-ma-popup label{
    pointer-events:auto!important;
}

body > #ava-ma-popup input,
body > #ava-ma-popup textarea{
    user-select:text!important;
    -webkit-user-select:text!important;
    cursor:text!important;
}

body > #ava-ma-popup .ava-auth-modal__close{
    pointer-events:auto!important;
    cursor:pointer!important;
    z-index:10!important;
}

body > #ava-ma-popup .ava-auth__footer{
    display:none!important;
}

@media(max-width:480px){
    body > #ava-ma-popup.ava-auth-modal{
        padding:12px!important;
        place-items:start center!important;
        align-items:flex-start!important;
        padding-top:max(12px,env(safe-area-inset-top))!important;
    }
    body > #ava-ma-popup .ava-auth-modal__dialog{
        width:calc(100vw - 24px)!important;
        max-width:calc(100vw - 24px)!important;
        max-height:calc(100dvh - 24px)!important;
    }
}
