/*===========
   Porter — identidade visual
   Paleta oficial Porter: azul #384AA0, verde-lima #D3F482, navy #191248
   Carregar sempre DEPOIS do main.css
=========== */

:root {
  --porter-blue: #384aa0;
  --porter-lime: #d3f482;
  --porter-navy: #191248;

  --tc-system-info: #384aa0;

  /* fonte padrão Porter: Poppins (com fallback seguro, nunca serifada) */
  --tc-body-font-family: "Poppins", sans-serif;
  --tc-heading-font-family: "Poppins", sans-serif;
}

/* Texto/heading puxam o navy Porter SÓ no claro; no dark o template define os tons. */
:root:not([data-bs-theme="dark"]) {
  --tc-neutral-900: #191248;
  --tc-neutral-800: #1f1a4d;
}

/* Garante Poppins em tudo, inclusive elementos que não herdam a fonte */
body,
input,
select,
textarea,
button,
.btn,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.card-title {
  font-family: "Poppins", sans-serif;
}

/* Barra superior (Breaking / Últimas novidades) */
.topbar {
  background: var(--porter-navy);
}

/* ---------- Navbar ----------
   O template centraliza o menu com position:absolute e ele sobrepõe quando há
   muitos itens. Colocamos em fluxo normal (space-between cuida de
   logo | menu | controles) e reduzimos o espaçamento. */
.navbar.style-1 .navbar-collapse {
  position: static;
  left: auto;
  transform: none;
  width: auto;
}

.navbar .navbar-nav {
  gap: 22px;
}

.navbar .navbar-nav .nav-item .nav-link {
  padding-right: 0;
  font-size: 0.95rem;
  white-space: nowrap; /* "Teste de Campo" não quebra em duas linhas */
}

/* dropdowns precisam de espaço à direita para a setinha (::after em right:0) */
.navbar .navbar-nav .nav-item .nav-link.dropdown-toggle {
  padding-right: 22px;
}

/* botão de busca: só o ícone, sem o texto "Buscar" */
.navbar .search-btn .text {
  display: none;
}

/* ---------- Logo ----------
   Azul no modo claro, branco no dark (troca de imagem). O SVG oficial nao
   tem margem em volta, entao a altura e a do desenho. */
.logo-porter {
  height: 46px;
  width: auto;
}

.logo-porter--dark {
  display: none;
}

[data-bs-theme="dark"] .logo-porter--light {
  display: none;
}

[data-bs-theme="dark"] .logo-porter--dark {
  display: inline;
}

footer .logo-porter {
  height: 40px;
}

/* ---------- Preloader (spinner simples) ----------
   Mesmo visual do carregando.js (fundo preto, spinner branco), para a troca de
   pagina nao piscar entre dois carregadores diferentes. */
#preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.porter-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: porter-spin 0.8s linear infinite;
}

@keyframes porter-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Realces ---------- */
::selection {
  background: var(--porter-lime);
  color: var(--porter-navy);
}

a:hover {
  color: var(--porter-blue);
}

/* botões escuros do tema ganham o navy Porter */
.btn-dark,
.bg-900 {
  background-color: var(--porter-navy) !important;
}

/* destaque de marca-texto (como no site atual) */
.porter-mark {
  background: var(--porter-lime);
  color: var(--porter-navy);
  padding: 0 0.35em;
  border-radius: 0.25em;
}

/* ---------- Badges de status ---------- */
.badge-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.badge-status.lancado {
  background: var(--porter-lime);
  color: var(--porter-navy);
}

.badge-status.novidade {
  background: var(--porter-lime);
  color: var(--porter-navy);
}

.badge-status.desenvolvimento {
  background: var(--porter-navy);
  color: #fff;
}

.badge-status.atualizado {
  background: #fff3e0;
  color: #b95d00;
}

.badge-status.em-teste {
  background: #e8f0fe;
  color: var(--porter-blue);
}

.badge-status.em-breve {
  background: var(--porter-navy);
  color: #fff;
}

.badge-status.em-atualizacao {
  background: #fdecec;
  color: #c62828;
}

.badge-status.em-producao {
  background: var(--porter-blue);
  color: #fff;
}

/* Bloco FAQ (acordeão) */
.faq-item {
  border-bottom: 1px solid rgba(25, 18, 72, 0.12);
  padding: 14px 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--porter-navy);
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--porter-blue);
  flex: 0 0 auto;
}

.faq-item[open] .faq-q::after {
  content: "\2013";
}

.faq-a {
  margin-top: 10px;
  color: #6b6b6b;
  font-size: 16.5px;
  line-height: 1.7;
}

/* De frente com produto (home): notch do card cabe nome + cargo completos */
#de-frente-com-produto .author-sticky-block-left-bottom {
  width: auto;
  max-width: 92%;
  height: auto;
  min-height: 56px;
  padding: 12px 18px 12px 14px;
  row-gap: 2px;
}
#de-frente-com-produto .author-sticky-block-left-bottom h6 {
  font-size: 0.95rem;
  line-height: 1.2;
}
#de-frente-com-produto .author-sticky-block-left-bottom p {
  font-size: 0.8rem;
  line-height: 1.2;
}
#de-frente-com-produto .author-sticky-corner-left-top,
#de-frente-com-produto .author-sticky-corner-right-bottom {
  display: none;
}
/* todas as fotos na mesma altura (proporção fixa, recorte centralizado) */
#de-frente-com-produto .author-grid-wrap img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* === Novidades por produto: abas + carrossel (estilo News in Category) === */
#produtos-tabs .prod-tabs {
  border: 0;
  gap: 8px;
}
#produtos-tabs .prod-tabs .nav-link {
  border: 0;
  border-radius: 12px;
  color: var(--porter-navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 18px;
  white-space: nowrap;
}
#produtos-tabs .prod-tabs .nav-link:hover {
  background: #eef2fe;
}
#produtos-tabs .prod-tabs .nav-link.active {
  background: var(--porter-navy);
  color: #fff;
}
/* desktop: cada aba ocupa a largura toda da coluna (barras alinhadas) */

#produtos-tabs .tab-content .tab-pane {
  display: none;
}
#produtos-tabs .tab-content .tab-pane.active {
  display: block;
}
#produtos-tabs .swiper-produtos {
  overflow: hidden;
}
#produtos-tabs .swiper-produtos .swiper-slide {
  width: 320px;
  height: auto;
}
/* todas as imagens dos cards na mesma altura (não quebra o layout) */
#produtos-tabs .card-7 .card-img img,
#produtos-tabs .card-7 .card-img .hover-effect-30 {
  height: 200px;
}
#produtos-tabs .card-7 .card-img img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* nas telas pequenas as abas viram linha rolável */

#produtos-tabs .card-7 .card-title {
  color: var(--porter-navy);
}
#produtos-tabs .prod-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(25, 18, 72, 0.15);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#produtos-tabs .prod-arrow:hover {
  background: var(--porter-navy);
}
#produtos-tabs .prod-arrow:hover svg path {
  stroke: #fff;
}

/* Hero (card-1): imagem com altura padrão pra alinhar todos os cards */
.article.card-1 .card-img-top,
.article.card-1 .card-img-top img {
  height: 420px;
}
.article.card-1 .card-img-top img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Cor pastel por produto no badge dos cards */
.badge.prod-badge {
  background: #eef0f4;
  color: #3a3f4a;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
}
.badge.prod-badge--aplicativo-porter {
  background: #e2ecfb;
  color: #2a5bb8;
}
.badge.prod-badge--monitoring {
  background: #d9f2e3;
  color: #1e7a4e;
}
.badge.prod-badge--portaria-presencial {
  background: #ece7fb;
  color: #5a3fb0;
}
.badge.prod-badge--porter-entregas {
  background: #fcead9;
  color: #a85d1a;
}
.badge.prod-badge--porter-sense {
  background: #d9f1f3;
  color: #1e7e86;
}
.badge.prod-badge--portal-tecnico {
  background: #fbe3e1;
  color: #b23a2e;
}
.badge.prod-badge--integracoes-de-hardware {
  background: #fbe4ef;
  color: #a83a76;
}
.badge.prod-badge--videochamada {
  background: #cfe6ff;
  color: #1266c9;
}
.badge.prod-badge--porter-security {
  background: #e7e9fb;
  color: #3a41a0;
}

/* Hero: gradiente pastel Porter que some pro fundo da página no final
   (fade pra transparente => branco no claro, escuro no dark; sem laranja). */
.sec-1-home-1 {
  background-image: linear-gradient(
    160deg,
    #ece9fb 0%,
    #e9eff8 26%,
    #eef6de 44%,
    rgba(238, 246, 222, 0) 58%
  ) !important;
  background-size: 100% 100% !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}
[data-bs-theme="dark"] .sec-1-home-1 {
  background-image: linear-gradient(
    160deg,
    #2a1f5e 0%,
    #201a48 30%,
    #16283a 48%,
    rgba(22, 40, 58, 0) 60%
  ) !important;
}
[data-bs-theme="dark"] .sec-1-home-1 h1,
[data-bs-theme="dark"] .sec-1-home-1 .ds-2,
[data-bs-theme="dark"] .sec-1-home-1 p {
  color: #ffffff !important;
}

/* Seção "De frente com produto": substitui a imagem rosa/laranja do template
   (bg-home1-sec5.png) pelo mesmo degradê pastel do hero, espelhado
   (transparente no topo => cor no rodapé da seção). */
.sec-5-home-1 {
  background-image: linear-gradient(
    340deg,
    #ece9fb 0%,
    #e9eff8 26%,
    #eef6de 44%,
    rgba(238, 246, 222, 0) 58%
  ) !important;
  background-size: 100% 100% !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
}
[data-bs-theme="dark"] .sec-5-home-1 {
  background-image: linear-gradient(
    340deg,
    #2a1f5e 0%,
    #201a48 30%,
    #16283a 48%,
    rgba(22, 40, 58, 0) 60%
  ) !important;
}

/* Menu do usuário (topbar): foto, nome, sair, lidas, gamificação (futuro) */
.topbar {
  overflow: visible;
  position: relative;
  z-index: 1200;
}
.topbar .right {
  overflow: visible;
}
.topbar .right > ul {
  align-items: center;
}
.user-menu {
  position: relative;
}
.user-menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-menu > summary::-webkit-details-marker {
  display: none;
}
.user-foto {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.user-ini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--porter-lime);
  color: var(--porter-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.user-nome {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-caret {
  transition: transform 0.2s;
}
.user-menu[open] .user-caret {
  transform: rotate(180deg);
}
/* Tour guiado (driver.js): popover no padrão Porter */
.driver-popover.porter-tour {
  border-radius: 14px;
  padding: 22px;
  max-width: 340px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 18px 48px rgba(25, 18, 72, 0.28);
}

.driver-popover.porter-tour .driver-popover-title {
  color: var(--porter-navy);
  font-size: 17px;
  font-weight: 600;
}

.driver-popover.porter-tour .driver-popover-description {
  color: #55556d;
  font-size: 14px;
  line-height: 1.6;
}

.driver-popover.porter-tour .driver-popover-progress-text {
  color: #9a9ab0;
  font-size: 12px;
}

.driver-popover.porter-tour .driver-popover-navigation-btns button {
  background: var(--porter-navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  text-shadow: none;
}

.driver-popover.porter-tour .driver-popover-navigation-btns button:hover {
  opacity: 0.85;
  background: var(--porter-navy);
}

.driver-popover.porter-tour
  .driver-popover-navigation-btns
  .driver-popover-prev-btn {
  background: #eef2fe;
  color: var(--porter-navy);
}

/* hover: driver.css troca o fundo pra cinza e sumia o texto; fixa as cores */
.driver-popover.porter-tour .driver-popover-navigation-btns button:hover {
  background: var(--porter-navy);
  color: #fff;
  opacity: 0.85;
}

.driver-popover.porter-tour
  .driver-popover-navigation-btns
  .driver-popover-prev-btn:hover {
  background: #dfe7fd;
  color: var(--porter-navy);
  opacity: 1;
}

.driver-popover.porter-tour .driver-popover-close-btn {
  color: #9a9ab0;
}

/* "Pular dicas": linha própria abaixo do rodapé, separada por filete */
.driver-popover.porter-tour .porter-tour-skip-row {
  border-top: 1px solid rgba(25, 18, 72, 0.1);
  margin-top: 16px;
  padding-top: 12px;
  text-align: center;
}

.driver-popover.porter-tour .porter-tour-skip {
  background: transparent;
  border: 0;
  color: #9a9ab0;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  text-shadow: none;
}

.driver-popover.porter-tour .porter-tour-skip:hover {
  color: var(--porter-navy);
  background: transparent;
}

.driver-popover.porter-tour .driver-popover-footer {
  align-items: center;
}

/* Card Release notes (home): fundo navy chapado, sem foto nem overlay.
   Botão mais largo que o w-12rem do template (texto não cabia). */
.block-discover.release-card {
  background: linear-gradient(
    135deg,
    #191248 0%,
    #23205e 45%,
    #384aa0 100%
  ) !important;
}

.block-discover.release-card::before {
  display: none;
}

.block-discover.release-card .view-more.w-12rem {
  width: 16rem;
}

/* texto sai de trás do círculo (template centralizava sobre ele) */
.block-discover.release-card .view-more .button-text {
  margin-left: 3.6rem;
  text-align: left;
}

/* Estágios (home): fundo abstrato em tons pastéis no lugar de foto.
   Blobs de radial-gradient na paleta dos badges; texto vira navy. */
.category-card.style-2.estagio-pastel::before {
  display: none;
}

.category-card.style-2.estagio-pastel .post-content h6 {
  color: var(--porter-navy);
}

.category-card.style-2.estagio-pastel .post-content .post-count {
  background: rgba(255, 255, 255, 0.65);
  color: var(--porter-navy);
}

.estagio-pastel--1 {
  background:
    radial-gradient(200px 130px at 8% 0%, #c4ef62 0%, transparent 72%),
    radial-gradient(220px 150px at 95% 110%, #8fdc8a 0%, transparent 72%),
    linear-gradient(120deg, #f2fbdd 0%, #ddf3c0 100%);
}

.estagio-pastel--2 {
  background:
    radial-gradient(200px 130px at 92% -10%, #9ec9ff 0%, transparent 72%),
    radial-gradient(220px 150px at 5% 115%, #c3b6f7 0%, transparent 72%),
    linear-gradient(120deg, #eaf1ff 0%, #d8e4fd 100%);
}

.estagio-pastel--3 {
  background:
    radial-gradient(200px 130px at 10% 115%, #f8bd82 0%, transparent 72%),
    radial-gradient(220px 150px at 90% -15%, #fcd9ae 0%, transparent 72%),
    linear-gradient(120deg, #fdf2e2 0%, #fbe2c4 100%);
}

.estagio-pastel--4 {
  background:
    radial-gradient(200px 130px at 90% 120%, #bfa8f2 0%, transparent 72%),
    radial-gradient(220px 150px at 8% -15%, #ddd2f9 0%, transparent 72%),
    linear-gradient(120deg, #f3eefe 0%, #e3d9fb 100%);
}

/* Menu lateral: acima da topbar/navbar (template usava z-index 101/100,
   a topbar custom usa 1200 e cobria o topo do menu) */
.sidebar-left {
  z-index: 6100;
}

.sidebar-overlay {
  z-index: 6050;
}

.user-drop {
  position: fixed;
  min-width: 240px;
  background: #fff;
  color: var(--porter-navy);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(25, 18, 72, 0.18);
  padding: 8px;
  z-index: 3000;
  display: none;
}
.user-menu[open] .user-drop {
  display: block;
}
.user-drop-head {
  padding: 8px 12px 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 6px;
}
.user-drop-mail {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--porter-navy);
  text-decoration: none;
}
.user-drop-item:hover {
  background: #eef2fe;
  color: var(--porter-navy);
}
.user-drop-sair {
  color: #c62828;
}
.user-drop-sair:hover {
  background: #fdecec;
  color: #c62828;
}
.user-drop-item.is-soon {
  color: #9aa0ac;
  cursor: default;
}
.user-drop-item.is-soon em {
  font-style: normal;
  font-size: 11px;
  background: #eef0f4;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Dark mode: seção "Novidades por produto" legível */
[data-bs-theme="dark"] #produtos-tabs .card-7 .card-title,
[data-bs-theme="dark"] #produtos-tabs .card-7 .hover-underline h6 {
  color: #f2f2f7 !important;
}
[data-bs-theme="dark"] #produtos-tabs .prod-tabs .nav-link {
  color: #c7c9d6;
}
[data-bs-theme="dark"] #produtos-tabs .prod-tabs .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
[data-bs-theme="dark"] #produtos-tabs .prod-tabs .nav-link.active {
  background: var(--porter-blue);
  color: #fff;
}

/* Dark em navy Porter (#191248) no lugar do preto do template */
[data-bs-theme="dark"] body {
  background-color: #191248 !important;
}
[data-bs-theme="dark"] {
  --tc-neutral-50: #191248; /* fundo base */
  --tc-neutral-100: #201a54; /* bg-100 (seções) */
  --tc-neutral-200: #2b2470; /* bordas/realces */
  --tc-bg-1: #120d30; /* cards/artigos */
  --tc-bg-2: #120d30;
  --tc-bg-3: #241e66;
  --tc-bg-4: #282169;
  --tc-bg-5: #2b2470;
  --tc-border-1: #2f2775;
  --tc-border-2: #2f2775;
}

/* Dark: cards/blocos na cor #120d30 (mais escuros que o fundo navy) */
[data-bs-theme="dark"] #produtos-tabs .card-7 .card-body,
[data-bs-theme="dark"] .block-subscribe,
[data-bs-theme="dark"] .block-brand,
[data-bs-theme="dark"] .social-list,
[data-bs-theme="dark"] .social-item,
[data-bs-theme="dark"] .block-discover,
[data-bs-theme="dark"] .category-card,
[data-bs-theme="dark"] .card-swiper-thumb {
  background-color: #120d30 !important;
}

/* Dark: barras de titulo (.section-title.dark) e tags de categoria em #120d30 */
[data-bs-theme="dark"] .section-title.dark,
[data-bs-theme="dark"] .tag-item,
[data-bs-theme="dark"] .carouselTicker__item .tag-item {
  background-color: #120d30 !important;
}

/* Antes do Swiper inicializar os slides não têm largura e as imagens estouram
   a tela. Limita o slide (e esconde os excedentes) até o JS montar o slider. */
.swiper:not(.swiper-initialized) .swiper-slide {
  max-width: min(416px, 88vw);
  flex-shrink: 0;
}
.swiper:not(.swiper-initialized) {
  overflow: hidden;
}
.swiper:not(.swiper-initialized) .swiper-slide:nth-child(n + 4) {
  display: none;
}

/* Card inteiro clicável (data-href via engajamento.js) */
.article[data-href] {
  cursor: pointer;
}

/* Popup de busca: centralizado na tela e acima do header (template usava
   top fixo e z-index 201, menor que o da navbar) */
.popup-search-overlay {
  z-index: 5999;
}
.popup-search {
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, 94vw);
  max-height: 92vh;
  z-index: 6000;
  scrollbar-width: none; /* rola se precisar, mas sem barra visível */
}
.popup-search::-webkit-scrollbar {
  display: none;
}
.popup-search .col-10 {
  width: 100%;
}

/* Recomendados do popup: card com borda, thumb fixa e texto sem quebrar torto */
.popup-search .card-10 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(56, 74, 160, 0.18);
  border-radius: 12px;
  background: #fff;
  height: 100%;
}
.popup-search .card-10 .hover-effect-1 {
  flex: none;
}
.popup-search .card-10 .card-img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
}
.popup-search .card-10 .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popup-search .card-10 .card-body {
  padding: 0;
  min-width: 0;
}
.popup-search .card-10 .fs-8 {
  white-space: nowrap;
}

/* Assistente IA flutuante */
#pn-assistente {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3500;
}
#pn-assistente.com-engaja {
  bottom: 88px;
} /* não cobre a barra curtir/lida do post */
.pn-ia-chamada {
  display: flex;
  align-items: center;
}
.pn-ia-botao {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(
        120deg,
        #4285f4,
        #9b72cb,
        #ea4335,
        #fbbc05,
        #34a853,
        #4285f4
      )
      border-box;
  background-size:
    100% 100%,
    400% 400%;
  animation: pn-ia-borda 5s linear infinite;
  color: #384aa0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56, 74, 160, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.pn-ia-botao:hover {
  transform: scale(1.08);
}
/* enquanto a IA gera, o botão pulsa */
#pn-assistente.pensando .pn-ia-botao {
  animation: pn-ia-pulso 1.2s ease-in-out infinite;
}
@keyframes pn-ia-grad {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes pn-ia-pulso {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(56, 74, 160, 0.45);
  }
  50% {
    box-shadow: 0 8px 40px rgba(66, 133, 244, 0.85);
  }
}
.pn-ia-painel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 32px));
  height: 480px;
  max-height: 70vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(25, 18, 72, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: pn-ia-abrir 0.25s ease;
}
/* o display:flex acima venceria o atributo hidden — força o fechamento */
.pn-ia-painel[hidden] {
  display: none;
}
@keyframes pn-ia-abrir {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes pn-ia-borda {
  0% {
    background-position:
      0 0,
      0% 50%;
  }
  50% {
    background-position:
      0 0,
      100% 50%;
  }
  100% {
    background-position:
      0 0,
      0% 50%;
  }
}
/* "Pensando" com brilho correndo, estilo Gemini */
.pn-ia-pensando {
  background: linear-gradient(
    90deg,
    #9aa2b1 25%,
    #384aa0 45%,
    #7c5cff 50%,
    #384aa0 55%,
    #9aa2b1 75%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  animation: pn-ia-shimmer 1.4s linear infinite;
}
@keyframes pn-ia-shimmer {
  to {
    background-position: -200% center;
  }
}
/* cursor piscando durante a "digitação" da resposta */
.pn-ia-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #7c5cff;
  vertical-align: -2px;
  margin-left: 2px;
  border-radius: 2px;
  animation: pn-ia-piscar 0.8s steps(2) infinite;
}
@keyframes pn-ia-piscar {
  50% {
    opacity: 0;
  }
}
.pn-ia-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(56, 74, 160, 0.12);
  font-weight: 700;
  font-size: 14px;
  color: #191248;
}
.pn-ia-fechar {
  background: none;
  border: none;
  color: #191248;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
}
.pn-ia-fechar:hover {
  opacity: 1;
}
[data-bs-theme="dark"] .pn-ia-topo {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .pn-ia-fechar {
  color: #fff;
}
.pn-ia-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pn-ia-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.pn-ia-msg.de-ia {
  background: #eef1fe;
  color: #191248;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.pn-ia-msg.de-usuario {
  background: #191248;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.pn-ia-msg a {
  color: #384aa0;
  text-decoration: underline;
  font-weight: 600;
}
.pn-ia-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(56, 74, 160, 0.15);
}
.pn-ia-form input {
  flex: 1;
  border: 1px solid rgba(56, 74, 160, 0.25);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
}
.pn-ia-form input:focus {
  border-color: #384aa0;
}
.pn-ia-form button {
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex: none;
  background: #384aa0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pn-ia-form button:hover {
  background: #2d3b85;
}
.pn-ia-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
[data-bs-theme="dark"] .pn-ia-painel {
  background: #120d30;
}
[data-bs-theme="dark"] .pn-ia-rotulo {
  background: #120d30;
  color: #fff;
}
[data-bs-theme="dark"] .pn-ia-msg.de-ia {
  background: #1d1655;
  color: #fff;
}
[data-bs-theme="dark"] .pn-ia-msg a {
  color: var(--porter-lime);
}
[data-bs-theme="dark"] .pn-ia-form input {
  background: #1d1655;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Toast de feedback no rodapé da página */
#porter-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: #191248;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(25, 18, 72, 0.35);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  z-index: 4000;
  white-space: nowrap;
}
#porter-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
#porter-toast a {
  color: var(--porter-lime);
  font-weight: 600;
  text-decoration: underline;
}

/* Bloco "De frente com produto" no fim do post */
.pm-bloco {
  display: flex;
  align-items: center;
  gap: 36px;
  background: #eef1fe;
  padding: 40px 44px;
}
.pm-bloco-foto {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(25, 18, 72, 0.15);
}
.pm-bloco-corpo {
  flex: 1;
  min-width: 0;
}
.pm-bloco-corpo p:last-of-type {
  max-width: 760px;
}
[data-bs-theme="dark"] .pm-bloco {
  background: #120d30;
}
@media (max-width: 767.98px) {
  .pm-bloco {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 28px 22px;
  }
}

/* Botões de engajamento no post (curtir / marcar como lida) — barra flutuante */
#engaja {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2500;
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(25, 18, 72, 0.22);
}
[data-bs-theme="dark"] #engaja {
  background: #120d30;
}

.btn-engaja {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #384aa0;
  background: transparent;
  color: #384aa0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-engaja:hover {
  background: rgba(56, 74, 160, 0.08);
}
.btn-engaja.on {
  background: #384aa0;
  color: #d3f482;
}
[data-bs-theme="dark"] .btn-engaja {
  border-color: #d3f482;
  color: #d3f482;
}
[data-bs-theme="dark"] .btn-engaja.on {
  background: #d3f482;
  color: #191248;
}

/* Gamificação: badge de nível sobre a foto e widget no dropdown do usuário */
.user-avatar {
  position: relative;
  display: inline-flex;
  flex: none;
}
.user-nivel-mini {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(25, 18, 72, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-nivel-mini img {
  width: 13px;
  height: 13px;
}
.user-drop-nivel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: default;
}
.user-drop-nivel img {
  width: 44px;
  height: 44px;
  flex: none;
}
.nivel-info {
  flex: 1;
  min-width: 0;
}
.nivel-nome {
  font-weight: 600;
  font-size: 14px;
  color: #191248;
}
.nivel-pts {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.nivel-barra {
  height: 6px;
  border-radius: 999px;
  background: rgba(56, 74, 160, 0.15);
  margin-top: 6px;
  overflow: hidden;
}
.nivel-barra span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #384aa0, #d3f482);
}
a.user-drop-nivel {
  text-decoration: none;
  cursor: pointer;
}
a.user-drop-nivel:hover {
  background: rgba(56, 74, 160, 0.06);
}

/* Números Porter: box grande acompanha exatamente a altura das fileiras de produtos */
.sec-6-home-1 .block-discover {
  height: 100%;
}
.numeros-col > .row {
  flex: 1;
  align-content: space-between;
}

/* Números Porter por mês (métricas do banco) — cards no padrão do template */
.sec-metricas .section-title.dark {
  background-color: #191248 !important;
}
.metrica-card {
  padding: 32px 20px;
  border: 2px solid transparent;
  background: #eef1fe;
}
.metrica-card.destaque {
  border-color: var(--porter-lime);
}
.metrica-ico {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}
.metrica-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #0e0e0f;
}
.metrica-num .odometer {
  font-size: inherit;
  font-weight: inherit;
}
.metrica-sufixo {
  font-size: 20px;
  font-weight: 700;
  margin-left: 3px;
}
.metrica-rotulo {
  color: #0e0e0f;
}
[data-bs-theme="dark"] .metrica-card {
  background: #120d30;
}
[data-bs-theme="dark"] .metrica-num,
[data-bs-theme="dark"] .metrica-rotulo {
  color: #fff;
}

/* Página /desafios */
.desafios-hero {
  background: #191248;
}
/* !important: .text-600 do template também usa !important */
.desafios-hero h1,
.desafios-hero p {
  color: #fff !important;
}
.desafio-nivel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(56, 74, 160, 0.15);
  box-shadow: 0 6px 24px rgba(25, 18, 72, 0.06);
}
.desafio-nivel-card img {
  width: 56px;
  height: 56px;
  flex: none;
}
.desafio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 60px 38px 38px;
  border-radius: 16px;
  background: #fff;
  height: 100%;
  position: relative;
}
.desafio-card.feito {
  border-color: #a4c76a;
  background: rgba(211, 244, 130, 0.12);
}
.desafio-ico {
  width: 72px;
  height: 72px;
  flex: none;
}
.desafio-corpo {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.desafio-corpo .nivel-barra {
  margin-top: auto;
}
.desafio-titulo {
  font-weight: 600;
  font-size: 15px;
  color: #191248;
}
.desafio-desc {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.desafio-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.desafio-check {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--porter-lime);
  color: var(--porter-navy);
  font-size: 11px;
  font-weight: 600;
}
[data-bs-theme="dark"] .desafio-nivel-card,
[data-bs-theme="dark"] .desafio-card {
  background: #120d30;
  border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .desafio-card.feito {
  background: rgba(211, 244, 130, 0.08);
  border-color: rgba(211, 244, 130, 0.4);
}
[data-bs-theme="dark"] .desafio-titulo {
  color: #fff;
}

/* ============================================================
   NOTEBOOK (min-width: 992px)
   ============================================================ */
@media (min-width: 992px) {
  #produtos-tabs .prod-tabs .nav-item {
    width: 100%;
  }
  #produtos-tabs .prod-tabs .nav-link {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* Notebook estreito (992–1499px): menu com 7 itens não cabe com o gap cheio */
@media (min-width: 992px) and (max-width: 1499.98px) {
  .navbar .navbar-nav {
    gap: 14px;
  }
  .navbar .navbar-nav .nav-item .nav-link {
    font-size: 0.875rem;
  }
  .navbar .navbar-nav .nav-item .nav-link.dropdown-toggle {
    padding-right: 18px;
  }
}

/* ============================================================
   CELULAR / TABLET (max-width: 991.98px)
   ============================================================ */
@media (max-width: 991.98px) {
  #produtos-tabs .swiper-produtos .swiper-slide {
    width: 82%;
  }

  #produtos-tabs .prod-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #produtos-tabs .prod-tabs::-webkit-scrollbar {
    display: none;
  }

  .article.card-1 .card-img-top,
  .article.card-1 .card-img-top img {
    height: 340px;
  }
}
