/* Estilo compartilhado pelas páginas de login, cadastro e admin */
:root{
  --escuro: #343C4C;
  --verde: #88AD36;
  --verde-claro: #A8CC5A;
  --verde-escuro: #5C7A22;
  --verde-suave: #E9F0DA;
  --cinza: #7A8175;
  --claro: #E7EADF;
  --branco: #FFFFFF;
  --fundo: #F6F7F2;
  --marinho-profundo: #171B22;
  --teal: #2E9E8F;
  --teal-suave: #DFF2EF;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--fundo);
  color: var(--escuro);
}

.auth-tela{
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: var(--marinho-profundo);
}

.auth-tela::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, var(--marinho-profundo) 0%, var(--marinho-profundo) 58%, var(--fundo) 58%, var(--fundo) 100%);
  z-index: 0;
}

.auth-card{
  background: var(--branco);
  border-radius: 20px;
  padding: 38px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 1px 2px rgba(23,27,34,.06), 0 30px 60px rgba(23,27,34,.28);
  position: relative;
  z-index: 1;
}

.auth-logo{
  display: block;
  margin: 0 auto 24px;
  height: 56px;              /* 32px de logo + 12px de folga em cima e embaixo */
  background: var(--escuro);
  padding: 12px 20px;
  border-radius: 14px;
}

.logo-admin{ height: 36px; width: auto; display: block; }

.auth-card h1{
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 24px;
}

.campo{ margin-bottom: 16px; }

.campo label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.campo input{
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--claro);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--escuro);
  background: var(--fundo);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.campo input:focus{
  outline: none;
  border-color: var(--verde);
  background: #fff;
  box-shadow: 0 0 0 4px var(--verde-suave);
}

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

.campo-senha-wrapper input{
  padding-right: 42px;
}

.botao-olho{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--cinza);
}

.botao-olho:hover{ color: var(--escuro); }

.botao-olho svg{ width: 20px; height: 20px; }

.botao-olho .icone-olho-fechado{ display: none; }
.botao-olho.ativo .icone-olho-aberto{ display: none; }
.botao-olho.ativo .icone-olho-fechado{ display: block; }

.btn-auth{
  width: 100%;
  padding: 15px;
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.btn-auth:hover{ background: var(--verde-escuro); transform: translateY(-1px); }

.auth-erro{
  background: #FCEBEB;
  color: #9E2A2A;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-link{
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--cinza);
}

.auth-link a{
  color: var(--verde);
  font-weight: 600;
  text-decoration: none;
}

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

/* Modal "Esqueci minha senha" */
.aviso-overlay{
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(23,27,34,.6);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.aviso-overlay.aberto{
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease;
}

.aviso-card{
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 1px 2px rgba(23,27,34,.06), 0 26px 52px rgba(23,27,34,.22);
  transform: scale(.94) translateY(10px);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}

.aviso-overlay.aberto .aviso-card{
  transform: scale(1) translateY(0);
}

.aviso-titulo{
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--escuro);
  margin: 0 0 16px;
}

.aviso-texto-sucesso{
  color: var(--verde-escuro);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.5;
}

.aviso-texto-erro{
  color: #C13B3B;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.5;
}

.aviso-btn-cancelar{
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: none;
  border: none;
  color: var(--cinza);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.aviso-btn-cancelar:hover{ color: var(--escuro); }

/* Painel admin */
.admin-header{
  background: var(--marinho-profundo);
  color: #fff;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.hero-secao{
  background: var(--marinho-profundo);
  padding: 40px 36px 92px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-secao::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 92% 22%, rgba(136,173,54,.5) 0, rgba(136,173,54,.5) 3px, transparent 4px),
    radial-gradient(circle at 84% 55%, rgba(168,204,90,.4) 0, rgba(168,204,90,.4) 2.5px, transparent 3.5px),
    radial-gradient(circle at 96% 70%, rgba(46,158,143,.4) 0, rgba(46,158,143,.4) 2px, transparent 3px);
  pointer-events: none;
}

.hero-secao-conteudo{
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.hero-secao h1{ font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: #fff; }
.hero-secao p{ color: rgba(255,255,255,.6); font-size: 14px; margin: 0; }

.card-flutuante{
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(23,27,34,.07), 0 30px 60px rgba(23,27,34,.16);
  position: relative;
  z-index: 2;
}

.admin-main{
  max-width: 1000px;
  margin: -56px auto 40px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.admin-main h1{ font-size: 22px; margin-bottom: 4px; }
.admin-main p{ color: var(--cinza); font-size: 14px; margin-bottom: 24px; }

.admin-header-direita{
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-nav{
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1.5px solid var(--claro);
}

.admin-nav-link{
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cinza);
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: color .15s ease;
}

.admin-nav-link:hover{ color: var(--escuro); }

.admin-nav-link.ativo{
  color: var(--escuro);
  border-bottom-color: var(--verde);
}

/* Sino de notificações */
.notif-wrapper{ position: relative; }

.btn-notif{
  position: relative;
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.btn-notif:hover{ color: #fff; }
.btn-notif svg{ width: 21px; height: 21px; }

.notif-badge{
  position: absolute;
  top: -4px;
  right: -6px;
  background: #C13B3B;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notif-painel{
  display: block;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23,27,34,.06), 0 26px 52px rgba(23,27,34,.28);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.notif-painel.aberto{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .16s ease, transform .16s ease;
}

.notif-cabecalho{
  padding: 15px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--escuro);
  border-bottom: 1px solid var(--claro);
}

.notif-lista{ display: flex; flex-direction: column; }

.notif-item{
  padding: 13px 16px;
  border-bottom: 1px solid var(--claro);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-item:last-child{ border-bottom: none; }

.notif-item-info{ display: flex; flex-direction: column; gap: 2px; }
.notif-item-info strong{ font-size: 13px; color: var(--escuro); }
.notif-item-info span{ font-size: 11.5px; color: var(--cinza); }

.notif-acoes{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notif-btn-redefinir{
  background: none;
  border: 1.5px solid var(--escuro);
  color: var(--escuro);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.notif-btn-redefinir:hover{ background: var(--escuro); color: #fff; }

.notif-redefinir{
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.notif-nova-senha{
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--claro);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  min-width: 0;
  background: var(--fundo);
}

.notif-nova-senha:focus{ outline: none; border-color: var(--verde); background: #fff; }

.notif-btn-confirmar-senha{
  background: var(--verde);
  color: #fff;
  border: none;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}

.notif-btn-confirmar-senha:hover{ background: var(--verde-escuro); }

.notif-btn-atender{
  align-self: flex-start;
  background: none;
  border: 1.5px solid var(--verde);
  color: var(--verde-escuro);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.notif-btn-atender:hover{ background: var(--verde); color: #fff; }

.notif-vazio{
  padding: 20px 16px;
  font-size: 12.5px;
  color: var(--cinza);
  text-align: center;
}

/* ===== Dashboard ===== */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card{
  background: #fff;
  border: 1px solid var(--claro);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.stat-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(23,27,34,.09); border-color: transparent; }

.stat-card-alerta{ background: #FBEFD6; border-color: #E7B84A; }
.stat-card-alerta .stat-label{ color: #95650B; }
.stat-card-alerta .stat-valor{ color: #7A5A0B; }
.stat-card-alerta .stat-extra{ color: #95650B; }

.stat-label{ font-size: 12.5px; color: var(--cinza); font-weight: 600; }
.stat-valor{ font-size: 29px; font-weight: 800; letter-spacing: -0.02em; color: var(--escuro); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-extra{ font-size: 11.5px; color: var(--cinza); }
.stat-extra.stat-alta{ color: var(--verde-escuro); font-weight: 700; }
.stat-extra.stat-baixa{ color: #C13B3B; font-weight: 700; }

.dashboard-linha{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.card-grafico{
  background: #fff;
  border: 1px solid var(--claro);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.dashboard-linha .card-grafico{ margin-bottom: 0; }

.card-grafico h3{
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--escuro);
}

.canvas-wrapper{ position: relative; height: 240px; }
.canvas-especialidades{ height: 220px; }

.grafico-vazio{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12.5px;
  color: var(--cinza);
  text-align: center;
}

.mini-stats{
  display: flex;
  gap: 12px;
}

.mini-stat{
  flex: 1;
  background: var(--fundo);
  border: 1px solid var(--claro);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-valor{ font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--escuro); font-variant-numeric: tabular-nums; }
.mini-label{ font-size: 11px; color: var(--cinza); font-weight: 600; }

.heatmap-uf{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
}

.heatmap-celula{
  border-radius: 9px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
}

.heatmap-celula strong{ font-size: 12px; }

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

.ranking-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
}

.ranking-item-top{ background: var(--claro); }

.ranking-posicao{
  width: 26px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--cinza);
}

.ranking-item-top .ranking-posicao{ color: var(--verde-escuro); }

.ranking-info{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.ranking-linha-topo{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.ranking-nome{ font-size: 13px; font-weight: 700; color: var(--escuro); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ranking-total{ font-size: 12px; font-weight: 700; color: var(--cinza); white-space: nowrap; }

.ranking-barra{ height: 6px; background: var(--claro); border-radius: 999px; overflow: hidden; }

.ranking-barra-preenchida{ height: 100%; background: var(--verde); border-radius: 999px; }

table.tabela-admin{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--claro);
  border-radius: 14px;
  overflow: hidden;
}

table.tabela-admin th, table.tabela-admin td{
  text-align: left;
  padding: 13px 15px;
  font-size: 13px;
  border-bottom: 1px solid var(--claro);
}

table.tabela-admin th{
  background: var(--marinho-profundo);
  color: #fff;
  font-weight: 600;
}

table.tabela-admin tr:last-child td{ border-bottom: none; }
table.tabela-admin tbody tr{ transition: background .12s ease; }
table.tabela-admin tbody tr:hover{ background: var(--fundo); }

.link-exportar{
  color: var(--verde-escuro);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.link-exportar:hover{ text-decoration: underline; }

.badge-admin{
  display: inline-block;
  background: var(--verde);
  color: #fff;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.btn-abrir-painel{
  background: none;
  border: none;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

.link-nome-usuario{
  background: none;
  border: none;
  padding: 0;
  color: var(--escuro);
  font-family: 'Montserrat', sans-serif;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.link-nome-usuario:hover{
  color: var(--verde-escuro);
  text-decoration-color: var(--verde);
}

.modal-painel-dash{ max-width: 780px; }

.stats-grid-dash{
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 20px;
}

.modal-secao-titulo{
  font-size: 13px;
  font-weight: 700;
  color: var(--escuro);
  margin: 22px 0 10px;
}

.modal-secao-titulo:first-of-type{ margin-top: 0; }

.sugestao-bloco{ display: flex; flex-direction: column; gap: 12px; }

.sugestao-editar{ display: flex; gap: 8px; }

.sugestao-input{
  flex: 1;
  max-width: 180px;
  padding: 10px 13px;
  border: 1.5px solid var(--claro);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--escuro);
  background: var(--fundo);
}

.sugestao-input:focus{ outline: none; border-color: var(--verde); background: #fff; }

.sugestao-btn-salvar{
  background: var(--verde);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}

.sugestao-btn-salvar:hover{ background: var(--verde-escuro); }

.sugestao-progresso-wrap{ display: flex; align-items: center; gap: 12px; }

.sugestao-progresso-barra{
  flex: 1;
  height: 10px;
  background: var(--claro);
  border-radius: 999px;
  overflow: hidden;
}

.sugestao-progresso-preenchido{
  height: 100%;
  background: var(--verde);
  border-radius: 999px;
  transition: width .3s ease;
}

.sugestao-progresso-texto{ font-size: 12px; font-weight: 700; color: var(--cinza); white-space: nowrap; }

table.tabela-periodos{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--claro);
  border-radius: 14px;
  overflow: hidden;
}

table.tabela-periodos th, table.tabela-periodos td{
  text-align: left;
  padding: 11px 15px;
  font-size: 13px;
  white-space: normal;
  border-bottom: 1px solid var(--claro);
}

table.tabela-periodos th{
  background: var(--marinho-profundo);
  color: #fff;
  font-weight: 600;
}

table.tabela-periodos tr:last-child td{ border-bottom: none; }

.painel-contador{
  background: var(--verde-suave);
  color: var(--verde-escuro);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* Modal do painel médico de outro usuário (admin) */
.modal-overlay{
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(23,27,34,.6);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.modal-overlay.aberto{
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease;
}

.modal-painel{
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(23,27,34,.06), 0 30px 60px rgba(23,27,34,.3);
  transform: scale(.95) translateY(12px);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.aberto .modal-painel{
  transform: scale(1) translateY(0);
}

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

.modal-cabecalho h2{ font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }

.modal-fechar{
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--cinza);
  cursor: pointer;
}

.modal-fechar:hover{ color: var(--escuro); }

.modal-colunas{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-colunas-4{
  grid-template-columns: repeat(4, 1fr);
}

#modal-overlay .modal-painel{ max-width: 960px; }

@media (max-width: 860px){
  .modal-colunas-4{ grid-template-columns: 1fr 1fr; }
}

.modal-colunas h3{
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-lista{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.modal-card{
  background: var(--fundo);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  transition: background .15s ease;
}

.modal-card:hover{ background: var(--verde-suave); }

.modal-card strong{ font-size: 13px; color: var(--escuro); }
.modal-card strong.nome-visitado{ color: var(--verde-escuro); }
.modal-card span{ color: var(--cinza); font-size: 12px; }

.modal-vazio{
  font-size: 12.5px;
  color: var(--cinza);
  padding: 12px 0;
}

@media (max-width: 600px){
  .modal-colunas{ grid-template-columns: 1fr; }
}

/* Rolagem horizontal pra tabelas largas (usado no painel admin) */
.tabela-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

table.tabela-admin{
  min-width: 900px;
}

table.tabela-admin th, table.tabela-admin td{
  white-space: nowrap;
}

/* ===== Mobile ===== */
@media (max-width: 640px){
  .auth-tela{ padding: 16px; }

  .auth-card{ padding: 24px 20px; }

  .auth-logo{ height: 52px; padding: 11px 18px; }
  .logo-admin{ height: 30px; }

  .admin-header{
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-header a{ font-size: 13px; }

  .hero-secao{ padding: 28px 20px 64px; }
  .hero-secao h1{ font-size: 20px; }
  .hero-secao p{ font-size: 13px; }

  .card-flutuante{ padding: 18px; border-radius: 16px; }

  .admin-main{
    margin: -40px auto 24px;
    padding: 0 16px;
  }

  .admin-main h1{ font-size: 19px; }
  .admin-main p{ font-size: 13px; margin-bottom: 18px; }

  table.tabela-admin th, table.tabela-admin td{
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .modal-overlay{ padding: 14px; }

  .modal-painel{
    padding: 18px;
    max-height: 88vh;
  }

  .modal-cabecalho h2{ font-size: 15px; }

  .modal-lista{ max-height: none; }

  .admin-header-direita{ gap: 12px; }

  .notif-painel{
    position: fixed;
    top: 96px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 70vh;
    transform-origin: top center;
  }

  /* 16px nos campos: o iPhone dá zoom automático em campos menores que isso */
  .campo input,
  .notif-nova-senha{ font-size: 16px; }

  .admin-nav{ gap: 2px; }
  .admin-nav-link{ padding: 8px 10px; font-size: 12.5px; }

  .stats-grid{ grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card{ padding: 14px 16px; }
  .stat-valor{ font-size: 22px; }

  .dashboard-linha{ grid-template-columns: 1fr; }
  .card-grafico{ padding: 16px; }
  .canvas-wrapper{ height: 200px; }

  .mini-stats{ gap: 8px; }
  .mini-valor{ font-size: 18px; }

  .heatmap-uf{ grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
  .heatmap-celula{ padding: 8px 2px; font-size: 9px; }
}
