/* Barueri Digital: app do morador */
body.app-morador { min-height: 100vh; background: var(--fundo); }
.palco { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.celular { width: 100%; min-height: 100vh; background: var(--fundo); position: relative; display: flex; flex-direction: column; }
.palco-lateral { display: none; }

@media (min-width: 760px) {
  body.app-morador {
    background: radial-gradient(800px 500px at 10% 10%, rgba(29, 78, 216, .35), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(16, 185, 129, .3), transparent 60%), var(--marinho);
  }
  body.app-morador::before { content: ''; position: fixed; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
  .palco { flex-direction: row; justify-content: center; gap: 56px; padding: 32px 20px 0; min-height: calc(100vh - 70px); align-items: center; }
  .celular { width: 420px; min-height: 0; height: min(860px, calc(100vh - 80px)); border-radius: 46px; border: 12px solid #0A0F1C; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px #1E293B; overflow: hidden; flex-shrink: 0; }
  .celular::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; background: #0A0F1C; border-radius: 20px; z-index: 50; }
  .palco-lateral { display: block; color: #fff; max-width: 340px; position: relative; z-index: 1; }
  .palco-lateral h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
  .palco-lateral p { color: rgba(255,255,255,.75); }
  .palco-botoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
  .palco-lateral a.btn { height: 44px; padding: 0 16px; border: 1px solid transparent; line-height: 1; }
  .palco-lateral ul { padding-left: 0; list-style: none; margin: 18px 0; display: grid; gap: 10px; }
  .palco-lateral li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.85); font-size: 14px; }
  .palco-lateral li .ic { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.12); color: #6EE7B7; }
  .rodape-palco { color: rgba(255,255,255,.7); position: relative; z-index: 1; }
  .rodape-palco strong { color: #fff; }
  .rodape-palco .assinatura, .rodape-palco .assinatura a:hover { color: rgba(255,255,255,.8); }
  .celular .rodape-app { display: none; }
}
@media (max-width: 759px) { .rodape-palco { display: none; } }

/* Barra fina de atalhos: só no celular, acima do login e da tela logada */
.barra-cel { display: none; }
@media (max-width: 759px) {
  .barra-cel { display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; right: 0; height: 34px; padding: 0 16px; background: var(--marinho); border-bottom: 1px solid rgba(255,255,255,.1); z-index: 70; font-size: 12.5px; font-weight: 600; }
  .barra-cel a { color: rgba(255,255,255,.85); padding: 6px 0; }
  .barra-cel a:hover { color: #fff; }
  .barra-cel .assinatura-cel { color: rgba(255,255,255,.8); font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding: 0 8px; }
  .barra-cel .assinatura-cel strong { color: #fff; font-weight: 700; }
  .celular { padding-top: 34px; }
}

.barra-status { height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 13px; font-weight: 600; background: var(--marinho); color: #fff; }
.barra-status .sinais { display: flex; gap: 6px; align-items: center; }
.barra-status .ic { width: 15px; height: 15px; }
@media (max-width: 759px) { .barra-status { display: none; } }

.conteudo { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 86px; -webkit-overflow-scrolling: touch; }
@media (max-width: 759px) { .conteudo { overflow: visible; } }
.tela { padding: 0 16px 8px; animation: entra .25s ease; }
.cabeca { background: linear-gradient(160deg, var(--marinho), #163B73 70%, #1D4ED8); color: #fff; margin: 0 -16px 16px; padding: 18px 20px 26px; border-radius: 0 0 24px 24px; }
.cabeca .linha { justify-content: space-between; }
.cabeca h2 { font-size: 22px; margin: 0; }
.cabeca p { margin: 2px 0 0; color: rgba(255,255,255,.75); font-size: 13.5px; }
.cabeca .avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-weight: 700; }
.cabeca .voltar { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; padding: 8px; }
.titulo-secao { font-size: 14px; font-weight: 700; margin: 18px 2px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tela .cartao { padding: 16px; margin-bottom: 12px; }

.alerta-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--raio); margin-bottom: 10px; color: var(--texto); box-shadow: var(--sombra); background: #fff; border-left: 4px solid var(--ambar); }
.alerta-card:hover { text-decoration: none; }
.alerta-card .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--ambar-claro); color: #B45309; }
.alerta-card.azul { border-color: var(--azul); } .alerta-card.azul .ic { background: var(--azul-claro); color: var(--azul); }
.alerta-card.vermelho { border-color: var(--vermelho); } .alerta-card.vermelho .ic { background: var(--vermelho-claro); color: #B91C1C; }
.alerta-card b { display: block; font-size: 14px; }
.alerta-card span.t { font-size: 12.5px; color: var(--texto-2); }
.alerta-card > .ic:last-child { margin-left: auto; background: none; color: var(--texto-3); width: 24px; height: 24px; padding: 2px; }

.atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.atalho { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--texto); text-align: center; background: none; border: 0; padding: 0; }
.atalho:hover { text-decoration: none; }
.atalho .ic { width: 52px; height: 52px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--sombra); color: var(--azul); }
.atalho:nth-child(4n+2) .ic { color: #047857; } .atalho:nth-child(4n+3) .ic { color: #B45309; } .atalho:nth-child(4n) .ic { color: #7C3AED; }

.abas { position: absolute; bottom: 0; left: 0; right: 0; height: 74px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--borda); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 40; padding-bottom: 6px; }
@media (max-width: 759px) { .abas { position: fixed; } }
.aba { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--texto-3); }
.aba:hover { text-decoration: none; }
.aba .ic { width: 24px; height: 24px; }
.aba.ativa { color: var(--azul); }
.aba.ativa .ic { background: var(--azul-claro); border-radius: 10px; width: 46px; padding: 2px 11px; }

.lista-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #F1F5F9; }
.lista-item:last-child { border-bottom: 0; }
.lista-item .ic.bola { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #EFF6FF; color: var(--azul); }
.lista-item .txt { flex: 1; min-width: 0; }
.lista-item .txt b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-item .txt span { font-size: 12.5px; color: var(--texto-2); }
a.lista-item { color: inherit; } a.lista-item:hover { text-decoration: none; background: #FAFBFD; }

.grande { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--marinho); }
.destaque-verde { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); border: 1px solid #A7F3D0; }
.parcelas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.parcela { border: 1px solid var(--borda); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; }
.parcela button { border: 0; background: #EEF2FF; color: var(--azul); border-radius: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; }

.pix-box { text-align: center; }
.pix-box svg { border-radius: 10px; border: 1px solid var(--borda); }
.pix-codigo { font-family: ui-monospace, Menlo, monospace; font-size: 11px; background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 8px; padding: 10px; word-break: break-all; text-align: left; margin: 12px 0; }

.selo-bom { display: flex; gap: 14px; align-items: center; }
.selo-bom .medalha { width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--verde), #34D399, var(--verde)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(16,185,129,.35); flex-shrink: 0; }
.selo-bom .medalha .ic { width: 32px; height: 32px; }

.linha-tempo { list-style: none; padding: 0; margin: 10px 0 0; position: relative; }
.linha-tempo li { position: relative; padding: 0 0 14px 28px; font-size: 13px; }
.linha-tempo li::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: -2px; width: 2px; background: var(--borda); }
.linha-tempo li:last-child::before { display: none; }
.linha-tempo li::after { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #CBD5E1; box-sizing: border-box; }
.linha-tempo li.feito::after { background: var(--verde); border-color: var(--verde); }
.linha-tempo li.feito::before { background: var(--verde); }
.linha-tempo li.atual::after { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(29,78,216,.15); }
.linha-tempo li span { display: block; color: var(--texto-3); font-size: 11.5px; }

.foto-preview { margin-top: 8px; border-radius: 10px; max-height: 160px; width: 100%; object-fit: cover; }
.mini-mapa { height: 200px; border-radius: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex-shrink: 0; border: 1px solid var(--borda); background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; text-align: center; color: var(--texto-2); }
.chip b { display: block; font-size: 16px; color: var(--texto); }
.chip.on { border-color: var(--azul); background: var(--azul); color: #fff; }
.chip.on b { color: #fff; }
.horarios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.horario { border: 1px solid var(--borda); background: #fff; border-radius: 8px; padding: 8px 0; font-size: 13px; font-weight: 600; }
.horario:disabled { background: #F8FAFC; color: #CBD5E1; text-decoration: line-through; cursor: not-allowed; }
.horario.on { background: var(--verde); border-color: var(--verde); color: #fff; }
.fila-viva { display: flex; gap: 10px; margin-top: 12px; }
.fila-viva > div { flex: 1; background: #F8FAFC; border-radius: 10px; padding: 10px; text-align: center; font-size: 11.5px; color: var(--texto-2); }
.fila-viva b { display: block; font-size: 22px; color: var(--marinho); }

/* Login */
.login { position: absolute; inset: 0; z-index: 60; background: linear-gradient(170deg, var(--marinho) 0%, #163B73 55%, #1D4ED8 100%); color: #fff; display: flex; flex-direction: column; padding: 70px 28px 28px; overflow-y: auto; }
.login > :first-child { margin-top: auto; }
.login > .acoes { margin-bottom: auto; }
@media (max-width: 759px) { .login { position: fixed; top: 34px; padding-top: 50px; } }
/* só a tela ativa aparece: com o login visível, o conteúdo logado e as abas ficam fora do layout */
.login:not(.oculto) ~ .conteudo, .login:not(.oculto) ~ .abas { display: none; }
.login .marca-simbolo { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; flex-shrink: 0; }
.login .marca-simbolo .ic { width: 34px; height: 34px; }
.login h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.login p { color: rgba(255,255,255,.78); }
.login .acoes { margin-top: 32px; display: grid; gap: 12px; }
.btn-govbr { background: #fff; color: #1351B4; font-weight: 700; border-radius: 999px; padding: 14px; font-size: 16px; border: 0; display: block; width: 100%; text-align: center; }
.btn-govbr .gov { font-weight: 800; letter-spacing: -.02em; }
.btn-govbr .gov i { font-style: normal; color: #F9C10A; }
.btn-govbr .gov u { text-decoration: none; color: #2A9D3F; }
.login .aviso { font-size: 12px; color: rgba(255,255,255,.6); text-align: center; }
.login .vantagens { display: grid; gap: 10px; margin-top: 26px; }
.login .vantagens div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255,255,255,.9); }
.login .vantagens .ic { width: 30px; height: 30px; padding: 6px; background: rgba(255,255,255,.12); border-radius: 8px; color: #6EE7B7; }

.boletim { display: grid; gap: 8px; }
.boletim .linha { font-size: 13px; }
.boletim .linha .barra { flex: 1; }
.boletim .linha span:first-child { width: 90px; }
.boletim .linha b { width: 30px; text-align: right; }
.zona-azul-timer { font-size: 34px; font-weight: 800; text-align: center; color: var(--azul); font-variant-numeric: tabular-nums; }
.rodape-app { padding-bottom: 8px; }
.no-bairro .sub-bairro { display: block; font-size: 13px; }
.no-bairro .lista-item .txt b { white-space: normal; }
.lista-item .ic.bola.feito { background: var(--verde-claro); color: #047857; }
