:root {
  --fundo: #111318;
  --superficie: #1b1e25;
  --superficie-2: #252932;
  --borda: #333846;
  --texto: #f3f4f6;
  --suave: #a3a9b6;
  --amarelo: #ffb020;
  --vermelho: #e5383b;
  --vermelho-escuro: #b3191d;
  --verde: #2bb673;
  --azul: #4d9fff;
  --raio: 16px;
  --topo: 56px;
  --abas: 64px;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
a { color: var(--azul); }
h1, h2 { margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
p { margin: 8px 0; }
.suave { color: var(--suave); }
.pequeno { font-size: 13px; }
.centro { text-align: center; }
.erro { color: #ff7b7d; font-weight: 600; }
.aviso { background: #3a2e12; border: 1px solid #6b5216; color: #ffd68a; padding: 10px 12px; border-radius: 10px; font-size: 14px; }

/* ---------- Topo ---------- */
#topo {
  position: sticky; top: 0; z-index: 1000;
  height: calc(var(--topo) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 10px 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(17, 19, 24, 0.96); border-bottom: 1px solid var(--borda);
}
.marca { display: flex; align-items: center; gap: 8px; min-width: 0; }
.marca > div { min-width: 0; }
.marca strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca img { border-radius: 7px; }
.marca strong { display: block; font-size: 16px; line-height: 1.1; }
.marca small { display: block; color: var(--amarelo); font-weight: 700; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.indicadores { display: flex; align-items: center; gap: 6px; }
.pilula {
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--superficie-2); color: var(--suave); border: 1px solid var(--borda); white-space: nowrap;
}
button.pilula { font-family: inherit; cursor: pointer; }
.pilula.online { color: #8ff0bf; border-color: #1f6b47; background: #12301f; }
.pilula.offline { color: #ffd68a; border-color: #6b5216; background: #3a2e12; }
.pilula.pilula-aviso { color: #ffd68a; border-color: #6b5216; background: #3a2e12; }
.pilula.gps-bom { color: #8ff0bf; }
.pilula.gps-ruim { color: #ff9c9e; }
.icone-bt { background: none; border: 0; color: var(--texto); padding: 6px; border-radius: 10px; cursor: pointer; }

#faixa-sim { background: #3b2a6b; color: #ddd0ff; text-align: center; font-size: 12px; font-weight: 700; padding: 4px; letter-spacing: .05em; }

@media (max-width: 440px) {
  body:not(.admin) .marca strong { display: none; }
  body:not(.admin) .marca small { font-size: 15px; }
  .indicadores { gap: 4px; }
  .pilula { padding: 4px 7px; font-size: 11.5px; }
}

/* ---------- Alerta ---------- */
#faixa-alerta {
  position: fixed; left: 10px; right: 10px; top: calc(var(--topo) + env(safe-area-inset-top, 0px) + 8px); z-index: 1500;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--raio);
  background: var(--vermelho); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: piscar 0.9s ease-in-out 3;
}
#faixa-alerta.amarelo { background: #c98100; }
.alerta-icone {
  flex: 0 0 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--vermelho);
  font-size: 34px; font-weight: 900; display: grid; place-items: center;
}
#faixa-alerta.amarelo .alerta-icone { color: #c98100; }
#alerta-titulo { font-size: 24px; font-weight: 900; line-height: 1.1; }
#alerta-sub { font-size: 15px; opacity: .92; }
@keyframes piscar { 50% { filter: brightness(1.35); transform: scale(1.02); } }

/* ---------- Telas ---------- */
main { padding: 12px 12px calc(var(--abas) + var(--seguro-baixo) + 16px); max-width: 640px; margin: 0 auto; }
.tela-cheia { position: fixed; inset: calc(var(--topo) + env(safe-area-inset-top, 0px)) 0 calc(var(--abas) + var(--seguro-baixo)) 0; }
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; margin-bottom: 12px; }
.dicas { padding-left: 20px; margin: 10px 0 16px; color: #d7dbe3; }
.dicas li { margin: 6px 0; }

.entrar { text-align: center; margin-top: 4vh; }
.entrar img { border-radius: 20px; margin-bottom: 8px; }
.entrar form { text-align: left; margin: 20px 0 12px; }
.entrar label { display: block; font-weight: 600; margin-bottom: 6px; }
#campo-codigo {
  width: 100%; font: 700 28px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-align: center;
  padding: 14px; border-radius: 12px; border: 2px solid var(--borda); background: var(--fundo); color: var(--texto); text-transform: uppercase;
}
#campo-codigo:focus { outline: none; border-color: var(--amarelo); }

/* ---------- Botões ---------- */
.bt {
  display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px 16px; margin-top: 10px;
  font-weight: 700; font-size: 17px; line-height: 1.2; font-family: inherit; cursor: pointer;
}
a.bt { text-decoration: none; text-align: center; }
.bt-grande { padding: 18px; font-size: 19px; }
.bt-primario { background: var(--amarelo); color: #1a1300; }
.bt-secundario { background: var(--superficie-2); color: var(--texto); border: 1px solid var(--borda); }
.bt-perigo { background: var(--vermelho); color: #fff; }
.bt-ok { background: var(--verde); color: #04140b; }
.bt-texto { background: none; color: var(--suave); text-decoration: underline; font-weight: 500; }
.bt:active, .bt-buraco:active { transform: scale(0.98); }
.bt[disabled] { opacity: .5; }

.bt-buraco {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 34vh; margin: 12px 0 4px; border: 0; border-radius: 24px; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #ff5a5d, var(--vermelho) 55%, var(--vermelho-escuro));
  color: #fff; box-shadow: 0 8px 0 #7d1013, 0 18px 30px rgba(0,0,0,.45);
  font-family: inherit; touch-action: manipulation; user-select: none;
}
.bt-buraco:active { box-shadow: 0 3px 0 #7d1013; translate: 0 5px; }
.bt-buraco-titulo { font-size: clamp(34px, 11vw, 52px); font-weight: 900; letter-spacing: .02em; }
.bt-buraco-sub { font-size: 15px; opacity: .9; }
.bt-buraco.marcado { background: var(--verde); box-shadow: 0 8px 0 #146b41; }

/* ---------- Painel dirigir ---------- */
.proximo { text-align: center; padding: 16px 16px 12px; }
.proximo .rotulo { color: var(--suave); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.proximo .dist { font-size: clamp(48px, 16vw, 72px); font-weight: 900; line-height: 1.05; margin: 4px 0; font-variant-numeric: tabular-nums; }
.proximo .dist.livre { font-size: 30px; color: #8ff0bf; padding: 10px 0; }
.proximo .dist.perigo { color: #ff6b6e; }
.proximo .info { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.depois { list-style: none; padding: 0; margin: 10px 0 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; color: var(--suave); font-size: 14px; }
.depois li { background: var(--superficie-2); border-radius: 8px; padding: 3px 8px; }
.situacao { text-align: center; color: var(--suave); font-size: 15px; font-variant-numeric: tabular-nums; }

.etq { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--borda); }
.etq.grande { background: #4a1416; border-color: #8a2326; color: #ffb3b4; }
.etq.medio { background: #3a2e12; border-color: #6b5216; color: #ffd68a; }
.etq.pequeno { background: #1d2a3d; border-color: #2c4566; color: #a9cdff; }
.etq.confirmado { color: #ff9c9e; }
.etq.novo { color: #ffd68a; }
.etq.tapado { color: #8ff0bf; }
.etq.pendente { color: #c9b6ff; border-style: dashed; }

/* ---------- Abas ---------- */
#abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  height: calc(var(--abas) + var(--seguro-baixo)); padding-bottom: var(--seguro-baixo);
  display: flex; background: rgba(17, 19, 24, 0.97); border-top: 1px solid var(--borda);
}
.aba {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: 0; color: var(--suave); font-weight: 600; font-size: 12px; line-height: 1; font-family: inherit; cursor: pointer;
}
.aba.ativa { color: var(--amarelo); }

/* ---------- Mapa ---------- */
#mapa { position: absolute; inset: 0; background: #1d2026; }
.mapa-sem { position: absolute; inset: 0; display: grid; place-items: center; color: var(--suave); }
.bt-flutuante {
  position: absolute; right: 12px; bottom: 56px; z-index: 900; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--borda); background: var(--superficie); color: var(--azul); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer;
}
.legenda {
  position: absolute; left: 10px; bottom: 10px; z-index: 900; display: flex; gap: 10px; flex-wrap: wrap;
  background: rgba(27, 30, 37, .92); border: 1px solid var(--borda); border-radius: 10px; padding: 6px 10px; font-size: 12px;
}
.ponto { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 2px solid #fff; }
.ponto.confirmado { background: var(--vermelho); }
.ponto.novo { background: var(--amarelo); }
.ponto.tapado { background: var(--verde); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--superficie); color: var(--texto); }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; }
.leaflet-popup-content img { width: 100%; max-width: 240px; border-radius: 8px; display: block; margin-top: 8px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--suave); }
.leaflet-control-attribution { font-size: 10px; }
.pop-titulo { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.voce { width: 18px; height: 18px; border-radius: 50%; background: var(--azul); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(77,159,255,.3); }

/* ---------- Lista ---------- */
.filtros { display: flex; gap: 8px; margin-bottom: 12px; }
.filtro {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--borda); background: var(--superficie);
  color: var(--suave); font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; cursor: pointer;
}
.filtro.ativo { background: var(--superficie-2); color: var(--texto); border-color: var(--amarelo); }
.filtro span { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--fundo); margin-left: 4px; }
.lista { list-style: none; padding: 0; margin: 0; }
.item {
  display: flex; gap: 12px; align-items: center; background: var(--superficie); border: 1px solid var(--borda);
  border-radius: 14px; padding: 12px; margin-bottom: 8px; cursor: pointer;
}
.item-km { flex: 0 0 72px; text-align: center; }
.item-km b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.item-km small { color: var(--suave); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.item-meio { flex: 1; min-width: 0; }
.item-meio .linha { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.item-meio .det { color: var(--suave); font-size: 13px; }
.item-foto { flex: 0 0 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--superficie-2); }
.pendentes h3 { margin: 0 0 6px; font-size: 16px; }
.pendentes ul { margin: 6px 0; padding-left: 18px; color: var(--suave); font-size: 14px; }

/* ---------- Folha inferior ---------- */
#fundo-folha { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1900; }
.folha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; max-width: 640px; margin: 0 auto;
  background: var(--superficie); border-top: 1px solid var(--borda); border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(16px + var(--seguro-baixo)); box-shadow: 0 -10px 30px rgba(0,0,0,.5);
  animation: subir .18s ease-out;
}
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
.folha h2 { font-size: 22px; }
.folha .grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.folha .grade .bt { margin: 0; padding: 16px 6px; }
.folha .grade .bt.escolhido { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.folha .duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.folha .duas .bt { margin: 0; padding: 20px 8px; font-size: 18px; }
.barra-tempo { height: 4px; background: var(--superficie-2); border-radius: 4px; overflow: hidden; margin-top: 14px; }
.barra-tempo i { display: block; height: 100%; background: var(--amarelo); width: 100%; transform-origin: left; }
.foto-previa { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-top: 10px; }

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: 2100; background: rgba(0,0,0,.45); }
.menu-caixa {
  position: absolute; right: 10px; top: calc(var(--topo) + env(safe-area-inset-top, 0px) + 6px); width: min(300px, calc(100% - 20px));
  background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.menu-usuario { padding: 14px 16px; border-bottom: 1px solid var(--borda); font-weight: 700; }
.menu-usuario small { display: block; color: var(--suave); font-weight: 400; }
.menu-item { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--borda); background: none; color: var(--texto); font-weight: 500; font-size: 16px; line-height: 1.2; font-family: inherit; cursor: pointer; }
.menu-rodape { padding: 10px 16px; color: var(--suave); font-size: 12px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--abas) + var(--seguro-baixo) + 14px); z-index: 2200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
  background: #f3f4f6; color: #111; font-weight: 600; padding: 12px 16px; border-radius: 12px; max-width: calc(100% - 24px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4); text-align: center;
}
#toast.visivel { opacity: 1; transform: translate(-50%, 0); }
#toast.erro { background: #ffd4d5; color: #5c0a0c; }

/* ---------- Escolha de destino ---------- */
.titulo-secao { font-size: 22px; margin: 4px 2px 12px; }
.destinos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.grupo-destinos { color: var(--suave); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 10px 2px 2px; }
.destino {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; padding: 12px 14px; color: var(--texto);
  font-family: inherit;
}
.destino:active { transform: scale(0.99); }
.destino-icone { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie-2); font-size: 20px; }
.destino-icone.cachoeira { background: #12304a; color: #7cc4ff; }
.destino-icone.cidade { background: #3a2e12; color: #ffd68a; }
.destino-icone.vila { background: #12301f; color: #8ff0bf; }
.destino-meio { flex: 1; min-width: 0; }
.destino-nome { display: block; font-weight: 700; font-size: 16px; }
.destino-det { display: block; color: var(--suave); font-size: 13px; }
.destino-dist { color: var(--suave); font-size: 13px; text-align: right; white-space: nowrap; }
.dicas-cartao { margin-top: 14px; }
.dicas-cartao summary { cursor: pointer; font-weight: 600; }

/* ---------- Navegação (tela cheia) ---------- */
#nav { position: fixed; inset: 0; z-index: 1400; background: #18221d; overflow: hidden; user-select: none; }
#nav-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nav-topo { position: absolute; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 0; }
.nav-faixa {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px;
  background: #0f7a45; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.45); min-height: 92px;
}
.nav-faixa.buraco { background: #c62828; }
.nav-faixa.buraco-novo { background: #b26a00; }
.nav-faixa.aviso { background: #8a5a00; }
.nav-faixa.cinza { background: #37404d; }
.nav-faixa.pulsar { animation: piscar 0.9s ease-in-out 3; }
.nav-icone { flex: 0 0 56px; height: 56px; display: grid; place-items: center; }
.nav-icone svg { width: 56px; height: 56px; }
.nav-textos { min-width: 0; flex: 1; }
.nav-dist { font-size: 30px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nav-titulo { font-size: 20px; font-weight: 800; line-height: 1.15; }
.nav-sub { font-size: 14px; opacity: .92; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-depois {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 10px; padding: 6px 12px; border-radius: 0 0 12px 12px;
  background: #0b5c34; color: #e6fff1; font-size: 14px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.nav-status { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.pilula-sim { background: #3b2a6b; color: #ddd0ff; border-color: #5b4aa8; }
.nav-lateral { position: absolute; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 190px); display: flex; flex-direction: column; gap: 10px; }
.nav-redondo {
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(27,30,37,.94); color: var(--texto); box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.nav-redondo.desligado { color: #ff8a8c; }
.nav-vel {
  position: absolute; left: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); width: 66px; height: 66px; border-radius: 50%;
  background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); border: 4px solid #d0d4da;
}
.nav-vel b { font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.nav-vel small { font-size: 10px; font-weight: 700; color: #555; }
.nav-buraco {
  position: absolute; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 104px); width: 112px; height: 112px; border-radius: 50%;
  border: 4px solid #fff; cursor: pointer; color: #fff; font-family: inherit; touch-action: manipulation;
  background: radial-gradient(circle at 50% 35%, #ff5a5d, var(--vermelho) 55%, var(--vermelho-escuro));
  box-shadow: 0 6px 0 #7d1013, 0 12px 28px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.nav-buraco span { font-size: 19px; font-weight: 900; letter-spacing: .02em; }
.nav-buraco small { font-size: 11px; opacity: .9; }
.nav-buraco:active { transform: translateY(4px); box-shadow: 0 2px 0 #7d1013; }
.nav-buraco.marcado { background: var(--verde); box-shadow: 0 6px 0 #146b41; }
.nav-baixo {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); background: var(--superficie);
  border-radius: 20px 20px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.4);
}
.nav-sair {
  flex: 0 0 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #3a1416; color: #ff8a8c;
}
.nav-resumo { flex: 0 0 auto; }
.nav-tempo { font-size: 26px; font-weight: 900; color: #3ddc84; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nav-detalhe { color: var(--suave); font-size: 14px; font-variant-numeric: tabular-nums; }
.nav-onde { flex: 1; min-width: 0; text-align: right; }
.nav-destino { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-local { color: var(--amarelo); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.navegando #topo, body.navegando #abas { display: none; }
body.navegando .folha { z-index: 2000; }
.voltar-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--abas) + var(--seguro-baixo) + 70px); z-index: 1200;
  background: #0f7a45; color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 800; font-size: 16px;
  font-family: inherit; box-shadow: 0 6px 18px rgba(0,0,0,.45); cursor: pointer;
}
.item-km small.rod { display: block; color: var(--amarelo); font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: none; }
.item-km b.zona { font-size: 14px; }

/* ---------- Parceiros (abertura do app) ---------- */
.parceiros-sub { margin: -6px 2px 12px; }
.parceiros { display: flex; flex-direction: column; gap: 12px; }
.parceiro { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.parceiro-img { display: block; width: 100%; max-height: 260px; object-fit: cover; background: var(--superficie-2); }
.parceiro-corpo { padding: 14px 16px 16px; }
.parceiro-corpo h3 { margin: 0 0 4px; font-size: 18px; }
.parceiro-corpo p { margin: 0 0 4px; color: #d7dbe3; }
.parceiro-botoes { display: flex; gap: 8px; margin-top: 12px; }
.parceiro-botoes .bt { flex: 1; margin: 0; padding: 12px; font-size: 16px; text-align: center; text-decoration: none; }
.parceiros-acao {
  position: sticky; bottom: 0; margin: 14px -12px 0;
  padding: 12px 12px calc(12px + var(--seguro-baixo)); background: linear-gradient(transparent, var(--fundo) 30%);
}
.parceiros-acao .bt { margin: 0; }

/* ---------- Foto de perfil ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-grid; place-items: center; }
.avatar-vazio { background: var(--superficie-2); color: var(--suave); border: 1px solid var(--borda); }
.avatar-vazio svg { width: 60%; height: 60%; }
.avatar-grande { width: 148px; height: 148px; border: 3px solid var(--amarelo); }
.perfil-previa { display: flex; justify-content: center; margin: 18px 0; }
.perfil-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.perfil-botoes .bt { margin: 0; cursor: pointer; }
.menu-usuario { display: flex; align-items: center; gap: 12px; }

/* Crédito do desenvolvedor (topo da tela de parceiros) */
.credito-dev {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 16px;
  background: var(--superficie); border: 1px solid var(--amarelo); border-radius: var(--raio);
}
.credito-dev small { display: block; color: var(--amarelo); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.credito-dev h3 { margin: 2px 0 0; font-size: 20px; line-height: 1.2; }
.avatar-dev { width: 84px; height: 84px; border: 3px solid var(--amarelo); }
