/* LumusTec — design system
   Tema: futurista, tecnológico, educacional. Base espacial escura com brilho neon
   (a "luz" do vagalume Lumi). Cards claros por dentro para leitura confortável,
   moldura e acentos em neon ciano/violeta/âmbar.
   Tipografia: Poppins (títulos) + Atkinson Hyperlegible Next (corpo).
   Fontes self-hosted em /fonts (woff2, subset latino) — sem CDN, sem render-block
   em rede instável. Atkinson é desenhada para legibilidade/baixa visão. */

/* corpo: Atkinson Hyperlegible Next (400/500/600/700) */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/atkinson-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/atkinson-500.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/atkinson-600.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/atkinson-700.woff2') format('woff2'); }
/* títulos: Poppins (600/700) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700.woff2') format('woff2'); }

:root {
  --primaria: #8B5CF6;          /* violeta */
  --primaria-clara: #A78BFA;
  --ciano: #22D3EE;             /* neon ciano (tecnologia) */
  --destaque: #FBBF24;          /* âmbar — brilho do Lumi */
  --destaque-hover: #F59E0B;
  --escuro: #070A14;            /* espaço */
  --escuro-2: #0E1424;
  --escuro-3: #161E33;
  --linha: rgba(124, 140, 200, .16);
  --card: #FFFFFF;
  --texto: #16203A;
  --texto-suave: #5A6B8C;
  --texto-claro: #E8EEFF;
  --sucesso: #2DD4BF;
  --alerta: #FB7185;
  --raio: 18px;
  --sombra: 0 8px 30px rgba(0, 0, 0, .35);
  --glow-violeta: 0 0 24px rgba(139, 92, 246, .55);
  --glow-ciano: 0 0 24px rgba(34, 211, 238, .5);
  --glow-ambar: 0 0 26px rgba(251, 191, 36, .55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  color: var(--texto-claro);
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 540px at 92% 4%, rgba(34, 211, 238, .16), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(251, 191, 36, .10), transparent 60%),
    var(--escuro);
  background-attachment: fixed;
}

/* grade tecnológica sutil sobre o fundo */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 140, 200, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 140, 200, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 85%);
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, .logo { font-family: 'Poppins', 'Inter', sans-serif; }
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ===== Topbar (glass) ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10, 14, 26, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; z-index: 50;
}
.logo { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 8px; }
.logo span {
  background: linear-gradient(90deg, var(--destaque), var(--ciano));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-img { height: 36px; width: auto; filter: drop-shadow(0 0 8px rgba(34, 211, 238, .45)); }
/* Logo nova (lockup horizontal) — versão por tema */
.logo-full { height: 34px; width: auto; display: inline-block; }
.logo-claro { display: none; }
html[data-tema="claro"] .logo-escuro { display: none; }
html[data-tema="claro"] .logo-claro { display: inline-block; }
.menu { display: flex; gap: 18px; align-items: center; }
.menu a {
  text-decoration: none; color: #B7C3E0; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; transition: .18s;
}
.menu a:hover { color: #fff; background: rgba(139, 92, 246, .16); }
.menu a.ativo {
  color: #fff; background: linear-gradient(90deg, var(--primaria), rgba(34,211,238,.35));
  box-shadow: var(--glow-violeta);
}
.usuario-chip { display: flex; align-items: center; gap: 10px; color: #B7C3E0; font-size: 14px; }
.usuario-chip .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primaria), var(--ciano));
  display: grid; place-items: center; color: #fff; font-weight: 700;
  box-shadow: var(--glow-violeta);
}

/* ===== Hero ===== */
.hero { padding: 64px 32px 40px; max-width: 1120px; margin: 0 auto; }
.hero .rotulo {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
  color: var(--ciano); font-weight: 700;
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08);
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; color: #fff; letter-spacing: -.5px; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--destaque), var(--primaria-clara), var(--ciano));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { margin-top: 14px; color: #9FB0D4; font-size: 18px; max-width: 640px; }
.hero.centro p { margin-left: auto; margin-right: auto; }
.mascote-hero {
  width: 190px; height: 190px; object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 26px rgba(251, 191, 36, .45));
  animation: flutuaLumi 4s ease-in-out infinite;
}

/* Hero em duas colunas: logo à esquerda, texto à direita */
.hero-split {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; text-align: left; flex-wrap: wrap;
}
.hero-split .hero-logo {
  width: 240px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 0 30px rgba(251, 191, 36, .5));
  animation: flutuaLumi 4s ease-in-out infinite;
}
.hero-split .hero-txt { max-width: 640px; }
.hero-split .hero-txt .mt { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 780px) {
  .hero-split { flex-direction: column; text-align: center; gap: 18px; }
  .hero-split .hero-logo { width: 170px; }
  .hero-split .hero-txt .mt { justify-content: center; }
}
@keyframes flutuaLumi { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Conteúdo / cards ===== */
.conteudo { max-width: 1120px; margin: 0 auto; padding: 0 32px 90px; }
.secao-titulo { color: #fff; margin: 36px 0 18px; position: relative; padding-left: 16px; }
.secao-titulo::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, var(--destaque), var(--primaria)); box-shadow: var(--glow-violeta);
}
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }

.card {
  background: var(--card); color: var(--texto);
  border-radius: var(--raio); padding: 22px; box-shadow: var(--sombra);
  border: 1px solid rgba(255, 255, 255, .06);
  position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--destaque), var(--primaria), var(--ciano));
  opacity: .9;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(34, 211, 238, .18); }
.card h3 { font-size: 17px; margin: 10px 0 6px; }
.card p { color: var(--texto-suave); font-size: 14px; line-height: 1.55; }
.card .thumb {
  width: calc(100% + 44px); margin: -22px -22px 14px; height: 152px;
  object-fit: cover; border-radius: var(--raio) var(--raio) 0 0; background: var(--escuro-2);
}
/* Jogo em edicao: faixa diagonal "em construcao" sobre o card (nao bloqueia clique). */
.card.em-obras .em-obras-faixa {
  position: absolute; left: 50%; top: 50%;
  width: 150%; max-width: none; height: auto;
  transform: translate(-50%, -50%) rotate(-16deg);
  pointer-events: none; z-index: 6; opacity: .96;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .5));
}
.card.em-obras .thumb { filter: grayscale(.35) brightness(.92); }
/* numeros de destaque com cor neon */
.card.centro h1 {
  background: linear-gradient(90deg, var(--primaria), var(--ciano));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 40px;
}

.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; margin: 2px 2px 0 0;
}
.badge-roxo { background: #EDE9FE; color: #6D28D9; }
.badge-ambar { background: #FEF3C7; color: #B45309; }
.badge-verde { background: #CCFBF1; color: #0F766E; }
.badge-cinza { background: #E6EAF3; color: #475569; }

/* ===== Botões ===== */
.btn {
  display: inline-block; border: none; border-radius: 12px;
  padding: 13px 24px; font-size: 15px; font-weight: 700;
  text-decoration: none; text-align: center; transition: .18s; letter-spacing: .2px;
}
.btn-destaque { background: linear-gradient(90deg, var(--destaque), #FCD34D); color: #2A1E05; box-shadow: var(--glow-ambar); }
.btn-destaque:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primaria { background: linear-gradient(90deg, var(--primaria), #6D28D9); color: #fff; box-shadow: var(--glow-violeta); }
.btn-primaria:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-escuro { background: var(--escuro-3); color: #fff; border: 1px solid var(--linha); }
.btn-escuro:hover { border-color: var(--ciano); box-shadow: var(--glow-ciano); }
.btn-claro { background: #E6EAF3; color: var(--texto); }
.btn-perigo { background: var(--alerta); color: #fff; }
.btn-bloco { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ===== Formulários ===== */
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #D7DEEC;
  border-radius: 12px; font-size: 15px; font-family: inherit; background: #fff; color: var(--texto);
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--primaria); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

/* ===== Barra de progresso ===== */
.progresso { background: #E2E8F0; border-radius: 999px; height: 10px; overflow: hidden; }
.progresso > div {
  background: linear-gradient(90deg, var(--primaria), var(--ciano)); height: 100%; border-radius: 999px;
  transition: width .5s; box-shadow: 0 0 12px rgba(34, 211, 238, .5);
}

/* ===== Filtros ===== */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filtros select, .filtros input {
  padding: 11px 15px; border-radius: 12px; border: 1px solid var(--linha);
  background: rgba(14, 20, 36, .8); color: var(--texto-claro); font-size: 14px;
}
.filtros select:focus, .filtros input:focus { outline: none; border-color: var(--ciano); box-shadow: var(--glow-ciano); }
.filtros input::placeholder { color: #7E8DB0; }

/* ===== Central de Ajuda (respostas prontas) ===== */
.teo-botao {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--destaque), var(--ciano)); font-size: 28px;
  box-shadow: var(--glow-ambar); transition: transform .18s;
  animation: pulsoLumi 2.6s ease-in-out infinite;
}
.teo-botao:hover { transform: scale(1.1); }
@keyframes pulsoLumi {
  0%, 100% { box-shadow: 0 0 18px rgba(251,191,36,.5); }
  50% { box-shadow: 0 0 34px rgba(251,191,36,.85); }
}

.teo-painel {
  position: fixed; right: 24px; bottom: 100px; z-index: 95;
  width: min(380px, calc(100vw - 48px)); height: min(540px, calc(100vh - 150px));
  background: var(--card); color: var(--texto); border-radius: var(--raio);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); border: 1px solid rgba(34,211,238,.25);
  display: none; flex-direction: column; overflow: hidden;
}
.teo-painel.aberto { display: flex; }
.teo-cabecalho {
  background: linear-gradient(90deg, var(--primaria), var(--ciano)); color: #fff;
  padding: 15px 18px; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
}
.teo-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 2px solid rgba(255,255,255,.7); flex-shrink: 0;
}
.teo-cabecalho small { display: block; font-weight: 400; opacity: .9; font-size: 12px; }
.teo-mensagens { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.teo-msg { max-width: 85%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.teo-msg.user { align-self: flex-end; background: linear-gradient(90deg, var(--primaria), #6D28D9); color: #fff; border-bottom-right-radius: 4px; }
.teo-msg.assistant { align-self: flex-start; background: #EEF2FB; color: var(--texto); border-bottom-left-radius: 4px; }
.teo-chips { display: flex; gap: 8px; padding: 0 14px 8px; flex-wrap: wrap; }
.teo-chips button {
  border: 1.5px solid var(--primaria); background: #fff; color: var(--primaria); cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; transition: .15s; text-align: left;
}
.teo-chips button:hover { background: var(--primaria); color: #fff; }
.teo-entrada { display: flex; padding: 12px; border-top: 1px solid #E2E8F0; }
.ajuda-zap {
  flex: 1; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600;
  background: #25D366; color: #fff; border-radius: 12px; padding: 11px 14px;
}

/* ===== WhatsApp ===== */
.zap-botao {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 26px;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .45);
}

/* ===== Formações ===== */
.trilhas-lista { display: flex; flex-direction: column; gap: 20px; max-width: 840px; margin: 0 auto; }
.formacao-topo { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.formacao-titulo { margin: 0; }
.form-desc { color: var(--texto-suave); font-size: 14px; margin: 6px 0 0; line-height: 1.5; }
.formacao-pct { flex-shrink: 0; }
.form-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.chip { background: rgba(139,92,246,.12); color: var(--primaria); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.modulos-lista { display: flex; flex-direction: column; gap: 8px; }
.modulo-item { border: 1px solid var(--linha); border-radius: 12px; padding: 11px 14px; transition: border-color .15s; }
.modulo-item.feito { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.06); }
.modulo-cab { display: flex; gap: 8px; align-items: center; }
.modulo-ck { flex-shrink: 0; }
.modulo-nome { font-weight: 600; color: var(--texto); }
.modulo-num { color: var(--texto-suave); font-weight: 700; }
.modulo-acoes { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding-left: 26px; }
.chip-acao { font-size: 13px; text-decoration: none; color: var(--primaria); font-weight: 600; cursor: pointer; }
.chip-acao:hover { text-decoration: underline; }
.chip-acao.feito-txt { color: #16a34a; cursor: default; }
.form-dica { font-size: 13px; color: var(--texto-suave); margin-top: 14px; text-align: center; }

.requisitos { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 10px; padding: 12px 14px; background: rgba(139,92,246,.06); border-radius: 12px; }
.req { font-size: 13.5px; color: var(--texto-suave); }
.req.ok { color: var(--texto); }
.req a { color: var(--primaria); font-weight: 600; text-decoration: none; }
.req a:hover { text-decoration: underline; }

/* Prova final — opções */
.opcao { display: block; padding: 10px 12px; margin-top: 8px; border: 1.5px solid var(--linha); border-radius: 10px; cursor: pointer; font-size: 14.5px; transition: border-color .12s, background .12s; }
.opcao:hover { border-color: var(--primaria); }
.opcao input { margin-right: 8px; }

/* ===== Player de vídeo (formações) ===== */
.video-box { margin: 8px 0 4px; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Tabelas ===== */
.tabela { width: 100%; border-collapse: collapse; background: var(--card); color: var(--texto); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.tabela th, .tabela td { padding: 13px 16px; text-align: left; font-size: 14px; }
.tabela th { background: #EEF2FB; font-weight: 700; color: #2A3656; }
.tabela tr + tr td { border-top: 1px solid #EEF2FB; }
.tabela select { padding: 6px 10px; border-radius: 8px; border: 1px solid #D7DEEC; }

/* ===== Modal ===== */
.modal-fundo {
  position: fixed; inset: 0; background: rgba(4, 6, 14, .72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; place-items: center; z-index: 100; padding: 20px;
}
.modal-fundo.aberto { display: grid; }
.modal {
  background: var(--card); color: var(--texto); border-radius: var(--raio);
  max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 28px;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--destaque), var(--primaria), var(--ciano)) 1;
}

/* ===== Avisos ===== */
.aviso { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.aviso-erro { background: #FEE2E2; color: #991B1B; }
.aviso-ok { background: #CCFBF1; color: #0F766E; }

.centro { text-align: center; }
.mt { margin-top: 18px; }
.escondido { display: none !important; }

/* ===== Tela de entrada (login) centrada e harmônica ===== */
.auth-wrap {
  max-width: 440px; margin: 0 auto; padding: 24px 20px 80px;
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.auth-hero { padding: 0 0 6px; }
.auth-hero .mascote-hero { width: 130px; height: 130px; }
.auth-hero h1 { font-size: clamp(26px, 4vw, 34px); }
.auth-hero p { font-size: 16px; }

/* ===== Animações de entrada (harmonia) ===== */
@keyframes surgir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes surgirSuave { from { opacity: 0; } to { opacity: 1; } }
.hero { animation: surgir .6s cubic-bezier(.2,.7,.3,1) both; }
.secao-titulo { animation: surgir .5s ease both; }
.conteudo .card, .grid .card, .tabela, .auth-wrap .card { animation: surgir .55s ease both; }
.grid .card:nth-child(2) { animation-delay: .06s; }
.grid .card:nth-child(3) { animation-delay: .12s; }
.grid .card:nth-child(4) { animation-delay: .18s; }
.topbar { animation: surgirSuave .5s ease both; }
@media (prefers-reduced-motion: reduce) {
  .hero, .secao-titulo, .conteudo .card, .grid .card, .tabela, .topbar { animation: none; }
}

/* ===== Botão de tema (dia/noite) ===== */
.btn-tema {
  position: fixed; top: 80px; right: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linha);
  background: rgba(20, 26, 44, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 20px; cursor: pointer; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.btn-tema:hover { transform: scale(1.1) rotate(-12deg); box-shadow: var(--glow-ambar); }

/* ===================== TEMA CLARO (dia) ===================== */
html[data-tema="claro"] {
  --escuro: #EEF2FB; --escuro-2: #FFFFFF; --escuro-3: #E6EAF3;
  --texto-claro: #16203A; --linha: rgba(20, 40, 90, .12);
  --sombra: 0 8px 26px rgba(40, 60, 120, .12);
}
html[data-tema="claro"] body {
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(900px 540px at 92% 4%, rgba(34, 211, 238, .12), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(251, 191, 36, .10), transparent 60%),
    #F4F7FE;
}
html[data-tema="claro"] body::before {
  background-image:
    linear-gradient(rgba(20, 40, 90, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 40, 90, .045) 1px, transparent 1px);
}
html[data-tema="claro"] .topbar { background: rgba(255, 255, 255, .82); }
html[data-tema="claro"] .logo { color: #16203A; }
html[data-tema="claro"] .menu a { color: #42506E; }
html[data-tema="claro"] .menu a:hover { color: #16203A; }
html[data-tema="claro"] .hero h1 { color: #16203A; }
html[data-tema="claro"] .hero p { color: #51618A; }
html[data-tema="claro"] .secao-titulo { color: #16203A; }
html[data-tema="claro"] .usuario-chip { color: #42506E; }
html[data-tema="claro"] .filtros select,
html[data-tema="claro"] .filtros input { background: #FFFFFF; color: #16203A; border-color: #D7DEEC; }
html[data-tema="claro"] .filtros input::placeholder { color: #94A3B8; }
html[data-tema="claro"] .btn-tema { background: rgba(255, 255, 255, .85); }
html[data-tema="claro"] .btn-escuro { background: #2A3656; }

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .hero, .conteudo { padding-left: 16px; padding-right: 16px; }
  .btn-tema { top: auto; bottom: 90px; right: 18px; }
}

/* ===== Transição fluida entre páginas (View Transitions API) ===== */
/* Fundo escuro no html mata o "flash branco" entre uma página e outra */
html { background: var(--escuro); }
@view-transition { navigation: auto; }
/* Crossfade puro (sem subir/descer); o novo entra por cima sem piscar */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; mix-blend-mode: normal; }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
