/* Shahdad AI mobile auth bridge — server-verified SMS OTP only. */
html.sh-auth-open,html.sh-auth-open body{overflow:hidden}
.sh-auth-layer,.sh-auth-layer *{box-sizing:border-box}
.sh-auth-layer[hidden]{display:none!important}
.sh-auth-layer{position:fixed;inset:0;z-index:240;display:grid;align-items:end;direction:rtl;color:#173d43;font-family:Estedad,Tahoma,sans-serif;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:hidden}
.sh-auth-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:rgba(16,47,49,.52);backdrop-filter:blur(3px);cursor:pointer;animation:sh-auth-fade .18s ease-out both}
.sh-auth-sheet{position:relative;z-index:1;width:100%;max-width:480px;max-height:min(92dvh,760px);margin-inline:auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border:1px solid rgba(255,255,255,.82);border-radius:30px 30px 24px 24px;background:linear-gradient(160deg,#fffdf9 0%,#f8fcf9 58%,#fff7f9 100%);box-shadow:0 28px 80px rgba(20,61,58,.28);padding:20px 16px calc(18px + env(safe-area-inset-bottom));scrollbar-width:thin;animation:sh-auth-sheet-in .24s cubic-bezier(.22,.8,.26,1) both}
.sh-auth-close{position:absolute;top:12px;left:12px;width:48px;height:48px;border:1px solid rgba(47,125,107,.12);border-radius:15px;background:#fff;color:#50706b;display:grid;place-items:center;cursor:pointer;touch-action:manipulation}
.sh-auth-close svg{width:19px;height:19px}
.sh-auth-head{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:11px;padding-left:48px;margin-bottom:15px}
.sh-auth-mark{width:56px;height:56px;border-radius:20px;background:linear-gradient(145deg,#3d907b,#236555);color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(35,101,85,.2)}
.sh-auth-mark svg{width:25px;height:25px}
.sh-auth-head>div{min-width:0}.sh-auth-head small{display:block;color:#2f7d6b;font-size:12px;font-weight:850;line-height:1.5}.sh-auth-head h2{margin:2px 0 0;font-size:20px;line-height:1.5;letter-spacing:-.2px}.sh-auth-head p{margin:4px 0 0;color:#536d69;font-size:14px;line-height:1.7}
.sh-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid rgba(47,125,107,.12);border-radius:18px;background:rgba(255,255,255,.78);margin-bottom:14px}
.sh-auth-tab{min-width:0;min-height:48px;border:0;border-radius:14px;background:transparent;color:#58716d;font-size:14px;font-weight:800;cursor:pointer;touch-action:manipulation}
.sh-auth-tab[aria-selected="true"]{background:#2f7d6b;color:#fff;box-shadow:0 7px 17px rgba(47,125,107,.17)}
.sh-auth-service{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 11px;border:1px solid rgba(149,69,81,.16);border-radius:16px;background:#fff0f2;color:#883d4b;margin-bottom:12px}
.sh-auth-service[hidden]{display:none!important}.sh-auth-service svg{width:19px;height:19px}.sh-auth-service span{font-size:14px;line-height:1.65}.sh-auth-retry{min-height:48px;border:1px solid currentColor;border-radius:13px;background:#fff;color:inherit;padding:7px 10px;font-size:14px;font-weight:800;cursor:pointer;touch-action:manipulation}
.sh-auth-form{display:grid;gap:12px}.sh-auth-field{display:grid;gap:6px;min-width:0;color:#173d43;font-size:14px;font-weight:850}.sh-auth-field>span{line-height:1.5}.sh-auth-field small{font-size:14px;line-height:1.65;color:#5b716e;font-weight:500}
.sh-auth-field input{width:100%;min-width:0;min-height:52px;border:1px solid rgba(47,125,107,.2);border-radius:16px;background:#fff;color:#173d43;padding:10px 12px;font:inherit;font-size:16px;line-height:1.7;outline:0}
.sh-auth-field input[type="tel"]{direction:ltr;text-align:left;font-variant-numeric:tabular-nums}.sh-auth-code{direction:ltr;text-align:center!important;letter-spacing:.42em;font-weight:850;font-variant-numeric:tabular-nums}
.sh-auth-field input:focus{border-color:#2f7d6b;box-shadow:0 0 0 3px rgba(47,125,107,.12)}
.sh-auth-field input[aria-invalid="true"]{border-color:#a23d50;background:#fff9fa;box-shadow:0 0 0 3px rgba(162,61,80,.1)}
.sh-auth-phone-note{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:15px;background:#eef9f3;color:#2a6759;font-size:14px;line-height:1.65}.sh-auth-phone-note span{min-width:0}.sh-auth-phone-note b{display:inline-block;unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums}.sh-auth-phone-note button{min-height:48px;border:0;border-radius:12px;background:#fff;color:#2f7d6b;padding:7px 10px;font-size:14px;font-weight:800;cursor:pointer;white-space:nowrap;touch-action:manipulation}
.sh-auth-primary,.sh-auth-secondary{width:100%;min-height:48px;border-radius:16px;padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:14px;font-weight:850;line-height:1.5;text-align:center;cursor:pointer;touch-action:manipulation;transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,opacity .18s ease}
.sh-auth-primary{border:1px solid #2f7d6b;background:#2f7d6b;color:#fff;box-shadow:0 9px 22px rgba(47,125,107,.18)}.sh-auth-secondary{border:1px solid rgba(47,125,107,.16);background:#fff;color:#286b5c}
.sh-auth-primary svg,.sh-auth-secondary svg{width:18px;height:18px}.sh-auth-primary:disabled,.sh-auth-secondary:disabled,.sh-auth-tab:disabled,.sh-auth-retry:disabled{opacity:.58;cursor:progress;box-shadow:none}.sh-auth-resend[data-countdown="true"]{cursor:not-allowed;font-variant-numeric:tabular-nums}
.sh-auth-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(124px,auto);gap:8px}.sh-auth-actions .sh-auth-primary{min-width:0}.sh-auth-resend{min-width:124px}
.sh-auth-status{min-height:44px;margin:0;padding:9px 11px;border-radius:15px;background:#eef9f3;color:#2d675b;font-size:14px;line-height:1.7;display:flex;align-items:center}.sh-auth-status:empty{display:none}.sh-auth-status[data-tone="error"]{background:#fff0f2;color:#8b3e4d}.sh-auth-status[data-tone="warning"]{background:#fff5d9;color:#715a29}.sh-auth-status[data-tone="success"]{background:#dff4e9;color:#236655}
.sh-auth-truth{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:start;padding:10px 11px;border-radius:16px;background:rgba(220,236,248,.68);color:#385f71;font-size:14px;line-height:1.7}.sh-auth-truth svg{width:18px;height:18px;margin-top:2px}
.sh-auth-foot{margin:12px 0 0;color:#657a77;font-size:14px;line-height:1.75;text-align:center}
.sh-auth-layer :is(button,input):focus-visible{outline:3px solid #2f7d6b;outline-offset:2px}.sh-auth-field input:focus-visible{outline:0}
@media(hover:hover){.sh-auth-primary:not(:disabled):hover{background:#276f5f}.sh-auth-secondary:not(:disabled):hover,.sh-auth-phone-note button:not(:disabled):hover{background:#f2faf6}}
@media(min-width:640px){.sh-auth-layer{align-items:center;padding:20px}.sh-auth-sheet{border-radius:30px;padding:24px 22px 22px}.sh-auth-head h2{font-size:22px}}
@media(max-width:370px){.sh-auth-layer{padding-inline:5px}.sh-auth-sheet{padding-inline:12px;border-radius:26px 26px 20px 20px}.sh-auth-head{grid-template-columns:50px minmax(0,1fr);gap:9px;padding-left:52px}.sh-auth-mark{width:50px;height:50px;border-radius:18px}.sh-auth-head h2{font-size:18px}.sh-auth-actions{grid-template-columns:1fr}.sh-auth-resend{width:100%}.sh-auth-phone-note{align-items:stretch;flex-direction:column}.sh-auth-phone-note button{width:100%}}
@media(max-height:620px) and (orientation:landscape){.sh-auth-layer{align-items:center}.sh-auth-sheet{max-height:calc(100dvh - 12px);border-radius:22px;padding-top:16px}.sh-auth-head{margin-bottom:10px}.sh-auth-truth,.sh-auth-foot{display:none}}
@media(prefers-reduced-motion:reduce){.sh-auth-layer *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.sh-auth-sheet,.sh-auth-tabs,.sh-auth-field input,.sh-auth-primary,.sh-auth-secondary{border:1px solid CanvasText}.sh-auth-tab[aria-selected="true"],.sh-auth-primary{background:Highlight;color:HighlightText}}
@keyframes sh-auth-fade{from{opacity:0}to{opacity:1}}
@keyframes sh-auth-sheet-in{from{opacity:0;transform:translateY(18px) scale(.99)}to{opacity:1;transform:none}}

/* 2026-08-13 polished Manzume auth surface */
.sh-auth-sheet{padding:0;border:1px solid rgba(255,255,255,.92);border-radius:32px 32px 24px 24px;background:#f9fcfa;box-shadow:0 30px 90px rgba(10,48,45,.34);overflow-x:hidden}
.sh-auth-close{top:14px;left:14px;z-index:6;border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(12px)}
.sh-auth-head{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:27px 68px 31px 20px;background:radial-gradient(circle at 8% 20%,rgba(231,200,123,.32),transparent 28%),radial-gradient(circle at 90% 82%,rgba(115,199,174,.26),transparent 32%),linear-gradient(145deg,#123f43 0%,#246d61 58%,#307f6e 100%);color:#fff}
.sh-auth-head>div{position:relative;z-index:2}.sh-auth-head small{color:#dff3eb;font-size:12px;letter-spacing:.02em}.sh-auth-head h2{color:#fff;font-size:22px;line-height:1.45;margin-top:3px}.sh-auth-head p{max-width:290px;color:rgba(255,255,255,.82);font-size:14px;line-height:1.75}
.sh-auth-mark{position:relative;z-index:2;width:64px;height:64px;border:1px solid rgba(255,255,255,.3);border-radius:23px;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.08));box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 16px 28px rgba(5,38,36,.2);backdrop-filter:blur(10px)}
.sh-auth-mark::after{content:"";position:absolute;inset:7px;border:1px solid rgba(231,200,123,.55);border-radius:50%;transform:rotate(-18deg)}
.sh-auth-mark svg{position:relative;z-index:1;width:27px;height:27px}
.sh-auth-orbit{position:absolute;z-index:-1;width:190px;height:190px;left:-78px;top:-102px;border:1px solid rgba(255,255,255,.14);border-radius:50%}.sh-auth-orbit::before,.sh-auth-orbit::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.1);border-radius:50%}.sh-auth-orbit::before{inset:24px}.sh-auth-orbit::after{inset:50px}.sh-auth-orbit i,.sh-auth-orbit b{position:absolute;width:9px;height:9px;border-radius:50%;background:#e7c87b;box-shadow:0 0 0 5px rgba(231,200,123,.12)}.sh-auth-orbit i{right:18px;bottom:27px}.sh-auth-orbit b{left:45px;bottom:5px;width:6px;height:6px;background:#b7ead9}
.sh-auth-secure{position:relative;z-index:2;grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;gap:7px;margin-top:2px;padding:7px 10px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(8,43,42,.2);color:#f7fffc;font-size:12px;font-weight:750}.sh-auth-secure svg{width:16px;height:16px;color:#e7c87b}
.sh-auth-panel{position:relative;z-index:3;margin-top:-17px;padding:0 17px calc(18px + env(safe-area-inset-bottom));display:grid;gap:12px}
.sh-auth-tabs{margin:0;padding:5px;border:1px solid rgba(27,102,88,.12);border-radius:19px;background:rgba(255,255,255,.96);box-shadow:0 13px 30px rgba(18,63,67,.13)}
.sh-auth-tab{min-height:50px;border-radius:15px;font-size:15px}.sh-auth-tab[aria-selected="true"]{background:linear-gradient(135deg,#2f7d6b,#24695e);box-shadow:0 8px 18px rgba(47,125,107,.23)}
.sh-auth-progress{display:grid;grid-template-columns:auto minmax(30px,1fr) auto;align-items:center;gap:8px;padding:1px 5px;color:#718783}.sh-auth-progress span{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:750;white-space:nowrap}.sh-auth-progress span i{width:27px;height:27px;border:1px solid #cfdfda;border-radius:9px;background:#fff;color:#66807b;display:grid;place-items:center;font-style:normal;font-variant-numeric:tabular-nums}.sh-auth-progress span[data-active="true"]{color:#24695e}.sh-auth-progress span[data-active="true"] i{border-color:#2f7d6b;background:#e7f5ef;color:#24695e;box-shadow:0 0 0 3px rgba(47,125,107,.08)}.sh-auth-progress em{height:1px;background:linear-gradient(90deg,#c7dbd4,#e2ebe7);font-style:normal}
.sh-auth-form{gap:13px;padding:15px;border:1px solid rgba(47,125,107,.11);border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(21,71,64,.07)}
.sh-auth-field>span{color:#153e42;font-size:14px}.sh-auth-field input{min-height:55px;border-radius:17px;background:#fbfdfc}.sh-auth-field input:focus{background:#fff;box-shadow:0 0 0 4px rgba(47,125,107,.11)}
.sh-auth-primary,.sh-auth-secondary{min-height:52px;border-radius:16px;font-size:14px}.sh-auth-primary{background:linear-gradient(135deg,#2f7d6b,#24695e);box-shadow:0 11px 25px rgba(47,125,107,.22)}
.sh-auth-service,.sh-auth-status,.sh-auth-truth{margin:0;border-radius:17px}.sh-auth-truth{background:#eef7f3;color:#315f57}.sh-auth-foot{display:none}
@media(max-width:370px){.sh-auth-head{grid-template-columns:54px minmax(0,1fr);padding:23px 58px 29px 14px}.sh-auth-mark{width:54px;height:54px;border-radius:19px}.sh-auth-head h2{font-size:19px}.sh-auth-head p{font-size:13px}.sh-auth-panel{padding-inline:11px}.sh-auth-form{padding:13px}.sh-auth-progress span b{display:none}}
@media(max-height:620px) and (orientation:landscape){.sh-auth-head{padding-block:16px 23px}.sh-auth-secure{display:none}.sh-auth-panel{gap:8px}.sh-auth-progress{display:none}.sh-auth-form{padding:11px}.sh-auth-truth{display:none}}
@media(forced-colors:active){.sh-auth-head{background:Canvas;color:CanvasText}.sh-auth-head h2,.sh-auth-head p,.sh-auth-head small,.sh-auth-secure{color:CanvasText}.sh-auth-close{color:ButtonText;background:ButtonFace}}
