/* ConectCar (devcar) — estilo base das telas de autenticacao
   Paleta: grafite + fundo neutro + azul de sinalizacao (rota/GPS) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --grafite: #14181F;
    --texto-secundario: #5B6472;
    --fundo: #F7F7F5;
    --superficie: #FFFFFF;
    --borda: #E4E6EA;
    --azul: #2451E0;
    --azul-escuro: #1B3BAD;
    --verde: #1C8A5A;
    --verde-bg: #E9F7EF;
    --vermelho: #C93B3B;
    --vermelho-bg: #FBEBEB;
    --ambar-bg: #FFF6E5;
    --ambar-texto: #8A5A00;
    --raio: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--fundo);
    color: var(--grafite);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ---------- Marca / sinalizador ---------- */

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.marca-nome {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sinalizador {
    position: relative;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.sinalizador::before,
.sinalizador::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--azul);
}

.sinalizador::before {
    animation: pulso 1.8s ease-out infinite;
}

@keyframes pulso {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sinalizador::before { animation: none; opacity: 0; }
}

/* ---------- Card ---------- */

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 28px 24px;
}

.auth-card h1 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

/* ---------- Formulario ---------- */

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--texto-secundario);
    margin-bottom: 6px;
}

.campo {
    margin-bottom: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--grafite);
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

input:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(36, 81, 224, 0.12);
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--azul);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 4px;
}

button[type="submit"]:hover {
    background: var(--azul-escuro);
}

button[type="submit"]:focus-visible {
    outline: 2px solid var(--azul-escuro);
    outline-offset: 2px;
}

/* botao secundario (ex: reenviar email) */
.btn-secundario {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--grafite);
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 8px;
    cursor: pointer;
}

.btn-secundario:hover {
    border-color: var(--texto-secundario);
}

.btn-secundario:disabled {
    color: var(--texto-secundario);
    background: var(--fundo);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ---------- Mensagens ---------- */

.alerta {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.alerta-sucesso {
    background: var(--verde-bg);
    color: var(--verde);
}

.alerta-erro {
    background: var(--vermelho-bg);
    color: var(--vermelho);
}

.alerta-erro ul {
    margin: 0;
    padding-left: 18px;
}

.alerta-aviso {
    background: var(--ambar-bg);
    color: var(--ambar-texto);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 18px;
}

.alerta-aviso p {
    margin: 0 0 10px;
    font-size: 13.5px;
    line-height: 1.5;
}

/* ---------- Rodape do card / links ---------- */

.auth-rodape {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--texto-secundario);
}

.auth-rodape a,
a.link {
    color: var(--azul);
    text-decoration: none;
    font-weight: 500;
}

.auth-rodape a:hover,
a.link:hover {
    text-decoration: underline;
}

.input-codigo {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 10px;
    padding: 12px 12px 12px 22px; /* compensa o letter-spacing pra centralizar visualmente */
}

/* ---------- Checklist de senha (aparece so durante o foco) ---------- */

.checklist-senha {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.checklist-senha.visivel {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
}

.checklist-item {
    font-size: 12px;
    color: var(--texto-secundario);
    background: var(--fundo);
    border: 1px solid var(--borda);
    border-radius: 20px;
    padding: 3px 10px 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.checklist-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--texto-secundario);
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.checklist-item.ok {
    color: var(--verde);
    background: var(--verde-bg);
    border-color: transparent;
}

.checklist-item.ok::before {
    background: var(--verde);
}

.linha-dupla {
    display: flex;
    gap: 10px;
}

.linha-dupla .campo {
    flex: 1;
}

.campo-oculto {
    display: none;
}

/* ---------- Autocomplete customizado ---------- */

.campo-autocomplete-wrapper {
    position: relative;
}

input:disabled {
    background: var(--fundo);
    color: var(--texto-secundario);
    cursor: not-allowed;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 10px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(20, 24, 31, 0.1);
    z-index: 30;
}

.autocomplete-dropdown.aberto {
    display: block;
}

.autocomplete-item {
    padding: 11px 14px;
    font-size: 14.5px;
    color: var(--grafite);
    cursor: pointer;
    transition: background 0.1s ease;
}

.autocomplete-item:not(:last-child) {
    border-bottom: 1px solid var(--fundo);
}

.autocomplete-item:hover {
    background: var(--fundo);
}

/* ---------- Subpagina (header com voltar) ---------- */

.topo-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--borda);
    background: var(--superficie);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topo-sub h1 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.btn-voltar {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grafite);
    flex-shrink: 0;
}

.btn-voltar svg {
    width: 20px;
    height: 20px;
}

/* ---------- Select ---------- */

.campo-select {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--grafite);
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.campo-select:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(36, 81, 224, 0.12);
}

/* ---------- Carrossel de fotos ---------- */

.label-com-contador {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.label-com-contador label {
    margin-bottom: 0;
}

.contador-fotos {
    font-size: 12px;
    font-weight: 600;
    color: var(--texto-secundario);
    background: var(--fundo);
    border: 1px solid var(--borda);
    border-radius: 20px;
    padding: 2px 9px;
}

.grid-fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.foto-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--borda);
    touch-action: none;
    cursor: grab;
}

.foto-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.foto-tile.arrastando {
    opacity: 0.5;
    cursor: grabbing;
    z-index: 5;
}

.badge-capa {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--azul);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
}

.btn-remover-foto {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(20, 24, 31, 0.65);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.foto-tile-adicionar {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1.5px dashed var(--borda);
    background: var(--fundo);
    color: var(--texto-secundario);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.foto-tile-adicionar svg {
    width: 24px;
    height: 24px;
}

.foto-tile-adicionar:hover {
    border-color: var(--azul);
    color: var(--azul);
}

/* ---------- Previa de fotos ---------- */

.previa-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.miniatura-foto {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--borda);
}

/* ---------- Alternador de visualizacao (card/lista) ---------- */

.cabecalho-estoque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cabecalho-estoque .saudacao {
    margin: 0;
}

.alternar-visualizacao {
    display: flex;
    background: var(--fundo);
    border: 1px solid var(--borda);
    border-radius: 8px;
    padding: 2px;
}

.btn-visualizacao {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--texto-secundario);
    cursor: pointer;
}

.btn-visualizacao svg {
    width: 16px;
    height: 16px;
}

.btn-visualizacao.ativo {
    background: var(--superficie);
    color: var(--azul);
    box-shadow: 0 1px 2px rgba(20, 24, 31, 0.08);
}

/* ---------- Modo lista (tabela, uma linha por veiculo) ---------- */

.lista-estoque.modo-lista {
    flex-direction: column;
    gap: 0;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    overflow: hidden;
}

.lista-estoque.modo-lista .card-veiculo {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--borda);
    padding: 10px 14px;
    align-items: center;
}

.lista-estoque.modo-lista .card-veiculo:last-child {
    border-bottom: none;
}

.lista-estoque.modo-lista .card-veiculo:hover,
.lista-estoque.modo-lista .card-veiculo:active {
    transform: none;
    background: var(--fundo);
}

.lista-estoque.modo-lista .card-veiculo-foto {
    display: none;
}

.lista-estoque.modo-lista .card-veiculo-info {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.lista-estoque.modo-lista .card-veiculo-titulo {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.lista-estoque.modo-lista .card-veiculo-trim {
    display: none;
}

.lista-estoque.modo-lista .card-veiculo-specs {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.lista-estoque.modo-lista .card-veiculo-rodape {
    flex: 0 0 auto;
    margin: 0;
    gap: 10px;
}

.lista-estoque.modo-lista .card-veiculo-preco {
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- Painel dev: progresso FIPE ---------- */

.lista-progresso-fipe {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.linha-progresso-fipe {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 10px;
    padding: 10px 14px;
}

.linha-progresso-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.linha-progresso-marca {
    font-weight: 600;
}

.linha-progresso-numeros {
    color: var(--texto-secundario);
    font-size: 12px;
}

.barra-progresso {
    height: 6px;
    background: var(--fundo);
    border-radius: 4px;
    overflow: hidden;
}

.barra-progresso-preenchida {
    height: 100%;
    background: var(--azul);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ---------- Exclusao de conta ---------- */

.aviso-exclusao {
    background: var(--vermelho-bg);
    border-radius: var(--raio);
    padding: 16px;
    margin-bottom: 20px;
}

.aviso-exclusao-titulo {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--grafite);
}

.aviso-exclusao p:not(.aviso-exclusao-titulo) {
    font-size: 13.5px;
    color: var(--texto-secundario);
    margin: 0;
    line-height: 1.5;
}

.lista-motivos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-motivo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.item-motivo input {
    width: 17px;
    height: 17px;
    accent-color: var(--azul);
    flex-shrink: 0;
}

.item-motivo:has(input:checked) {
    border-color: var(--azul);
    background: #EEF2FE;
}

.campo-textarea {
    width: 100%;
    padding: 11px 12px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--grafite);
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 8px;
    resize: vertical;
}

.campo-textarea:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(36, 81, 224, 0.12);
}

.btn-perigo {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--vermelho);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 18px;
    transition: background 0.15s ease;
}

.btn-perigo:hover {
    background: #A82F2F;
}

/* ---------- Perfil ---------- */

.cartao-perfil {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 16px;
    margin-bottom: 24px;
}

.avatar-perfil {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.perfil-nome-loja {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.perfil-responsavel {
    font-size: 12.5px;
    color: var(--texto-secundario);
    margin: 2px 0 0;
}

.badge-plano {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-plano-ativo {
    background: var(--verde-bg);
    color: var(--verde);
}

.badge-plano-trial {
    background: var(--ambar-bg);
    color: var(--ambar-texto);
}

.badge-plano-inadimplente,
.badge-plano-cancelado {
    background: var(--vermelho-bg);
    color: var(--vermelho);
}

.lista-info {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    margin-bottom: 24px;
    overflow: hidden;
}

.linha-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fundo);
    font-size: 13.5px;
}

.linha-info:last-child {
    border-bottom: none;
}

.linha-info-label {
    color: var(--texto-secundario);
    flex-shrink: 0;
}

.linha-info-valor {
    text-align: right;
    font-weight: 500;
}

.item-atalho-sair {
    color: var(--vermelho);
}

.item-atalho-sair .icone-atalho {
    color: var(--vermelho);
}

.item-atalho-sair:hover {
    border-color: var(--vermelho);
}

/* ---------- Animacao de "procurando conexao" ---------- */

.buscando-conexao {
    text-align: center;
    padding: 40px 20px 20px;
}

.ilustracao-buscando {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.anel-pulso {
    transform-origin: center;
    transform-box: fill-box;
    opacity: 0;
}

.anel-pulso-1 {
    animation: anelPulso 2.6s ease-out infinite;
}

.anel-pulso-2 {
    animation: anelPulso 2.6s ease-out infinite;
    animation-delay: 1.3s;
}

@keyframes anelPulso {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .anel-pulso { animation: none; opacity: 0; }
}

.buscando-titulo {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}

.buscando-texto {
    font-size: 13.5px;
    color: var(--texto-secundario);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ---------- Cadastro em lote ---------- */

.linha-lote {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 16px;
    margin-bottom: 14px;
}

.linha-lote-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fundo);
}

.linha-lote-numero {
    font-size: 13px;
    font-weight: 600;
    color: var(--texto-secundario);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.linha-lote-remover {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fundo);
    border: none;
    color: var(--vermelho);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.linha-lote-remover svg {
    width: 16px;
    height: 16px;
}

.linha-lote-remover:hover {
    background: var(--vermelho-bg);
}

/* ---------- Topo com acao (botao +) ---------- */

.topo-app-com-acao {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-add-veiculo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-add-veiculo svg {
    width: 18px;
    height: 18px;
}

/* ---------- Estado vazio ---------- */

.estado-vazio {
    text-align: center;
    padding: 48px 20px;
    color: var(--texto-secundario);
    font-size: 14.5px;
}

.estado-vazio .link {
    display: inline-block;
    margin-top: 8px;
}

/* ---------- Cards de veiculo (estoque) ---------- */

.lista-estoque {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-veiculo {
    display: flex;
    gap: 12px;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.card-veiculo:hover {
    transform: scale(1.015);
    border-color: var(--azul);
}

.card-veiculo:active {
    transform: scale(0.98);
    background: #EEF2FE;
    border-color: var(--azul);
}

.card-veiculo-foto {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--fundo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-veiculo-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icone-sem-foto {
    width: 32px;
    height: 32px;
    color: var(--texto-secundario);
    opacity: 0.5;
}

.card-veiculo-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.card-veiculo-titulo {
    font-size: 14.5px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-veiculo-trim {
    font-size: 12px;
    color: var(--texto-secundario);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-veiculo-specs {
    display: flex;
    gap: 8px;
    font-size: 11.5px;
    color: var(--texto-secundario);
    margin: 4px 0;
}

.card-veiculo-rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.card-veiculo-preco {
    font-size: 15px;
    font-weight: 700;
}

.badge-status {
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.badge-status-disponivel {
    background: var(--verde-bg);
    color: var(--verde);
}

.badge-status-reservado {
    background: var(--ambar-bg);
    color: var(--ambar-texto);
}

.badge-status-vendido {
    background: var(--fundo);
    color: var(--texto-secundario);
}

/* ---------- App shell (telas pos-login, com nav inferior) ---------- */

body.tem-nav-inferior {
    padding-bottom: 72px; /* espaco pra nav inferior nao cobrir conteudo */
}

.app-shell {
    max-width: 480px;
    margin: 0 auto;
}

.topo-app {
    padding: 20px 20px 0;
}

.conteudo-app {
    padding: 20px;
}

.saudacao {
    font-size: 20px;
    font-weight: 600;
    margin: 4px 0 20px;
    letter-spacing: -0.01em;
}

/* ---------- Cards de resumo ---------- */

.grade-resumo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}

.card-resumo {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

a.card-resumo:hover {
    transform: scale(1.015);
    border-color: var(--azul);
}

a.card-resumo:active {
    transform: scale(0.98);
    background: #EEF2FE;
}

.card-resumo-numero {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-resumo-label {
    font-size: 12.5px;
    color: var(--texto-secundario);
}

.card-resumo-destaque {
    border-color: var(--azul);
    background: #EEF2FE;
}

.card-resumo-destaque .card-resumo-numero {
    color: var(--azul-escuro);
}

/* ---------- Atalhos ---------- */

.titulo-secao {
    font-size: 13px;
    font-weight: 600;
    color: var(--texto-secundario);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.lista-atalhos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-atalho {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 10px;
    color: var(--grafite);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: border-color 0.15s ease;
}

.item-atalho:hover {
    border-color: var(--azul);
}

.icone-atalho {
    width: 20px;
    height: 20px;
    color: var(--azul);
    flex-shrink: 0;
}

.icone-atalho svg {
    width: 100%;
    height: 100%;
}

/* ---------- Nav inferior fixa ---------- */

.nav-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--superficie);
    border-top: 1px solid var(--borda);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--texto-secundario);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    transition: transform 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.15s ease;
}

.nav-item:hover {
    color: var(--azul);
    transform: scale(1.1);
}

.nav-item:active {
    color: var(--azul-escuro);
    transform: scale(1.18);
}

.nav-item-ativo {
    color: var(--azul);
}

.nav-icone-com-badge {
    position: relative;
}

.badge-notificacao {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vermelho);
    border: 1.5px solid var(--superficie);
}

/* ---------- Painel (pos-login) ---------- */

.painel-shell {
    max-width: 480px;
    margin: 48px auto;
    padding: 0 16px;
}

.painel-shell h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.painel-shell p {
    color: var(--texto-secundario);
    font-size: 14.5px;
    line-height: 1.6;
}
