/* Shopper sign-in / sign-up (/shop/login, /shop/register). Colours come from the install's
   brand (--brand-primary / --brand-secondary from App.razor), so Posiran and iMonitor each
   look like their own marketplace. Business owners use /Account/Login instead. */
.shop-auth{--sa-primary:var(--brand-primary,#1e3c72);--sa-accent:var(--brand-secondary,#2a5298);min-height:100dvh;display:flex;flex-direction:column;direction:rtl;color:#16213d;background:radial-gradient(circle at 12% 18%,color-mix(in srgb,var(--sa-accent) 16%,transparent),transparent 26rem),radial-gradient(circle at 88% 86%,color-mix(in srgb,var(--sa-primary) 14%,transparent),transparent 30rem),#f5f6fb}

/* Top bar: same language as the /shop header. */
.shop-auth-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem clamp(1rem,4vw,2.5rem);background:rgba(255,255,255,.92);box-shadow:0 1px 0 rgba(22,33,61,.06),0 .5rem 1.5rem rgba(22,33,61,.05);backdrop-filter:blur(10px)}
.shop-auth-brand{display:flex;align-items:center;gap:.65rem;color:inherit;text-decoration:none}
.shop-auth-brand-mark{display:grid;place-items:center;width:2.6rem;height:2.6rem;overflow:hidden;border-radius:.8rem;background:#fff;box-shadow:0 .3rem .9rem rgba(22,33,61,.12)}
.shop-auth-brand-mark img{max-width:86%;max-height:86%;object-fit:contain}
.shop-auth-brand b{display:block;font-size:1.02rem;font-weight:900;color:var(--sa-primary)}
.shop-auth-brand small{display:block;color:#7a849a;font-size:.72rem}
.shop-auth-top-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.shop-auth-link{color:#51607d;font-size:.82rem;font-weight:700;text-decoration:none}
.shop-auth-link:hover{color:var(--sa-primary)}
.shop-auth-owner{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .9rem;border:1px solid color-mix(in srgb,var(--sa-primary) 25%,#fff);border-radius:999px;color:var(--sa-primary);background:#fff;font-size:.8rem;font-weight:800;text-decoration:none;transition:background-color .15s ease,color .15s ease}
.shop-auth-owner:hover{color:#fff;background:var(--sa-primary)}

/* Card */
.shop-auth-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(22rem,27rem);width:min(68rem,calc(100% - 2rem));margin:clamp(1.2rem,4vh,3rem) auto;overflow:hidden;border-radius:1.6rem;background:#fff;box-shadow:0 1.6rem 4rem rgba(22,33,61,.14);animation:sa-in .6s cubic-bezier(.22,1,.36,1) both}

/* Showcase: what is on sale, in the brand's colours. */
.shop-auth-showcase{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:.6rem;overflow:hidden;padding:clamp(1.6rem,3.5vw,2.8rem);color:#fff;background:linear-gradient(150deg,var(--sa-primary) 0%,color-mix(in srgb,var(--sa-primary) 70%,#000) 100%)}
.shop-auth-showcase::before{content:"";position:absolute;inset-inline-end:-6rem;inset-block-start:-6rem;width:20rem;height:20rem;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--sa-accent) 60%,transparent),transparent 70%);opacity:.7}
.shop-auth-tiles{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-bottom:auto;padding-bottom:1.4rem}
.shop-auth-tile{display:grid;aspect-ratio:1;place-items:center;border-radius:1.1rem;background:rgba(255,255,255,.95);box-shadow:0 .8rem 1.8rem rgba(0,0,0,.18);animation:sa-float 6s ease-in-out infinite;animation-delay:calc(var(--i) * -1.1s)}
.shop-auth-tile:nth-child(even){transform:translateY(1rem)}
.shop-auth-tile img{width:72%;height:72%;object-fit:contain}
.shop-auth-showcase h2{position:relative;margin:0;font-size:clamp(1.35rem,2.3vw,1.8rem);font-weight:900}
.shop-auth-showcase>p{position:relative;margin:0;max-width:30rem;font-size:.9rem;line-height:1.95;opacity:.88}
.shop-auth-perks{position:relative;display:flex;flex-wrap:wrap;gap:.5rem;margin:.6rem 0 0;padding:0;list-style:none}
.shop-auth-perks li{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .75rem;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1);font-size:.76rem;font-weight:700}
.shop-auth-perks i{color:var(--sa-accent)}

/* Form panel */
.shop-auth-panel{display:flex;flex-direction:column;padding:clamp(1.5rem,3vw,2.3rem)}
.shop-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;margin-bottom:1.4rem;padding:.3rem;border-radius:.9rem;background:#f0f2f8}
.shop-auth-tabs a{padding:.6rem;border-radius:.7rem;color:#5c6782;font-weight:800;font-size:.86rem;text-align:center;text-decoration:none;transition:background-color .15s ease,color .15s ease}
.shop-auth-tabs a.active{color:var(--sa-primary);background:#fff;box-shadow:0 .25rem .8rem rgba(22,33,61,.1)}
.shop-auth-title{margin:0;font-size:1.3rem;font-weight:900;color:#16213d}
.shop-auth-intro{margin:.4rem 0 1.1rem;color:#6f7a93;font-size:.84rem;line-height:1.9}
.shop-auth-form{display:grid;gap:.8rem}
.shop-auth-row{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.shop-auth-field{display:grid;gap:.35rem;margin:0;font-size:.8rem;font-weight:800;color:#2b3656}
.shop-auth-input{position:relative;display:flex;align-items:center}
.shop-auth-input>i{position:absolute;inset-inline-start:.9rem;color:#8e98b0;pointer-events:none}
.shop-auth-input input{width:100%;min-height:3rem;padding:.6rem 2.6rem .6rem .9rem;border:1px solid #dfe4ef;border-radius:.8rem;background:#fbfcff;color:#16213d;font:inherit;font-weight:600;outline:0;transition:border-color .15s ease,box-shadow .15s ease}
.shop-auth-input input[dir=ltr]{text-align:right}
.shop-auth-input input:focus{border-color:var(--sa-primary);background:#fff;box-shadow:0 0 0 .22rem color-mix(in srgb,var(--sa-primary) 14%,transparent)}
.shop-auth-error{color:#c9364b;font-size:.72rem;font-weight:700}
.shop-auth-alert{display:flex;align-items:center;gap:.45rem;margin-bottom:.4rem;padding:.65rem .8rem;border-radius:.75rem;color:#8a2536;background:#fdecef;font-size:.8rem;font-weight:700}
.shop-auth-alert a{margin-inline-start:auto;color:var(--sa-primary);font-weight:900}
.shop-auth-submit{min-height:3.15rem;margin-top:.3rem;border:0;border-radius:.85rem;color:#fff;background:linear-gradient(100deg,var(--sa-primary),color-mix(in srgb,var(--sa-primary) 70%,#6a45ef));font-weight:900;box-shadow:0 .75rem 1.5rem color-mix(in srgb,var(--sa-primary) 28%,transparent);transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease}
.shop-auth-submit:hover:not(:disabled){transform:translateY(-1px)}
.shop-auth-submit:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.shop-auth-switch{margin:1rem 0 0;color:#6f7a93;font-size:.82rem;text-align:center}
.shop-auth-switch a{color:var(--sa-primary);font-weight:800;text-decoration:none}
.shop-auth-business{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem;margin-top:auto;padding-top:1.2rem;border-top:1px dashed #e3e7f0;color:#6f7a93;font-size:.78rem}
.shop-auth-business a{color:var(--sa-primary);font-weight:800;text-decoration:none}

@keyframes sa-in{from{opacity:0;transform:translate3d(0,16px,0) scale(.985)}to{opacity:1;transform:none}}
@keyframes sa-float{0%,100%{translate:0 0}50%{translate:0 -.5rem}}

@media(max-width:860px){
    .shop-auth-card{grid-template-columns:1fr;width:calc(100% - 1.4rem);margin:.8rem auto}
    .shop-auth-showcase{padding:1.3rem 1.3rem 1.1rem}
    .shop-auth-tiles{grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem;padding-bottom:.6rem}
    .shop-auth-tile:nth-child(even){transform:none}
    .shop-auth-showcase>p,.shop-auth-perks{display:none}
    .shop-auth-top-actions .shop-auth-link{display:none}
}
@media(max-width:420px){.shop-auth-row{grid-template-columns:1fr}.shop-auth-brand small{display:none}}
@media(prefers-reduced-motion:reduce){.shop-auth-card,.shop-auth-tile{animation:none}}

/* SMS verification of the shopper's mobile */
.shop-auth-otp{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:-.3rem}
.shop-auth-code{flex:1 1 9rem}
.shop-auth-code input{min-height:2.6rem}
.shop-auth-mini{display:inline-flex;align-items:center;gap:.35rem;min-height:2.6rem;padding:.45rem .85rem;border:1px solid #dfe4ef;border-radius:.7rem;background:#fff;color:#44506c;font-size:.78rem;font-weight:800}
.shop-auth-mini:disabled{opacity:.5}
.shop-auth-mini-primary{border-color:transparent;color:#fff;background:var(--sa-primary)}
.shop-auth-verified{display:inline-flex;align-items:center;gap:.35rem;color:#1d8a52;font-size:.8rem;font-weight:800}
.shop-auth-hint{color:#1d8a52;font-size:.74rem;font-weight:700}

/* My orders (/shop/orders) */
.shop-orders{width:min(52rem,calc(100% - 2rem));margin:clamp(1.2rem,4vh,2.5rem) auto;animation:sa-in .5s cubic-bezier(.22,1,.36,1) both}
.shop-orders-empty{display:grid;justify-items:center;gap:.6rem;margin-top:1rem;padding:2.5rem 1rem;border-radius:1.2rem;background:#fff;color:#6f7a93;text-align:center;box-shadow:0 1rem 2.5rem rgba(22,33,61,.08)}
.shop-orders-empty>i{font-size:2.4rem;color:var(--sa-primary)}
.shop-orders-cta{display:inline-flex;align-items:center;justify-content:center;padding:0 1.4rem;text-decoration:none}
.shop-order{margin-top:.9rem;overflow:hidden;border-radius:1.1rem;background:#fff;box-shadow:0 .8rem 2rem rgba(22,33,61,.08)}
.shop-order>header{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.9rem 1.1rem;border-bottom:1px solid #eef1f6}
.shop-order>header b{display:block;font-size:.9rem}
.shop-order>header small{color:#7a849a;font-size:.74rem}
.shop-order-status{flex-shrink:0;padding:.3rem .7rem;border-radius:999px;font-size:.72rem;font-weight:800}
.shop-order-status.is-pending{color:#8a5a00;background:#fff4dc}
.shop-order-status.is-good{color:#1d7a4a;background:#e5f6ec}
.shop-order-status.is-bad{color:#a02b3c;background:#fdecef}
.shop-order ul{margin:0;padding:.5rem 1.1rem;list-style:none}
.shop-order li{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;font-size:.84rem}
.shop-order li span:last-child{color:#5c6782;white-space:nowrap}
.shop-order>footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1.1rem;background:#f8f9fc;color:#6f7a93;font-size:.78rem}
.shop-order>footer b{color:#16213d;font-size:.95rem;white-space:nowrap}
.shop-order-help{display:flex;align-items:center;justify-content:center;gap:.35rem;margin:0 1.1rem .9rem;padding:.45rem .8rem;border:1px solid #d8dcef;border-radius:.6rem;color:#4b3f8f;text-decoration:none;font-size:.82rem;font-weight:700}
.shop-order-help:hover{background:#f3f1fb}
.shop-order-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 1.1rem .9rem}
.shop-order-actions .shop-order-help{flex:1;margin:0;background:#fff;font-family:inherit;cursor:pointer}
.shop-returns-title{font-size:1.05rem;font-weight:800;margin:1.6rem 0 .8rem}
/* Return request form (SHOP-RETURN-01) */
.shop-return-lines{display:grid;gap:.5rem;margin:0;padding:0;border:0}
.shop-return-line{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.75rem .9rem;border:1px solid #dfe4ef;border-radius:.8rem;background:#fff}
.shop-return-line>span:first-child{display:grid;gap:.15rem}
.shop-return-line small{color:#6f7a93;font-size:.74rem;font-weight:600}
.shop-return-line.is-done{opacity:.6}
.shop-return-qty{display:inline-flex;align-items:center;gap:.5rem}
.shop-return-qty button{width:2.2rem;height:2.2rem;border:1px solid #dfe4ef;border-radius:.6rem;background:#fbfcff;color:#2b3656}
.shop-return-qty button:disabled{opacity:.4}
.shop-return-qty b{min-width:1.5rem;text-align:center}
.shop-return-select,.shop-return-text{width:100%;min-height:3rem;padding:.6rem .9rem;border:1px solid #dfe4ef;border-radius:.8rem;background:#fbfcff;color:#16213d;font:inherit;font-weight:600}
.shop-return-text{min-height:5rem;resize:vertical}
.shop-return-file{font:inherit;font-size:.8rem}
.shop-return-hint{color:#6f7a93;font-weight:600}
.shop-return-sum{margin:0;color:#2b3656;font-size:.85rem}
.shop-return-done i{color:#16a34a}
/* Order timeline and customer cancel (SHOP-ORDER-STATUS-01) */
.shop-order-timeline{margin:0 1.1rem .8rem;padding:.6rem .9rem .6rem 0;border-inline-start:2px solid #e3e7f2;list-style:none;display:grid;gap:.35rem;font-size:.78rem;color:#2b3656}
.shop-order-timeline li{position:relative;padding-inline-start:.9rem}
.shop-order-timeline li::before{content:"";position:absolute;inset-inline-start:-.42rem;top:.45rem;width:.6rem;height:.6rem;border-radius:50%;background:#7c6ee6}
.shop-order-timeline span{color:#6f7a93;margin-inline-end:.3rem}
.shop-order-danger{color:#b4233a!important;border-color:#f3c2cb!important}
/* Online payment in My orders (SHOP-PAY-01) */
.shop-pay-btn{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:0 1.1rem .9rem;width:calc(100% - 2.2rem);text-decoration:none;font-family:inherit}
.shop-pay-ok{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;padding:.65rem .8rem;border-radius:.75rem;color:#14532d;background:#dcfce7;font-size:.82rem;font-weight:700}
.shop-order-meta{margin:0;padding:.2rem 1.1rem .5rem;list-style:none;display:grid;gap:.25rem;font-size:.8rem}
.shop-order-meta li{display:flex;justify-content:space-between;gap:1rem;color:#2b3656}
.shop-order-meta li span:first-child{color:#6f7a93}
/* Pickup code card in My orders (SHOP-PICKUP-01) */
.shop-pickup-card{display:flex;gap:.7rem;align-items:flex-start;margin:0 1.1rem .9rem;padding:.8rem 1rem;border:1px dashed #0f766e;border-radius:.8rem;background:#f0fdfa;color:#134e4a}
.shop-pickup-card>i{font-size:1.4rem}
.shop-pickup-card>div{display:grid;gap:.2rem;font-size:.82rem}
.shop-pickup-card strong{font-size:1.4rem;letter-spacing:.3rem;color:#0f766e}
.shop-pickup-card small{color:#3f6f69}
/* Shared online and in-store history (SHOP-HISTORY-01) */
.shop-history-summary{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;margin:.2rem 0 .8rem;font-size:.82rem;color:#2b3656}
.shop-history-summary b{color:#16213d}
.shop-history-tabs{display:flex;gap:.4rem;margin-bottom:.9rem;flex-wrap:wrap}
.shop-history-tabs button{border:1px solid #dfe4ef;background:#fff;border-radius:999px;padding:.35rem .9rem;font:inherit;font-size:.8rem;color:#2b3656}
.shop-history-tabs button.on{background:var(--sa-primary,#5a4b86);border-color:var(--sa-primary,#5a4b86);color:#fff}
.shop-order-instore{border-style:dashed}
/* «اطلاع‌رسانی‌های من» (SHOP-ALERT-01) */
.shop-alerts{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.shop-alert{display:flex;align-items:center;gap:.8rem;background:#fff;border-radius:1rem;padding:.7rem .8rem;box-shadow:0 .5rem 1.5rem rgba(22,33,61,.06)}
.shop-alert-img{width:4rem;height:4rem;flex:none;display:grid;place-items:center;border-radius:.7rem;background:#f5f6fa;overflow:hidden;color:#9aa3b8;font-size:1.4rem}
.shop-alert-img img{width:100%;height:100%;object-fit:contain}
.shop-alert.out .shop-alert-img img{filter:grayscale(1);opacity:.6}
.shop-alert-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}
.shop-alert-name{font-weight:700;color:#16213d;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-alert-body>small{color:#6f7a93}
.shop-alert-meta{display:flex;flex-wrap:wrap;gap:.35rem .8rem;font-size:.78rem;color:#4b5672}
.shop-alert-status{border-radius:999px;padding:0 .5rem}
.shop-alert-status.wait{background:#fff7e6;color:#a15c00}
.shop-alert-status.done{background:#e8f8ef;color:#047857}
.shop-alert-remove{border:0;background:none;color:#b42318;font-size:1.05rem;padding:.4rem;cursor:pointer}

/* A single, large scannable bot code replaces the six overlapping decorative images. */
.shop-auth-connect{justify-content:flex-start;align-items:center;text-align:center;gap:.8rem}
.shop-auth-connect>h2,.shop-auth-connect>p{width:100%;max-width:29rem}
.shop-bot-carousel{position:relative;display:flex;flex-direction:column;align-items:center;gap:.65rem;width:min(100%,24rem);padding:1rem 1.2rem;border:1px solid rgba(255,255,255,.22);border-radius:1.2rem;background:rgba(255,255,255,.1)}
.shop-bot-nav{display:flex;align-items:center;justify-content:space-between;width:100%;gap:.9rem}
.shop-bot-nav button{display:grid;place-items:center;width:2.5rem;height:2.5rem;border:1px solid rgba(255,255,255,.45);border-radius:.8rem;background:rgba(255,255,255,.15);color:#fff;cursor:pointer}
.shop-bot-nav button:focus-visible,.shop-bot-dots button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.shop-bot-qr{display:grid;place-items:center;padding:.8rem;background:#fff;border-radius:1rem}
.shop-bot-qr img{display:block;width:min(58vw,235px);height:auto;aspect-ratio:1}
.shop-bot-handle{font-size:.83rem;overflow-wrap:anywhere}
.shop-bot-dots{display:flex;justify-content:center;gap:.4rem}
.shop-bot-dots button{width:.55rem;height:.55rem;border:0;border-radius:50%;background:rgba(255,255,255,.38);cursor:pointer}
.shop-bot-dots button.active{width:1.4rem;border-radius:1rem;background:#fff}
.shop-bot-open{color:#fff;font-size:.83rem;font-weight:700;text-underline-offset:4px}
.shop-bot-help{font-size:.77rem!important;opacity:.85}
.shop-bot-empty{display:grid;place-items:center;gap:.6rem;padding:3rem 1rem;color:#fff}
.shop-bot-empty i{font-size:4rem}
@media(max-width:760px){.shop-auth-connect{padding:1.3rem}.shop-bot-carousel{padding:.8rem}.shop-bot-qr img{width:min(55vw,200px)}}

/* Bot quick sign-in: primary path; SMS remains as a separate fallback. */
.shop-auth-bot-entry{border:1px solid #dbe4f1;border-radius:1.1rem;background:#f8faff;padding:1rem;margin-bottom:.65rem}
.shop-auth-bot-entry>strong{display:flex;align-items:center;gap:.4rem;color:var(--sa-primary);font-size:1rem}
.shop-auth-bot-entry p{color:#66748e;font-size:.78rem;line-height:1.9;margin:.4rem 0 .8rem}
.shop-auth-bot-entry p code{direction:ltr;unicode-bidi:isolate}
.shop-auth-bot-form{display:grid;gap:.6rem}
.shop-auth-bot-form .shop-auth-submit{margin:0}
.shop-auth-separator{display:flex;align-items:center;gap:.6rem;color:#8290a7;font-size:.75rem;margin:1rem 0}
.shop-auth-separator::before,.shop-auth-separator::after{content:"";flex:1;height:1px;background:#e2e7f0}

/* 2026-10-26: concise, accessible shop authentication; functional forms are unchanged. */
.shop-auth{background:radial-gradient(circle at 15% 20%,#e6f0ff,transparent 36%),#f6f9ff}
.shop-auth-top{position:relative;padding:.85rem clamp(1rem,4vw,3rem);background:rgba(255,255,255,.97)}
.shop-auth-top-actions{gap:1rem}
.shop-auth-brand b{font-size:1.45rem;line-height:1.1}
.shop-auth-link{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1rem;border:1px solid #d5e2f7;border-radius:.8rem;background:#f8fbff;color:#1256bc;font-size:.9rem}
.shop-auth-link:hover{background:#eaf2ff}
.shop-auth-owner{min-height:4.25rem;gap:.9rem;padding:.7rem 1.4rem;border:0;border-radius:1rem;background:#0951de;color:white;font-size:1.14rem;box-shadow:0 .6rem 1.2rem rgba(9,81,222,.18)}
.shop-auth-owner i{font-size:1.5rem}
.shop-auth-owner span{display:block;line-height:1.35}
.shop-auth-owner small{display:block;margin-top:.2rem;font-size:.72rem;font-weight:600;color:#dceaff}
.shop-auth-owner:hover{background:#003cae}
.shop-auth-card{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);width:min(90rem,calc(100% - 2.5rem));margin:1rem auto 2rem;box-shadow:0 1.3rem 3rem rgba(25,55,100,.09)}
.shop-auth-panel{padding:clamp(1.1rem,2.1vw,2rem)}
.shop-auth-tabs{margin-bottom:1rem}
.shop-auth-connect{gap:.7rem;padding:clamp(1.25rem,2.3vw,2.1rem)}
.shop-auth-connect>h2{font-size:clamp(1.3rem,2vw,1.85rem)}
.shop-auth-connect>p{line-height:1.7;font-size:.84rem}
.shop-bot-carousel{width:min(100%,27rem);gap:.6rem;padding:1rem;border-radius:1rem}
.shop-bot-provider-tabs{display:flex;width:100%;gap:.5rem;flex-wrap:wrap}
.shop-bot-provider-tabs button{flex:1 1 5rem;padding:.65rem .8rem;border:1px solid rgba(255,255,255,.18);border-radius:.65rem;background:rgba(255,255,255,.11);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.shop-bot-provider-tabs button.active{background:#fff;border-color:#fff;color:#17427e}
.shop-bot-provider-tabs button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.shop-bot-qr{padding:.7rem}
.shop-bot-qr img{width:min(50vw,205px);height:auto}
.shop-bot-help{font-size:.74rem!important}
.shop-auth-bot-entry{padding:.9rem}
.shop-auth-bot-entry p{line-height:1.65}
@media(max-width:860px){
  .shop-auth-card{grid-template-columns:1fr;width:calc(100% - 1.25rem)}
  .shop-auth-top{flex-wrap:wrap}
  .shop-auth-top-actions .shop-auth-link{display:inline-flex}
  .shop-auth-owner{font-size:.95rem;min-height:3.6rem;padding:.6rem .85rem}
  .shop-auth-owner small{font-size:.65rem}
  .shop-auth-connect{order:2}
  .shop-auth-panel{order:1}
  .shop-bot-qr img{width:min(55vw,200px)}
}
@media(max-width:520px){
  .shop-auth-top{gap:.6rem}
  .shop-auth-top-actions{width:100%;justify-content:space-between;gap:.35rem}
  .shop-auth-link{padding:.6rem .7rem;font-size:.78rem}
  .shop-auth-owner{font-size:.84rem}
  .shop-auth-owner i{font-size:1.15rem}
  .shop-auth-owner small{display:none}
}

/* UX refinement: compact desktop layout, balanced header, and clear configured bot choices. */
@media(min-width:861px){
 .shop-auth-top{min-height:4.7rem;padding:.55rem clamp(1rem,3vw,2.2rem)}
 .shop-auth-top-actions{margin-inline-start:auto}
 .shop-auth-card{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);max-width:86rem;margin:.75rem auto 1.5rem}
 .shop-auth-panel{padding:1.2rem clamp(1.15rem,2vw,1.8rem)}
 .shop-auth-showcase{padding:1.25rem clamp(1rem,2vw,1.75rem)}
 .shop-auth-tabs{margin-bottom:.7rem}
 .shop-auth-title{font-size:1.19rem}
 .shop-auth-intro{margin:.3rem 0 .75rem;line-height:1.6}
 .shop-auth-bot-entry{margin-bottom:.4rem;padding:.75rem}
 .shop-auth-bot-entry p{margin:.3rem 0 .5rem;line-height:1.55}
 .shop-auth-bot-form{gap:.35rem}
 .shop-auth-separator{margin:.55rem 0}
 .shop-auth-form{gap:.55rem}
 .shop-auth-business{padding-top:.6rem}
 .shop-auth-connect{gap:.45rem}
 .shop-auth-connect>h2{font-size:1.5rem}
 .shop-auth-connect>p{line-height:1.55}
 .shop-bot-carousel{width:min(100%,25rem);padding:.8rem;gap:.4rem}
 .shop-bot-qr{padding:.55rem}
 .shop-bot-qr img{width:clamp(150px,15vw,190px)}
 .shop-bot-provider-tabs button{padding:.48rem .65rem}
 .shop-bot-help{margin:.25rem 0!important}
}
.shop-bot-provider-hint{display:block;max-width:24rem;text-align:center;color:#e1eaff;font-size:.72rem;line-height:1.6}
.shop-bot-provider-tabs{justify-content:center}
.shop-bot-provider-tabs button{min-width:6rem;transition:background .15s ease}
.shop-bot-provider-tabs button:hover:not(.active){background:rgba(255,255,255,.22)}
.shop-auth-top-actions{flex-wrap:nowrap}
.shop-auth-brand{flex-shrink:0}
.shop-auth-owner{white-space:nowrap}
@media(max-width:860px){
 .shop-auth-top-actions{flex-wrap:wrap}
 .shop-auth-card{margin:.6rem auto 1.25rem}
 .shop-auth-connect>h2{font-size:1.3rem}
}

/* I18N: English/Turkish lay the shop sign-in pages out left-to-right. */
html[dir="ltr"] .shop-auth{direction:ltr}
html[dir="ltr"] .shop-auth-input input[dir=ltr]{text-align:left}

.shop-auth[dir="ltr"] .bi-arrow-right,.shop-auth[dir="ltr"] .bi-chevron-left{display:inline-block;transform:scaleX(-1)}

/* 2026-11-01: one centred card, one sign-in method at a time; the bot QR code opens on request. */
.shop-auth-card.shop-auth-card-single{grid-template-columns:1fr;width:min(31rem,calc(100% - 1.5rem));max-width:none;margin:clamp(1rem,5vh,3rem) auto 1.5rem}
.shop-auth-card-single .shop-auth-panel{padding:clamp(1.2rem,4vw,2rem)}
.shop-auth-card-single .shop-auth-title{margin-bottom:.9rem}
.shop-login-methods{display:flex;gap:.4rem;margin-bottom:1rem}
.shop-login-methods button{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:2.6rem;padding:.4rem .5rem;border:1px solid #dfe4ef;border-radius:.7rem;background:#fff;color:#5c6782;font:inherit;font-size:.8rem;font-weight:800;cursor:pointer;transition:border-color .15s ease,color .15s ease,background-color .15s ease}
.shop-login-methods button:hover:not(.active){border-color:color-mix(in srgb,var(--sa-primary) 40%,#dfe4ef)}
.shop-login-methods button.active{border-color:var(--sa-primary);background:color-mix(in srgb,var(--sa-primary) 8%,#fff);color:var(--sa-primary)}
.shop-login-note{color:#6f7a93;font-size:.75rem;line-height:1.7}
.shop-login-note code{direction:ltr;unicode-bidi:isolate}
.shop-login-qr-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;width:100%;margin-top:.7rem;padding:.55rem;border:1px dashed color-mix(in srgb,var(--sa-primary) 35%,#dfe4ef);border-radius:.75rem;background:transparent;color:var(--sa-primary);font:inherit;font-size:.8rem;font-weight:800;cursor:pointer}
.shop-login-qr-toggle:hover{background:color-mix(in srgb,var(--sa-primary) 6%,#fff)}
.shop-login-qr{display:flex;flex-direction:column;align-items:center;gap:.4rem;margin-top:.6rem;padding:.9rem;border:1px solid #e3e8f2;border-radius:1rem;background:#f8faff;text-align:center;animation:sa-in .3s ease both}
.shop-login-qr img{display:block;width:min(52vw,180px);height:auto;aspect-ratio:1;padding:.4rem;border-radius:.7rem;background:#fff}
.shop-login-qr>span{color:#2b3656;font-size:.82rem;font-weight:700}
.shop-login-qr small{color:#6f7a93;font-size:.74rem}
.shop-login-qr-open{color:var(--sa-primary);font-size:.8rem;font-weight:800}
.shop-login-qr-bots{display:flex;gap:.35rem}
.shop-login-qr-bots button{padding:.3rem .8rem;border:1px solid #dfe4ef;border-radius:999px;background:#fff;color:#5c6782;font:inherit;font-size:.76rem;font-weight:800;cursor:pointer}
.shop-login-qr-bots button.active{border-color:var(--sa-primary);color:var(--sa-primary)}

/* 2026-11-01: calm animated network behind the sign-in card (js/shop-auth-bg.js). */
.shop-auth{position:relative;isolation:isolate}
.shop-auth::before{content:"";position:fixed;inset:-20%;z-index:-2;pointer-events:none;background:radial-gradient(circle at 20% 30%,color-mix(in srgb,var(--sa-primary) 12%,transparent),transparent 30%),radial-gradient(circle at 80% 70%,color-mix(in srgb,var(--sa-accent) 12%,transparent),transparent 32%);animation:sa-drift 38s ease-in-out infinite alternate}
.shop-auth-bg{position:fixed;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
.shop-auth-top,.shop-auth-card{position:relative;z-index:1}
@keyframes sa-drift{from{transform:translate3d(-3%,-2%,0) rotate(0)}to{transform:translate3d(3%,2%,0) rotate(8deg)}}
@media(prefers-reduced-motion:reduce){.shop-auth::before{animation:none}}
