/* ===========================================================================
   app-v2.css — Revisão Visual Ampla (2026-04-17)

   Este arquivo carrega DEPOIS de shared.css e app.css. Contem apenas classes
   NOVAS (add-only), absorvidas do material do Claude Design (variante A).
   Nao renomeia nem substitui classes existentes — coexistencia intencional
   pra manter retrocompatibilidade com 687 testes e views estabilizadas.

   Padrao de nomenclatura: BEM (`.bloco__elemento--modificador`), consistente
   com o material novo. Classes kebab-case antigas continuam validas.

   Ver docs/visual-review/collision-map.md para mapeamento completo.

   Blocos:
     V1 — Shell (container--wide, hero--v2, footer-grid, displays, badges, eyebrow-dot)
     V3/4/5/6 serao adicionados nos blocos seguintes da revisao.
   =========================================================================== */

/* ---------- V1 · Container mais largo (para 2-colunas em /conta, /admin) ---------- */
.container--wide {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

/* ---------- V1 · Tipografia hero ampliada ---------- */
.display-1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.display-2 {
  font-size: clamp(2rem, 3.5vw + 0.8rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ---------- V1 · Eyebrow com dot ---------- */
/* A classe `.eyebrow` ja existe em shared.css. O dot eh um adorno inline
   a esquerda do texto, usado em todos os page-hero do mockup. */
.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

.eyebrow--green .eyebrow-dot {
  background: var(--green);
}

/* ---------- V1 · Badges pequenas reutilizaveis ---------- */
/* Diferente de .brand-badge (que tem uso fixo no header). Essa eh generica. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.badge--accent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge--green {
  background: var(--green-light);
  color: var(--green);
}

.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- V1 · Icon button (toggle/acoes discretas) ---------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.icon-btn__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- V1 · Footer grid (4 colunas expansivas) ---------- */
/* Substitui o footer atual em largura, preservando os estilos base (fundo
   navy, tipografia, etc). Layout ganha colunas estruturadas. Usado em V3. */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 32px;
}

.footer-brand-col {
  max-width: 320px;
}
.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 8px 0 0;
  opacity: 0.7;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col > strong,
.footer-col > h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: inherit;
  opacity: 0.9;
}

.footer-col a {
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 160ms ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-social {
  display: inline-flex;
  gap: 12px;
}

.footer-social a {
  color: inherit;
  opacity: 0.7;
  transition: opacity 160ms ease;
}

.footer-social a:hover {
  opacity: 1;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 24px;
  }
  .footer-brand-col {
    max-width: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------- V1 · Hero v2 (estrutura flexivel pra home + pages internas) ---------- */
/* O .page-hero atual continua sendo usado em telas internas. .hero--v2 eh
   a estrutura nova, aplicada progressivamente em V3 (home) e V4+ quando
   tiver sentido. */
.hero--v2 {
  position: relative;
  padding: 96px 0 64px;
  background:
    linear-gradient(180deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 50%, var(--hero-grad-3) 100%);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero__glow--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: 10%;
  background: var(--accent-glow);
}

.hero__glow--2 {
  width: 320px;
  height: 320px;
  top: 20%;
  right: 8%;
  background: var(--green-light);
}

.hero__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero__trust {
  display: inline-flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__trust-item::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 720px) {
  .hero--v2 {
    padding: 64px 0 48px;
  }
  .hero__trust {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- V1 · Dark mode ajustes finos ---------- */
[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .icon-btn {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .icon-btn:hover {
  border-color: var(--border-hover);
}

/* ===========================================================================
   V4 · /conta — layout 2 colunas (sidenav sticky + conteudo grid 2-col)
   ===========================================================================
   Convivencia com estilos antigos: a view nova de /conta usa classes BEM
   abaixo (.account-layout, .account-sidenav, .account-main) e re-usa classes
   antigas compatives (.info-card existente).
*/

/* Section wrapper usado em todas as paginas internas v2 */
.content-section {
  padding: 32px 0 80px;
}

/* Page hero v2 (estrutura flexivel pra paginas internas autenticadas) */
.page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-hero__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}
.page-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}
.page-hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}
.page-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Layout principal 2-col: sidenav fixa + conteudo */
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.account-sidenav {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-sidenav__header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-sidenav__user-meta {
  min-width: 0;
  flex: 1;
}
.account-sidenav__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-sidenav__email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-sidenav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}
.account-sidenav__item:hover {
  color: var(--text);
  background: var(--surface-2);
}
.account-sidenav__item--active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}
.account-sidenav__item--danger {
  color: #dc2626;
}
[data-theme="dark"] .account-sidenav__item--danger {
  color: #f87171;
}
.account-sidenav__item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.account-sidenav__divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Conteudo principal: grid 2-col de info-cards; cards --full ocupam toda a linha */
.account-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.account-main > .info-card--full {
  grid-column: 1 / -1;
}

/* Info-card refinado (convive com .info-header do app.css — ver nota abaixo).
   Novas classes .info-card__head/__icon/__title sao a versao v2. */
.info-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.info-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}
.info-card__icon svg {
  width: 15px;
  height: 15px;
}
.info-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}
.info-card--danger {
  border-color: rgba(220, 38, 38, 0.28);
  /* Tint sutil de vermelho sobre o surface; cores literais ao inves de
     color-mix (mais ampla compatibilidade headless/preview). */
  background: #fdf6f6;
}
.info-card--danger .info-card__icon {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}
[data-theme="dark"] .info-card--danger {
  background: #1e1318;
}
[data-theme="dark"] .info-card--danger .info-card__icon {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

/* Info-row (equivalente BEM de .info-item) */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-row__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.info-row__value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* Forms refinados */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Session rows (formato linha compacta no lugar de .session-list antigo) */
.sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.session-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.session-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.session-row__icon svg {
  width: 15px;
  height: 15px;
}
.session-row__body {
  flex: 1;
  min-width: 0;
}
.session-row__agent {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text);
}
.session-row__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
[data-theme="dark"] .session-row {
  background: var(--surface-2);
}

/* Responsivo — em mobile a sidenav vira horizontal scroll */
@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .account-sidenav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
    scrollbar-width: none;
  }
  .account-sidenav::-webkit-scrollbar {
    display: none;
  }
  .account-sidenav__header {
    display: none;
  }
  .account-sidenav__divider {
    display: none;
  }
  .account-sidenav__item {
    flex-shrink: 0;
    padding: 10px 14px;
  }
  .account-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Anchor scrolling pra sidenav: usa scroll-margin nos targets ao inves de
   scroll-padding global no html. Evita que screenshot tools / headless
   browsers travem esperando animacao "smooth" infinita.
   Smooth opcional fica restrito a clique de anchor via CSS isolado. */
.account-main [id] {
  scroll-margin-top: 80px;
}

/* ===========================================================================
   V4.1 · Polimento /conta — alinhamento, sombras, tipografia, page-hero V2
   ===========================================================================
   Objetivo: aproximar fielmente o resultado visual do mockup. Tudo aqui eh
   override cirurgico. Nao quebra views legacy: usa seletores que so atingem
   /conta (.account-main) ou apenas paginas que adotam o page-hero V2
   (.page-hero:has(.page-hero__inner)).
*/

/* Cards na mesma fileira ganham mesma altura (resolve "Trocar senha" alto +
   "Baixar dados" curto criando vazio inferior). */
.account-main {
  align-items: stretch;
}
.account-main > .info-card {
  display: flex;
  flex-direction: column;
}
/* Dentro do card, conteudo principal cresce e empurra o botao pro fundo. */
.account-main .form-stack {
  flex: 1;
}
.account-main .info-list {
  flex: 1;
}

/* Sombras mais marcantes nos info-cards de /conta (mantem flat em outras
   telas que ainda nao foram refatoradas). */
.account-main .info-card {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.account-main .info-card:hover {
  box-shadow: var(--shadow-md);
}

/* Page-hero V2: classe explicita ao inves de seletor :has() (que pode travar
   alguns headless renderers). Aplicar adicionando "page-hero--v2" no html
   da pagina que usa o page-hero__inner. */
.page-hero--v2 {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, var(--hero-grad-1), var(--surface-2));
  border-bottom: 1px solid var(--border);
}

/* Refino tipografia das labels de info-row (uppercase + spacing leve "spec").
   So afeta info-row dentro do account (legado .info-label intacto). */
.account-main .info-row__label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
}

/* O <form> dentro do info-card eh empurrado pro fundo. Como o info-card eh
   flex column, isso faz com que botoes/inputs do form sentem no fim do card,
   alinhando baselines entre cards de altura desigual na mesma fileira. */
.account-main .info-card > form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
/* Garante que .form-stack ainda funcione dentro do form (preserva gap). */
.account-main .info-card > form.form-stack {
  gap: 14px;
}

/* Form que vem APOS uma info-list (card "Perfil" unificado: read-only no
   topo + form de editar Nome embaixo) ganha separador visual sutil. */
.account-main .info-card > .info-list + form,
.account-main .info-card .info-card__form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Espacamento interno do info-card mais compacto pra densidade visual maior. */
.account-main .info-card {
  padding: 22px 24px;
}
.account-main .info-card__head {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

/* Hint mais sutil dentro do card em /conta (forms-hint sem dominar). */
.account-main .form-hint {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* Dark mode: sombras precisam ser mais discretas (background ja eh escuro). */
[data-theme="dark"] .account-main .info-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.18);
  border-color: var(--border-strong);
}
[data-theme="dark"] .account-main .info-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.42), 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ===========================================================================
   V5 · Dashboard — stat-card v2 com label/value/delta/sparkline + dash-grid
   ===========================================================================
   Convive com .stat-card antigo do app.css. As novas regras usam BEM
   (.stat-card__head, __label, __icon, __value, __delta, __meta, __sparkline)
   atingindo apenas as cards refatorados. Cards legados em outras pages
   continuam intactos.
*/

/* Grid de 3 stat-cards no topo do dashboard */
.dash-section .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}
.dash-section .stat-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease;
}
.dash-section .stat-card:hover {
  box-shadow: var(--shadow-md);
}
.stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}
.stat-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
}
.stat-card__icon--green {
  background: var(--green-light);
  color: var(--green);
}
.stat-card__icon svg {
  width: 14px;
  height: 14px;
}
.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 0;
}
.stat-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 7px;
  border-radius: 5px;
}
.stat-card__delta--neg {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.stat-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}
.stat-card__sparkline {
  margin-top: 12px;
  height: 36px;
  width: 100%;
}
.stat-card__sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dash grid 2-col: panel esquerda 2fr (programas), direita 1fr (dicas) */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* Quando user nao tem acessos recentes, mostra apenas o panel "Dicas rapidas"
   centralizado em max-width controlada (em vez de 2-col com lado esquerdo
   vazio). Mantem visual coerente sem deixar espaco morto. */
.dash-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Panel — container generico pra blocos com head + body */
.panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.panel__head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}
.panel__subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.panel__body {
  padding: 0;
}
.panel__body--padded {
  padding: 20px 22px;
}
.panel__foot {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Program row — formato compacto pra listas de programas dentro do panel */
.program-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 140ms ease;
}
.program-row:hover {
  background: var(--surface-2);
}
.program-row:last-child {
  border-bottom: none;
}
.program-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.program-row__icon svg {
  width: 16px;
  height: 16px;
}
.program-row__body {
  min-width: 0;
}
.program-row__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.program-row__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: baseline;
}
.program-row__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tip list (panel da direita "Dicas rápidas") */
.tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tip {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.tip__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tip__icon svg {
  width: 15px;
  height: 15px;
}
.tip__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.tip__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 3px 0 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .dash-section .stat-grid {
    grid-template-columns: 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================
   V6 · Admin — dashboard com layout 2-col + ranked-list e last-users
   =========================================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.admin-layout--wide {
  grid-template-columns: 1fr 1fr 1fr;
}

.ranked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ranked-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  transition: background 140ms ease;
  text-decoration: none;
  color: inherit;
}
.ranked-row:last-child {
  border-bottom: none;
}
.ranked-row:hover {
  background: var(--surface-2);
}
.ranked-row__rank {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  flex-shrink: 0;
}
.ranked-row__body {
  min-width: 0;
}
.ranked-row__name {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranked-row__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 1px 0 0;
}
.ranked-row__value {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* User row — pra "Últimos usuários" no admin */
.user-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  transition: background 140ms ease;
  text-decoration: none;
  color: inherit;
}
.user-row:last-child {
  border-bottom: none;
}
.user-row:hover {
  background: var(--surface-2);
}
.user-row__body {
  min-width: 0;
}
.user-row__name {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-row__email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 1px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-row__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-layout,
  .admin-layout--wide {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================
   V3 · Home publica — pillars numerados, steps "como funciona", CTA final
   =========================================================================== */

/* Section helper (head com eyebrow + title + lead centralizado) */
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section__head .lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Lead generico */
.lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

/* Pillars com numeração V2 */
.pillars-grid--v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar--v2 {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.pillar--v2:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pillar__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.pillar__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--text);
}
.pillar__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.pillar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.pillar__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.pillar__meta-item svg {
  width: 12px;
  height: 12px;
}

/* Steps "Como funciona" */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.step__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--text);
}
.step__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Section "Como funciona" — fundo sutil pra separar */
.section--bordered {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

/* CTA final escuro */
.cta-final {
  padding: 80px 0;
}
.cta-card {
  position: relative;
  background: linear-gradient(135deg, #1a1f3a 0%, #0F172A 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 56px 48px;
  color: #FFFFFF;
}
.cta-card__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-card__text {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.cta-card__eyebrow .eyebrow-dot {
  background: #FFFFFF;
}
.cta-card__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: #FFFFFF;
}
.cta-card__lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 520px;
  line-height: 1.5;
}
.cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-card__actions .btn--primary {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #FFFFFF;
}
.cta-card__actions .btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
}
.cta-card__actions .btn--ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}
.cta-card__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .pillars-grid--v2,
  .steps {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 36px 24px;
  }
  .cta-card__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .section--bordered {
    padding: 56px 0;
  }
  .cta-final {
    padding: 56px 0;
  }
}
