/* LEBSATI — Apple-style sign-in layer (loads AFTER auth-popup-v1.css; changes look only, never the login logic)
   Background: LEBSATI navy (#14253f, the original account modal) + Apple frosted glass.
   Rollback: remove this file's <link>. */

#lebsati-auth{
  --ap-ink:#1d1d1f;--ap-steel:#424245;--ap-muted:#6e6e73;--ap-line:#d2d2d7;--ap-soft:#f5f5f7;
  --ap-accent:#0071e3;--ap-navy:#14253f;--ap-err:#d70015;
  --apl-ease:cubic-bezier(.32,.72,0,1);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Arabic","SF Pro Text","Segoe UI","Noto Sans Arabic",Tahoma,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ---------- background: navy + Apple glass ---------- */
#lebsati-auth::backdrop{
  background:
    radial-gradient(90% 60% at 50% -10%,rgba(41,151,255,.22),transparent 60%),
    radial-gradient(70% 50% at 50% 110%,rgba(20,37,63,.55),transparent 70%),
    linear-gradient(180deg,rgba(20,37,63,.72),rgba(6,12,24,.84));
  backdrop-filter:blur(30px) saturate(180%);-webkit-backdrop-filter:blur(30px) saturate(180%);
  animation:apl-fade .5s var(--apl-ease) backwards;
}
#lebsati-auth.is-closing::backdrop{animation:apl-fade-out .32s ease forwards}

/* the old "katana" effects are switched off */
#lebsati-auth .ap-blade,#lebsati-auth .ap-cut,#lebsati-auth .ap-mark,#lebsati-auth .ap-gleam{display:none!important}
#lebsati-auth .ap-card,#lebsati-auth .ap-stage{clip-path:none!important;filter:none!important}

/* ---------- card ---------- */
#lebsati-auth .ap-card{
  width:min(440px,100%);padding:44px 40px 32px;border-radius:28px;background:#fff;
  box-shadow:0 40px 120px rgba(0,0,0,.45),0 0 0 .5px rgba(0,0,0,.06);
  animation:apl-rise .55s var(--apl-ease) backwards;
}
#lebsati-auth.is-closing .ap-card{opacity:0;translate:0 12px;transition:opacity .3s ease,translate .32s var(--apl-ease)}
#lebsati-auth .ap-close{top:16px;inset-inline-end:16px;width:30px;height:30px;background:#e8e8ed;color:#6e6e73;transition:background .2s}
#lebsati-auth .ap-close:hover{transform:none;background:#dcdce1;color:#1d1d1f}
#lebsati-auth .ap-close svg{width:14px;height:14px;stroke-width:2.2}
/* official LEBSATI logo (Lebsati logo.svg) replaces the text wordmark */
#lebsati-auth .ap-brand{display:block;width:92px;height:21px;margin:0 0 24px;font-size:0;line-height:0;color:transparent;background:var(--ap-navy);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='181 145 138 31'%3E%3Cg%3E %3Cpath d='M188.6,169.3v-23.1H182v28.5h15.2v-5.4H188.6z'/%3E %3Cpath d='M200.9,169.1v5.6h16.5v-5.6H200.9z M200.9,157.5v5.4h16.5v-5.4H200.9z M200.9,146.2v5.6h16.5v-5.6H200.9z'/%3E %3Cpath d='M241.2,162.6c-1-1.3-2.2-2.1-3.8-2.5c1.4-0.4,2.5-1.2,3.3-2.3c0.8-1.1,1.3-2.5,1.3-4.2c0-2.3-0.8-4.1-2.3-5.4 c-1.5-1.3-3.7-2-6.4-2h-12.1v5.6H232c1.1,0,1.9,0.3,2.5,0.8c0.6,0.5,0.9,1.3,0.9,2.2c0,1-0.3,1.7-0.9,2.2 c-0.6,0.5-1.4,0.7-2.5,0.7h-10.9v5.1h11.3c1.1,0,2,0.3,2.6,0.9c0.6,0.6,0.9,1.4,0.9,2.3c0,1-0.3,1.8-0.9,2.3 c-0.6,0.5-1.5,0.8-2.6,0.8h-11.4v5.6h12.6c2.8,0,5-0.7,6.6-2.1c1.6-1.4,2.4-3.3,2.4-5.7C242.7,165.3,242.2,163.8,241.2,162.6z'/%3E %3Cpath d='M263.1,162.1c-0.8-1.1-1.7-1.9-2.8-2.5c-1.1-0.6-2.5-1.2-4.2-1.8c-1.7-0.6-3-1.2-3.8-1.7c-0.8-0.5-1.2-1.2-1.2-2.1 c0-0.8,0.2-1.5,0.7-1.9c0.5-0.4,1.1-0.7,1.9-0.7c0.9,0,1.7,0.3,2.3,0.8c0.6,0.5,0.9,1.2,1,2.2h7.1c-0.1-2.7-1.1-4.8-2.9-6.3 c-1.8-1.5-4.2-2.3-7.2-2.3c-2.9,0-5.3,0.7-7.1,2.3c-1.8,1.5-2.7,3.6-2.7,6.2c0,1.8,0.4,3.2,1.2,4.3c0.8,1.1,1.7,1.9,2.8,2.5 c1.1,0.6,2.5,1.1,4.3,1.7c1.2,0.4,2.1,0.7,2.8,1c0.7,0.3,1.2,0.7,1.7,1.1c0.4,0.5,0.7,1,0.7,1.8c0,0.8-0.3,1.5-0.8,2 c-0.6,0.5-1.3,0.7-2.3,0.7c-1,0-1.7-0.3-2.3-0.8c-0.6-0.6-0.9-1.4-1-2.4h-7c0.1,1.9,0.5,3.5,1.5,4.8c0.9,1.3,2.2,2.3,3.7,3 c1.6,0.7,3.3,1,5.3,1c2,0,3.8-0.4,5.3-1.2c1.5-0.8,2.6-1.8,3.4-3.2c0.8-1.3,1.2-2.8,1.2-4.4C264.3,164.6,263.9,163.2,263.1,162.1z '/%3E %3Cpolygon points='274.1,146.6 264.3,175 270.3,175 279.4,146.6 '/%3E %3Cpath d='M282.7,146.6h-1.4l-2.5,7.7l0,0l3.3,10.4h-6.6l0-0.1c0,0,0,0,0,0l-1.7,5.4h10.1l1.6,5h7L282.7,146.6z'/%3E %3Cpath d='M288.1,146.6v5.6h7.1V175h6.6v-22.9h7.1v-5.6H288.1z'/%3E %3Cpath d='M311.4,146.2v28.5h6.6v-28.5H311.4z'/%3E %3C/g%3E%3C/svg%3E") left center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='181 145 138 31'%3E%3Cg%3E %3Cpath d='M188.6,169.3v-23.1H182v28.5h15.2v-5.4H188.6z'/%3E %3Cpath d='M200.9,169.1v5.6h16.5v-5.6H200.9z M200.9,157.5v5.4h16.5v-5.4H200.9z M200.9,146.2v5.6h16.5v-5.6H200.9z'/%3E %3Cpath d='M241.2,162.6c-1-1.3-2.2-2.1-3.8-2.5c1.4-0.4,2.5-1.2,3.3-2.3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-2.8,1.2-4.4C264.3,164.6,263.9,163.2,263.1,162.1z '/%3E %3Cpolygon points='274.1,146.6 264.3,175 270.3,175 279.4,146.6 '/%3E %3Cpath d='M282.7,146.6h-1.4l-2.5,7.7l0,0l3.3,10.4h-6.6l0-0.1c0,0,0,0,0,0l-1.7,5.4h10.1l1.6,5h7L282.7,146.6z'/%3E %3Cpath d='M288.1,146.6v5.6h7.1V175h6.6v-22.9h7.1v-5.6H288.1z'/%3E %3Cpath d='M311.4,146.2v28.5h6.6v-28.5H311.4z'/%3E %3C/g%3E%3C/svg%3E") left center/contain no-repeat}
[dir=rtl] #lebsati-auth .ap-brand{margin-inline-start:0}
#lebsati-auth .ap-brand span{display:none}

/* ---------- type ---------- */
#lebsati-auth h2{margin:0 0 8px;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.01em;color:var(--ap-ink)}
[dir=rtl] #lebsati-auth h2{letter-spacing:0;line-height:1.35}
#lebsati-auth .ap-note{margin:0 0 22px;font-size:15px;line-height:1.6;color:var(--ap-muted)}
#lebsati-auth .ap-eyebrow{color:var(--ap-accent);letter-spacing:.08em}

/* ---------- segmented control ---------- */
#lebsati-auth .ap-tabs{gap:2px;margin:0 0 26px;padding:2px;border-radius:9px;background:rgba(118,118,128,.12)}
#lebsati-auth .ap-tabs button{padding:8px;border-radius:7px;font-size:14px;color:var(--ap-ink);transition:background .25s var(--apl-ease),box-shadow .25s}
#lebsati-auth .ap-tabs button[aria-selected=true]{font-weight:600;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04)}
#lebsati-auth .ap-tabs button[aria-selected=true]::after{display:none}

/* ---------- fields ---------- */
#lebsati-auth .ap-field{margin:0 0 14px}
#lebsati-auth .ap-field>span{margin:0 0 6px;font-size:13px;color:var(--ap-muted)}
#lebsati-auth .ap-field input{height:56px;padding:14px 16px;border:1px solid var(--ap-line);border-radius:12px;font-size:17px;color:var(--ap-ink);transition:border-color .2s,box-shadow .2s}
#lebsati-auth .ap-field input:focus{border-color:var(--ap-accent);box-shadow:0 0 0 4px rgba(0,113,227,.15)}
#lebsati-auth .ap-field input::placeholder{color:#86868b}
#lebsati-auth input[aria-invalid=true]{border-color:var(--ap-err)!important;box-shadow:0 0 0 4px rgba(215,0,21,.12)!important}

/* ---------- buttons (Apple pills) ---------- */
#lebsati-auth .ap-primary{min-height:52px;margin:10px 0 0;border-radius:980px;background:var(--ap-accent);font-size:17px;font-weight:500;transition:background .2s,transform .15s}
#lebsati-auth .ap-primary:hover{background:#0077ed}
#lebsati-auth .ap-primary:active{transform:scale(.98)}
#lebsati-auth .ap-primary svg{width:16px;height:16px}
#lebsati-auth .ap-ghost{min-height:50px;border-radius:980px;border-color:var(--ap-line);color:var(--ap-ink);font-size:15px}
#lebsati-auth .ap-ghost:hover{border-color:var(--ap-err);color:var(--ap-err)}
#lebsati-auth .ap-link{color:#0066cc;font-size:14px;text-decoration:none}
#lebsati-auth .ap-link:hover{color:#0066cc;text-decoration:underline;text-decoration-color:currentColor}
#lebsati-auth .ap-link:disabled{color:#86868b}
#lebsati-auth .ap-back{color:#0066cc;font-size:14px}
#lebsati-auth .ap-back:hover{color:#0066cc;text-decoration:underline}
#lebsati-auth .ap-feedback{border-radius:12px;font-size:14px}
#lebsati-auth .ap-fine{font-size:12px;color:#86868b;line-height:1.7}
#lebsati-auth .ap-perk{border-radius:14px;background:var(--ap-soft);font-size:13px;color:var(--ap-steel)}
#lebsati-auth .ap-perk b{color:var(--ap-navy)}

/* ---------- code cells ---------- */
#lebsati-auth .ap-cells{gap:10px}
#lebsati-auth .ap-cells span{height:60px;border:1px solid transparent;border-radius:12px;background:var(--ap-soft);font-size:26px;font-weight:600;color:var(--ap-ink)}
#lebsati-auth .ap-otp.is-focus .ap-cells span.is-active{border-color:var(--ap-accent);background:#fff;box-shadow:0 0 0 4px rgba(0,113,227,.15)}
#lebsati-auth .ap-otp.is-focus .ap-cells span.is-active:empty::after{background:var(--ap-accent)}

/* ---------- account ---------- */
#lebsati-auth .ap-avatar{background:linear-gradient(160deg,#24406b,var(--ap-navy));box-shadow:0 0 0 4px #fff,0 0 0 5px rgba(0,113,227,.35)}
#lebsati-auth .ap-menu a,#lebsati-auth .ap-menu button{border:0;border-radius:14px;background:var(--ap-soft);font-size:15px;transition:background .2s}
#lebsati-auth .ap-menu a:hover,#lebsati-auth .ap-menu button:hover{transform:none!important;background:#ebebf0}
#lebsati-auth .ap-menu svg{color:#86868b}
#lebsati-auth .ap-help li{border-inline-start:0;border-radius:14px;background:var(--ap-soft);font-size:13.5px}

/* ---------- done / loading ---------- */
#lebsati-auth .ap-done .s1,#lebsati-auth .ap-done .s2{display:none}
#lebsati-auth .ap-done .ring{stroke:var(--ap-accent);animation-delay:0s}
#lebsati-auth .ap-done .tick{stroke:var(--ap-accent);animation-delay:.4s}
#lebsati-auth .ap-loading i{width:28px;height:28px;border-radius:50%;background:none;box-shadow:none;border:2.5px solid rgba(0,113,227,.18);border-top-color:var(--ap-accent);animation:apl-spin .8s linear infinite}
#lebsati-auth .ap-primary[aria-busy=true]::after{width:20px;height:20px;border-radius:50%;background:none;box-shadow:none;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:apl-spin .8s linear infinite}
#lebsati-auth :focus-visible{outline:2px solid var(--ap-accent);outline-offset:3px}

/* ---------- phone: iPhone-style bottom sheet ---------- */
@media (max-width:520px){
  #lebsati-auth{place-items:end center;padding:0}
  #lebsati-auth .ap-card{width:100%;max-height:92dvh;border-radius:28px 28px 0 0;padding:12px 22px calc(26px + env(safe-area-inset-bottom));
    animation:apl-sheet .55s var(--apl-ease) backwards}
  #lebsati-auth .ap-card::before{content:"";display:block;width:36px;height:5px;margin:0 auto 18px;border-radius:3px;background:#d2d2d7}
  #lebsati-auth .ap-close{top:14px}
  #lebsati-auth.is-closing .ap-card{translate:0 100%;opacity:1;transition:translate .36s var(--apl-ease)}
  #lebsati-auth h2{font-size:26px}
  #lebsati-auth .ap-cells{gap:7px}
  #lebsati-auth .ap-cells span{height:54px;font-size:23px}
}

@keyframes apl-fade{from{opacity:0}to{opacity:1}}
@keyframes apl-fade-out{to{opacity:0}}
@keyframes apl-rise{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@keyframes apl-sheet{from{translate:0 100%}to{translate:0 0}}
@keyframes apl-spin{to{rotate:360deg}}

@media (prefers-reduced-motion:reduce){
  #lebsati-auth .ap-card{animation:none!important;transition:none!important}
}

/* ---------- guard: the store theme (lebsati-apple-v1.css) forces some styles with !important;
   these win only inside the sign-in card (id selector beats its element selectors) ---------- */
body #lebsati-auth::backdrop{
  background:
    radial-gradient(90% 60% at 50% -10%,rgba(41,151,255,.22),transparent 60%),
    radial-gradient(70% 50% at 50% 110%,rgba(20,37,63,.55),transparent 70%),
    linear-gradient(180deg,rgba(20,37,63,.72),rgba(6,12,24,.84))!important;
  backdrop-filter:blur(30px) saturate(180%)!important;-webkit-backdrop-filter:blur(30px) saturate(180%)!important;
}
body #lebsati-auth .ap-primary{background:var(--ap-accent)!important;color:#fff!important;font-size:17px!important;font-weight:500!important;border-radius:980px!important}
body #lebsati-auth .ap-primary:hover{background:#0077ed!important}
body #lebsati-auth .ap-field input{background:#fff!important;border:1px solid var(--ap-line)!important;border-radius:12px!important;height:56px!important;font-size:17px!important;color:var(--ap-ink)!important}
body #lebsati-auth .ap-field input:focus{border-color:var(--ap-accent)!important;box-shadow:0 0 0 4px rgba(0,113,227,.15)!important}
body #lebsati-auth .ap-field input[aria-invalid=true]{border-color:var(--ap-err)!important}
body #lebsati-auth .ap-card{background:#fff!important;border-radius:28px!important;border:0!important}
@media (max-width:520px){body #lebsati-auth .ap-card{border-radius:28px 28px 0 0!important}}
