/* Split sign-in / register layout (layouts/auth-split.blade.php), moved from its <style>. Loaded only by that layout, in the place the block was. */
/* stylelint-disable scale-unlimited/declaration-strict-value -- moved as-is from the layout: raw values with no exact token */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

/* ── ROOT ──
   Colours follow the app theme: --bb-* tokens (public/css/app.css) get dark values under html[data-bb-theme="dark"].
   --as-* belong to this layout: the brand / showcase panel is warm cream in light mode and near-black in dark. */
.as-root {
    --brand:         var(--bb-primary);
    --brand-dark:    var(--bb-primary-hover);
    --brand-text:    var(--bb-primary-text);   /* orange text: AA on light surfaces */
    --as-panel:      var(--bb-background);
    --as-glow-1:     rgb(var(--bb-primary-rgb) / 0.20);
    --as-glow-2:     color-mix(in srgb, var(--bb-accent) 24%, transparent);
    --as-glow-3:     var(--bb-primary-glow);
    --as-grid:       var(--bb-primary-glow);
    --as-ink:        var(--bb-text);
    --as-ink-2:      var(--bb-text-body);
    --as-ink-3:      var(--bb-text-muted);
    --as-card:       var(--bb-glass-soft);
    --as-card-solid: var(--bb-surface);
    --as-line:       var(--bb-border);
    --as-icon-bg:    var(--bb-primary-glow);
    --as-icon-line:  var(--bb-focus-ring-color);
    --as-step-ink:   var(--brand-text);   /* step numbers on the orange wash: brand orange is 2.5:1 there, this is AA */
    --as-shadow:     var(--bb-shadow-md);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    font-family: 'Outfit', sans-serif;
    background: var(--bb-surface);
    overflow: hidden;
}
html[data-bb-theme="dark"] .as-root {
    --as-glow-1:     rgb(var(--bb-primary-rgb) / 0.28);
    --as-glow-2:     color-mix(in srgb, var(--bb-primary-hover) 22%, transparent);
    --as-glow-3:     var(--bb-primary-glow);
    --as-grid:       var(--bb-primary-glow);
    --as-ink:        var(--bb-text);
    --as-ink-2:      var(--bb-text-body);
    --as-ink-3:      var(--bb-text-muted);
    --as-card:       var(--bb-on-ink-a10);
    --as-line:       var(--bb-border);
    --as-icon-line:  var(--bb-focus-ring-color);
    --as-step-ink:   var(--brand);        /* on the dark panel the bright orange reads best */
    --as-shadow:     var(--bb-shadow-md);
}

/* ── BRAND PANEL ── */
.as-brand {
    width: 52%;
    min-height: 100vh;
    position: relative;
    background: var(--as-panel);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--bb-space-48) var(--bb-space-48);
    overflow: hidden;
    flex-shrink: 0;
}
.as-brand::before, .as-show::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, var(--as-glow-1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 80%, var(--as-glow-2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 55% 45%, var(--as-glow-3) 0%, transparent 55%);
    pointer-events: none;
}
.as-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--as-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--as-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Orbs */
.as-orb { position: absolute; border-radius: 50%; filter: blur(60px); animation: as-orb-drift 8s ease-in-out infinite alternate; pointer-events: none; }
.as-orb-1 { width: 320px; height: 320px; background: radial-gradient(circle, var(--as-glow-1), transparent 70%); top: -80px; right: -60px; }
.as-orb-2 { width: 240px; height: 240px; background: radial-gradient(circle, var(--as-glow-2), transparent 70%); bottom: 60px; left: -40px; animation-delay: -3s; }
.as-orb-3 { width: 180px; height: 180px; background: radial-gradient(circle, var(--as-glow-3), transparent 70%); top: 50%; left: 55%; animation-delay: -5s; }
@keyframes as-orb-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(20px,-30px) scale(1.08); } }

/* Logo */
.as-logo-wrap { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--bb-space-12); animation: as-fade-up 0.7s ease both; }
/* the wordmark at the sidebar's size (35px tall) on every device; light/dark pair */
.as-logo-img { display: block; height: 35px; width: auto; }
.as-logo-d { display: none; }
html[data-bb-theme="dark"] .as-logo-l { display: none; }
html[data-bb-theme="dark"] .as-logo-d { display: block; }

/* Hero */
.as-hero { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: var(--bb-space-40) 0; animation: as-fade-up 0.7s 0.1s ease both; }
.as-tagline { font-family: 'DM Serif Display', serif; font-size: clamp(var(--bb-text-3xl), 3.5vw, var(--bb-text-5xl)); color: var(--as-ink); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 var(--bb-space-20); }
.as-tagline em { font-style: italic; color: var(--brand-text); }
/* desktop: the hero is one left-aligned block in the middle of the panel (on phones it stays a small header) */
@media (min-width: 769px) {
    .as-hero { align-items: center; }
    .as-hero > *, .as-hero .as-sub { width: 100%; max-width: 440px; }
}
.as-sub { font-size: var(--bb-text-lg); color: var(--as-ink-2); line-height: 1.6; max-width: 380px; margin: 0 0 var(--bb-space-40); }

/* Feature list (login) */
.as-features { display: flex; flex-direction: column; gap: var(--bb-space-16); }
.as-feat { display: flex; align-items: center; gap: var(--bb-space-16); animation: as-fade-up 0.6s ease both; }
.as-feat:nth-child(1) { animation-delay: 0.2s; }
.as-feat:nth-child(2) { animation-delay: 0.3s; }
.as-feat:nth-child(3) { animation-delay: 0.4s; }
.as-feat-icon { width: 40px; height: 40px; border-radius: var(--bb-radius-lg); background: var(--as-icon-bg); border: 1px solid var(--as-icon-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brand); }
.as-feat-text { font-size: var(--bb-text-md); color: var(--as-ink-2); line-height: 1.4; }
.as-feat-text strong { display: block; color: var(--as-ink); font-weight: 500; font-size: var(--bb-text-md); }

/* Steps (register) */
.as-steps { display: flex; flex-direction: column; gap: 0; }
.as-step { display: flex; align-items: flex-start; gap: var(--bb-space-16); padding-bottom: var(--bb-space-20); }
.as-step:last-child { padding-bottom: 0; }
.as-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.as-step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--as-icon-bg); border: 1px solid var(--as-icon-line); display: flex; align-items: center; justify-content: center; font-size: var(--bb-text-xs); font-weight: 700; color: var(--as-step-ink); flex-shrink: 0; }
.as-step-line { width: 1px; flex: 1; min-height: 16px; background: var(--as-icon-line); margin-top: var(--bb-space-4); }
.as-step:last-child .as-step-line { display: none; }
.as-step-label { padding-top: var(--bb-space-6); }
.as-step-label strong { display: block; font-size: var(--bb-text-base); color: var(--as-ink); font-weight: 500; margin-bottom: var(--bb-space-2); }
.as-step-label span { font-size: var(--bb-text-sm); color: var(--as-ink-3); line-height: 1.4; }

/* Brand footer */
.as-brand-foot { position: relative; z-index: 2; font-size: var(--bb-text-sm); color: var(--as-ink-3); animation: as-fade-up 0.7s 0.5s ease both; }

/* ── FORM PANEL ── */
/* The box is centred with auto margins, not justify-content: centre. When the content is taller than the screen,
   justify-content: centre pushes the top (the tabs and heading) above the panel where it cannot be scrolled to;
   auto margins centre it when there is room and let the panel scroll from the top when there is not. */
.as-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--bb-space-48) var(--bb-space-32);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
}
.as-form-card {
    width: 100%;
    max-width: 400px;
    margin-block: auto;
    animation: as-fade-up 0.7s 0.15s ease both;
}
/* short desktop windows: tighter vertical gaps so more of the demo list fits without scrolling */
@media (min-width: 769px) and (max-height: 900px) {
    .as-form-panel { padding-top: var(--bb-space-24); padding-bottom: var(--bb-space-24); }
    .as-tabs { margin-bottom: var(--bb-space-20); }
    .as-form-head { margin-bottom: var(--bb-space-24); }
    .as-form-head--tight { margin-bottom: var(--bb-space-16); }
    .as-search { margin-bottom: var(--bb-space-16); }
    .as-demo-group + .as-demo-group { margin-top: var(--bb-space-12); }
    .as-live { margin-top: var(--bb-space-16); }
}

/* Back link */
.as-back-link { display: inline-flex; align-items: center; gap: var(--bb-space-6); font-size: var(--bb-text-base); color: var(--bb-text-muted); text-decoration: none; margin-bottom: var(--bb-space-32); transition: color 0.2s; }
.as-back-link:hover { color: var(--brand-text); }
.as-back-link svg { width: 14px; height: 14px; }

/* Form head */
.as-form-head { margin-bottom: var(--bb-space-40); display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--bb-space-12); }
.as-form-head h1, .as-form-head h2 { font-family: 'DM Serif Display', serif; font-size: var(--bb-text-4xl); color: var(--bb-text); letter-spacing: -0.02em; margin: 0 0 var(--bb-space-6); }
.as-form-head p { font-size: var(--bb-text-md); color: var(--bb-text-muted); margin: 0; line-height: 1.5; }
.as-header-link { font-size: var(--bb-text-base); color: var(--bb-text-muted); text-decoration: none; display: flex; align-items: center; gap: var(--bb-space-6); white-space: nowrap; margin-top: var(--bb-space-4); }
.as-header-link strong { color: var(--brand-text); font-weight: 600; }
.as-header-link:hover, .as-header-link:focus { color: var(--bb-text); text-decoration: none; }
.as-header-link:hover strong, .as-header-link:focus strong { color: var(--brand-dark); }

/* Fields */
.as-field { margin-bottom: var(--bb-space-20); }
.as-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--bb-space-8); }
.as-label span { font-size: var(--bb-text-base); font-weight: 500; color: var(--bb-text); }
.as-label a { font-size: var(--bb-text-sm); color: var(--brand-text); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.as-label a:hover { color: var(--brand-dark); }

.as-input-wrap { position: relative; }
.as-input { width: 100%; height: 48px; border: 1px solid var(--bb-border-strong); border-radius: var(--bb-radius-lg); padding: 0 var(--bb-space-48) 0 var(--bb-space-16); font-family: 'Outfit', sans-serif; font-size: var(--bb-text-lg); color: var(--bb-text); background: var(--bb-surface); outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; }
.as-input--no-icon { padding-right: var(--bb-space-16); }
.as-input::placeholder { color: var(--bb-text-muted); }
.as-input:focus { border-color: var(--brand); box-shadow: var(--bb-shadow-ring); }
.as-input.is-error { border-color: var(--bb-danger); }

.as-eye-btn { position: absolute; right: var(--bb-space-8); top: 50%; transform: translateY(-50%); border-color: transparent; background: transparent; }

.as-error { font-size: var(--bb-text-sm); color: var(--bb-danger-text); margin-top: var(--bb-space-6); display: block; }
.as-alert--warn { background: var(--bb-warning-bg); border-color: var(--bb-warning-border); color: var(--bb-warning-text); }
.as-alert { background: var(--bb-success-bg); border: 1px solid var(--bb-success-border); color: var(--bb-success-text); border-radius: var(--bb-radius-lg); padding: var(--bb-space-12) var(--bb-space-16); font-size: var(--bb-text-md); margin-bottom: var(--bb-space-20); }

/* Remember */
.as-remember { display: flex; align-items: center; gap: var(--bb-space-8); margin-bottom: var(--bb-space-24); }
.as-remember input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.as-remember label { font-size: var(--bb-text-base); color: var(--bb-text-body); cursor: pointer; user-select: none; }

/* Submit button */
.as-btn { width: 100%; height: 48px; background: var(--brand); color: var(--bb-on-primary); border: none; border-radius: var(--bb-radius-md); font-family: 'Outfit', sans-serif; font-size: var(--bb-text-lg); font-weight: 600; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: var(--bb-space-8); }
.as-btn:hover { background: var(--bb-primary-hover); }
.as-btn:focus-visible { outline: none; box-shadow: var(--bb-shadow-ring); }

/* Footer link */
.as-foot-link { text-align: center; margin-top: var(--bb-space-24); font-size: var(--bb-text-base); color: var(--bb-text-muted); }
.as-foot-link a { color: var(--brand-text); font-weight: 600; text-decoration: none; transition: color 0.2s; }
.as-foot-link a:hover { color: var(--brand-dark); }

/* Divider & demo box */
.as-divider { display: flex; align-items: center; gap: var(--bb-space-12); margin: var(--bb-space-32) 0; color: var(--bb-text-label); font-size: var(--bb-text-sm); }
.as-divider::before, .as-divider::after { content: ''; flex: 1; height: 1px; background: var(--bb-border); }
.as-demo-box { background: var(--bb-primary-tint); border: 1px solid var(--bb-border-strong); border-radius: var(--bb-radius-xl); padding: var(--bb-space-16) var(--bb-space-20); display: flex; align-items: center; justify-content: space-between; gap: var(--bb-space-12); }
.as-demo-creds { display: flex; gap: var(--bb-space-20); }
.as-demo-cred { display: flex; flex-direction: column; gap: var(--bb-space-2); }
.as-demo-key { font-size: var(--bb-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bb-gray-300); }
.as-demo-val { font-size: var(--bb-text-md); font-weight: 600; color: var(--bb-text); font-family: 'DM Serif Display', serif; }
.as-demo-btn { background: none; border: 1px solid var(--brand); color: var(--brand-text); border-radius: var(--bb-radius-md); font-family: 'Outfit', sans-serif; font-size: var(--bb-text-sm); font-weight: 600; height: 32px; padding: 0 var(--bb-space-16); cursor: pointer; transition: background 0.2s, color 0.2s; white-space: nowrap; flex-shrink: 0; }
.as-demo-btn:hover { background: var(--brand); color: var(--bb-on-primary); }
.as-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bb-space-8); }
.as-demo-biz { display: flex; align-items: center; gap: var(--bb-space-12); min-width: 0; padding: var(--bb-space-8) var(--bb-space-12); text-align: left; cursor: pointer;
    background: var(--bb-surface-raised); border: 1px solid var(--bb-border); border-radius: var(--bb-radius-lg);
    font-family: 'Outfit', sans-serif; transition: border-color 0.2s, background 0.2s; }
.as-demo-biz:hover { border-color: var(--brand); }
.as-demo-biz.is-active { border-color: var(--brand); background: var(--bb-primary-tint); box-shadow: var(--bb-shadow-ring); }
.as-demo-logo { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--bb-radius-md); object-fit: contain; background: var(--bb-surface); }
.as-demo-initial { display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--bb-on-primary); font-weight: 700; font-size: var(--bb-text-md); }
.as-demo-text { display: flex; flex-direction: column; min-width: 0; }
.as-demo-text strong { font-size: var(--bb-text-base); font-weight: 600; color: var(--bb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-demo-text small { font-size: var(--bb-text-xs); color: var(--bb-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* "Ask for a live demo" WhatsApp button (auth/partials/live_demo): an x-btn, laid out for icon + two text lines */
.as-wa-btn { width: 100%; justify-content: flex-start; padding-left: var(--bb-space-8); text-align: left; }
.as-wa-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--bb-radius-lg); background: var(--bb-success-bg); color: var(--bb-success-text); display: flex; align-items: center; justify-content: center; font-size: var(--bb-text-2xl); }
.as-wa-text { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.as-wa-text b { font-size: var(--bb-text-md); font-weight: 600; line-height: 1.25; }
.as-wa-text small { font-size: var(--bb-text-sm); opacity: 0.85; font-variant-numeric: tabular-nums; }
.as-wa-btn .as-wa-go { width: 16px; height: 16px; opacity: 0.8; transition: transform 0.2s; }
.as-wa-btn:hover .as-wa-go { transform: translateX(3px); }
.as-live { margin-top: var(--bb-space-24); padding: var(--bb-space-16); border-radius: var(--bb-radius-xl); background: var(--bb-surface-raised); border: 1px solid var(--bb-border); }
.as-live-text { margin-bottom: var(--bb-space-12); }
.as-live-text strong { display: block; font-size: var(--bb-text-md); font-weight: 600; color: var(--bb-text); }
.as-live-text span { font-size: var(--bb-text-sm); color: var(--bb-text-muted); }
.as-show-live { display: flex; align-items: center; gap: var(--bb-space-16); margin-top: var(--bb-space-16); }
.as-show-live > span { flex: 1; font-size: var(--bb-text-base); color: var(--as-ink-2); }
.as-show-live .as-wa-btn { width: auto; flex-shrink: 0; }
@media (max-width: 1180px) { .as-show-live { flex-direction: column; align-items: stretch; } .as-show-live .as-wa-btn { width: 100%; } }

/* "Try a demo" / "Sign in" tabs (login with demo businesses) */
.as-tabs { display: flex; gap: var(--bb-space-4); padding: var(--bb-space-4); margin-bottom: var(--bb-space-32); background: var(--bb-surface-raised); border: 1px solid var(--bb-border); border-radius: var(--bb-radius-lg); }
.as-tab { flex: 1; height: 36px; border: 0; border-radius: var(--bb-radius-md); background: transparent; font-family: 'Outfit', sans-serif; font-size: var(--bb-text-base); font-weight: 600;
    color: var(--bb-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: var(--bb-space-8); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.as-tab svg { width: 16px; height: 16px; }
.as-tab:hover { color: var(--bb-text); }
.as-tab[aria-selected="true"] { background: var(--bb-surface); color: var(--bb-text); box-shadow: var(--bb-shadow-sm); }
.as-tab[aria-selected="true"] svg { color: var(--brand); }
.as-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.as-tab-pane[hidden] { display: none; }
.as-form-head--tight { margin-bottom: var(--bb-space-20); }
.as-search { position: relative; margin-bottom: var(--bb-space-24); }
.as-search .as-input { padding-left: var(--bb-space-40); padding-right: var(--bb-space-16); }
.as-search .as-search-icon { position: absolute; left: var(--bb-space-16); top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--bb-text-muted); pointer-events: none; }
.as-demo-group + .as-demo-group { margin-top: var(--bb-space-20); }
.as-demo-group-title { font-size: var(--bb-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--bb-text-muted); margin: 0 0 var(--bb-space-8); }
.as-demo-empty { margin: var(--bb-space-8) 0 0; padding: var(--bb-space-20); text-align: center; font-size: var(--bb-text-base); color: var(--bb-text-muted); border: 1px dashed var(--bb-border-strong); border-radius: var(--bb-radius-lg); }
@media (max-width: 380px) { .as-demo-grid { grid-template-columns: 1fr; } }

/* ── DEMO SHOWCASE (login): covers the brand panel; a full-screen sheet on phones ── */
.as-show { position: absolute; top: 0; left: 0; bottom: 0; width: 52%; z-index: 5; background: var(--as-panel); color: var(--as-ink);
    opacity: 0; visibility: hidden; transform: translateX(calc(-1 * var(--bb-space-24))); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s; }
.as-show.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s ease; }
.as-show-scroll { position: relative; height: 100%; overflow-y: auto; padding: var(--bb-space-40) var(--bb-space-48) var(--bb-space-40); display: flex; flex-direction: column; }
.as-show-scroll::-webkit-scrollbar { width: 4px; }
.as-show-scroll::-webkit-scrollbar-thumb { background: var(--as-line); border-radius: var(--bb-radius-sm); }
.as-show-panel { display: none; width: 100%; max-width: 680px; }
/* auto margins centre the panel both ways and still let it scroll when it is taller than the screen */
.as-show-panel.is-active { display: block; margin: auto; animation: as-fade-up 0.45s ease both; }
.as-show-close { position: absolute; top: 20px; right: 20px; z-index: 2; width: 40px; height: 40px; border-radius: var(--bb-radius-lg); border: 1px solid var(--as-line);
    background: var(--as-card); color: var(--as-ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.as-show-close:hover { background: var(--as-icon-bg); border-color: var(--as-icon-line); color: var(--brand); }
.as-show-close svg { width: 18px; height: 18px; }
.as-show-head { display: flex; align-items: center; gap: var(--bb-space-16); margin-bottom: var(--bb-space-24); padding-right: var(--bb-space-48); }
.as-show-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--bb-radius-xl); background: var(--bb-surface); object-fit: contain; padding: var(--bb-space-6); border: 1px solid var(--as-line); box-shadow: var(--bb-shadow-md); }
.as-show-logo.as-demo-initial { font-size: var(--bb-text-3xl); padding: 0; }
.as-show-eyebrow { display: block; font-size: var(--bb-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bb-primary-text); margin-bottom: var(--bb-space-2); }
.as-show-head h2 { font-family: 'DM Serif Display', serif; font-size: var(--bb-text-4xl); line-height: 1.15; margin: 0; color: var(--as-ink); letter-spacing: -0.01em; }
.as-show-head small { display: block; font-size: var(--bb-text-base); color: var(--as-ink-3); margin-top: var(--bb-space-4); }
.as-show-headline { font-family: 'DM Serif Display', serif; font-style: italic; font-size: clamp(var(--bb-text-xl), 1.9vw, var(--bb-text-2xl)); line-height: 1.3; color: var(--as-ink); margin: 0 0 var(--bb-space-24); }
.as-show-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--as-line); border: 1px solid var(--as-line); border-radius: var(--bb-radius-xl); overflow: hidden; margin-bottom: var(--bb-space-24); box-shadow: var(--as-shadow); }
.as-show-stat { background: var(--as-card-solid); padding: var(--bb-space-12) var(--bb-space-16); }
.as-show-stat strong { display: block; font-size: var(--bb-text-3xl); font-weight: 600; color: var(--as-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.as-show-stat span { font-size: var(--bb-text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--as-ink-3); }
.as-show-label { font-size: var(--bb-text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--as-ink-3); margin: 0 0 var(--bb-space-12); }
.as-show-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bb-space-12) var(--bb-space-20); margin-bottom: var(--bb-space-20); }
.as-show-feat { display: flex; align-items: flex-start; gap: var(--bb-space-12); min-width: 0; }
.as-show-feat-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--bb-radius-lg); background: var(--as-icon-bg); border: 1px solid var(--as-icon-line); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.as-show-feat-icon svg { width: 18px; height: 18px; stroke-width: 1.9; }
/* auto-rotation (desktop): a thin bar along the top fills up over 10 seconds, then the next business shows; hover pauses it */
.as-show-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 3; background: var(--as-line); opacity: 0; transition: opacity 0.3s; }
.as-show-progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.as-show.is-rotating .as-show-progress { opacity: 1; }
.as-show-paused { position: absolute; top: var(--bb-space-12); left: 50%; transform: translateX(-50%); z-index: 3; font-size: var(--bb-text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--as-ink-3); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.as-show.is-rotating.is-paused .as-show-paused { opacity: 1; }
.as-show-feat > div strong { display: block; font-size: var(--bb-text-md); font-weight: 500; color: var(--as-ink); line-height: 1.3; }
.as-show-feat > div span { display: block; font-size: var(--bb-text-sm); color: var(--as-ink-3); line-height: 1.4; }
.as-show-chips { display: flex; flex-wrap: wrap; gap: var(--bb-space-6); margin-bottom: var(--bb-space-24); }
.as-show-chip { display: inline-flex; align-items: center; gap: var(--bb-space-6); font-size: var(--bb-text-sm); font-weight: 500; color: var(--as-ink-2); padding: var(--bb-space-4) var(--bb-space-12); border-radius: var(--bb-radius-full); background: var(--as-card); border: 1px solid var(--as-line); }
.as-show-chip svg { width: 12px; height: 12px; color: var(--brand); }
.as-show-login { background: var(--as-card); border: 1px solid var(--as-line); border-radius: var(--bb-radius-xl); padding: var(--bb-space-20); box-shadow: var(--as-shadow); }
.as-show-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bb-space-12); }
.as-show-role { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--bb-space-8); min-width: 0; text-align: left; cursor: pointer; padding: var(--bb-space-16); border-radius: var(--bb-radius-xl);
    background: var(--as-card-solid); border: 1px solid var(--as-line); color: var(--as-ink); font-family: 'Outfit', sans-serif; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.as-show-role:hover, .as-show-role:focus-visible { background: var(--as-icon-bg); border-color: var(--brand); transform: translateY(-2px); outline: none; }
.as-show-role.is-primary { background: var(--brand); border-color: var(--brand); color: var(--bb-on-primary); box-shadow: var(--bb-shadow-md); }
.as-show-role.is-primary:hover, .as-show-role.is-primary:focus-visible { background: var(--bb-primary-hover); }
.as-show-role img, .as-show-role .as-show-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 2px solid var(--as-card-solid);
    background: var(--as-icon-bg); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.as-show-role.is-primary img, .as-show-role.is-primary .as-show-avatar { border-color: var(--bb-on-primary); box-shadow: none; }
.as-show-role b { font-size: var(--bb-text-md); font-weight: 600; }
.as-show-role em { font-style: normal; display: block; font-size: var(--bb-text-sm); color: var(--as-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.as-show-role small { display: block; font-size: var(--bb-text-xs); line-height: 1.35; color: var(--as-ink-3); }
.as-show-role.is-primary em, .as-show-role.is-primary small { color: var(--bb-on-primary); opacity: 0.85; }
.as-show-role .as-show-go { position: absolute; top: var(--bb-space-12); right: var(--bb-space-12); width: 16px; height: 16px; opacity: 0.6; transition: transform 0.2s, opacity 0.2s; }
.as-show-role:hover .as-show-go { transform: translateX(3px); opacity: 1; }
.as-show-role.is-busy { pointer-events: none; opacity: 0.7; }
.as-show-note { margin: var(--bb-space-12) 0 0; font-size: var(--bb-text-xs); color: var(--as-ink-3); display: flex; align-items: center; gap: var(--bb-space-6); }
.as-show-note svg { width: 13px; height: 13px; color: var(--brand); }
@media (max-width: 1180px) {
    .as-show-scroll { padding: var(--bb-space-32) var(--bb-space-32) var(--bb-space-32); }
    .as-show-roles { grid-template-columns: 1fr; }
    .as-show-role { flex-direction: row; align-items: center; padding: var(--bb-space-12) var(--bb-space-40) var(--bb-space-12) var(--bb-space-12); }
    .as-show-role .as-show-go { top: 50%; margin-top: -8px; }
}
@media (max-width: 960px) { .as-show-feats { grid-template-columns: 1fr; } .as-show-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── MODIFIER: Register (wider form, scrollable panel) ── */
.as-root--register .as-form-panel { height: 100vh; justify-content: flex-start; padding: var(--bb-space-48) var(--bb-space-40) var(--bb-space-64); }
.as-root--register .as-form-panel::-webkit-scrollbar { width: 4px; }
.as-root--register .as-form-panel::-webkit-scrollbar-track { background: transparent; }
.as-root--register .as-form-panel::-webkit-scrollbar-thumb { background: var(--bb-gray-300); border-radius: var(--bb-radius-sm); }
.as-root--register .as-form-card { max-width: 700px; margin-block: 0; }

/* ── SELECT2 Z-INDEX FIX ──
   .as-root is position:fixed z-index:9999; Select2 appends its
   dropdown to <body> at z-index 1051 by default — force it above. */
.select2-container--open .select2-dropdown { z-index: 99999 !important; }

/* ── ANIMATIONS ── */
@keyframes as-fade-up { from { opacity: 0; transform: translateY(var(--bb-space-20)); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .as-root {
        position: relative;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .as-brand {
        width: 100% !important;
        min-width: 0 !important;
        min-height: auto;
        padding: var(--bb-space-24) var(--bb-space-20) var(--bb-space-20) !important;
    }
    .as-hero { padding: var(--bb-space-12) 0 var(--bb-space-4); }
    .as-features, .as-steps { display: none; }
    .as-tagline { font-size: var(--bb-text-2xl); margin-bottom: 0; }
    .as-sub { display: none; }
    .as-brand-foot { margin-top: var(--bb-space-12); }
    .as-form-panel {
        flex: none !important;
        height: auto !important;
        min-height: 0;
        padding: var(--bb-space-32) var(--bb-space-20) var(--bb-space-48) !important;
        justify-content: flex-start !important;
    }
    .as-form-card { max-width: 100% !important; }
    .as-show { position: fixed; inset: 0; width: auto; z-index: 10000; transform: translateY(var(--bb-space-24)); }
    .as-show-scroll { padding: var(--bb-space-24) var(--bb-space-16) var(--bb-space-32); }
    .as-show-close { top: 16px; right: 66px; }
    .as-show-head h2 { font-size: var(--bb-text-3xl); }
}
body.as-show-locked { overflow: hidden; }
@media (max-width: 420px) {
    .as-brand { padding: var(--bb-space-20) var(--bb-space-16) var(--bb-space-16) !important; }
    .as-tagline { font-size: var(--bb-text-xl); }
    .as-form-panel { padding: var(--bb-space-24) var(--bb-space-16) var(--bb-space-40) !important; }
}

/* Repair customer page: same rules as Modules/Repair customer-repair-index.css for the form card */
.as-root--repair .as-form-card { max-width: 460px; margin: auto 0; }
@media (max-width: 768px) { .as-root--repair .as-form-card { margin: 0; } }
