/* =====================================================================
   LUBTEC — App do cliente (PWA)  ·  app/app.css  ·  versão 2
   Sistema visual próprio do app (não depende de assets/css/lubtec.css).
   Referência viva com o HTML exato de cada peça: app/guia.html

   Fontes (colocar no <head> de app/index.html, igual ao guia):
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Saira:ital,wdth,wght@1,125,800&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,800&family=Montserrat:wght@500;600&family=Barlow+Condensed:wght@600&display=swap">

   Regras de uso
   - <body class="a-app">. Toda classe do app começa com "a-".
   - Estados usam "is-*" (is-active, is-unread, is-attention, is-ok/is-soon/is-late/is-none, is-done).
   - Nada depende só de cor: todo estado tem ícone e/ou texto.
   - Ícones: <svg class="a-ico" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-..."/></svg>.
   - Brilhos e linhas decorativas são só CSS (gradientes e pseudo-elementos). Nenhuma imagem de fundo.

   COMPONENTES E CLASSES  (v2 = novo nesta versão)
   Base ........... a-app, a-shell, a-main (com abas: a-main--tabs), a-stack, a-stack--lg, a-row,
                    a-h1, a-h2, a-lead, a-muted, a-eyebrow, a-num, a-sr, a-ico, a-divider
                    v2: a-hello, a-hello__sub, a-sechead, a-note
   Logotipo ....... a-logo (+ a-logo--sm / a-logo--lg / v2: a-logo--xl), a-lub, a-tec
   Placa .......... a-plate (+ a-plate--sm / a-plate--lg) > b
   v2 Entrar ...... a-login (+ a-login--sub), a-login__top, a-login__brand, a-login__drop, a-login__tagline,
                    a-login__title, a-login__sub, a-login__glow, a-login__card, a-login__forgot,
                    a-login__alt, a-login__foot
   Cabeçalho ...... a-header, a-back, a-header__title, a-header__sub, a-topbar
   Abas ........... a-tabbar (3 ou 4 abas), a-tab (aria-current="page" = ativa), a-tab__badge
   Cartões ........ a-card, a-card--flat
   Veículo (v1) ... a-vcard (+ is-attention), a-vcard__head, a-vcard__model, a-vcard__shop, a-vcard__go, a-flag
   v2 Seletor ..... a-vswitch, a-vswitch__opt (aria-pressed), a-vswitch__name, a-vswitch__check
   v2 Painel ...... a-car, a-car__plate, a-car__model, a-car__ver, a-car__km, a-car__kmlabel, a-car__kmval,
                    a-car__kmnote, a-car__shop
   v2 Destaque .... a-highlight (+ --orcamento / --pronto), a-highlight__ico, a-highlight__txt
   v2 Cuidados .... a-care, a-care__head, a-care__score, a-care__meter, a-care__seg (+ is-ok/is-soon/is-late/is-none),
                    a-care__list, a-care__item, a-care__ico, a-care__main, a-care__name, a-care__meta
   v2 Situação .... a-state + is-ok | is-soon | is-late | is-none  (Em dia / Chegando / Vencido / Sem registro)
   v2 Alerta do dia a-daily (+ is-done), a-daily__top, a-daily__ico, a-daily__meta, a-daily__title, a-daily__q,
                    a-answers, a-daily__done
   v2 Atalhos ..... a-shortcuts, a-shortcut (+ --wide / --wa), a-shortcut__ico, a-shortcut__txt
   v2 Abas internas a-subnav, a-subnav__opt (aria-current="page")
   v2 Segmentado .. a-seg, a-seg__input (radio escondido), a-seg__opt (label), a-fieldset
   v2 Plano ....... a-plan, a-plan__row, a-plan__head, a-plan__ico, a-plan__name, a-plan__facts
   v2 Garantia .... a-warranty (+ is-expired)
   v2 Gastos ...... a-spend, a-spend__label, a-spend__total, a-spend__sub, a-bars, a-bars__col, a-bars__track,
                    a-bars__bar, a-bars__m (is-current), a-bars__details, a-mtable,
                    a-split, a-split__bar, a-split__part (--labor / --parts), a-split__legend, a-split__key
   v2 Documentos .. a-docs, a-doc, a-doc__ico, a-doc__main, a-doc__name, a-doc__date
   v2 Alertas ..... a-chips, a-chip (aria-pressed), a-lastcheck, a-notice__cat,
                    a-notice__ico--oficina | --manutencao | --seguranca | --documentos
   v2 Detalhe ..... a-detail, a-detail__hero, a-detail__ico, a-detail__cat, a-detail__sec
   v2 Checklist ... a-progress, a-progress__txt, a-progress__bar, a-progress__fill,
                    a-trip, a-trip__item, a-trip__name, a-trip__desc, a-trip__opts, a-trip__input,
                    a-trip__opt (--ok / --att), a-savebar
   v2 Interruptor . a-switches, a-switch, a-switch__txt, a-switch__input, a-switch__ui
   v2 Campo c/ ícone a-inputwrap, a-inputwrap__ico, a-inputwrap__suffix, a-input--big
   Serviços (OS) .. a-oslist, a-osrow, a-osrow__main, a-osrow__date, a-osrow__meta, a-osrow__total
   Situações OS ... a-status + a-status--orcamento | --na-oficina | --pronto | --entregue | --recusado
   Próxima troca .. a-next (+ is-ok / is-soon / is-late), a-ring, a-next__txt, a-next__label, a-next__when, a-next__state
   Pedido ......... a-pending, a-pending__txt
   Valores ........ a-items (table), a-items__group, a-items__disc, a-items__total, a-num
   Condições ...... a-terms (dl), a-terms__row
   Oficina ........ a-shop, a-shop__name, a-shop__addr, a-actions
   Botões ......... a-btn + a-btn--primary | --secondary | --danger | --danger-outline | --link | --whatsapp
                    v2: --ok | --warn | --ghost | --lg ;  a-btn--block, a-btn--sm, a-btns
   Formulário ..... a-field, a-label, a-input, a-input--plate, a-help, a-error, a-pass, a-pass__toggle, a-check
   Aviso em caixa . a-alert + a-alert--info | --ok | --error | v2: --warn, a-alert__title
   Vazio .......... a-empty, a-empty__art, a-steps
   Carregando ..... a-skel, a-skel--line, a-skel--title, a-skel--plate, a-skel--card
   Sem internet ... a-offline
   Avisos ......... a-notices, a-notice (+ is-unread), a-notice__ico, a-notice__body, a-notice__time, a-new
   Abertura ....... a-splash, a-splash__icon, a-splash__tagline, a-tip
   Menu (Conta) ... a-menu, a-menu__item (a ou button), a-menu__item--danger
   Folha inferior . a-sheet (<dialog>), a-sheet__handle, a-sheet__title, a-sheet__body, a-sheet__sum
   Toast .......... a-toasts (contêiner role="status"), a-toast + a-toast--ok | --error
   ===================================================================== */

:root {
  /* cores (mesmos tokens do sistema da oficina) */
  --a-bg: #030A1C;
  --a-bg-2: #051231;
  --a-surface: #0A1838;
  --a-surface-2: #0E2048;
  --a-field: #040C20;
  --a-line: rgba(80, 150, 255, .30);
  --a-line-soft: rgba(110, 150, 220, .18);
  --a-line-glow: rgba(60, 150, 255, .62);
  --a-field-line: #3A5078;
  --a-blue: #1477FF;
  --a-blue-deep: #0A62F4;
  --a-blue-bright: #0C8DF2;
  --a-blue-text: #5AA9FF;
  --a-blue-soft: rgba(20, 119, 255, .18);
  --a-silver: #C9D2E0;
  --a-silver-2: #95A3BB;
  --a-text: #F4F7FC;
  --a-text-2: #D2DBEB;
  --a-muted: #A3AFC6;          /* AA sobre o fundo e os cartões */
  --a-ok: #5BEA85;
  --a-warn: #FFC861;
  --a-danger: #FF8A93;
  --a-danger-solid: #C8283A;
  --a-neutral: #C9D3E6;
  --a-focus: #8CC4FF;
  --a-wa: #25D366;
  --a-wa-text: #052E16;

  /* forma e medida */
  --a-r-sm: 10px;
  --a-r: 14px;
  --a-r-lg: 20px;
  --a-col: 480px;               /* coluna máxima em tablet/desktop */
  --a-pad: 18px;                /* margem lateral */
  --a-tap: 54px;                /* altura de botão (mínimo exigido: 48px) */
  --a-tabbar-h: 74px;
  --a-safe-t: env(safe-area-inset-top, 0px);
  --a-safe-b: env(safe-area-inset-bottom, 0px);
  --a-safe-l: env(safe-area-inset-left, 0px);
  --a-safe-r: env(safe-area-inset-right, 0px);
  --a-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7), 0 0 24px rgba(25, 110, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .07);
  --a-glow: 0 10px 26px -10px rgba(20, 119, 255, .85);
  --a-font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --a-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--a-bg); color-scheme: dark; }
body.a-app {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--a-font); font-size: 17px; line-height: 1.5;
  color: var(--a-text); background: var(--a-bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  caret-color: var(--a-blue-text);
}
body.a-app::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(122deg, transparent 0 78%, rgba(60, 150, 255, .10) 78.2%, transparent 78.5%),
    radial-gradient(620px 440px at 85% -8%, rgba(18, 70, 175, .34), transparent 70%),
    radial-gradient(520px 380px at -10% 100%, rgba(18, 70, 175, .16), transparent 70%),
    linear-gradient(180deg, var(--a-bg-2), var(--a-bg) 60%);
}
.a-app h1, .a-app h2, .a-app h3, .a-app p, .a-app ul, .a-app ol, .a-app dl, .a-app dd, .a-app figure { margin: 0; }
.a-app ul, .a-app ol { padding: 0; list-style: none; }
.a-app img, .a-app svg { display: block; }
.a-app button, .a-app input, .a-app select, .a-app textarea { font: inherit; color: inherit; }
/* só links de texto (sem classe) ficam azuis; componentes definem a própria cor */
.a-app a:not([class]) { color: var(--a-blue-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.a-app :focus-visible { outline: 3px solid var(--a-focus); outline-offset: 3px; border-radius: 8px; }
.a-app ::selection { background: rgba(46, 149, 255, .4); color: #fff; }
.a-app { scrollbar-color: #2A4A86 transparent; }

.a-shell {
  width: 100%; max-width: var(--a-col); margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding-left: var(--a-safe-l); padding-right: var(--a-safe-r);
  display: flex; flex-direction: column;
}
@media (min-width: 520px) {
  .a-shell { border-left: 1px solid var(--a-line-soft); border-right: 1px solid var(--a-line-soft); background: rgba(3, 10, 28, .55); }
}
.a-main { flex: 1; padding: 8px var(--a-pad) calc(28px + var(--a-safe-b)); }
.a-main--tabs { padding-bottom: calc(var(--a-tabbar-h) + 28px + var(--a-safe-b)); }

.a-stack { display: flex; flex-direction: column; gap: 14px; }
.a-stack--lg { gap: 28px; }
.a-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.a-h1 { font-size: 28px; font-weight: 800; line-height: 1.18; letter-spacing: -.012em; text-wrap: balance; }
.a-h2 { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; text-wrap: balance; }
.a-lead { font-size: 18px; color: var(--a-text-2); }
.a-muted { color: var(--a-muted); }
.a-eyebrow { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--a-muted); }
.a-num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.a-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.a-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-divider { height: 1px; background: var(--a-line-soft); border: 0; margin: 4px 0; }

/* saudação do Início */
.a-hello { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.a-hello .a-h1 { font-size: 27px; }
.a-hello__sub { font-size: 16px; color: var(--a-muted); }

/* título de seção com ação ao lado */
.a-sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.a-sechead .a-btn--link { margin-right: -6px; }

/* nota de rodapé de bloco */
.a-note { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--a-muted); }
.a-note .a-ico { width: 20px; height: 20px; margin-top: 1px; color: var(--a-blue-text); }

/* ---------- Logotipo ---------- */
.a-logo {
  display: inline-block; font-family: Saira, sans-serif; font-style: italic; font-weight: 800; font-stretch: 125%;
  font-size: 30px; line-height: .8; letter-spacing: -.005em; white-space: nowrap;
}
.a-logo--sm { font-size: 22px; }
.a-logo--lg { font-size: clamp(44px, 14vw, 60px); }
.a-logo--xl { font-size: clamp(50px, 16.5vw, 74px); letter-spacing: -.01em; }
.a-logo .a-lub, .a-logo .a-tec { display: inline-block; padding: .06em .14em .06em .04em; margin: -.06em -.14em -.06em -.04em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.a-logo .a-lub { background-image: linear-gradient(180deg, #7FD0FF 0%, #3FB6FF 30%, #1E9BFF 58%, #0A6CFF 100%); filter: drop-shadow(0 0 12px rgba(30, 155, 255, .55)); }
.a-logo .a-tec { background-image: linear-gradient(180deg, #FFFFFF 0%, #F1F4F9 38%, #C3CCDA 62%, #8E9AAE 100%); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }

/* ---------- Placa Mercosul ---------- */
.a-plate {
  display: inline-flex; flex-direction: column; overflow: hidden; flex: none; width: 108px;
  border-radius: 5px; background: #F4F6F8; border: 1.5px solid #111; vertical-align: middle;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6);
}
.a-plate::before { content: "BRASIL"; display: block; height: 9px; background: #0B3FA8; color: #fff; font: 700 7px/9px Figtree, sans-serif; letter-spacing: .3em; text-align: center; }
.a-plate b { display: block; font: 600 23px/26px "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #111; text-align: center; }
.a-plate--sm { width: 86px; }
.a-plate--sm::before { height: 7px; font-size: 5.5px; line-height: 7px; }
.a-plate--sm b { font-size: 18px; line-height: 20px; }
.a-plate--lg { width: 170px; border-width: 2px; border-radius: 7px; }
.a-plate--lg::before { height: 13px; font-size: 10px; line-height: 13px; }
.a-plate--lg b { font-size: 38px; line-height: 42px; }

/* =====================================================================
   FUNDO DE MARCA (Entrar, Criar conta, Esqueci a senha, Abertura)
   Só gradientes: brilho azul atrás da gota, painéis e linhas diagonais.
   ===================================================================== */
.a-login, .a-splash {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(130% 70% at 50% 0%, #0A1F52 0%, #051231 45%, var(--a-bg) 80%);
}
.a-login::before, .a-splash::before {
  /* linhas e painéis diagonais */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* azul elétrico da referência: #1E9BFF -> #0A6CFF, brilhos #3FB6FF */
  background:
    linear-gradient(128deg, rgba(10, 108, 255, .22) 0%, rgba(30, 155, 255, .06) 12%, transparent 12.1%),
    linear-gradient(128deg, transparent 0 13.6%, rgba(63, 182, 255, .8) 13.75%, rgba(63, 182, 255, 0) 14.2%),
    linear-gradient(128deg, transparent 0 31%, rgba(30, 155, 255, .22) 31.1%, transparent 31.5%),
    linear-gradient(128deg, transparent 0 63%, rgba(30, 155, 255, .18) 63.1%, transparent 63.4%),
    linear-gradient(128deg, transparent 0 84.5%, rgba(63, 182, 255, .75) 84.7%, rgba(63, 182, 255, 0) 85.2%),
    linear-gradient(128deg, transparent 0 86%, rgba(10, 108, 255, .10) 86%, rgba(10, 108, 255, .28) 100%);
}
.a-login::after, .a-splash::after {
  /* brilhos */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(260px 220px at 50% 13%, rgba(30, 155, 255, .40), transparent 70%),
    radial-gradient(240px 300px at -6% 46%, rgba(10, 120, 255, .26), transparent 70%),
    radial-gradient(260px 320px at 106% 64%, rgba(10, 120, 255, .22), transparent 70%),
    radial-gradient(300px 160px at 50% 102%, rgba(30, 155, 255, .30), transparent 70%);
}

/* ---------- Entrar ----------
   Medidas pensadas para caber sem rolar em 375x812 (gota 84, cartão compacto).
   Telas altas (>= 880px) ganham mais respiro; telas baixas podem rolar. */
.a-login {
  flex: 1; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(22px + var(--a-safe-t)) calc(var(--a-pad) + var(--a-safe-r)) calc(14px + var(--a-safe-b)) calc(var(--a-pad) + var(--a-safe-l));
}
.a-login > * { width: 100%; max-width: 420px; }
.a-login__top { display: flex; justify-content: flex-start; margin: -12px 0 4px -8px; }
.a-login__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a-login__drop {
  width: 84px; height: 84px; border-radius: 22px;
  filter: drop-shadow(0 0 18px rgba(30, 155, 255, .6)) drop-shadow(0 12px 20px rgba(0, 0, 0, .55));
}
.a-login__brand .a-logo { margin-top: 4px; }
.a-login .a-logo--xl { font-size: clamp(48px, 14.5vw, 70px); }
.a-login__tagline {
  font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--a-text-2); padding-left: .32em; /* compensa o espaçamento da última letra */
}
/* respiro + linha de brilho entre a assinatura e o "Bem-vindo de volta" (só no Entrar) */
.a-login:not(.a-login--sub) .a-login__brand::after {
  content: ""; width: 132px; height: 1px; margin-top: 12px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 182, 255, .85), transparent);
  box-shadow: 0 0 8px rgba(63, 182, 255, .55);
}
.a-login__title { margin-top: 18px; font-size: 28px; font-weight: 800; font-style: italic; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.a-login__sub { margin-top: 4px; font-size: 18px; line-height: 1.4; color: var(--a-text-2); }
.a-login__glow {
  height: 2px; margin: 14px auto 16px; max-width: 300px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #1E9BFF 28%, #CFEFFF 50%, #1E9BFF 72%, transparent);
  box-shadow: 0 0 12px rgba(63, 182, 255, .85);
}
.a-login__card {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; text-align: left;
  border-radius: 24px; border: 1.5px solid rgba(63, 182, 255, .55);
  background: linear-gradient(180deg, rgba(10, 46, 104, .6), rgba(4, 16, 42, .84));
  box-shadow: 0 0 0 4px rgba(30, 155, 255, .07), 0 0 34px rgba(30, 155, 255, .24), 0 24px 40px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.a-login__card > [data-aviso]:empty { display: none; } /* aviso vazio não ocupa espaço */
.a-login__card .a-field { gap: 6px; }
.a-login__card .a-label { color: #4FBAFF; font-size: 17px; }
.a-login__card .a-input { min-height: 54px; background: rgba(2, 8, 24, .72); border-color: rgba(30, 155, 255, .55); }
.a-login__card .a-input:focus { border-color: #3FB6FF; box-shadow: 0 0 0 4px rgba(30, 155, 255, .3), 0 0 18px rgba(30, 155, 255, .3); }
.a-login__card .a-inputwrap__ico { color: #BFE6FF; }
.a-login .a-pass__toggle { color: #4FBAFF; }
.a-login .a-pass__toggle::before { background: rgba(63, 182, 255, .5); }
.a-login .a-btn--link, .a-login a:not([class]) { color: #4FBAFF; }
/* botão Entrar: degradê ciano -> azul da referência.
   O texto fica sobre a faixa #0A78FF (branco 4,1:1; com o reflexo, >= 3,4:1 em texto grande 20px/800). */
.a-login .a-btn--primary {
  background: linear-gradient(90deg, #3FB6FF 0%, #1E9BFF 18%, #0A78FF 52%, #0A6CFF 100%);
  box-shadow: 0 10px 26px -10px rgba(30, 155, 255, .9), 0 0 22px rgba(30, 155, 255, .28), 0 0 0 1px rgba(150, 215, 255, .4) inset, inset 0 1px 0 rgba(255, 255, 255, .32);
}
.a-login .a-btn--primary::before { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }
.a-login__forgot { align-self: flex-end; margin: -10px -6px -8px 0; }
.a-login__alt {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 17px; color: var(--a-text-2);
}
.a-login__alt::before, .a-login__alt::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 182, 255, .45)); }
.a-login__alt::after { background: linear-gradient(90deg, rgba(63, 182, 255, .45), transparent); }
.a-login__alt a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.a-login__alt a:hover { text-decoration: underline; }
.a-login__alt .a-ico { width: 20px; height: 20px; stroke-width: 2.4; }
.a-login__alt span { white-space: nowrap; }
.a-login__foot {
  margin-top: auto; padding-top: 22px; font-size: 15px; line-height: 1.4; color: var(--a-muted); position: relative;
}
.a-login__foot::before {
  content: ""; position: absolute; top: 9px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 182, 255, .75), transparent);
}
/* Criar conta / Esqueci a senha: mesma marca, mais compacta */
.a-login--sub { padding-top: calc(22px + var(--a-safe-t)); }
.a-login--sub .a-login__brand { flex-direction: row; justify-content: center; gap: 12px; }
.a-login--sub .a-login__drop { width: 58px; height: 58px; border-radius: 15px; }
.a-login--sub .a-login__brand .a-logo { margin-top: 0; font-size: 36px; }
.a-login--sub .a-login__title { margin-top: 22px; font-size: 27px; }
@media (min-height: 880px) {
  .a-login { padding-top: calc(40px + var(--a-safe-t)); padding-bottom: calc(22px + var(--a-safe-b)); }
  .a-login__drop { width: 104px; height: 104px; border-radius: 26px; }
  .a-login__brand { gap: 14px; }
  .a-login:not(.a-login--sub) .a-login__brand::after { margin-top: 22px; }
  .a-login__title { margin-top: 26px; font-size: 30px; }
  .a-login__glow { margin: 18px auto 22px; }
  .a-login__card { gap: 18px; padding: 22px 18px 20px; }
  .a-login__card .a-input { min-height: 58px; }
  .a-login__alt { margin-top: 20px; }
  .a-login--sub .a-login__drop { width: 58px; height: 58px; border-radius: 15px; }
  .a-login--sub .a-login__title { font-size: 27px; }
}
@media (max-height: 700px) {
  .a-login { padding-top: calc(16px + var(--a-safe-t)); }
  .a-login__drop { width: 72px; height: 72px; }
  .a-login__title { margin-top: 14px; }
}

/* ---------- Cabeçalho ---------- */
.a-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + var(--a-safe-t)) var(--a-pad) 14px;
  background: linear-gradient(180deg, rgba(3, 10, 28, .97), rgba(3, 10, 28, .9)); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--a-line-soft);
}
.a-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--a-safe-t)) calc(var(--a-pad) - 6px) 10px;
  background: linear-gradient(180deg, rgba(3, 10, 28, .97), rgba(3, 10, 28, .9)); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--a-line-soft);
}
.a-topbar::after, .a-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(60, 150, 255, .55), transparent);
}
.a-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; min-width: 48px; padding: 0 12px 0 6px;
  border: 0; border-radius: 12px; background: transparent; color: var(--a-blue-text);
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; flex: none;
}
.a-back .a-ico { width: 26px; height: 26px; }
.a-back:hover, .a-back:active { background: var(--a-blue-soft); }
.a-header__title { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-header__sub { display: block; font-size: 15px; font-weight: 500; color: var(--a-muted); }

/* ---------- Barra de abas (3 ou 4 abas) ---------- */
.a-tabbar {
  position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--a-col);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  padding: 6px calc(6px + var(--a-safe-r)) calc(6px + var(--a-safe-b)) calc(6px + var(--a-safe-l));
  background: linear-gradient(180deg, rgba(6, 16, 42, .97), rgba(3, 10, 28, .99)); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(40, 120, 255, .35); box-shadow: 0 -10px 28px rgba(0, 0, 0, .5);
}
.a-tabbar::before {
  content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120, 190, 255, .9), transparent);
}
.a-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 62px; padding: 4px 2px; border-radius: 14px;
  color: var(--a-muted); font-size: 15px; font-weight: 600; line-height: 1.15; text-decoration: none; text-align: center;
}
.a-tab .a-ico { width: 26px; height: 26px; padding: 0; box-sizing: content-box; }
.a-tab > .a-ico { padding: 3px 16px; border-radius: 999px; transition: background-color .2s var(--a-ease), box-shadow .2s; }
.a-tab[aria-current="page"] { color: #fff; font-weight: 800; }
.a-tab[aria-current="page"] > .a-ico { background: linear-gradient(180deg, #2A8DFF, var(--a-blue) 55%, var(--a-blue-deep)); color: #fff; box-shadow: var(--a-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.a-tab:hover { color: var(--a-text); }
.a-tab:focus-visible { outline-offset: -2px; }
.a-tab__badge {
  position: absolute; top: 1px; left: calc(50% + 8px); min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: #E5394A; color: #fff; font-size: 14px; font-weight: 800; line-height: 24px; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #040C20;
}

/* ---------- Cartões ---------- */
.a-card {
  position: relative; display: block; min-width: 0; padding: 18px;
  border-radius: var(--a-r-lg); border: 1px solid rgba(70, 150, 255, .34);
  background: linear-gradient(160deg, rgba(22, 80, 190, .28) 0%, rgba(10, 34, 88, .5) 40%, rgba(6, 18, 48, .92) 100%);
  box-shadow: var(--a-shadow); color: var(--a-text);
}
.a-card--flat { background: rgba(8, 20, 48, .8); border-color: var(--a-line-soft); box-shadow: none; }
a.a-card { text-decoration: none; transition: border-color .15s, transform .08s; }
a.a-card:hover { border-color: rgba(90, 169, 255, .6); }
a.a-card:active { transform: scale(.99); }

/* cartão de veículo (v1) */
.a-vcard { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.a-vcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-vcard__go { width: 28px; height: 28px; color: var(--a-blue-text); }
.a-vcard__model { font-size: 20px; font-weight: 800; line-height: 1.25; }
.a-vcard__shop { display: flex; align-items: center; gap: 8px; color: var(--a-text-2); font-size: 16px; }
.a-vcard__shop .a-ico { width: 20px; height: 20px; color: var(--a-muted); }
.a-vcard.is-attention { border-color: rgba(255, 200, 97, .7); box-shadow: 0 0 0 1px rgba(255, 200, 97, .25), 0 0 26px rgba(255, 176, 60, .16); }
.a-flag {
  display: flex; align-items: center; gap: 10px; margin: -18px -18px 4px; padding: 12px 18px;
  background: rgba(255, 176, 60, .16); border-bottom: 1px solid rgba(255, 200, 97, .45);
  color: var(--a-warn); font-weight: 800; font-size: 16px;
}

/* ---------- Seletor de veículo (2+ veículos) ---------- */
.a-vswitch {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--a-pad)); padding: 2px var(--a-pad) 6px; scroll-padding: 0 var(--a-pad);
}
.a-vswitch::-webkit-scrollbar { display: none; }
.a-vswitch__opt {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 8px 14px 8px 10px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--a-line-soft); background: rgba(8, 20, 48, .75); color: var(--a-text-2);
  font-size: 16px; font-weight: 700; text-align: left; transition: border-color .15s, background-color .15s;
}
.a-vswitch__name { display: flex; flex-direction: column; line-height: 1.2; }
.a-vswitch__name small { font-size: 14px; font-weight: 500; color: var(--a-muted); }
.a-vswitch__check { display: none; width: 22px; height: 22px; color: var(--a-blue-text); stroke-width: 2.4; }
.a-vswitch__opt[aria-pressed="true"] {
  border-color: var(--a-blue-text); color: #fff;
  background: linear-gradient(160deg, rgba(22, 90, 210, .45), rgba(8, 26, 70, .9));
  box-shadow: 0 8px 22px -12px rgba(20, 119, 255, .9);
}
.a-vswitch__opt[aria-pressed="true"] .a-vswitch__check { display: block; }

/* ---------- Painel do carro ---------- */
.a-car { display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate; }
.a-car::before {
  /* arco prata decorativo, eco da gota */
  content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  border: 2px solid transparent; border-bottom-color: rgba(201, 210, 224, .28); border-left-color: rgba(201, 210, 224, .12);
  box-shadow: 0 0 60px rgba(20, 119, 255, .22);
}
.a-car__model { font-size: 23px; font-weight: 800; line-height: 1.2; }
.a-car__ver { display: block; font-size: 16px; font-weight: 500; color: var(--a-muted); }
.a-car__km {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 14px; border-radius: var(--a-r); background: rgba(2, 8, 24, .55); border: 1px solid var(--a-line-soft);
}
.a-car__km > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-car__kmlabel { font-size: 15px; color: var(--a-muted); }
.a-car__kmval { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.a-car__kmval small { font-size: 18px; font-weight: 700; color: var(--a-text-2); margin-left: 2px; }
.a-car__kmnote { font-size: 14px; color: var(--a-muted); }
.a-car__shop { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--a-text-2); }
.a-car__shop .a-ico { color: var(--a-blue-text); }
.a-car__shop strong { color: var(--a-text); font-weight: 700; }

/* ---------- Destaque (orçamento esperando / carro pronto) ---------- */
.a-highlight {
  --c: var(--a-warn);
  display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 12px 12px 14px;
  border-radius: var(--a-r-lg); text-decoration: none; color: var(--a-text);
  border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, #061230), #061230 80%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--c) 14%, transparent);
}
.a-highlight--orcamento { --c: var(--a-warn); }
.a-highlight--pronto { --c: var(--a-ok); }
.a-highlight__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.a-highlight__ico .a-ico { width: 24px; height: 24px; }
.a-highlight__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* título cabe numa linha a partir de ~390px; abaixo disso quebra equilibrado ("Orçamento / esperando você") */
.a-highlight__txt strong { font-size: 17px; font-weight: 800; line-height: 1.22; letter-spacing: -.005em; color: var(--c); text-wrap: balance; }
.a-highlight__txt span { font-size: 15px; line-height: 1.35; color: var(--a-text-2); }
.a-highlight > .a-ico:last-child { color: var(--c); width: 22px; height: 22px; }

/* ---------- Situação genérica (plano, documentos, cuidados) ---------- */
.a-state {
  --c: var(--a-neutral);
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 11px 4px 8px; border-radius: 999px;
  font-size: 15px; font-weight: 800; line-height: 1.25; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.a-state .a-ico { width: 18px; height: 18px; stroke-width: 2.4; }
.a-state.is-ok { --c: var(--a-ok); }
.a-state.is-soon { --c: var(--a-warn); }
.a-state.is-late { --c: var(--a-danger); }
.a-state.is-none { --c: var(--a-muted); }

/* ---------- Cuidados em dia ---------- */
.a-care { display: flex; flex-direction: column; gap: 16px; }
.a-care__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-care__score { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 700; color: var(--a-text-2); }
.a-care__score b { font-size: 44px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.a-care__meter { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.a-care__seg { height: 10px; border-radius: 999px; background: rgba(140, 170, 220, .2); }
.a-care__seg.is-ok { background: var(--a-ok); box-shadow: 0 0 10px rgba(91, 234, 133, .35); }
.a-care__seg.is-soon { background: var(--a-warn); }
.a-care__seg.is-late { background: var(--a-danger); }
.a-care__list { display: flex; flex-direction: column; border-top: 1px solid var(--a-line-soft); }
.a-care__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; color: var(--a-text); text-decoration: none; }
.a-care__list > li + li .a-care__item, .a-care__list > li + li > .a-care__item { border-top: 1px solid var(--a-line-soft); }
a.a-care__item:hover .a-care__name { text-decoration: underline; text-underline-offset: 3px; }
.a-care__ico { --c: var(--a-muted); flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.a-care__ico.is-ok { --c: var(--a-ok); }
.a-care__ico.is-soon { --c: var(--a-warn); }
.a-care__ico.is-late { --c: var(--a-danger); }
.a-care__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.a-care__name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.a-care__meta { font-size: 15px; color: var(--a-muted); }
.a-care__main .a-row { gap: 6px 10px; }

/* ---------- Alerta do dia (autoavaliação) ---------- */
.a-daily {
  display: flex; flex-direction: column; gap: 14px;
  border-color: rgba(90, 169, 255, .55);
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(30, 130, 255, .28), transparent 70%),
    linear-gradient(160deg, rgba(22, 80, 190, .34) 0%, rgba(10, 34, 88, .55) 45%, rgba(6, 18, 48, .95) 100%);
}
.a-daily__top { display: flex; align-items: center; gap: 12px; }
.a-daily__ico {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, #3A9BFF, var(--a-blue) 55%, #0B4FCF); box-shadow: var(--a-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.a-daily__ico .a-ico { width: 28px; height: 28px; }
.a-daily__meta { display: flex; flex-direction: column; line-height: 1.3; }
.a-daily__meta strong { font-size: 17px; font-weight: 800; color: var(--a-blue-text); }
.a-daily__meta span { font-size: 15px; color: var(--a-muted); }
.a-daily__title { font-size: 22px; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.a-daily__q { font-size: 18px; color: var(--a-text-2); }
.a-answers { display: flex; flex-direction: column; gap: 10px; }
.a-daily__done { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--a-r); background: rgba(2, 8, 24, .55); border: 1px solid var(--a-line-soft); }
.a-daily__done p { font-size: 16px; color: var(--a-text-2); }
.a-daily.is-done { border-color: var(--a-line); }
.a-daily.is-done .a-daily__ico { background: rgba(91, 234, 133, .16); color: var(--a-ok); box-shadow: none; }

/* ---------- Atalhos ---------- */
.a-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-shortcut {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 112px; padding: 14px;
  border-radius: 18px; border: 1px solid var(--a-line-soft); background: linear-gradient(170deg, rgba(14, 36, 86, .7), rgba(6, 16, 42, .85));
  color: var(--a-text); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.a-shortcut:hover { border-color: var(--a-line-glow); }
.a-shortcut:active { transform: scale(.985); }
.a-shortcut__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--a-blue-soft); color: var(--a-blue-text); border: 1px solid rgba(90, 169, 255, .3); }
.a-shortcut__ico .a-ico { width: 25px; height: 25px; }
.a-shortcut__txt { display: flex; flex-direction: column; gap: 2px; font-size: 17px; font-weight: 800; line-height: 1.25; }
.a-shortcut__txt small { font-size: 14px; font-weight: 600; color: var(--a-muted); }
.a-shortcut--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 72px; }
.a-shortcut--wa { border-color: rgba(37, 211, 102, .45); background: linear-gradient(170deg, rgba(20, 90, 60, .45), rgba(6, 20, 32, .9)); }
.a-shortcut--wa .a-shortcut__ico { background: var(--a-wa); color: var(--a-wa-text); border-color: transparent; }

/* ---------- Abas internas (Resumo · Manutenção · Histórico · Documentos) ---------- */
.a-subnav {
  display: flex; gap: 4px; padding: 4px; border-radius: 16px; overflow-x: auto; scrollbar-width: none;
  background: rgba(2, 8, 24, .75); border: 1px solid var(--a-line-soft); scroll-snap-type: x proximity;
}
.a-subnav::-webkit-scrollbar { display: none; }
.a-subnav__opt {
  flex: 1 0 auto; scroll-snap-align: center; display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 14px; border-radius: 12px; white-space: nowrap;
  color: var(--a-text-2); font-size: 16px; font-weight: 700; text-decoration: none;
}
.a-app a.a-subnav__opt { color: var(--a-text-2); }
.a-subnav__opt:hover { background: rgba(20, 119, 255, .12); }
/* celular estreito: 3 abas cabem inteiras em 360px; com 4 abas rola com esmaecimento na borda */
@media (max-width: 420px) {
  .a-subnav { gap: 2px; padding: 3px; }
  .a-subnav__opt { padding: 0 11px; font-size: 15px; }
}
.a-subnav__opt:focus-visible { outline-offset: -3px; }
.a-app a.a-subnav__opt[aria-current="page"], .a-subnav__opt[aria-current="page"] {
  color: #fff; font-weight: 800;
  background: linear-gradient(180deg, #2A8DFF, var(--a-blue) 55%, var(--a-blue-deep)); box-shadow: var(--a-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* ---------- Controle segmentado (rádios) ---------- */
.a-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.a-fieldset > legend { padding: 0; margin-bottom: 10px; }
.a-seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  border-radius: 16px; background: rgba(2, 8, 24, .75); border: 1px solid var(--a-line-soft);
}
.a-seg__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.a-seg__opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 60px; padding: 6px 6px; border-radius: 12px; cursor: pointer; text-align: center;
  color: var(--a-text-2); font-size: 17px; font-weight: 700; line-height: 1.2;
}
.a-seg__opt small { font-size: 14px; font-weight: 600; color: var(--a-muted); }
.a-seg__opt:hover { background: rgba(20, 119, 255, .12); }
.a-seg__input:checked + .a-seg__opt {
  color: #fff; font-weight: 800;
  background: linear-gradient(180deg, #2A8DFF, var(--a-blue) 55%, var(--a-blue-deep)); box-shadow: var(--a-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.a-seg__input:checked + .a-seg__opt small { color: #E3F0FF; }
.a-seg__input:focus-visible + .a-seg__opt { outline: 3px solid var(--a-focus); outline-offset: 2px; }

/* ---------- Plano de manutenção ---------- */
.a-plan { display: flex; flex-direction: column; border-radius: var(--a-r-lg); overflow: hidden; border: 1px solid var(--a-line); background: rgba(8, 20, 48, .8); }
.a-plan > li + li { border-top: 1px solid var(--a-line-soft); }
.a-plan__row { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.a-plan__head { display: flex; align-items: center; gap: 12px; }
.a-plan__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--a-blue-soft); color: var(--a-blue-text); }
.a-plan__name { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.a-plan__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(2, 8, 24, .5); }
.a-plan__facts dt { font-size: 14px; font-weight: 600; color: var(--a-muted); }
.a-plan__facts dd { font-size: 16px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; }

/* ---------- Garantia legal ---------- */
.a-warranty {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--a-r);
  border: 1px solid rgba(91, 234, 133, .42); background: rgba(91, 234, 133, .08);
}
.a-warranty > .a-ico { width: 26px; height: 26px; color: var(--a-ok); margin-top: 1px; }
.a-warranty strong { display: block; font-size: 17px; font-weight: 800; color: var(--a-ok); }
.a-warranty span { display: block; font-size: 15px; color: var(--a-text-2); }
.a-warranty.is-expired { border-color: var(--a-line-soft); background: rgba(140, 170, 220, .06); }
.a-warranty.is-expired > .a-ico, .a-warranty.is-expired strong { color: var(--a-muted); }

/* ---------- Gastos ---------- */
.a-spend { display: flex; flex-direction: column; gap: 4px; }
.a-spend__label { font-size: 17px; font-weight: 700; color: var(--a-text-2); }
.a-spend__total { font-size: clamp(40px, 12vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: #fff; }
.a-spend__total small { font-size: .5em; font-weight: 700; color: var(--a-text-2); margin-right: 4px; letter-spacing: 0; }
.a-spend__sub { font-size: 16px; color: var(--a-muted); }

/* gráfico de barras de 12 meses: parte visual aria-hidden + tabela em <details> */
.a-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; height: 168px; padding-top: 8px; }
.a-bars__col { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; height: 100%; }
.a-bars__track { position: relative; border-bottom: 1px solid var(--a-line); }
.a-bars__track::before {
  /* linha de média (posição: --m na .a-bars) */
  content: ""; position: absolute; left: -3px; right: -3px; bottom: calc(var(--m, 0) * 1%); border-top: 1px dashed rgba(201, 210, 224, .35);
}
.a-bars__bar {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 22px);
  /* mês zerado (--v: 0) = sem barra; valores pequenos ganham no mínimo 3px */
  height: calc(var(--v, 0) * 1%); min-height: calc(min(var(--v, 0), 1) * 3px); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #3FB6FF, #1E9BFF 45%, #0A6CFF);
}
.a-bars__col.is-current .a-bars__bar { background: linear-gradient(180deg, #CFEFFF, #3FB6FF 35%, #1E9BFF); box-shadow: 0 0 16px rgba(63, 182, 255, .7); }
.a-bars__m { font-size: 14px; font-weight: 700; color: var(--a-muted); text-align: center; text-transform: uppercase; }
.a-bars__col.is-current .a-bars__m { color: #fff; }
.a-bars__details { border-top: 1px solid var(--a-line-soft); padding-top: 4px; }
.a-bars__details > summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none;
  color: var(--a-blue-text); font-weight: 700; font-size: 17px;
}
.a-bars__details > summary::-webkit-details-marker { display: none; }
.a-bars__details > summary .a-ico { transition: transform .2s var(--a-ease); }
.a-bars__details[open] > summary .a-ico { transform: rotate(90deg); }
.a-mtable { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.a-mtable th, .a-mtable td { padding: 9px 0; border-bottom: 1px solid var(--a-line-soft); text-align: left; font-weight: 500; }
.a-mtable td { text-align: right; font-weight: 700; }
.a-mtable tr.is-current > * { color: var(--a-blue-text); font-weight: 800; }

/* mão de obra × peças */
.a-split { display: flex; flex-direction: column; gap: 14px; }
.a-split__bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: rgba(140, 170, 220, .15); gap: 2px; }
.a-split__part { flex: 0 1 var(--w, 50%); min-width: 4px; }
.a-split__part--labor { background: linear-gradient(180deg, #3FB6FF, #0A6CFF); }
.a-split__part--parts { background: repeating-linear-gradient(135deg, var(--a-silver) 0 6px, var(--a-silver-2) 6px 10px); }
.a-split__legend { display: flex; flex-direction: column; gap: 10px; }
.a-split__legend > div { display: flex; align-items: center; gap: 12px; }
.a-split__key { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.a-split__key--labor { background: #1E9BFF; }
.a-split__key--parts { background: repeating-linear-gradient(135deg, var(--a-silver) 0 4px, var(--a-silver-2) 4px 7px); }
.a-split__legend dt { flex: 1; display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--a-text-2); }
.a-split__legend dd { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-split__legend dd small { font-size: 15px; font-weight: 600; color: var(--a-muted); margin-left: 6px; }

/* ---------- Documentos e vencimentos ---------- */
.a-docs { display: flex; flex-direction: column; border-radius: var(--a-r-lg); overflow: hidden; border: 1px solid var(--a-line); background: rgba(8, 20, 48, .8); }
.a-docs > li + li { border-top: 1px solid var(--a-line-soft); }
.a-doc { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 14px 14px 14px 16px; }
.a-doc__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(201, 210, 224, .1); color: var(--a-silver); }
.a-doc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.a-doc__name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.a-doc__date { font-size: 15px; color: var(--a-text-2); font-variant-numeric: tabular-nums; }
.a-doc .a-btn { flex: none; }

/* ---------- Alertas: filtros, resumo e categorias ---------- */
.a-chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--a-pad)); padding: 2px calc(var(--a-pad) + 22px) 4px var(--a-pad);
  scroll-padding-inline: var(--a-pad);
}
.a-chips::-webkit-scrollbar { display: none; }

/* ---------- Pista de rolagem horizontal (chips de Alertas e abas internas) ----------
   Esmaece a borda onde ainda há conteúdo. Onde o navegador entende scroll-driven animation,
   o esmaecimento acompanha a rolagem (some no início/fim e não aparece se tudo couber).
   Sem esse recurso: esmaecimento fixo só na direita, em telas estreitas. */
@property --a-fl { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --a-fr { syntax: "<length>"; inherits: false; initial-value: 0px; }
.a-chips, .a-subnav {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--a-fl), #000 calc(100% - var(--a-fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--a-fl), #000 calc(100% - var(--a-fr)), transparent 100%);
}
@media (max-width: 520px) {
  .a-chips { --a-fr: 40px; }
  .a-subnav { --a-fr: 30px; }
}
@supports (animation-timeline: scroll()) {
  .a-chips, .a-subnav { --a-fr: 0px; animation: a-edge-fade linear both; animation-timeline: scroll(self inline); }
  .a-chips { --a-edge: 40px; }
  .a-subnav { --a-edge: 30px; }
}
@keyframes a-edge-fade {
  0%   { --a-fl: 0px; --a-fr: var(--a-edge, 32px); }
  8%   { --a-fl: var(--a-edge, 32px); }
  92%  { --a-fr: var(--a-edge, 32px); }
  100% { --a-fl: var(--a-edge, 32px); --a-fr: 0px; }
}
.a-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 16px 0 13px;
  border-radius: 999px; border: 1.5px solid var(--a-line); background: rgba(8, 20, 48, .7);
  color: var(--a-text-2); font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.a-chip .a-ico { width: 19px; height: 19px; }
.a-chip:hover { border-color: var(--a-blue-text); }
.a-chip[aria-pressed="true"] { background: linear-gradient(180deg, #2A8DFF, var(--a-blue)); border-color: transparent; color: #fff; font-weight: 800; box-shadow: var(--a-glow); }
.a-lastcheck {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line-soft); background: rgba(8, 20, 48, .7); font-size: 16px; color: var(--a-text-2);
}
.a-lastcheck > .a-ico { width: 26px; height: 26px; color: var(--a-blue-text); }
.a-lastcheck > span { flex: 1; min-width: 0; }
.a-lastcheck strong { color: var(--a-text); }
.a-notice__cat { font-size: 14px; font-weight: 700; color: var(--a-muted); }
.a-notice__ico--oficina { --nc: #7DB8FF; }
.a-notice__ico--manutencao { --nc: #6FD3FF; }
.a-notice__ico--seguranca { --nc: var(--a-warn); }
.a-notice__ico--documentos { --nc: var(--a-silver); }
.a-notice__ico[class*="--"] { color: var(--nc); background: color-mix(in srgb, var(--nc) 14%, transparent); }

/* ---------- Detalhe de alerta ---------- */
.a-detail { display: flex; flex-direction: column; gap: 22px; }
.a-detail__hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.a-detail__ico {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: #fff;
  background: linear-gradient(160deg, #3A9BFF, var(--a-blue) 55%, #0B4FCF); box-shadow: var(--a-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.a-detail__ico .a-ico { width: 34px; height: 34px; }
.a-detail__cat { font-size: 16px; font-weight: 700; color: var(--a-blue-text); }
.a-detail__sec { display: flex; flex-direction: column; gap: 10px; }
.a-detail__sec > p { font-size: 18px; color: var(--a-text-2); }

/* ---------- Checklist de viagem ---------- */
.a-progress { display: flex; flex-direction: column; gap: 8px; }
.a-progress__txt { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; color: var(--a-text-2); }
.a-progress__txt strong { color: #fff; font-variant-numeric: tabular-nums; }
.a-progress__bar { height: 12px; border-radius: 999px; background: rgba(140, 170, 220, .18); overflow: hidden; }
.a-progress__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--a-blue-deep), #4EA4FF); box-shadow: 0 0 12px rgba(60, 150, 255, .6); transition: width .3s var(--a-ease); }
.a-trip { display: flex; flex-direction: column; gap: 10px; }
.a-trip__item {
  margin: 0; min-width: 0; padding: 14px; border-radius: 18px;
  border: 1px solid var(--a-line-soft); background: rgba(8, 20, 48, .75);
}
.a-trip__item > legend { float: left; width: 100%; padding: 0; } /* float = legenda dentro da caixa */
.a-trip__name { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.a-trip__desc { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--a-muted); }
.a-trip__opts { clear: both; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
.a-trip__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.a-trip__opt {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 10px;
  border-radius: var(--a-r); border: 2px solid var(--a-field-line); background: rgba(2, 8, 24, .6);
  color: var(--a-text-2); font-size: 17px; font-weight: 700; cursor: pointer;
}
.a-trip__opt .a-ico { width: 22px; height: 22px; stroke-width: 2.3; }
.a-trip__opt--ok { --c: var(--a-ok); }
.a-trip__opt--att { --c: var(--a-warn); }
.a-trip__input:checked + .a-trip__opt { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 15%, #04102A); font-weight: 800; }
.a-trip__input:focus-visible + .a-trip__opt { outline: 3px solid var(--a-focus); outline-offset: 2px; }
.a-savebar {
  position: sticky; bottom: 0; z-index: 10; margin: 8px calc(-1 * var(--a-pad)) 0;
  padding: 14px var(--a-pad) calc(14px + var(--a-safe-b));
  background: linear-gradient(180deg, rgba(3, 10, 28, 0), rgba(3, 10, 28, .94) 28%);
}
.a-main--tabs .a-savebar { bottom: calc(var(--a-tabbar-h) + var(--a-safe-b)); padding-bottom: 14px; }

/* ---------- Interruptor (checkbox com role="switch") ---------- */
.a-switches { display: flex; flex-direction: column; border-radius: var(--a-r-lg); overflow: hidden; border: 1px solid var(--a-line); background: rgba(8, 20, 48, .8); }
.a-switches > li + li { border-top: 1px solid var(--a-line-soft); }
.a-switch { position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; cursor: pointer; }
.a-switch:hover { background: rgba(20, 119, 255, .07); }
.a-switch__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.a-switch__txt strong { font-size: 17px; font-weight: 700; }
.a-switch__txt small { font-size: 15px; color: var(--a-muted); }
.a-switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.a-switch__ui {
  position: relative; flex: none; width: 62px; height: 36px; border-radius: 999px;
  background: #1A2747; border: 2px solid #6F7FA0; transition: background-color .2s, border-color .2s;
}
.a-switch__ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #C9D3E6; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: transform .2s var(--a-ease), background-color .2s;
}
.a-switch__input:checked + .a-switch__ui { background: var(--a-blue); border-color: #8CC4FF; box-shadow: 0 0 14px rgba(20, 119, 255, .55); }
.a-switch__input:checked + .a-switch__ui::after {
  transform: translateX(26px);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231477FF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.a-switch__input:focus-visible + .a-switch__ui { outline: 3px solid var(--a-focus); outline-offset: 3px; }

/* ---------- Pedido aguardando a oficina ---------- */
.a-pending {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px;
  border-radius: var(--a-r-lg); border: 2px dashed rgba(140, 170, 220, .38); background: rgba(6, 16, 40, .55);
}
.a-pending__txt { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.a-pending__txt strong { font-size: 17px; }
.a-pending__txt span { font-size: 15px; color: var(--a-muted); }

/* ---------- Próxima troca: anel + texto (v1) ---------- */
.a-next { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--a-r); background: rgba(3, 9, 24, .55); border: 1px solid var(--a-line-soft); --a-ring-c: var(--a-ok); }
.a-next.is-soon { --a-ring-c: var(--a-warn); }
.a-next.is-late { --a-ring-c: var(--a-danger); }
.a-ring {
  --p: 0; flex: none; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--a-ring-c) calc(var(--p) * 1%), rgba(140, 170, 220, .2) 0);
}
.a-ring > span { width: 52px; height: 52px; border-radius: 50%; background: #071330; display: grid; place-content: center; text-align: center; font-size: 19px; font-weight: 800; line-height: 1; }
.a-ring small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--a-text-2); }
.a-next__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-next__label { font-size: 15px; color: var(--a-muted); }
.a-next__when { font-size: 17px; font-weight: 700; }
.a-next__state { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--a-ring-c); }
.a-next__state .a-ico { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- Situações da OS (5) ---------- */
.a-status {
  --c: var(--a-neutral);
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px;
  font-size: 15px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.a-status .a-ico { width: 18px; height: 18px; stroke-width: 2.4; }
.a-status--orcamento { --c: var(--a-warn); }
.a-status--na-oficina { --c: #7DB8FF; }
.a-status--pronto { --c: var(--a-ok); }
.a-status--entregue { --c: var(--a-neutral); }
.a-status--recusado { --c: var(--a-danger); }

/* ---------- Lista de serviços (OS) ---------- */
.a-oslist { display: flex; flex-direction: column; border-radius: var(--a-r-lg); overflow: hidden; border: 1px solid var(--a-line); background: rgba(8, 20, 48, .8); }
.a-oslist > li + li { border-top: 1px solid var(--a-line-soft); }
.a-osrow { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 14px 14px 16px; color: var(--a-text); text-decoration: none; }
.a-app a.a-osrow { color: var(--a-text); }
.a-osrow:hover, .a-osrow:active { background: rgba(20, 119, 255, .1); }
.a-osrow:focus-visible { outline-offset: -3px; }
.a-osrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.a-osrow__date { font-size: 18px; font-weight: 800; }
.a-osrow__meta { font-size: 15px; color: var(--a-muted); }
.a-osrow__total { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-osrow > .a-ico { color: var(--a-blue-text); }
.a-osrow .a-status { white-space: normal; }

/* ---------- Tabela de itens e valores ---------- */
.a-items { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.a-items th, .a-items td { padding: 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--a-line-soft); }
.a-items thead th { padding-top: 0; font-size: 14px; font-weight: 700; color: var(--a-muted); text-transform: uppercase; letter-spacing: .08em; }
.a-items td small { display: block; margin-top: 2px; font-size: 15px; color: var(--a-muted); }
.a-items .a-num { padding-left: 12px; text-align: right; }
.a-items__group th { padding-top: 18px; font-size: 15px; font-weight: 800; color: var(--a-blue-text); border-bottom-color: var(--a-line); }
.a-items tfoot th { font-weight: 600; color: var(--a-text-2); }
.a-items tfoot tr:first-child > * { border-top: 2px solid var(--a-line); }
.a-items__disc > * { color: var(--a-ok) !important; font-weight: 700; }
.a-items__total > * { padding-top: 14px; border-bottom: 0; font-size: 23px; font-weight: 800 !important; color: #fff !important; }

/* ---------- Condições do orçamento ---------- */
.a-terms { display: flex; flex-direction: column; border-radius: var(--a-r); border: 1px solid var(--a-line-soft); background: rgba(3, 9, 24, .5); }
.a-terms__row { display: flex; gap: 12px; padding: 12px 14px; }
.a-terms__row + .a-terms__row { border-top: 1px solid var(--a-line-soft); }
.a-terms dt { flex: 0 0 104px; font-size: 15px; font-weight: 600; color: var(--a-muted); }
.a-terms dd { flex: 1; min-width: 0; font-weight: 600; }

/* ---------- Oficina ---------- */
.a-shop { display: flex; flex-direction: column; gap: 12px; }
.a-shop__name { font-size: 19px; font-weight: 800; }
.a-shop__addr { font-size: 16px; color: var(--a-text-2); }
.a-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a-actions .a-btn { flex-direction: column; gap: 4px; min-height: 76px; padding: 8px 4px; font-size: 15px; white-space: normal; text-align: center; }

/* ---------- Botões ---------- */
.a-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--a-tap); padding: 0 22px; border-radius: var(--a-r); border: 2px solid transparent;
  font-size: 18px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: filter .15s, background-color .15s, border-color .15s, transform .06s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.a-btn:active { transform: translateY(1px); }
.a-btn .a-ico { width: 22px; height: 22px; }
.a-btn--primary {
  background: linear-gradient(90deg, var(--a-blue-bright) 0%, var(--a-blue) 55%, var(--a-blue-deep) 100%);
  color: #fff; font-weight: 800; text-shadow: 0 1px 1px rgba(0, 30, 90, .45);
  box-shadow: var(--a-glow), 0 0 0 1px rgba(120, 190, 255, .35) inset, inset 0 1px 0 rgba(255, 255, 255, .3);
}
.a-btn--primary::before {
  /* reflexo de cima */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 52%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04));
}
.a-btn--primary:hover { filter: brightness(1.1); color: #fff; }
.a-btn--lg { min-height: 60px; font-size: 20px; border-radius: 16px; }
.a-btn--lg .a-ico { width: 26px; height: 26px; }
.a-btn--secondary { background: rgba(10, 40, 100, .32); border-color: var(--a-blue-text); color: #DCEBFF; }
.a-btn--secondary:hover { background: rgba(20, 110, 255, .3); color: #fff; }
.a-btn--danger { background: var(--a-danger-solid); color: #fff; }
.a-btn--danger:hover { filter: brightness(1.1); color: #fff; }
.a-btn--danger-outline { background: transparent; border-color: rgba(255, 138, 147, .6); color: var(--a-danger); }
.a-btn--danger-outline:hover { background: rgba(255, 90, 102, .14); }
.a-btn--link { min-height: 48px; padding: 0 6px; background: none; color: var(--a-blue-text); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.a-btn--whatsapp { background: var(--a-wa); color: var(--a-wa-text); font-weight: 800; }
.a-btn--whatsapp:hover { filter: brightness(1.06); color: var(--a-wa-text); }
/* respostas da autoavaliação */
.a-btn--ok { background: rgba(91, 234, 133, .12); border-color: rgba(91, 234, 133, .7); color: var(--a-ok); font-weight: 800; }
.a-btn--ok:hover { background: rgba(91, 234, 133, .2); }
.a-btn--warn { background: rgba(255, 200, 97, .12); border-color: rgba(255, 200, 97, .7); color: var(--a-warn); font-weight: 800; }
.a-btn--warn:hover { background: rgba(255, 200, 97, .2); }
.a-btn--ghost { background: transparent; border-color: var(--a-line-soft); color: var(--a-text-2); }
.a-btn--ghost:hover { background: rgba(140, 170, 220, .1); }
.a-btn--block { display: flex; width: 100%; }
.a-btn--sm { min-height: 48px; padding: 0 16px; font-size: 16px; }
.a-btn[disabled], .a-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.a-btn[aria-busy="true"] { cursor: progress; }
.a-btns { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Formulário ---------- */
.a-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.a-label { font-size: 17px; font-weight: 700; color: var(--a-text); }
.a-input {
  width: 100%; min-height: 58px; padding: 0 16px; border-radius: var(--a-r);
  border: 2px solid var(--a-field-line); background: var(--a-field); color: var(--a-text);
  font-size: 18px; transition: border-color .15s, box-shadow .15s;
}
.a-input::placeholder { color: #8592AC; }
.a-input:focus { outline: none; border-color: var(--a-blue-text); box-shadow: 0 0 0 4px rgba(20, 119, 255, .3), 0 0 18px rgba(20, 119, 255, .3); }
.a-input[type="date"] { color-scheme: dark; padding-right: 10px; }
.a-input--plate { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 28px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.a-input--big { min-height: 72px; font-size: 34px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.a-input[aria-invalid="true"] { border-color: var(--a-danger); }
.a-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(255, 90, 102, .28); }
.a-help { font-size: 15px; color: var(--a-muted); }
.a-error { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 700; color: var(--a-danger); }
.a-error .a-ico { width: 20px; height: 20px; margin-top: 1px; stroke-width: 2.4; }
.a-error:empty { display: none; }
/* campo com ícone à esquerda e/ou sufixo à direita */
.a-inputwrap { position: relative; }
.a-inputwrap__ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--a-text-2); pointer-events: none; }
.a-inputwrap > .a-input { padding-left: 54px; }
.a-inputwrap__suffix { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--a-muted); pointer-events: none; }
.a-inputwrap > .a-input--big { padding-left: 18px; padding-right: 64px; }
.a-inputwrap > .a-inputwrap__ico ~ .a-input--big { padding-left: 54px; }
/* senha com mostrar/ver */
.a-pass { position: relative; }
.a-pass .a-input { padding-right: 112px; }
.a-pass__toggle {
  position: absolute; top: 3px; right: 3px; bottom: 3px; min-width: 96px; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: 10px; background: transparent; color: var(--a-blue-text);
  font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.a-pass__toggle::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1.5px; background: rgba(90, 169, 255, .45); }
.a-pass__toggle:hover { background: rgba(20, 119, 255, .14); }
.a-pass__toggle[aria-pressed="true"] { color: #fff; }
.a-check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 6px 0; font-size: 17px; cursor: pointer; }
.a-check input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--a-blue); cursor: pointer; }

/* ---------- Caixa de aviso ---------- */
.a-alert {
  --c: #7DB8FF;
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--a-r);
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 11%, #061230); color: var(--a-text); font-size: 17px; text-align: left;
}
.a-alert > .a-ico { width: 26px; height: 26px; margin-top: 1px; color: var(--c); stroke-width: 2.2; }
.a-alert > div { flex: 1; min-width: 0; }
.a-alert__title { display: block; font-weight: 800; color: var(--c); margin-bottom: 2px; }
.a-alert ul { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; padding-left: 20px; list-style: disc; }
.a-alert--info { --c: #7DB8FF; }
.a-alert--ok { --c: var(--a-ok); }
.a-alert--warn { --c: var(--a-warn); }
.a-alert--error { --c: var(--a-danger); }

/* ---------- Estado vazio ---------- */
.a-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 4px; text-align: center; }
.a-empty__art { width: 168px; height: auto; filter: drop-shadow(0 10px 24px rgba(20, 119, 255, .3)); }
.a-empty .a-lead { max-width: 34ch; }
.a-steps { counter-reset: a-step; align-self: stretch; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; text-align: left; }
.a-steps li {
  counter-increment: a-step; display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: var(--a-r); background: rgba(8, 20, 48, .8); border: 1px solid var(--a-line-soft); font-size: 17px;
}
.a-steps li::before {
  content: counter(a-step); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, #2A8DFF, var(--a-blue-deep)); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 14px -6px rgba(20, 119, 255, .9);
}

/* ---------- Carregando (skeleton) ---------- */
.a-skel {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, rgba(120, 160, 230, .12) 25%, rgba(120, 160, 230, .24) 50%, rgba(120, 160, 230, .12) 75%);
  background-size: 300% 100%; animation: a-shimmer 1.4s ease-in-out infinite;
}
.a-skel--line { height: 16px; width: 70%; }
.a-skel--title { height: 24px; width: 55%; }
.a-skel--plate { height: 36px; width: 108px; border-radius: 5px; }
.a-skel--card { height: 210px; width: 100%; border-radius: var(--a-r-lg); }
@keyframes a-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Sem internet ---------- */
.a-offline {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: calc(10px + var(--a-safe-t)) var(--a-pad) 10px;
  background: #3A2A06; border-bottom: 2px solid var(--a-warn); color: #FFE7B3; font-size: 16px; font-weight: 600;
}
.a-offline > .a-ico { color: var(--a-warn); width: 24px; height: 24px; }
.a-offline > span { flex: 1 1 180px; }
.a-offline .a-btn { min-height: 48px; padding: 0 14px; font-size: 16px; background: transparent; border-color: var(--a-warn); color: #FFE7B3; }

/* ---------- Lista de avisos / alertas ---------- */
.a-notices { display: flex; flex-direction: column; gap: 10px; }
.a-notice {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--a-r-lg);
  border: 1px solid var(--a-line-soft); background: rgba(8, 20, 48, .6); color: var(--a-text-2); text-decoration: none;
}
.a-app a.a-notice { color: var(--a-text-2); }
a.a-notice:hover { border-color: var(--a-line); }
a.a-notice:active { background: rgba(20, 119, 255, .1); }
.a-notice__ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(140, 170, 220, .12); color: var(--a-muted); }
.a-notice__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.a-notice__body strong { font-size: 17px; font-weight: 600; color: var(--a-text-2); }
.a-notice__body p { font-size: 16px; }
.a-notice__time { font-size: 14px; color: var(--a-muted); }
.a-new { display: none; align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--a-blue); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.a-notice.is-unread {
  background: linear-gradient(160deg, rgba(22, 80, 190, .32), rgba(8, 22, 56, .92));
  border-color: rgba(90, 169, 255, .6); color: var(--a-text);
  box-shadow: 0 0 22px rgba(20, 119, 255, .14);
}
.a-app a.a-notice.is-unread { color: var(--a-text); }
.a-notice.is-unread::before {
  /* ponto azul de "não lido" (o texto "Novo" acompanha) */
  content: ""; position: absolute; top: 18px; right: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--a-blue-text); box-shadow: 0 0 10px rgba(90, 169, 255, .9);
}
.a-notice.is-unread .a-notice__ico:not([class*="--"]) { background: var(--a-blue-soft); color: var(--a-blue-text); }
.a-notice.is-unread .a-notice__body strong { font-weight: 800; color: #fff; }
.a-notice.is-unread .a-new { display: inline-block; }

/* ---------- Abertura (v1; usa o mesmo fundo do Entrar) ---------- */
.a-splash {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
  padding: calc(32px + var(--a-safe-t)) var(--a-pad) calc(28px + var(--a-safe-b));
}
.a-splash__icon { width: 104px; height: 104px; border-radius: 26px; filter: drop-shadow(0 0 18px rgba(30, 130, 255, .55)) drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.a-splash__tagline { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--a-text-2); }
.a-splash .a-h1 { max-width: 16ch; margin-top: 8px; }
.a-splash .a-btns { width: 100%; max-width: 420px; margin-top: 12px; }
.a-tip { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--a-r); background: rgba(8, 20, 48, .7); border: 1px solid var(--a-line-soft); font-size: 15px; color: var(--a-text-2); text-align: left; }
.a-tip .a-ico { color: var(--a-blue-text); }

/* ---------- Menu (Conta) ---------- */
.a-menu { display: flex; flex-direction: column; border-radius: var(--a-r-lg); overflow: hidden; border: 1px solid var(--a-line); background: rgba(8, 20, 48, .8); }
.a-menu > li + li { border-top: 1px solid var(--a-line-soft); }
.a-menu__item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 12px 16px;
  border: 0; background: none; color: var(--a-text); font-size: 17px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.a-app a.a-menu__item { color: var(--a-text); }
.a-menu__item > .a-ico:first-child { color: var(--a-blue-text); }
.a-menu__item > span { flex: 1; min-width: 0; }
.a-menu__item > span small { display: block; font-size: 15px; font-weight: 500; color: var(--a-muted); }
.a-menu__item > .a-ico:last-child { color: var(--a-muted); }
.a-menu__item:hover, .a-menu__item:active { background: rgba(20, 119, 255, .1); }
.a-menu__item:focus-visible { outline-offset: -3px; }
.a-menu__item--danger, .a-menu__item--danger > .a-ico:first-child { color: var(--a-danger); }

/* ---------- Folha inferior (bottom sheet) — usar <dialog> + showModal() ---------- */
.a-sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: var(--a-col); max-height: 90dvh; overflow-y: auto;
  padding: 10px calc(var(--a-pad) + var(--a-safe-r)) calc(22px + var(--a-safe-b)) calc(var(--a-pad) + var(--a-safe-l));
  border: 1px solid var(--a-line-glow); border-bottom: 0; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #0D1F4A, #071330 40%); color: var(--a-text);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, .6), 0 -1px 24px rgba(20, 119, 255, .22);
}
.a-sheet[open] { animation: a-sheet-in .26s var(--a-ease); }
.a-sheet::backdrop { background: rgba(1, 5, 15, .74); }
.a-sheet__handle { width: 44px; height: 5px; margin: 0 auto 16px; border-radius: 999px; background: rgba(200, 215, 240, .35); }
.a-sheet__title { font-size: 23px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.a-sheet__body { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; font-size: 17px; color: var(--a-text-2); }
.a-sheet__body ul { display: flex; flex-direction: column; gap: 8px; }
.a-sheet__body li { display: flex; gap: 10px; }
.a-sheet__body li .a-ico { color: var(--a-muted); width: 20px; height: 20px; margin-top: 2px; }
.a-sheet__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--a-r); background: rgba(3, 9, 24, .6); border: 1px solid var(--a-line); color: var(--a-text); }
.a-sheet__sum strong { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes a-sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Toast ---------- */
.a-toasts {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--a-tabbar-h) + 14px + var(--a-safe-b));
  width: calc(100% - 2 * var(--a-pad)); max-width: calc(var(--a-col) - 2 * var(--a-pad));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.a-toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--a-r);
  background: #0B1835; border: 1.5px solid color-mix(in srgb, var(--c, var(--a-blue)) 55%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55); font-size: 17px; font-weight: 600; pointer-events: auto;
  animation: a-toast-in .22s var(--a-ease);
}
.a-toast > .a-ico { color: var(--c, var(--a-blue-text)); stroke-width: 2.4; }
.a-toast--ok { --c: var(--a-ok); }
.a-toast--error { --c: var(--a-danger); }
@keyframes a-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   v3 — NEON LEGÍVEL (2026-11-16)
   Mesma identidade (marinho #030A1C, azul #1477FF, prata, Saira/Figtree),
   com um ciano neon (#3DD8FF) nos detalhes e leitura facilitada para
   pessoas idosas: letra base 18px, secundários mais claros, alvos maiores,
   cartões de fundo sólido (texto não fica sobre brilho).
   ===================================================================== */
:root {
  --a-neon: #3DD8FF;
  --a-neon-2: #00A3FF;
  --a-neon-soft: rgba(61, 216, 255, .16);
  --a-neon-line: rgba(61, 216, 255, .55);
  --a-blue-text: #6CC8FF;
  --a-text-2: #E1E8F4;
  --a-muted: #BAC6DC;            /* ~9:1 sobre os cartões */
  --a-line: rgba(90, 180, 255, .38);
  --a-line-soft: rgba(120, 165, 230, .24);
  --a-surface-card: #0A1736;
  --a-focus: #7FE6FF;
  --a-r: 16px;
  --a-r-lg: 22px;
  --a-tap: 58px;
  --a-tabbar-h: 82px;
  --a-glow: 0 8px 22px -8px rgba(0, 163, 255, .9), 0 0 18px rgba(61, 216, 255, .35);
  --a-shadow: 0 14px 30px -14px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.a-app { font-size: 18px; line-height: 1.55; caret-color: var(--a-neon); }
.a-app ::selection { background: rgba(61, 216, 255, .38); color: #fff; }
.a-app { scrollbar-color: #2A6FB8 transparent; }
/* fundo: brilho no topo + grade neon bem leve que some para baixo */
body.a-app::before {
  background:
    radial-gradient(520px 300px at 50% -60px, rgba(0, 163, 255, .30), transparent 70%),
    linear-gradient(rgba(61, 216, 255, .10) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(61, 216, 255, .10) 1px, transparent 1px) 0 0 / 36px 100%,
    linear-gradient(180deg, #06143A, var(--a-bg) 46%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 30%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .55) 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 30%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .55) 100%);
}

/* tipografia maior e mais firme */
.a-h1 { font-size: 30px; }
.a-h2 { font-size: 23px; }
.a-hello .a-h1 { font-size: 30px; }
.a-hello__sub { font-size: 17px; color: var(--a-text-2); }
.a-ico { stroke-width: 2.2; }

/* cartões: fundo sólido, borda neon fina e um filete de luz no topo */
.a-card {
  padding: 20px; border: 1.5px solid var(--a-line);
  background: linear-gradient(180deg, #0D1D44 0%, var(--a-surface-card) 55%);
}
.a-card::after {
  content: ""; position: absolute; top: -2px; left: 18%; right: 18%; height: 3px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--a-neon) 25%, #DFF9FF 50%, var(--a-neon) 75%, transparent);
  box-shadow: 0 0 14px rgba(61, 216, 255, .7);
}
.a-card--flat::after { display: none; }
.a-card--flat { background: var(--a-surface-card); }

/* seletor de veículo */
.a-vswitch__opt { min-height: 66px; font-size: 17px; border-width: 2px; background: var(--a-surface-card); }
.a-vswitch__name small { font-size: 15px; }
.a-vswitch__opt[aria-pressed="true"] {
  border-color: var(--a-neon); background: linear-gradient(180deg, #0F2C66, #0A1C48);
  box-shadow: 0 0 0 3px var(--a-neon-soft), 0 10px 24px -12px rgba(0, 163, 255, .9);
}
.a-vswitch__check { color: var(--a-neon); width: 24px; height: 24px; }

/* painel do carro: quilometragem grande, mostrador com luz neon */
.a-car { gap: 16px; }
.a-car::before { border-bottom-color: rgba(61, 216, 255, .35); border-left-color: rgba(61, 216, 255, .14); box-shadow: 0 0 70px rgba(0, 163, 255, .25); }
.a-car__model { font-size: 25px; }
.a-car__ver { font-size: 17px; color: var(--a-text-2); }
.a-car__km {
  padding: 16px; background: #050F2B; border: 1.5px solid var(--a-neon-line);
  box-shadow: inset 0 0 26px rgba(0, 163, 255, .14), 0 0 0 4px rgba(61, 216, 255, .05);
}
.a-car__kmlabel { font-size: 16px; color: var(--a-text-2); font-weight: 600; }
.a-car__kmval { font-size: 40px; color: #fff; text-shadow: 0 0 18px rgba(61, 216, 255, .45); }
.a-car__kmval small { font-size: 20px; color: var(--a-neon); text-shadow: none; }
.a-car__kmnote { font-size: 15px; }
.a-car__shop { font-size: 17px; }
.a-car__shop .a-ico { color: var(--a-neon); }

/* destaque (orçamento esperando / carro pronto): o "momento" do app —
   um brilho que respira devagar chamando a atenção (desliga com movimento reduzido) */
.a-highlight {
  min-height: 84px; padding: 14px 14px 14px 16px; border-width: 2px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 20%, #071535), #071535 75%);
  animation: a-call 2.8s ease-in-out infinite;
}
@keyframes a-call {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 0%, transparent), 0 0 18px color-mix(in srgb, var(--c) 16%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 0 30px color-mix(in srgb, var(--c) 30%, transparent); }
}
.a-highlight__ico { width: 50px; height: 50px; border-radius: 15px; background: var(--c); color: #1B1300; }
.a-highlight--pronto .a-highlight__ico { color: #03240F; }
.a-highlight__ico .a-ico { width: 27px; height: 27px; stroke-width: 2.4; }
.a-highlight__txt strong { font-size: 19px; }
.a-highlight__txt span { font-size: 16px; color: var(--a-text); }
.a-highlight > .a-ico:last-child { width: 26px; height: 26px; stroke-width: 2.6; }

/* situações (Em dia / Chegando / Vencido) */
.a-state, .a-status { font-size: 16px; padding: 5px 12px 5px 9px; border-width: 1.5px; }
.a-state .a-ico, .a-status .a-ico { width: 19px; height: 19px; }

/* cuidados em dia */
.a-care__score b { font-size: 50px; text-shadow: 0 0 20px rgba(61, 216, 255, .4); }
.a-care__meter { gap: 6px; }
.a-care__seg { height: 14px; }
.a-care__seg.is-ok { box-shadow: 0 0 12px rgba(91, 234, 133, .55); }
.a-care__seg.is-soon { box-shadow: 0 0 12px rgba(255, 200, 97, .45); }
.a-care__seg.is-late { box-shadow: 0 0 12px rgba(255, 138, 147, .5); }
.a-care__ico { width: 48px; height: 48px; border-radius: 14px; }
.a-care__ico .a-ico { width: 25px; height: 25px; }
.a-care__item { padding: 14px 0; }
.a-care__name { font-size: 18px; }
.a-care__meta { font-size: 16px; }

/* alerta do dia */
.a-daily { border-color: var(--a-neon-line); background: radial-gradient(260px 160px at 100% 0%, rgba(0, 163, 255, .22), transparent 70%), linear-gradient(180deg, #0D1F4A, var(--a-surface-card) 60%); }
.a-daily__ico { width: 56px; height: 56px; background: linear-gradient(160deg, var(--a-neon), var(--a-neon-2) 50%, var(--a-blue-deep)); }
.a-daily__meta strong { font-size: 18px; color: var(--a-neon); }
.a-daily__meta span { font-size: 16px; }
.a-daily__title { font-size: 24px; }
.a-daily__q { font-size: 19px; }

/* atalhos, menus, listas */
.a-shortcut { border: 1.5px solid var(--a-line); background: var(--a-surface-card); }
.a-shortcut__ico, .a-plan__ico { background: var(--a-neon-soft); color: var(--a-neon); border-color: rgba(61, 216, 255, .35); }
.a-shortcut__txt { font-size: 18px; }
.a-shortcut__txt small { font-size: 15px; }
.a-menu, .a-docs, .a-plan, .a-switches, .a-oslist { background: var(--a-surface-card); border-width: 1.5px; }
.a-menu__item { min-height: 68px; font-size: 18px; }
.a-menu__item > .a-ico:first-child { color: var(--a-neon); width: 24px; height: 24px; }
.a-menu__item > span small { font-size: 16px; }
.a-osrow__date, .a-osrow__total { font-size: 19px; }
.a-osrow__meta, .a-doc__date { font-size: 16px; }
.a-doc__name { font-size: 19px; }
.a-switch__txt strong { font-size: 18px; }
.a-switch__txt small { font-size: 16px; }
.a-switch__input:checked + .a-switch__ui { background: var(--a-neon-2); border-color: var(--a-neon); box-shadow: 0 0 16px rgba(61, 216, 255, .55); }

/* abas internas, filtros e segmentados: ativo em neon */
.a-subnav__opt { min-height: 50px; font-size: 17px; }
.a-chip { min-height: 50px; font-size: 17px; border-width: 2px; background: var(--a-surface-card); }
.a-chip .a-ico { width: 21px; height: 21px; }
.a-app a.a-subnav__opt[aria-current="page"], .a-subnav__opt[aria-current="page"],
.a-chip[aria-pressed="true"], .a-seg__input:checked + .a-seg__opt {
  background: linear-gradient(180deg, #1FA8FF, var(--a-blue) 60%, var(--a-blue-deep));
  box-shadow: 0 0 0 2px rgba(61, 216, 255, .55), var(--a-glow);
}

/* avisos */
.a-notice { padding: 18px; border-width: 1.5px; background: var(--a-surface-card); }
.a-notice__ico { width: 50px; height: 50px; }
.a-notice__body strong { font-size: 18px; }
.a-notice__body p { font-size: 17px; }
.a-notice__time, .a-notice__cat { font-size: 15px; }
.a-notice.is-unread { border-color: var(--a-neon-line); background: linear-gradient(180deg, #0F2558, var(--a-surface-card) 70%); box-shadow: 0 0 22px rgba(0, 163, 255, .16); }
.a-notice.is-unread::before { width: 12px; height: 12px; background: var(--a-neon); box-shadow: 0 0 12px var(--a-neon); }
.a-new { font-size: 14px; padding: 3px 10px; background: var(--a-neon); color: #02182E; }
.a-lastcheck { font-size: 17px; background: var(--a-surface-card); border: 1.5px solid var(--a-line); }
.a-lastcheck > .a-ico { color: var(--a-neon); }

/* gastos */
.a-spend__total { font-size: clamp(44px, 13vw, 56px); text-shadow: 0 0 24px rgba(61, 216, 255, .35); }
.a-spend__sub { font-size: 17px; color: var(--a-text-2); }
.a-bars { height: 180px; gap: 6px; }
.a-bars__bar { background: linear-gradient(180deg, var(--a-neon), var(--a-neon-2) 45%, var(--a-blue-deep)); box-shadow: 0 0 10px rgba(0, 163, 255, .35); }
.a-bars__col.is-current .a-bars__bar { background: linear-gradient(180deg, #E6FBFF, var(--a-neon) 35%, var(--a-neon-2)); box-shadow: 0 0 18px rgba(61, 216, 255, .85); }
.a-bars__m { font-size: 15px; color: var(--a-text-2); }
.a-bars__col.is-current .a-bars__m { color: var(--a-neon); }
.a-bars__details > summary, .a-mtable { font-size: 18px; }
.a-split__part--labor, .a-split__key--labor { background: linear-gradient(180deg, var(--a-neon), var(--a-neon-2)); }
.a-split__legend dt, .a-split__legend dd { font-size: 18px; }

/* botões: maiores e com a luz neon na borda */
.a-btn { font-size: 19px; border-radius: 16px; }
.a-btn .a-ico { width: 24px; height: 24px; }
.a-btn--primary {
  background: linear-gradient(90deg, #12A0FF 0%, #0A78FF 45%, var(--a-blue-deep) 100%);
  box-shadow: 0 10px 24px -10px rgba(0, 163, 255, .95), 0 0 22px rgba(61, 216, 255, .3), 0 0 0 1.5px rgba(160, 235, 255, .55) inset, inset 0 1px 0 rgba(255, 255, 255, .3);
}
.a-btn--secondary { background: rgba(0, 120, 255, .14); border-color: var(--a-neon); color: #E6FAFF; box-shadow: 0 0 14px rgba(61, 216, 255, .18); }
.a-btn--secondary:hover { background: rgba(0, 163, 255, .26); }
.a-btn--link { color: var(--a-neon); font-size: 18px; }
.a-btn--sm { min-height: 50px; font-size: 17px; }
.a-btn--lg { min-height: 64px; font-size: 21px; }

/* campos */
.a-label { font-size: 18px; }
.a-input { min-height: 60px; font-size: 19px; }
.a-input::placeholder { color: #95A2BC; }
.a-input:focus { border-color: var(--a-neon); box-shadow: 0 0 0 4px rgba(61, 216, 255, .28), 0 0 20px rgba(0, 163, 255, .35); }
.a-help { font-size: 16px; }
.a-alert { font-size: 18px; }

/* cabeçalhos */
.a-topbar::after, .a-header::after { background: linear-gradient(90deg, transparent, var(--a-neon-line), transparent); }
.a-header__title { font-size: 21px; }
.a-back { color: var(--a-neon); font-size: 18px; }

/* barra de abas: maior, rótulo sempre legível, aba ativa acesa em neon */
.a-tabbar {
  padding-top: 8px; background: linear-gradient(180deg, rgba(7, 19, 50, .98), rgba(3, 10, 28, .99));
  border-top: 1.5px solid rgba(61, 216, 255, .35);
}
.a-tabbar::before { background: linear-gradient(90deg, transparent, var(--a-neon), transparent); height: 2px; top: -1.5px; }
.a-tab { min-height: 68px; font-size: 16px; color: var(--a-text-2); }
.a-tab .a-ico { width: 28px; height: 28px; }
.a-tab[aria-current="page"] { color: var(--a-neon); }
.a-tab[aria-current="page"] > .a-ico {
  background: linear-gradient(180deg, #1FA8FF, var(--a-blue) 60%, var(--a-blue-deep));
  box-shadow: 0 0 0 2px rgba(61, 216, 255, .6), var(--a-glow);
}
.a-tab__badge { min-width: 26px; height: 26px; line-height: 26px; font-size: 15px; background: #FF3B55; box-shadow: 0 0 0 2px #040C20, 0 0 12px rgba(255, 59, 85, .6); }

/* marca oficial (recortes da arte) nas telas de entrada — layout da referência de login */
.a-marca { gap: 0; }
.a-marca .a-marca__gota { width: min(52vw, 210px); height: auto; margin-bottom: calc(min(52vw, 210px) * -.07); filter: drop-shadow(0 0 28px rgba(0, 140, 255, .35)); }
.a-marca .a-marca__nome { width: min(80vw, 330px); height: auto; }
.a-login:not(.a-login--sub) .a-marca .a-login__tagline { margin-top: -4px; }
.a-login--sub .a-marca { flex-direction: column; gap: 0; }
.a-login--sub .a-marca .a-marca__gota { width: 120px; margin-bottom: -10px; }
.a-login--sub .a-marca .a-marca__nome { width: 200px; }
@media (max-height: 700px) { .a-marca .a-marca__gota { width: 150px; } .a-marca .a-marca__nome { width: 270px; } }
.a-login__alt { justify-content: center; }
.a-login__alt a { color: #4FBAFF; }
.a-login__site { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; width: auto !important; min-height: 48px; margin-top: 4px; padding: 0 12px; color: #4FBAFF; font-size: 18px; font-weight: 700; text-decoration: none; }
.a-login__site:hover { text-decoration: underline; text-underline-offset: 4px; }
.a-login__site .a-ico { width: 22px; height: 22px; stroke-width: 2.4; }
.a-login__foot { line-height: 1.5; }

/* toque de luz ao apertar (todos os botões e cartões clicáveis) */
.a-btn:focus-visible, a.a-card:focus-visible, .a-highlight:focus-visible { outline-color: var(--a-focus); }

/* =====================================================================
   ABERTURA ANIMADA (index.html #intro, controlada por intro() em app.js)
   Linha do tempo (~3,3 s):
   0,10 s  gota acende (sobe, cresce e ganha foco)
   0,55 s  LUBTEC se revela da esquerda para a direita
   1,00 s  cometa de luz sai de trás da gota, contorna a faixa prata
   2,15 s  brilho na ponta da faixa (o risco sobre o TEC já vem da arte)
   3,50 s  tela some (o app já está carregado por baixo)
   ===================================================================== */
.a-intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  /* fundo da arte: preto nas bordas, brilho azul no centro */
  background: radial-gradient(80% 34% at 50% 45%, #02185A 0%, #010F3C 38%, #010624 66%, #000 100%);
  --u: calc(min(100vw, 560px) / 1080);   /* 1 px da arte (1080 de largura) */
  transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}
.a-intro::before {
  /* halo azul atrás da marca: acende junto com a gota */
  content: ""; position: absolute; left: 50%; top: 44%; width: 120vmin; height: 120vmin; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 120, 255, .30), rgba(0, 90, 255, .08) 55%, transparent);
  animation: ai-halo 1.4s cubic-bezier(.16, 1, .3, 1) both;
}
.a-intro.is-saindo { opacity: 0; transform: scale(1.04); filter: blur(4px); pointer-events: none; }
.a-intro__stage { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -6vh; }
.a-intro__mark { position: relative; width: calc(var(--u) * 500); aspect-ratio: 1000 / 780; animation: ai-drop .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
.a-intro__drop { width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(0, 140, 255, .4)); }
.a-intro__light { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen; mix-blend-mode: plus-lighter; pointer-events: none; }
.a-intro__glow, .a-intro__core { fill: none; stroke-linecap: round; opacity: 0; }
/* cometa = rastro largo e borrado + núcleo branco, com a "cabeça" alinhada (offset do núcleo = do rastro - 12) */
.a-intro__glow { stroke: #6FE6FF; stroke-width: 52; stroke-dasharray: 26 220; stroke-dashoffset: 26; animation: ai-glow 1.45s cubic-bezier(.45, 0, .3, 1) 1s both; }
.a-intro__core { stroke: #fff; stroke-width: 12; stroke-dasharray: 14 220; stroke-dashoffset: 14; animation: ai-core 1.45s cubic-bezier(.45, 0, .3, 1) 1s both; }
.a-intro__flare { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ai-flare .9s cubic-bezier(.16, 1, .3, 1) 2.15s both; }
.a-intro__word { position: relative; width: calc(var(--u) * 720); height: auto; margin-top: calc(var(--u) * -15); animation: ai-word .8s cubic-bezier(.16, 1, .3, 1) .55s both; }
@keyframes ai-halo { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes ai-drop { from { opacity: 0; transform: translateY(18px) scale(.86); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-word { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-10px); } to { opacity: 1; clip-path: inset(-20% -20% -20% -20%); transform: none; } }
@keyframes ai-glow {
  0% { stroke-dashoffset: 26; opacity: 0; }
  10% { opacity: 1; }
  86% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes ai-core {
  0% { stroke-dashoffset: 14; opacity: 0; }
  10% { opacity: 1; }
  86% { opacity: 1; }
  100% { stroke-dashoffset: -112; opacity: 0; }
}
@keyframes ai-flare { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 35% { opacity: 1; transform: scale(1.15) rotate(0); } 100% { opacity: 0; transform: scale(.9) rotate(10deg); } }
@keyframes ai-streak { 0% { opacity: 0; transform: scaleX(0); } 40% { opacity: 1; transform: scaleX(1); } 100% { opacity: .55; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  /* sem cometa: mostra a marca parada e sai */
  .a-intro__glow, .a-intro__core, .a-intro__flare { display: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .a-app *, .a-app *::before, .a-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .a-skel { animation: none; background: rgba(120, 160, 230, .16); }
  /* o esmaecimento das bordas segue a rolagem (não é movimento): mantém */
  .a-app .a-chips, .a-app .a-subnav { animation-duration: auto !important; }
}

/* ---------- Alto contraste do sistema (Windows) ---------- */
@media (forced-colors: active) {
  .a-tab[aria-current="page"] > .a-ico, .a-status, .a-state, .a-btn, .a-new, .a-notice.is-unread,
  .a-chip[aria-pressed="true"], .a-vswitch__opt[aria-pressed="true"], .a-subnav__opt[aria-current="page"] { border: 2px solid CanvasText; }
  .a-seg__input:checked + .a-seg__opt, .a-trip__input:checked + .a-trip__opt { outline: 3px solid Highlight; }
  .a-switch__ui { border-color: CanvasText; }
  .a-switch__input:checked + .a-switch__ui { background: Highlight; }
  .a-logo .a-lub, .a-logo .a-tec { color: CanvasText; background: none; }
  .a-input:focus { outline: 3px solid Highlight; }
  .a-bars__bar, .a-care__seg.is-ok, .a-split__part { background: CanvasText; }
}

/* ---------- lista de escolha (UF) no padrão dos campos ---------- */
.a-app select.a-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233dd8ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
.a-app select.a-select option { background: #06123a; color: #fff; }

/* ---------- v5: várias oficinas, diretório, venda do carro ---------- */
.a-h2__sub { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; color: var(--a-muted); }
.a-h3 { font-size: 18px; font-weight: 800; line-height: 1.3; margin-top: 6px; }
.a-pending--fim { border-style: solid; border-color: rgba(255, 200, 97, .45); }

/* Histórico por oficina: um cartão por oficina, o escolhido aceso */
.a-shops { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--a-r-lg); border: 1px solid var(--a-line); background: rgba(8, 20, 48, .8); }
.a-shops__t { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--a-text); }
.a-shops__t .a-ico { color: var(--a-neon, var(--a-blue-text)); }
.a-shops__list { display: grid; gap: 8px; }
.a-shops__opt { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 44px 12px 14px; border-radius: 14px; border: 1.5px solid var(--a-line-soft); background: rgba(2, 8, 24, .55); color: var(--a-text); text-decoration: none; }
.a-shops__opt b { font-size: 17px; }
.a-shops__opt span { font-size: 15px; color: var(--a-muted); }
.a-shops__opt:hover { border-color: var(--a-line); }
.a-shops__opt[aria-current="true"] { border-color: var(--a-neon, #3DD8FF); background: rgba(20, 119, 255, .2); box-shadow: 0 0 0 1px var(--a-neon-line, rgba(61, 216, 255, .55)), 0 0 18px rgba(61, 216, 255, .18); }
.a-shops__check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--a-neon, #3DD8FF); opacity: 0; }
.a-shops__opt[aria-current="true"] .a-shops__check { opacity: 1; }
.a-shops__nota { font-size: 14px; color: var(--a-muted); }

/* Diretório de oficinas */
.a-dir__filtros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.a-dir__list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.a-dir__opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 44px 12px 14px; border-radius: 14px; border: 1.5px solid var(--a-line-soft); background: rgba(2, 8, 24, .55); cursor: pointer; }
.a-dir__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a-dir__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-dir__txt b { font-size: 17px; color: var(--a-text); }
.a-dir__txt span { font-size: 15px; color: var(--a-muted); }
.a-dir__check { position: absolute; right: 14px; width: 22px; height: 22px; color: var(--a-neon, #3DD8FF); opacity: 0; }
.a-dir__opt:has(input:checked) { border-color: var(--a-neon, #3DD8FF); background: rgba(20, 119, 255, .2); box-shadow: 0 0 0 1px var(--a-neon-line, rgba(61, 216, 255, .55)); }
.a-dir__opt:has(input:checked) .a-dir__check { opacity: 1; }
.a-dir__opt:has(input:focus-visible) { outline: 3px solid var(--a-focus); outline-offset: 2px; }

/* Serviço de antes da compra e código de transferência */
.a-osrow__prev { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #FFE2A8; background: rgba(255, 200, 97, .14); border: 1px solid rgba(255, 200, 97, .45); }
.a-techlist { display: flex; flex-direction: column; border-radius: var(--a-r-lg); border: 1px solid var(--a-line); background: rgba(8, 20, 48, .8); }
.a-techlist li { padding: 14px 16px; font-size: 17px; }
.a-techlist li + li { border-top: 1px solid var(--a-line-soft); }
.a-code { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.a-code__v { font: 800 38px/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; color: #fff; padding: 14px 18px; border-radius: 14px; background: rgba(2, 8, 24, .7); border: 1.5px solid var(--a-neon-line, rgba(61, 216, 255, .55)); text-shadow: 0 0 14px rgba(61, 216, 255, .45); }
@media (max-width: 360px) { .a-dir__filtros { grid-template-columns: minmax(0, 1fr); } .a-code__v { font-size: 30px; } }
