/* ============================================================
   BRAZUCA - PAINEL PREMIUM
   Identidade Brasileira: Amarelo Elétrico + Preto/Grafite
   ============================================================ */

/* ===== VARIÁVEIS GLOBAIS — PALETA BRAZUCA ===== */
:root {
  /* Fundos — preto/grafite profundo como base */
  --bg-primary: #0A0C10;
  --bg-sidebar: rgba(12, 15, 20, 0.96);
  --bg-card: rgba(22, 26, 34, 0.72);
  --bg-card-hover: rgba(28, 33, 43, 0.85);
  --bg-input: rgba(255, 255, 255, 0.05);

  /* Cores de assinatura BRAZUCA */
  --brazuca-yellow: #FFD400;        /* amarelo elétrico — cor de assinatura */
  --brazuca-yellow-bright: #FFE14D; /* amarelo claro p/ hover/destaque */
  --brazuca-yellow-deep: #E6B800;   /* amarelo profundo p/ gradientes */
  --brazuca-green: #00E676;         /* verde estratégico (detalhes) */
  --brazuca-green-deep: #00C853;    /* verde profundo */
  --brazuca-graphite: #1A1F29;      /* grafite p/ superfícies */
  --brazuca-graphite-light: #242B38;/* grafite claro p/ hover */

  /* Compatibilidade: mantém os nomes antigos apontando p/ a nova paleta */
  --neon-cyan: #FFD400;
  --neon-pink: #FFD400;
  --neon-green: #00E676;
  --accent-color: #FFD400;

  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #9AA3B2;
  --text-muted: #5C6675;

  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-cyan: rgba(255, 212, 0, 0.14);
  --border-cyan-strong: rgba(255, 212, 0, 0.35);

  /* Sombras — amarelo elétrico */
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 12px 44px 0 rgba(255, 212, 0, 0.12);
  --shadow-pink: 0 8px 32px 0 rgba(255, 212, 0, 0.18);

  /* Layout */
  --sidebar-width: 260px;
  --grid-gap: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  /* Tipografia */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

body {
  margin: 0;
  display: flex;
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fundo decorativo com gradientes sutis BRAZUCA (amarelo + grafite) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 212, 0, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 230, 118, 0.04) 0%, transparent 50%),
    var(--bg-primary);
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 212, 0, 0.18);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 212, 0, 0.35);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-cyan);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: backdrop-filter;
  position: relative;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.05));
  border: 1px solid var(--border-cyan-strong);
  color: var(--brazuca-yellow);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.15);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-title em {
  font-style: normal;
  color: var(--brazuca-yellow);
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  transition: color 0.25s ease;
}

.nav-item:hover {
  background: rgba(255, 212, 0, 0.07);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.14), rgba(255, 212, 0, 0.03));
  color: var(--brazuca-yellow);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--brazuca-yellow);
  box-shadow: 0 0 12px var(--brazuca-yellow);
}

/* ===== CATEGORIAS REATIVAS DO CMS NA SIDEBAR ===== */
/* Container das categorias injetadas abaixo de "Geradores" */
#dynamicCmsNav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

#dynamicCmsNav .cms-nav-label {
  padding-top: 10px;
}

/* Itens de categoria herdam o padrão visual nativo da sidebar */
#dynamicCmsNav .cms-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

#dynamicCmsNav .cms-cat-item i {
  width: 18px;
  font-size: 15px;
  text-align: center;
  color: var(--brazuca-yellow);
  transition: color 0.25s ease;
}

#dynamicCmsNav .cms-cat-item:hover {
  background: rgba(255, 212, 0, 0.07);
  color: var(--text-primary);
}

/* Estado ativo (Amarelo) da categoria selecionada */
#dynamicCmsNav .cms-cat-item.active {
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.16), rgba(255, 212, 0, 0.04));
  color: var(--brazuca-yellow);
  font-weight: 600;
}

#dynamicCmsNav .cms-cat-item.active i {
  color: var(--brazuca-yellow);
  text-shadow: 0 0 10px var(--brazuca-yellow);
}

#dynamicCmsNav .cms-cat-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--brazuca-yellow);
  box-shadow: 0 0 12px var(--brazuca-yellow);
}

/* Estado vazio da seção de categoria */
.cms-cat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.cms-cat-empty i {
  font-size: 40px;
  color: var(--brazuca-yellow);
  opacity: 0.6;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--neon-pink);
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.2), rgba(255, 212, 0, 0.05));
  border: 1px solid rgba(255, 212, 0, 0.3);
  box-shadow: var(--shadow-pink);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-status {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

/* Botão Sair */
.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 212, 0, 0.08);
  border: 1px solid rgba(255, 212, 0, 0.25);
  color: var(--neon-pink);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-logout svg {
  width: 18px;
  height: 18px;
}

.btn-logout:hover {
  background: rgba(255, 212, 0, 0.15);
  border-color: rgba(255, 212, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 212, 0, 0.2);
  transform: translateY(-1px);
}

.btn-logout:active {
  transform: translateY(0);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 44px;
  position: relative;
}

/* ===== TAB SECTIONS (SPA) ===== */
.tab-section {
  display: none !important;
}

.tab-section.active {
  display: block !important;
  animation: fadeIn 0.4s ease;
}

/* Dashboard: container de categorias dinâmicas do CMS empilhado em coluna */
#tab-dashboard.active {
  display: flex !important;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.header-title h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.header-title p {
  font-size: 14px;
  color: var(--text-secondary);
}

.highlight-pink {
  color: var(--brazuca-yellow);
  text-shadow: 0 0 20px rgba(255, 212, 0, 0.4);
}

.highlight-cyan {
  color: var(--accent-color, var(--brazuca-yellow));
  text-shadow: 0 0 20px rgba(255, 212, 0, 0.4);
}

/* ===== BOTÕES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brazuca-yellow), var(--brazuca-yellow-deep));
  color: #0A0C10;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 32px 0 rgba(255, 212, 0, 0.25);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 212, 0, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(255, 212, 0, 0.4);
  background: linear-gradient(135deg, var(--brazuca-yellow-bright), var(--brazuca-yellow));
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-service {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.14), rgba(255, 212, 0, 0.04));
  border: 1px solid var(--border-cyan);
  color: var(--brazuca-yellow);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-service:hover {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.22), rgba(255, 212, 0, 0.08));
  box-shadow: 0 0 20px rgba(255, 212, 0, 0.18);
}

/* ===== STATUS CARDS ===== */
.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.status-card:hover {
  border-color: var(--border-cyan-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.status-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon svg {
  width: 22px;
  height: 22px;
}

.status-icon.cyan {
  background: rgba(255, 212, 0, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(255, 212, 0, 0.2);
}

.status-icon.pink {
  background: rgba(255, 212, 0, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 212, 0, 0.2);
}

.status-icon.green {
  background: rgba(0, 255, 163, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.2);
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.status-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.status-value {
  font-size: 16px;
  font-weight: 700;
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-badge.active {
  background: rgba(0, 255, 163, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.3);
}

.status-badge.warn {
  background: rgba(255, 212, 0, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 212, 0, 0.3);
}

.status-badge.up {
  background: rgba(255, 212, 0, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(255, 212, 0, 0.3);
}

/* ===== SECTION TITLE ===== */
.section-title {
  margin-bottom: 24px;
}

/* Título de categoria dinâmica (CMS) - espaçamento entre blocos */
.cms-cat-title {
  margin-top: 36px;
}

.cms-cat-title:first-of-type {
  margin-top: 0;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-title p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--border-cyan-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-icon.uber {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.04));
  color: var(--neon-cyan);
  border: 1px solid rgba(255, 212, 0, 0.25);
}

.service-icon.nine-nine {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.04));
  color: var(--neon-pink);
  border: 1px solid rgba(255, 212, 0, 0.25);
}

.service-icon.consultas {
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.15), rgba(0, 255, 163, 0.04));
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.25);
}

/* Ícones Font Awesome renderizados dinamicamente pelo CMS */
.service-icon i {
  font-size: 24px;
  line-height: 1;
}

/* Título de categoria dinâmica (CMS) */
.cms-cat-title {
  margin-top: 8px;
  width: 100%;
}
.cms-cat-title h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cms-cat-title h2 i {
  font-size: 18px;
  color: var(--neon-cyan);
}

/* Grids dinâmicas do CMS */
.cms-grid {
  margin-bottom: 24px;
  width: 100%;
}

/* Wrapper único que envolve todos os blocos dinâmicos do CMS (categorias +
   grids). Garante que os blocos irmãos sejam renderizados corretamente,
   evitando que o navegador descarte categorias ao injetar múltiplos
   elementos raiz via outerHTML. */
.cms-dynamic-wrap {
  width: 100%;
  display: block;
}

/* Tags de status do CMS */
.service-tag.manutencao {
  background: rgba(255, 212, 0, 0.1);
  color: #FFD400;
  border: 1px solid rgba(255, 212, 0, 0.25);
}
.service-tag.inativo {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
  border: 1px solid rgba(255, 77, 79, 0.25);
}

/* Cards desabilitados (manutenção/indisponível) */
.service-card[data-disabled="true"] {
  opacity: 0.65;
  filter: grayscale(0.3);
}
.service-card[data-disabled="true"] .btn-service {
  cursor: not-allowed;
  opacity: 0.6;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 212, 0, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(255, 212, 0, 0.2);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.service-card > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.card-stats {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== CHECK STATUS ===== */
.check-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}

.check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.check-dot.ok {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.check-dot.warn {
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}

/* ===== MODAL DE CARREGAMENTO ===== */
/* ===== OVERLAY DE MANUTENÇÃO ===== */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.maintenance-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.maintenance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 60px;
  max-width: 420px;
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 60px 0 rgba(255, 212, 0, 0.2);
}

.maintenance-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.12);
  border: 1px solid var(--border-pink);
  color: var(--neon-pink);
}

.maintenance-icon svg {
  width: 34px;
  height: 34px;
}

.maintenance-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.maintenance-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 44px 56px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 60px 0 rgba(255, 212, 0, 0.15);
  text-align: center;
  min-width: 320px;
}

.modal-loader {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 212, 0, 0.1);
  border-top-color: var(--neon-cyan);
  border-right-color: var(--neon-pink);
  animation: spin 1.2s linear infinite;
}

.loader-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 212, 0, 0.1);
  border-bottom-color: var(--neon-pink);
  animation: spin 1.8s linear infinite reverse;
}

.loader-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.15));
  color: var(--neon-cyan);
  border: 1px solid var(--border-cyan);
}

.loader-core svg {
  width: 26px;
  height: 26px;
}

.modal-content h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== MODAL DE MANUTENÇÃO DE MÓDULO ===== */
.module-maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.module-maintenance-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.module-maintenance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 44px 52px;
  max-width: 460px;
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 60px 0 rgba(255, 193, 7, 0.18);
}

.module-maintenance-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.12);
  border: 1px solid rgba(255, 212, 0, 0.4);
  color: #FFD400;
  font-size: 30px;
}

.module-maintenance-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.module-maintenance-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.module-maintenance-btn {
  margin-top: 6px;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FFD400, #FFC400);
  color: #080A10;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.module-maintenance-btn:hover {
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.4);
  transform: translateY(-2px);
}

.modal-progress {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.4);
  transition: width 0.2s ease;
}

.modal-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  will-change: transform, opacity;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 163, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.3);
  flex-shrink: 0;
}

.toast-icon svg {
  width: 18px;
  height: 18px;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-text strong {
  font-size: 14px;
  font-weight: 600;
}

.toast-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== ANIMAÇÕES ===== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .main-content {
    padding: 32px 30px;
  }
}

@media (max-width: 768px) {
  /* ===== SIDEBAR → BARRA INFERIOR FIXA (MOBILE) =====
     Libera 100% da largura da tela para o conteúdo. A navegação principal
     (Novidades, Dashboard, Categorias, Sair) fica numa barra fixa na base.
     Apenas apresentação; nenhum seletor financeiro é alterado. */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    border-right: none;
    border-top: 1px solid var(--border-cyan);
    z-index: 100;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .sidebar-logo,
  .sidebar-nav .nav-label,
  .sidebar-footer .nav-label,
  .sidebar-user,
  .nav-item span {
    display: none;
  }

  .sidebar-nav {
    flex: 1;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    overflow: visible;
    gap: 4px;
  }

  .sidebar-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav-item {
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 10px;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .btn-logout {
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .btn-logout svg {
    width: 20px;
    height: 20px;
  }

  /* Libera a largura total do conteúdo + reserva espaço para a barra inferior.
     O padding-bottom (104px) é maior que a altura da barra (~98px) para que o
     último conteúdo nunca fique coberto pela barra fixa. */
  .main-content {
    padding: 28px 24px calc(104px + env(safe-area-inset-bottom));
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .header-title h1 {
    font-size: 22px;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 20px;
  }

  /* ===== CATEGORIAS CONSULTA CPF / PLACA / CNH (MOBILE) =====
     Corrige sobreposição e compressão: mais espaçamento vertical entre
     título, descrição, input e botão; evita corte de texto; mantém o card
     dentro da largura da tela; inputs e botões responsivos. */
  .service-card {
    gap: 18px;
  }
  .service-card h3 {
    font-size: 18px;
    line-height: 1.3;
  }
  .service-card > p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
  }
  .service-card .consulta-input-wrap {
    margin-top: 18px;
    width: 100%;
  }
  .service-card .consulta-input-wrap .gerador-input {
    width: 100%;
    min-width: 0;
    font-size: 15px;
    letter-spacing: 1px;
    padding-left: 40px;
    box-sizing: border-box;
  }
  .service-card .btn-service {
    width: 100%;
    margin-top: 4px;
    padding: 13px 12px;
    box-sizing: border-box;
    white-space: normal;
  }
  .service-card .card-stats {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cms-cat-title {
    margin-top: 28px;
  }
}

/* ===== MOBILE (SMARTPHONES) ===== */
@media (max-width: 480px) {
  .main-content {
    padding: 16px 12px calc(104px + env(safe-area-inset-bottom));
  }

  .page-header {
    margin-bottom: 20px;
  }

  .header-title h1 {
    font-size: 20px;
  }

  .section-title {
    margin-bottom: 16px;
  }

  .section-title h2 {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 18px;
  }

  /* ===== CONSULTA CPF / PLACA / CNH — TELAS MUITO PEQUENAS =====
     Garante que o card não estoure a largura da tela e que título,
     descrição, input e botão tenham respiro vertical suficiente. */
  .service-card {
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .service-card h3 {
    font-size: 17px;
  }
  .service-card > p {
    font-size: 12.5px;
  }
  .service-card .consulta-input-wrap {
    margin-top: 16px;
  }
  .service-card .consulta-input-wrap .gerador-input {
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 12px 12px 12px 38px;
  }
  .service-card .btn-service {
    padding: 14px 12px;
    font-size: 13px;
  }

  .cms-cat-title {
    margin-top: 24px;
  }

  .plans-section-title {
    margin-top: 36px;
  }

  .plans-vitrine {
    gap: 16px;
    margin-top: 18px;
  }
}

/* ===== MENU LATERAL DINÂMICO (ÍCONES FONTAWESOME) ===== */
.nav-item i {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: color 0.25s ease;
}

/* ===== VITRINE DE PLANOS (DINÂMICA) ===== */
.plans-section-title {
  margin-top: 48px;
}

.plans-vitrine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.plan-vitrine-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 212, 0, 0.05), rgba(10, 14, 26, 0.6));
  border: 1px solid rgba(255, 212, 0, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plan-vitrine-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 212, 0, 0.5);
  box-shadow: 0 12px 40px rgba(255, 212, 0, 0.15);
}

.plan-vitrine-card.featured {
  border-color: rgba(255, 212, 0, 0.5);
  background: linear-gradient(160deg, rgba(255, 212, 0, 0.08), rgba(10, 14, 26, 0.6));
}

.plan-vitrine-card.featured:hover {
  border-color: rgba(255, 212, 0, 0.8);
  box-shadow: 0 12px 40px rgba(255, 212, 0, 0.2);
}

.plan-vitrine-glow {
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.15), transparent 70%);
  pointer-events: none;
}

.plan-vitrine-card.featured .plan-vitrine-glow {
  background: radial-gradient(circle, rgba(255, 212, 0, 0.18), transparent 70%);
}

.plan-vitrine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.plan-vitrine-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid;
}

.plan-vitrine-icon.cyan {
  background: rgba(255, 212, 0, 0.14);
  border-color: rgba(255, 212, 0, 0.4);
  color: #FFD400;
}

.plan-vitrine-icon.pink {
  background: rgba(255, 212, 0, 0.14);
  border-color: rgba(255, 212, 0, 0.4);
  color: #FFD400;
}

.plan-vitrine-icon.green {
  background: rgba(0, 230, 118, 0.14);
  border-color: rgba(0, 230, 118, 0.4);
  color: #00E676;
}

.plan-vitrine-icon.orange {
  background: rgba(255, 225, 77, 0.14);
  border-color: rgba(255, 225, 77, 0.4);
  color: #FFE14D;
}

.plan-vitrine-badge {
  padding: 4px 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, #FFD400, #E6B800);
  color: #0A0C10;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.plan-vitrine-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.plan-vitrine-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.plan-vitrine-currency {
  font-size: 16px;
  font-weight: 700;
  color: var(--neon-cyan);
}

.plan-vitrine-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--brazuca-yellow);
  line-height: 1;
}

.plan-vitrine-card.featured .plan-vitrine-currency,
.plan-vitrine-card.featured .plan-vitrine-value {
  color: var(--brazuca-yellow);
}

.plan-vitrine-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan-vitrine-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-vitrine-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-vitrine-features li i {
  color: #00E676;
  font-size: 12px;
  flex-shrink: 0;
}

.plan-vitrine-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #FFD400, #E6B800);
  color: #0A0C10;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-vitrine-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.35);
}

.plan-vitrine-card.featured .plan-vitrine-btn {
  background: linear-gradient(90deg, #FFD400, #FFE14D);
  color: #0A0C10;
}

.plan-vitrine-card.featured .plan-vitrine-btn:hover {
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.45);
}

@media (max-width: 768px) {
  .plans-vitrine {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   VIEWPORT INTERNA DE FERRAMENTAS (ex.: "Venda de Bicos")
   Dark Neon Abyssal · Amaterasu / Black Flames
   ============================================================ */

/* ===== VIEWPORT DE FERRAMENTAS — RESERVA PARA O RODAPÉ FIXO =====
   O rodapé fixo "Medidor Dinâmico de Consultas" (.consulta-meter-footer,
   position:fixed; bottom:16px; z-index:1000) flutua sobre o fundo do
   .main-content. Em viewports baixos, os botões de ação ancorados no fim
   da ferramenta (ex.: o botão GERAR do Gerador de Veículos) ficavam sob o
   rodapé e NÃO recebiam o clique físico (automação e clique real).
   Reserva-se espaço inferior (~160px = altura do rodapé + folga) no
   contêiner de rolagem da ferramenta para que todo o conteúdo possa subir
   acima do rodapé. Escopo restrito a #tab-tool: não altera o dashboard. */
#tab-tool {
  padding-bottom: 160px;
}

.tool-viewport {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.4s ease;
}

.tool-viewport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.tool-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.tool-back-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--border-cyan-strong);
  background: rgba(255, 212, 0, 0.08);
}

.tool-back-btn svg {
  width: 16px;
  height: 16px;
}

.tool-viewport-title {
  flex: 1;
  min-width: 200px;
}

.tool-viewport-title h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-viewport-title h1 i {
  color: var(--neon-pink);
  text-shadow: 0 0 20px rgba(255, 212, 0, 0.5);
}

.tool-viewport-title p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.tool-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 255, 163, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== Abas internas ===== */
.tool-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow-x: auto;
}

.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.tool-tab i {
  font-size: 14px;
}

.tool-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tool-tab.active {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.05));
  color: var(--neon-cyan);
  border-color: var(--border-cyan-strong);
  box-shadow: 0 0 16px rgba(255, 212, 0, 0.1);
}

/* ===== Painéis ===== */
.tool-panel {
  display: none;
}

.tool-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.tool-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tool-card-title i {
  color: var(--neon-cyan);
  font-size: 18px;
}

.tool-card-title h3 {
  font-size: 16px;
  font-weight: 700;
}

.tool-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== Upload de foto ===== */
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px;
  border: 2px dashed var(--border-cyan-strong);
  border-radius: var(--radius);
  background: rgba(255, 212, 0, 0.03);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--neon-cyan);
  background: rgba(255, 212, 0, 0.08);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.15);
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.1));
  color: var(--neon-cyan);
  font-size: 24px;
  margin-bottom: 4px;
}

.upload-text {
  font-size: 14px;
  color: var(--text-primary);
}

.upload-text strong {
  color: var(--neon-cyan);
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-preview {
  position: relative;
  margin-top: 12px;
  width: 100%;
  max-width: 260px;
}

/* Foto grande e contida: nunca esmagada, sempre preenchendo a área com
   object-fit cover e altura fixa para estabilidade visual. */
.upload-preview img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-cyan-strong);
  box-shadow: 0 0 20px rgba(255, 212, 0, 0.2);
  display: block;
}

/* Laser de análise aplicado SOBRE a própria foto enviada (sobe e desce). */
.tool-scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.tool-scan-laser.active {
  opacity: 1;
  animation: laserScan 1.6s ease-in-out infinite;
}

/* Status de análise exibido abaixo da foto (sem porcentagem falsa). */
.tool-scan-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 10px 10px;
  border-top: 1px solid rgba(255, 212, 0, 0.25);
  z-index: 3;
}

.tool-scan-status-icon {
  color: var(--neon-cyan);
  font-size: 13px;
  animation: scanPulse 1.2s ease-in-out infinite;
}

.tool-scan-status-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.upload-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neon-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid var(--bg-primary);
  transition: transform 0.2s ease;
}

.upload-remove:hover {
  transform: scale(1.1);
}

.upload-zone.has-photo {
  border-style: solid;
}

/* ===== Filtros ===== */
.filter-group {
  margin-bottom: 18px;
}

.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-chip i {
  font-size: 12px;
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-cyan-strong);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.2), rgba(255, 212, 0, 0.1));
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(255, 212, 0, 0.2);
}

/* ===== Gerador de CNH (grade de 4 cards) ===== */
.cnh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .cnh-grid {
    grid-template-columns: 1fr;
  }
}

.cnh-card {
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cnh-card:hover {
  border-color: var(--border-cyan-strong);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.12);
  transform: translateY(-2px);
}

.cnh-card-wide {
  grid-column: 1 / -1;
}

.cnh-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cnh-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 212, 0, 0.1));
  color: var(--neon-cyan);
  font-size: 18px;
  flex-shrink: 0;
}

.cnh-card-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.cnh-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cnh-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cnh-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cnh-option i {
  font-size: 14px;
  color: var(--neon-cyan);
  width: 18px;
  text-align: center;
}

.cnh-option:hover {
  color: var(--text-primary);
  border-color: var(--border-cyan-strong);
  background: rgba(255, 212, 0, 0.06);
  transform: translateX(3px);
}

.cnh-option.active {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.08));
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(255, 212, 0, 0.18);
}

.cnh-textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cnh-textarea::placeholder {
  color: var(--text-muted);
}

.cnh-textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12);
}

/* ===== GERADOR DE PROFISSÕES ===== */
.profissao-select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.profissao-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12);
}
.profissao-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.profissao-select option {
  background: #0b0f1a;
  color: var(--text-primary);
}

.profissao-resultado {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.profissao-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.profissao-item {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.profissao-item:hover {
  border-color: var(--border-cyan-strong);
  box-shadow: 0 0 16px rgba(255, 212, 0, 0.1);
}
.profissao-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.profissao-item-head strong {
  font-size: 15px;
  color: var(--text-primary);
}
.profissao-item-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.08));
  color: var(--neon-cyan);
  border: 1px solid var(--border-cyan-strong);
}
.profissao-item-dados {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.profissao-item-dados span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profissao-item-dados i {
  color: var(--neon-cyan);
  width: 16px;
  text-align: center;
}
.profissao-carregando,
.profissao-vazio {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== GERADOR DE PROFISSÃO — AUTOCOMPLETE / TABELA (NOVO) ===== */
.profissao-autocomplete {
  position: relative;
  width: 100%;
}
.profissao-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.profissao-input::placeholder {
  color: var(--text-muted);
}
.profissao-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12);
}
.profissao-sugestoes {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  display: none;
}
.profissao-sugestoes.aberta {
  display: block;
}
.profissao-sugestao {
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.profissao-sugestao:hover,
.profissao-sugestao.ativa {
  background: rgba(255, 212, 0, 0.1);
  color: var(--neon-cyan);
}
.profissao-sugestao-vazia {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: default;
}

.profissao-tabela-wrapper {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.profissao-tabela {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.profissao-tabela thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.profissao-tabela tbody td {
  padding: 13px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.profissao-tabela tbody tr {
  transition: background 0.2s ease;
}
.profissao-tabela tbody tr:hover {
  background: rgba(255, 212, 0, 0.04);
}
.profissao-tabela tbody tr:last-child td {
  border-bottom: none;
}
.profissao-cpf {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profissao-cpf-num {
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.profissao-copiar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  color: var(--neon-cyan);
  background: rgba(255, 212, 0, 0.1);
  border: 1px solid var(--border-cyan-strong);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.profissao-copiar:hover {
  background: rgba(255, 212, 0, 0.2);
  box-shadow: 0 0 14px rgba(255, 212, 0, 0.2);
}
.profissao-copiar:active {
  transform: scale(0.96);
}
.profissao-badge-ativo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 999px;
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.35);
}
.profissao-badge-ativo::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}
.profissao-tabela-vazio {
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.cnh-action-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cnh-action-area .tool-action-price {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== AVISO OBRIGATÓRIO DO GERADOR DE CNH (FASE 2) ===== */
.cnh-aviso {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.12), rgba(255, 212, 0, 0.08));
  border: 1px solid var(--border-cyan-strong);
  border-radius: var(--radius);
  color: var(--text-primary);
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cnh-aviso:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.25);
  transform: translateY(-1px);
}
.cnh-aviso::after {
  content: 'Clique aqui para ir à Consulta CNH →';
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cnh-aviso > i {
  font-size: 22px;
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.cnh-aviso div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
}
.cnh-aviso div strong {
  color: var(--neon-cyan);
  font-size: 14px;
}
.cnh-aviso div span {
  color: var(--text-secondary);
}
.cnh-aviso-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.cnh-aviso-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Na CNH unificada o aviso já está na própria tela de consulta/geração,
   então remove o pseudo-elemento "Clique aqui para ir à Consulta CNH →". */
.cnh-aviso-unificado::after {
  content: none;
}

/* ===== BLOCO DE CONSULTA POR CPF DA CNH UNIFICADA ===== */
.cnh-consulta-cpf {
  padding: 24px;
  margin-bottom: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cnh-consulta-cpf:hover {
  border-color: var(--border-cyan-strong);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.12);
}
.cnh-consulta-cpf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cnh-consulta-cpf-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}
.cnh-consulta-cpf-head p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.cnh-consulta-cpf .consulta-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cnh-consulta-cpf .consulta-input-wrap > i {
  color: var(--neon-cyan);
  font-size: 16px;
}
.cnh-consulta-cpf .gerador-input {
  flex: 1;
  min-width: 200px;
}
.cnh-cpf-btn {
  white-space: nowrap;
}
.cnh-cpf-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-subtle);
}
.cnh-cpf-status.loading {
  color: var(--neon-cyan);
  background: rgba(255, 212, 0, 0.08);
  border-color: var(--border-cyan-strong);
}
.cnh-cpf-status.success {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.4);
}
.cnh-cpf-status.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
}

/* ===== HISTÓRICO LEVE DE CNHs GERADAS (FASE 3) ===== */
.cnh-historico {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.cnh-historico-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cnh-historico-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cnh-historico-title i {
  font-size: 18px;
  color: var(--neon-cyan);
}
.cnh-historico-title h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}
.cnh-historico-count {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.1));
  color: var(--neon-cyan);
  border: 1px solid var(--border-cyan-strong);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
}
.cnh-historico-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cnh-historico-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cnh-historico-item:hover {
  border-color: var(--border-cyan-strong);
  background: rgba(255, 212, 0, 0.05);
}
.cnh-historico-foto {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}
.cnh-historico-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cnh-historico-foto-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
}
.cnh-historico-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cnh-historico-nome {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cnh-historico-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.cnh-historico-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cnh-historico-meta i {
  color: var(--neon-cyan);
  font-size: 11px;
}
.cnh-historico-data {
  font-size: 11px;
  color: var(--text-muted);
}
.cnh-historico-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  color: var(--text-muted);
  text-align: center;
}
.cnh-historico-empty i {
  font-size: 32px;
  opacity: 0.5;
}
.cnh-historico-empty p {
  font-size: 13px;
  max-width: 360px;
}

.filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Slider de confiança ===== */
.confidence-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.3), rgba(255, 212, 0, 0.4));
  outline: none;
  margin: 8px 0;
}

.confidence-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.6);
  cursor: pointer;
}

.confidence-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.6);
  cursor: pointer;
}

.confidence-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-align: right;
}

.confidence-value span {
  font-size: 18px;
}

/* ===== Barra de busca ===== */
.tool-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.search-input-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease;
}

.search-input-wrap:focus-within {
  border-color: var(--border-cyan-strong);
}

.search-input-wrap i {
  color: var(--text-muted);
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-family);
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.tool-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brazuca-yellow), var(--brazuca-yellow-deep));
  color: #0A0C10;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-pink);
  border: 1px solid rgba(255, 212, 0, 0.4);
  transition: all 0.25s ease;
}

.tool-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(255, 212, 0, 0.35);
}

.tool-action-btn:active {
  transform: translateY(0);
}

/* ===== Resultados ===== */
.tool-results {
  margin-top: 4px;
}

.tool-results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.tool-results-empty i {
  font-size: 40px;
  color: var(--text-muted);
  opacity: 0.5;
}

.tool-results-empty p {
  font-size: 14px;
}

.tool-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-results-header i {
  color: var(--neon-cyan);
}

.tool-confidence-tag {
  font-size: 12px;
  color: var(--neon-pink);
  font-weight: 700;
}

/* Grade de resultados: fila horizontal compacta (5 cards, flex wrap) */
.tool-results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: stretch;
}

/* Card compacto glassmorphic (largura máxima fixa 180-200px) */
.tool-result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  max-width: 200px;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 163, 0.25);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0, 255, 163, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  overflow: hidden;
}

.tool-result-card:hover {
  border-color: rgba(255, 212, 0, 0.6);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

/* Badge superior (EXCLUSIVO / NOVO) */
.tool-result-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #052e16;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Foto quadrada centralizada com mosaico/cadeado */
.tool-result-photo {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.3);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CRÍTICO: limita a foto real do Face++ ao quadrado (sem sobreposição). */
.tool-result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-result-photo > i {
  font-size: 26px;
  color: var(--text-muted);
}

/* Efeito de mosaico/cadeado sobre o rosto */
.tool-result-mosaic {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 20, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

/* Foto real do resultado com desfoque (substitui o cadeado) */
.foto-resultado-blur {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  filter: blur(5px);
}

/* Porcentagem de similaridade gigante + rótulo */
.tool-result-sim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tool-result-pct {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 14px currentColor;
}

.tool-result-pct.high { color: var(--brazuca-green); }
.tool-result-pct.medium { color: var(--brazuca-yellow); }
.tool-result-pct.low { color: #ff4646; }

.tool-result-sim-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Micro-análises (Olhos, Nariz, Boca, Testa) */
.tool-result-micros {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.micro-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.micro-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-secondary);
}

.micro-val {
  font-weight: 800;
  font-size: 10px;
}

.micro-val.high { color: var(--brazuca-green); }
.micro-val.medium { color: var(--brazuca-yellow); }
.micro-val.low { color: #ff4646; }
.micro-val.micro-na { color: var(--text-secondary); font-weight: 600; }
/* Nariz "disponível": landmark facial real presente (sem percentual inventado). */
.micro-val.micro-ok { color: var(--brazuca-green); font-weight: 600; }
/* Barra "não disponível": preenchimento neutro visível (sem % falsa por região).
   Mantém a barra como elemento visual do card, mas sem afirmar similaridade real. */
.micro-bar-fill.micro-na {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
}

.micro-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.micro-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.micro-bar-fill.high { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.micro-bar-fill.medium { background: var(--brazuca-yellow); box-shadow: 0 0 6px var(--brazuca-yellow); }
.micro-bar-fill.low { background: #ff4646; box-shadow: 0 0 6px #ff4646; }

/* Nome + dados do card */
.tool-result-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  width: 100%;
}

.tool-result-meta > span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tool-result-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Botão de ação verde (R$ 10,00 · Ver produto) */
.tool-result-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #052e16;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.tool-result-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}

/* Responsivo: cards em flex wrap já se ajustam automaticamente. */
@media (max-width: 640px) {
  .tool-results-grid { gap: 12px; }
}

/* ===== ROSTOS CADASTRADOS PARA TESTE (ÁREA DE TESTE INTERNO) ===== */
.tool-rostos-card {
  margin-top: 20px;
}

.tool-rostos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

.tool-rosto-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  width: 100%;
  max-width: 210px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 212, 0, 0.25);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  overflow: hidden;
}

.tool-rosto-card:hover {
  border-color: rgba(0, 255, 163, 0.6);
  box-shadow: 0 0 24px rgba(0, 255, 163, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.tool-rosto-photo {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.3);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-rosto-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-rosto-photo > i {
  font-size: 30px;
  color: var(--text-muted);
  opacity: 0.6;
}

.tool-rosto-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  width: 100%;
}

.tool-rosto-nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tool-rosto-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.tool-rosto-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.tool-rosto-status.tool-rosto-status-ok {
  color: #052e16;
  background: linear-gradient(135deg, #00E676, #00C853);
}

.tool-rosto-status.tool-rosto-status-warn {
  color: #0A0C10;
  background: linear-gradient(135deg, #FFD400, #E6B800);
}

.tool-rosto-status.tool-rosto-status-err {
  color: #450a0a;
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.tool-rosto-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #052e16;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.tool-rosto-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}

@media (max-width: 640px) {
  .tool-rostos-grid { gap: 12px; }
}

/* Pulso do ícone de status durante a análise (sobre a foto). */
@keyframes scanPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(255, 212, 0, 0); }
}

/* Laser de carregamento: sobe e desce sobre a foto do cliente */
@keyframes laserScan {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* ===== Histórico ===== */
.tool-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Extrato ===== */
.tool-extrato-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.extrato-stat {
  padding: 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
}

.extrato-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.extrato-value {
  font-size: 22px;
  font-weight: 800;
}

.extrato-value.cyan { color: var(--neon-cyan); }
.extrato-value.pink { color: var(--neon-pink); }
.extrato-value.green { color: var(--neon-green); }

/* ============================================================
   GERADOR DE VEÍCULOS -> CONSULTA DE PLACA
   ============================================================ */

/* Filtros de geração */
.gerador-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* Filtro "Somente placas puxadas/validadas pela APIBrasil" */
.filter-group-check {
  display: flex;
  align-items: flex-end;
  margin-bottom: 18px;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  user-select: none;
}

.filter-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-cyan);
  cursor: pointer;
  flex-shrink: 0;
}

/* Coluna "Puxada em" na tabela do gerador */
.gerador-puxada {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.gerador-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gerador-input::placeholder {
  color: var(--text-muted);
}

.gerador-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
}

/* Área de resultados do gerador */
.gerador-results {
  margin-top: 24px;
}

.gerador-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

/* Tabela estilizada (fundo escuro/transparente, bordas sutis, texto claro) */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text-primary);
}

.styled-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.styled-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

.styled-table tbody tr {
  transition: background 0.2s ease;
}

.styled-table tbody tr:hover {
  background: rgba(255, 212, 0, 0.05);
}

.styled-table .placa-cell {
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan);
}

/* Estado vazio do gerador: aviso amigável quando nenhum veículo corresponde
   aos filtros selecionados (sem preencher com veículos aleatórios). */
.styled-table .gerador-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
  white-space: normal;
}

.styled-table .gerador-empty i {
  display: block;
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--neon-cyan);
  opacity: 0.7;
}

.styled-table .gerador-empty span {
  font-size: 14px;
  line-height: 1.5;
}

/* Botão de lupa (consultar placa) com brilho verde/ciano no hover */
.btn-consulta-lupa {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 163, 0.12);
  border: 1px solid rgba(0, 255, 163, 0.35);
  border-radius: var(--radius-sm);
  color: var(--neon-green);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-consulta-lupa:hover {
  background: rgba(0, 255, 163, 0.25);
  border-color: var(--neon-green);
  box-shadow: 0 0 16px 0 rgba(0, 255, 163, 0.45);
  transform: scale(1.08);
}

.btn-consulta-lupa:active {
  transform: scale(0.95);
}

/* Status da placa no Gerador (encontrada / não encontrada após consulta APIBrasil) */
.gerador-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
}

.gerador-status i {
  font-size: 13px;
}

.gerador-status-ok {
  color: var(--brazuca-green);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.gerador-status-nok {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.styled-table tbody tr.gerador-row-nok td {
  color: var(--text-muted);
  opacity: 0.75;
}

.gerador-sem-acao {
  color: var(--text-muted);
  font-size: 13px;
}

/* Consulta Placa */
.consulta-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.consulta-input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.consulta-input-wrap .gerador-input {
  padding-left: 42px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Seletor de modelo do documento (Uber / 99). O download do CRLV so acontece
   ao apertar "GERAR AGORA" e escolher o modelo no modal. */
.consulta-modelo-wrap {
  margin-top: 16px;
}

.consulta-modelo-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.consulta-modelo-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.consulta-modelo-option {
  position: relative;
  cursor: pointer;
}

.consulta-modelo-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consulta-modelo-opt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.consulta-modelo-opt-icon {
  font-size: 26px;
  line-height: 1;
}

.consulta-modelo-opt-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
}

/* Estado selecionado: destaca o cartão do modelo escolhido. */
.consulta-modelo-option input[type="radio"]:checked + .consulta-modelo-opt-inner {
  border-color: var(--neon-cyan);
  background: var(--bg-card-hover, var(--bg-card));
  box-shadow: 0 0 0 1px var(--neon-cyan), 0 4px 14px rgba(0, 0, 0, 0.15);
}

.consulta-modelo-option:hover .consulta-modelo-opt-inner {
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
}

.consulta-result {
  margin-top: 24px;
}

.consulta-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.consulta-placa-big {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-align: center;
  padding: 12px 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.consulta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.consulta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.consulta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.consulta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.consulta-value.green {
  color: var(--neon-green);
}

.consulta-value.mono {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Consulta Placa — Planilha de dados completos (tema escuro, rolagem horizontal) */
.consulta-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.consulta-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.04));
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.consulta-copy-btn:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 229, 255, 0.08));
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

.consulta-copy-btn i {
  color: var(--neon-cyan);
}

/* Botão "Gerar CNH" em destaque (ponte Consulta CNH → Gerador de CNH).
   Usa um gradiente neon rosa/roxo para se destacar dos demais botões. */
.consulta-gerar-cnh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--neon-pink), #FFD400);
  border: 1px solid rgba(255, 212, 0, 0.6);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 212, 0, 0.35);
  transition: all 0.2s ease;
}

.consulta-gerar-cnh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.55);
  border-color: var(--neon-pink);
}

.consulta-gerar-cnh-btn i {
  color: #fff;
}

/* Botão "Baixar TXT" (exporta os dados da consulta como arquivo .txt). */
.consulta-txt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.12), rgba(255, 212, 0, 0.04));
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.consulta-txt-btn:hover {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.22), rgba(255, 212, 0, 0.08));
  border-color: #FFD400;
  box-shadow: 0 0 14px rgba(255, 212, 0, 0.25);
}

.consulta-txt-btn i {
  color: #FFD400;
}

/* Texto de orientação/dica visual para novos usuários (somente visual). */
.user-guidance-text {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgba(0, 229, 255, 0.05);
  border: 1px dashed rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-sm);
}

.user-guidance-text strong {
  color: var(--text-primary);
}

.consulta-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}

.consulta-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.consulta-table thead th {
  position: sticky;
  top: 0;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-bottom: 1px solid var(--border-subtle);
}

.consulta-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
}

.consulta-table tbody tr:last-child {
  border-bottom: none;
}

.consulta-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.consulta-table tbody tr:hover {
  background: rgba(0, 229, 255, 0.05);
}

.consulta-table td {
  padding: 11px 16px;
  vertical-align: top;
  color: var(--text-primary);
  word-break: break-word;
}

.consulta-table td.consulta-th {
  width: 40%;
  min-width: 160px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border-subtle);
}

.consulta-table td.mono {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.consulta-notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(255, 212, 0, 0.06);
  border: 1px dashed rgba(255, 212, 0, 0.4);
  border-radius: var(--radius);
}

.consulta-notfound i {
  font-size: 34px;
  color: var(--neon-pink);
  filter: drop-shadow(0 0 10px rgba(255, 212, 0, 0.4));
}

.consulta-notfound p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.consulta-notfound span {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.5;
}

.consulta-notfound em {
  font-style: normal;
  font-family: 'Consolas', 'Courier New', monospace;
  color: var(--neon-cyan);
}

/* Consulta Placa — Campo de Bearer Token da APIBrasil (frontend) */
.apibrasil-token-field {
  max-width: 720px;
  margin-bottom: 16px;
}

.apibrasil-token-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.apibrasil-token-input {
  width: 100%;
  padding: 10px 44px 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apibrasil-token-input:focus {
  outline: none;
  border-color: rgba(255, 212, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.12);
}

.apibrasil-toggle-token {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.apibrasil-toggle-token:hover {
  color: var(--neon-cyan, #FFD400);
}

/* Consulta Placa — Estado de carregamento */
.consulta-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.consulta-loading i {
  color: var(--neon-cyan);
  font-size: 18px;
}

/* Consulta Placa — Seções estilo planilha */
.consulta-secao {
  margin-bottom: 20px;
}

.consulta-secao-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.02));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.consulta-secao-titulo i {
  font-size: 14px;
}

/* Consulta Placa — Botão Gerar CRLV */
.consulta-crlv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.12), rgba(255, 212, 0, 0.04));
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.consulta-crlv-btn:hover {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.22), rgba(255, 212, 0, 0.08));
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(255, 212, 0, 0.25);
}

.consulta-crlv-btn i {
  color: var(--neon-cyan);
}

/* ============================================================
   SERVIÇOS EM DESTAQUE (PREMIUM CARDS)
   ============================================================ */
.premium-highlights {
  width: 100%;
  margin-bottom: 36px;
}

.premium-title {
  margin-bottom: 20px;
}

.premium-title h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-title p {
  font-size: 13px;
  color: var(--text-secondary);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.premium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

/* Borda sutil verde neon (Venda de Bicos) */
.premium-green {
  border-color: rgba(0, 255, 163, 0.35);
}
.premium-green:hover {
  border-color: rgba(0, 255, 163, 0.8);
  box-shadow: 0 12px 48px 0 rgba(0, 255, 163, 0.25);
}

/* Borda sutil amarela/dourada (Modo Foto 99) */
.premium-gold {
  border-color: rgba(255, 193, 7, 0.35);
}
.premium-gold:hover {
  border-color: rgba(255, 193, 7, 0.8);
  box-shadow: 0 12px 48px 0 rgba(255, 193, 7, 0.22);
}

.premium-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-green .premium-glow {
  background: radial-gradient(circle, rgba(0, 255, 163, 0.18), transparent 70%);
}
.premium-gold .premium-glow {
  background: radial-gradient(circle, rgba(255, 193, 7, 0.18), transparent 70%);
}

.premium-card:hover .premium-glow {
  opacity: 1;
}

.premium-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.premium-green .premium-icon {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 230, 118, 0.04));
  color: var(--brazuca-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.premium-gold .premium-icon {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.04));
  color: var(--brazuca-yellow);
  border: 1px solid rgba(255, 212, 0, 0.3);
}

.premium-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

/* Cadeado de módulo em manutenção (Modo Foto 99 / Venda de Bicos) */
.premium-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: middle;
  font-size: 13px;
  color: var(--brazuca-yellow);
  opacity: 0.9;
  cursor: default;
}
.premium-lock i {
  filter: drop-shadow(0 0 6px rgba(255, 212, 0, 0.5));
}

.premium-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-premium {
  margin-top: auto;
  align-self: flex-start;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.premium-green .btn-premium {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.08));
  color: var(--brazuca-green);
  border: 1px solid rgba(0, 230, 118, 0.4);
}
.premium-green .btn-premium:hover {
  background: var(--brazuca-green);
  color: #0A0C10;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
}

.premium-gold .btn-premium {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.2), rgba(255, 212, 0, 0.08));
  color: #FFD400;
  border: 1px solid rgba(255, 212, 0, 0.4);
}
.premium-gold .btn-premium:hover {
  background: #FFD400;
  color: #080A10;
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.4);
}

/* ============================================================
   MODAL DE NOVIDADES / AVISOS
   ============================================================ */
.welcome-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.welcome-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.welcome-modal-box {
  width: 90%;
  max-width: 440px;
  padding: 36px 32px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(255, 212, 0, 0.15), var(--shadow-card);
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.welcome-modal-overlay.open .welcome-modal-box {
  transform: translateY(0) scale(1);
}

.welcome-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--neon-cyan);
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.04));
  border: 1px solid rgba(255, 212, 0, 0.35);
  box-shadow: 0 0 24px rgba(255, 212, 0, 0.25);
}

.welcome-modal-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.welcome-modal-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.welcome-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.welcome-modal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.welcome-modal-list li i {
  font-size: 16px;
  color: var(--neon-cyan);
}

.welcome-modal-list li:first-child i {
  color: var(--neon-pink);
}

.btn-welcome {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-cyan), #00b3ff);
  color: #080A10;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-welcome:hover {
  box-shadow: 0 0 28px rgba(255, 212, 0, 0.5);
  transform: translateY(-2px);
}

/* ===== GERADOR DE CHASSI (VIN) ===== */
.chassi-result {
  margin-top: 24px;
}

.chassi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.chassi-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chassi-card:hover {
  border-color: rgba(255, 212, 0, 0.45);
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.12);
}

.chassi-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.chassi-card-img {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0b0f1a;
}

.chassi-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.chassi-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-cyan), #00b3ff);
  color: #080A10;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

.chassi-download:hover {
  box-shadow: 0 0 22px rgba(255, 212, 0, 0.45);
  transform: translateY(-2px);
}

.chassi-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.chassi-loading i {
  color: var(--neon-cyan);
  font-size: 20px;
}

.chassi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.chassi-empty i {
  font-size: 32px;
  color: var(--neon-pink);
  opacity: 0.7;
}

.chassi-empty p {
  font-size: 14px;
}

/* ============================================================
   MEDIDOR DINÂMICO DE CONSULTAS (RODAPÉ DO CLIENTE)
   ============================================================ */
.consulta-meter-footer {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(560px, calc(100vw - 32px));
  animation: consultaMeterIn 0.4s ease;
}

@keyframes consultaMeterIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.consulta-meter-card {
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.92), rgba(10, 14, 23, 0.95));
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 0 0 24px 0 rgba(255, 212, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.consulta-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.consulta-meter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.consulta-meter-title i {
  color: var(--neon-cyan);
  font-size: 16px;
}

.consulta-meter-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(255, 212, 0, 0.12);
  border: 1px solid var(--border-cyan-strong);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.consulta-meter-badge.esgotado {
  color: var(--neon-pink);
  background: rgba(255, 212, 0, 0.12);
  border-color: rgba(255, 212, 0, 0.4);
}

.consulta-meter-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.consulta-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.5);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.consulta-meter-text {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

/* ============================================================
   GERADOR DE VEÍCULOS — UI PREMIUM (SEARCHABLE SELECT + GRID)
   ============================================================ */
.gv-card {
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.92), rgba(20, 25, 40, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Grid de filtros (alinhado horizontalmente em telas grandes) */
.gv-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.gv-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gv-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Select padrão (UF, Cor, Anos) */
.gv-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gv-select option {
  background: #0d1220;
  color: var(--text-primary);
}

/* Searchable Select (campo Modelo) */
.gv-searchable {
  position: relative;
  width: 100%;
}

.gv-search-input {
  padding-right: 36px;
}

.gv-search-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 12px;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.gv-searchable-open .gv-search-caret {
  transform: translateY(-50%) rotate(180deg);
  color: var(--neon-cyan);
}

/* Dropdown sobreposto (z-index alto para cobrir elementos abaixo) */
.gv-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gv-dropdown-item {
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gv-dropdown-item:last-child {
  border-bottom: none;
}

.gv-dropdown-item:hover {
  background: rgba(255, 212, 0, 0.12);
  color: var(--neon-cyan);
}

.gv-dropdown-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Barra de rolagem do dropdown */
.gv-dropdown::-webkit-scrollbar {
  width: 8px;
}
.gv-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.gv-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* Botão Gerar Veículos (centralizado, com lupa) */
.gv-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.gv-generate-btn {
  min-width: 240px;
  justify-content: center;
  font-size: 14px;
  padding: 14px 32px;
}

/* ---- Resultado: cabeçalho + abas (Placas / Tudo / TXT) ---- */
.gv-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.gv-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.gv-result-title i {
  color: var(--neon-green);
}

.gv-result-count {
  background: rgba(255, 212, 0, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(255, 212, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.gv-result-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.gv-result-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gv-result-tab:hover {
  color: var(--text-primary);
}

.gv-result-tab.active {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.2), rgba(255, 212, 0, 0.08));
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.15);
}

/* ---- Resultado: tabela tabular ---- */
.gv-result-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.gv-result-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.gv-result-table thead th {
  background: rgba(255, 212, 0, 0.06);
  color: var(--neon-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.gv-result-table tbody td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.gv-result-table tbody tr:last-child td {
  border-bottom: none;
}

.gv-result-table tbody tr:hover {
  background: rgba(255, 212, 0, 0.04);
}

.gv-result-placa {
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
}

.gv-result-actions {
  text-align: right;
}

.gv-crlv-btn {
  font-size: 11px;
  padding: 7px 12px;
  white-space: nowrap;
}

/* Responsividade: empilha os campos em telas menores */
@media (max-width: 900px) {
  .gv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gv-field-modelo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .gv-grid {
    grid-template-columns: 1fr;
  }
  .gv-generate-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   MOTOR FINANCEIRO — BARRA DINÂMICA DE SALDO (FASE 2)
   ============================================================ */
.saldo-bar {
  padding: 14px 24px 4px;
}
.saldo-bar-card {
  background: linear-gradient(135deg, #1a1f2e 0%, #141824 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.saldo-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.saldo-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8ecf4;
  font-weight: 600;
  font-size: 14px;
}
.saldo-bar-title i {
  color: #FFD400;
  font-size: 18px;
}
.saldo-bar-value {
  font-size: 22px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.5px;
}
.saldo-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.saldo-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  background-size: 200% 100%;
  transition: width 0.5s ease, background 0.3s ease;
  animation: saldoBarRainbow 4s linear infinite;
}
.saldo-bar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.saldo-bar-hint {
  color: #9aa3b5;
  font-size: 12.5px;
}
.saldo-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFD400, #FFC400);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.saldo-bar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 212, 0, 0.35);
}

/* Estados de cor da barra dinâmica */
.saldo-bar-card.saldo-verde .saldo-bar-value { color: #00E676; }
.saldo-bar-card.saldo-verde .saldo-bar-fill {
  background: linear-gradient(90deg, #00C853, #00E676, #00C853);
  background-size: 200% 100%;
}
.saldo-bar-card.saldo-amarelo .saldo-bar-value { color: #FFD400; }
.saldo-bar-card.saldo-amarelo .saldo-bar-fill {
  background: linear-gradient(90deg, #E6B800, #FFD400, #E6B800);
  background-size: 200% 100%;
}
.saldo-bar-card.saldo-vermelho .saldo-bar-value { color: #f87171; }
.saldo-bar-card.saldo-vermelho .saldo-bar-fill {
  background: linear-gradient(90deg, #ef4444, #f87171, #ef4444);
  background-size: 200% 100%;
}
.saldo-bar-card.saldo-vermelho .saldo-bar-value {
  animation: saldoBlink 1s step-start infinite;
}
@keyframes saldoBlink {
  50% { opacity: 0.35; }
}

/* EFEITO DE ALTERNÂNCIA DE CORES NA BARRA DE SALDO:
   o preenchimento desliza o gradiente de forma contínua, alternando
   entre as cores do estado atual (verde/amarelo/vermelho) com um
   brilho futurista que "respira" na barra. */
@keyframes saldoBarRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   MOTOR FINANCEIRO — MODAL ADICIONAR SALDO (FASE 1)
   ============================================================ */
.saldo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  /* Acima do welcome-modal (z-index 99999) para nunca ser bloqueado por ele. */
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* FIX X/CLOSE v4.1 — CAUSA RAIZ DO BOTÃO X "NÃO FUNCIONAR":
   A regra acima (display:flex) sobrescreve o display:none do atributo
   `hidden` (gotcha do CSS: o display definido na folha de estilo vence
   o [hidden] da UA). Resultado: o overlay ficava SEMPRE renderizado em
   tela cheia e `overlay.hidden = true` (acionado pelo X) NÃO escondia
   nada visualmente. Esta regra garante que, quando `hidden` estiver
   presente, o overlay e os passos desapareçam DE VERDADE — o X volta a
   fechar a tela de opções (BRONZE/PRATA/OURO). */
.saldo-modal-overlay[hidden],
.saldo-modal-step[hidden] {
  display: none !important;
}
.saldo-modal {
  /* position: relative é ESSENCIAL: o botão X usa position:absolute e precisa
     deste container como referência (containing block). Sem isso, o X se
     posiciona relativo ao overlay (tela inteira) e some da etapa de planos. */
  position: relative;
  /* z-index elevado garante que o modal (e o botão X dentro dele) fique
     acima de qualquer camada concorrente dentro do overlay. */
  z-index: 100001;
  background: #171b27;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.saldo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  /* Cria um stacking context próprio e elevado para o cabeçalho, garantindo
     que o botão X nunca fique atrás de outra camada. */
  position: relative;
  z-index: 100002;
}
.saldo-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.saldo-modal-title i {
  color: #FFD400;
  font-size: 20px;
}
.saldo-modal-title h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}
.saldo-modal-close {
  /* Isolamento absoluto: flutua acima de qualquer renderização dinâmica. */
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 2147483647 !important; /* Valor máximo permitido no navegador */
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background 0.15s ease;
}
.saldo-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
/* O ícone dentro do botão não deve capturar o clique: o clique vai direto
   para o botão, garantindo que o fechamento sempre dispare. */
.saldo-modal-close i,
.saldo-modal-close svg {
  pointer-events: none;
}
.saldo-modal-desc {
  color: #9aa3b5;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  text-align: center;
}
.saldo-modal-desc-titulo {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.saldo-modal-desc-titulo i {
  color: var(--brazuca-yellow);
  font-size: 18px;
}
.saldo-modal-desc-texto {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.saldo-modal-desc-texto strong {
  color: #ffffff;
  font-weight: 700;
}
.saldo-modal-desc-texto em {
  color: #FFD400;
  font-style: normal;
  font-weight: 700;
}
.saldo-destaque-custo {
  color: #FFD400 !important;
  font-weight: 800 !important;
  font-size: 15px;
}
.saldo-modal-desc-cta {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  color: #b9c2d4;
}
.saldo-modal-desc-cta strong {
  color: #FFD400;
  font-weight: 800;
}
.saldo-pacotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}
.saldo-pacote {
  background: #1f2434;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  position: relative;
  min-width: 0;
}
.saldo-pacote-destaque {
  border-color: #FFD400;
  box-shadow: 0 0 0 1px #FFD400, 0 8px 24px rgba(255, 212, 0, 0.2);
}
.saldo-pacote-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFD400;
}
.saldo-pacote-paga {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.saldo-pacote-recebe {
  font-size: 11px;
  color: #9aa3b5;
  line-height: 1.3;
}
.saldo-pacote-recebe strong {
  color: #00E676;
}
.saldo-pacote-bonus {
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
}
.saldo-pacote-rendimento {
  font-size: 10.5px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.saldo-pacote-rendimento strong {
  color: #4ade80;
}
.saldo-pacote-btn {
  margin-top: auto;
  width: 100%;
  background: linear-gradient(135deg, #FFD400, #FFC400);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.saldo-pacote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 212, 0, 0.35);
}

/* Passo 2: QR Code / Copia e Cola */
.saldo-pix-info {
  text-align: center;
  margin-bottom: 16px;
}
.saldo-pix-pacote {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #FFD400;
  margin-bottom: 4px;
}
.saldo-pix-valor {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.saldo-pix-recebe {
  display: block;
  font-size: 13px;
  color: #4ade80;
  margin-top: 4px;
}
.saldo-pix-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  min-height: 220px;
}
.saldo-pix-qr img {
  width: 200px;
  height: 200px;
  image-rendering: pixelated;
}
.saldo-pix-loading {
  color: #FFD400;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.saldo-pix-copia {
  margin-bottom: 14px;
}
.saldo-pix-copia-label {
  display: block;
  font-size: 12px;
  color: #9aa3b5;
  margin-bottom: 6px;
  font-weight: 600;
}
.saldo-pix-copia-row {
  display: flex;
  gap: 8px;
}
.saldo-pix-copia-row input {
  flex: 1;
  background: #1f2434;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e8ecf4;
  padding: 10px 12px;
  font-size: 12.5px;
  font-family: monospace;
}
.saldo-pix-copy {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #e8ecf4;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.saldo-pix-copy:hover {
  background: rgba(255, 255, 255, 0.18);
}
.saldo-pix-aviso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.saldo-pix-aviso i {
  margin-top: 2px;
}
.saldo-pix-voltar {
  background: transparent;
  border: none;
  color: #9aa3b5;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}
.saldo-pix-voltar:hover {
  color: #e8ecf4;
}

/* ============================================================
   MOTOR FINANCEIRO — BLUR + PAYWALL (FASE 3)
   ============================================================ */
.paywall-wrap {
  position: relative;
  overflow: hidden;
}
.paywall-blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 20, 0.55);
  z-index: 5;
}
.paywall-box {
  background: #171b27;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.paywall-box-icon {
  font-size: 34px;
  color: #FFD400;
  margin-bottom: 10px;
}
.paywall-box-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.paywall-box-desc {
  font-size: 13px;
  color: #9aa3b5;
  margin-bottom: 14px;
}
.paywall-box-valor {
  font-size: 26px;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 16px;
}
.paywall-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD400, #FFC400);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.paywall-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.4);
}
.paywall-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* Botão "Pagar com Pix" (cobrança avulsa por serviço — HÍBRIDO). */
.paywall-btn-pix {
  margin-top: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}
.paywall-btn-pix:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}
.paywall-pix-status {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* ===== MÓDULO FACIAL — PREVIEW BORRADO (FASE 3) ===== */
.facial-paywall-wrap {
  margin-top: 24px;
}
.facial-paywall-preview {
  padding: 4px;
}
.facial-paywall-doc {
  background: linear-gradient(160deg, #1c2130, #12151f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.facial-paywall-doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 212, 0, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
  color: #c4b5fd;
}
.facial-paywall-doc-header i {
  font-size: 18px;
  color: #FFD400;
}
.facial-paywall-doc-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 18px;
}
.facial-paywall-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD400, #FFC400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}
.facial-paywall-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facial-paywall-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}
.facial-paywall-line.w70 { width: 70%; }
.facial-paywall-line.w90 { width: 90%; }
.facial-paywall-line.w60 { width: 60%; }
.facial-paywall-line.w80 { width: 80%; }

@media (max-width: 640px) {
  .saldo-pacotes {
    grid-template-columns: 1fr;
  }
  .saldo-bar-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .saldo-bar-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ⚡ MODO VITRINE — REVOLUÇÃO VISUAL PREMIUM
   Dark OLED + Glassmorphism de alto nível.
   Este bloco SOBRESCREVE estilos existentes SEM alterar a
   estrutura HTML (IDs, hierarquia e classes base preservados).
   Para desativar o Modo Vitrine, remova/comente este bloco.
   ============================================================ */

/* ---- 1. FUNDO OLED PROFUNDO COM HALOS AMARELO/VERDE ---- */
:root {
  --bg-primary: #0A0C10;
  --bg-sidebar: rgba(12, 15, 20, 0.72);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --bg-input: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-cyan: rgba(255, 212, 0, 0.30);
  --border-cyan-strong: rgba(255, 212, 0, 0.65);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 18px 50px rgba(255, 212, 0, 0.18);
  --text-secondary: #9AA3B2;
  --text-muted: #5C6675;
  --radius: 18px;
  --radius-lg: 24px;
}

/* Fundo GRAFITE PROFUNDO: preto/grafite translúcido com halos sutis de
   amarelo elétrico e verde estratégico, transmitindo tecnologia premium
   e a identidade BRAZUCA. */
body {
  background: #0A0C10;
  /* AFASTAR UM POUCO: reduz a escala geral do painel em ~8%,
     deixando o conteúdo mais compacto e com respiro nas bordas,
     em qualquer celular ou desktop. */
  zoom: 0.92;
}
body::before {
  background:
    radial-gradient(ellipse at 12% -8%, rgba(255, 212, 0, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 5%, rgba(0, 230, 118, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 115%, rgba(255, 212, 0, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 212, 0, 0.05) 0%, transparent 70%),
    #0A0C10;
}

/* ---- 2. GLASSMORPHISM NOS CARDS + BORDAS TRANSLÚCIDAS ---- */
.service-card,
.premium-card,
.status-card,
.plans-card,
.plan-card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 40px rgba(0, 0, 0, 0.45);
}

/* BRILHO AMARELO ELÉTRICO NAS CAIXINHAS: aura amarela que pulsa na base de
   cada card, dando o visual premium e tecnológico da identidade BRAZUCA. */
.service-card {
  position: relative;
  animation: vitrineFireGlow 3.2s ease-in-out infinite;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg,
    rgba(255, 212, 0, 0.55),
    rgba(255, 212, 0, 0.15) 40%,
    rgba(0, 230, 118, 0.30) 70%,
    rgba(255, 212, 0, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
@keyframes vitrineFireGlow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 40px rgba(0, 0, 0, 0.45),
      0 0 18px rgba(255, 212, 0, 0.14);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 40px rgba(0, 0, 0, 0.45),
      0 0 34px rgba(255, 212, 0, 0.30);
  }
}

/* Borda que brilha em amarelo na cor de destaque da ferramenta no hover */
.service-card:hover {
  border-color: rgba(255, 212, 0, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 55px rgba(255, 212, 0, 0.28),
    0 0 0 1px rgba(255, 212, 0, 0.25),
    0 0 30px rgba(255, 212, 0, 0.22);
}
.service-card[data-service="99"]:hover {
  border-color: rgba(0, 230, 118, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 55px rgba(0, 230, 118, 0.28),
    0 0 0 1px rgba(0, 230, 118, 0.25),
    0 0 30px rgba(0, 230, 118, 0.22);
}
.service-card[data-service="consultas"]:hover {
  border-color: rgba(255, 212, 0, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 55px rgba(255, 212, 0, 0.28),
    0 0 0 1px rgba(255, 212, 0, 0.25),
    0 0 30px rgba(255, 212, 0, 0.22);
}

/* ---- 3. TIPOGRAFIA REFINADA ---- */
body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.2px;
}
.service-card h3,
.premium-body h3,
.plan-card h3,
.status-value {
  font-weight: 800;
  letter-spacing: -0.4px;
}
.service-card > p,
.premium-body p,
.plan-card p,
.status-label {
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}
.page-header h1,
.section-title h2,
.premium-title h2 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ---- 4. MICRO-INTERAÇÕES (HOVER) ---- */
.service-card,
.premium-card,
.status-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}
.service-card:hover,
.premium-card:hover {
  transform: translateY(-6px);
}
.status-card:hover {
  transform: translateY(-4px);
}

/* ---- 5. ÍCONES ANIMADOS ---- */
/* Raio (Venda de Bicos / bolt): pulso sutil contínuo */
.premium-card .premium-icon i.fa-bolt,
.service-icon i.fa-bolt {
  animation: vitrinePulse 2.2s ease-in-out infinite;
}
/* Engrenagem: gira lentamente ao passar o mouse */
.service-card:hover .service-icon i.fa-gear,
.service-card:hover .service-icon i.fa-cog,
.service-card:hover .service-icon i.fa-sliders {
  animation: vitrineSpin 2.4s linear infinite;
}
/* Câmera (Modo Foto 99): flash sutil */
.premium-card .premium-icon i.fa-camera {
  animation: vitrineFlash 3s ease-in-out infinite;
}
/* Ícones SVG dos cards de serviço: leve flutuação no hover */
.service-card:hover .service-icon svg {
  animation: vitrineFloat 2.6s ease-in-out infinite;
}
.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 0 26px rgba(255, 212, 0, 0.40);
}

/* ---- EMOJI INTERATIVO DOS CARDS ---- */
/* Emoji que dá sentido à opção escolhida (CRLV, CPF, CNH, etc.).
   Fica flutuando no canto do card e reage ao hover com brilho e pulso. */
.service-emoji {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255, 212, 0, 0.40));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.3s ease;
  z-index: 2;
  pointer-events: none;
  animation: vitrineEmojiIdle 3s ease-in-out infinite;
}
.service-card:hover .service-emoji {
  transform: scale(1.35) rotate(-8deg);
  filter: drop-shadow(0 0 16px rgba(255, 212, 0, 0.80));
  animation: vitrineEmojiBounce 0.6s ease-in-out infinite;
}
@keyframes vitrineEmojiIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.05); }
}
@keyframes vitrineEmojiBounce {
  0%, 100% { transform: scale(1.35) rotate(-8deg) translateY(0); }
  50% { transform: scale(1.45) rotate(-4deg) translateY(-4px); }
}

@keyframes vitrinePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.85; }
}
@keyframes vitrineSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes vitrineFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes vitrineFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---- 6. BOTÕES COM GRADIENTE AMARELO ELÉTRICO + BRILHO INTERNO ---- */
.btn-service {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD400, #FFE14D 45%, #FFC400);
  color: #0A0C10;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 212, 0, 0.30);
  transition: all 0.3s ease;
}
.btn-service::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 212, 0, 0.50);
}
.btn-service:hover::after {
  left: 160%;
}
.btn-service:active {
  transform: translateY(0) scale(0.98);
}

/* Botões premium: gradiente vibrante por cor */
.premium-green .btn-premium {
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #04060a;
  border: none;
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(0, 230, 118, 0.3);
}
.premium-green .btn-premium:hover {
  background: linear-gradient(135deg, #00E676, #00C853);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.45);
  transform: translateY(-2px);
}
.premium-gold .btn-premium {
  background: linear-gradient(135deg, #FFD400, #FFC400);
  color: #0A0C10;
  border: none;
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(255, 212, 0, 0.3);
}
.premium-gold .btn-premium:hover {
  background: linear-gradient(135deg, #FFE14D, #FFC400);
  box-shadow: 0 10px 30px rgba(255, 212, 0, 0.45);
  transform: translateY(-2px);
}

/* Botão primário (Renovar Plano): gradiente amarelo elétrico + brilho */
.btn-primary {
  background: linear-gradient(135deg, #FFD400, #FFE14D 55%, #FFC400);
  border: 1px solid rgba(255, 212, 0, 0.5);
  box-shadow: 0 8px 28px rgba(255, 212, 0, 0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FFE14D, #FFD400);
  box-shadow: 0 12px 40px rgba(255, 212, 0, 0.45);
}

/* ---- 7. MODAIS E RODAPÉ EM VIDRO FOSCO (GLASSMORPHISM) ---- */
/* Rodapé flutuante do medidor de consultas */
.consulta-meter-footer {
  z-index: 1000;
}
.consulta-meter-card {
  background: rgba(12, 16, 28, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(255, 212, 0, 0.08);
}

/* Modal Adicionar Saldo: vidro fosco premium */
.saldo-modal-overlay {
  background: rgba(4, 5, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.saldo-modal {
  background: rgba(18, 22, 36, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 212, 0, 0.08);
}

/* Modal de novidades: vidro fosco */
.welcome-modal-box {
  background: rgba(18, 22, 36, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 212, 0, 0.1);
}

/* Sidebar: vidro fosco mais translúcido */
.sidebar {
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- 8. RESPONSIVO: preserva o comportamento em telas menores ---- */
@media (max-width: 768px) {
  .service-card,
  .premium-card,
  .status-card {
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
  }
}

/* ---- 9. LOGO BRAZUCA (sidebar) ---- */
.logo-title {
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* LOGO BRAZUCA BEM GRANDE: visível e impactante ao entrar no painel */
  font-size: 38px;
  line-height: 1.05;
}
.logo-flame {
  display: inline-block;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #FFE14D 0%, #FFD400 40%, #FFC400 70%, #E6B800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 212, 0, 0.55))
          drop-shadow(0 0 14px rgba(255, 212, 0, 0.30));
  animation: vitrineFlame 1.6s ease-in-out infinite;
}
@keyframes vitrineFlame {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 212, 0, 0.5))
            drop-shadow(0 0 12px rgba(255, 212, 0, 0.28));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 225, 77, 0.8))
            drop-shadow(0 0 22px rgba(255, 212, 0, 0.50));
    transform: scale(1.04);
  }
}

/* ---- 10. BARRA DE CONSULTAS REMOVIDA (segurança) ---- */
.consulta-meter-footer {
  display: none !important;
}

/* ============================================================
   ⚡ AUDITORIA RESPONSIVA — CORREÇÕES VISUAIS (BLOCO NOVO)
   Apenas apresentação. Não altera nenhum seletor financeiro.
   ============================================================ */

/* --- A) Veículos: tabela → cards verticais em ≤900px ---
   GERAR CRLV sempre visível, sem rolagem horizontal.
   Breakpoint elevado de 768px para 900px para cobrir distorções de layout
   viewport causadas pelo `zoom` no body em navegadores mobile. */
@media (max-width: 900px) {
  .gv-result-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }
  .gv-result-table,
  .gv-result-table tbody {
    display: block;
    width: 100%;
    min-width: 0;          /* ← anula o min-width: 720px da linha 4214 */
    max-width: 100%;
  }
  .gv-result-table thead {
    display: none;
  }
  .gv-result-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
  }
  .gv-result-table tbody td {
    display: block;
    white-space: normal;
    font-size: 14px;
    padding: 0;
    border: none;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .gv-result-table tbody td:not(.gv-result-actions)::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
  .gv-result-table tbody td.gv-result-placa {
    color: var(--neon-cyan);
    font-size: 16px;
  }
  .gv-result-table tbody tr .gv-result-actions {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }
  .gv-result-table tbody .gv-crlv-btn {
    width: 100%;
    font-size: 13px;
    padding: 13px 12px;
  }
}

/* --- A2) Veículos: 1 coluna em telas muito pequenas (≤480px) ---
   Todos os campos + GERAR CRLV totalmente visíveis, sem rolagem horizontal. */
@media (max-width: 480px) {
  .gv-result-table tbody tr {
    grid-template-columns: 1fr;
  }
}

/* --- B) Consulta CPF/CNH: sem min-width fixo até 900px; empilha em mobile --- */
@media (max-width: 900px) {
  .consulta-table { min-width: 0; max-width: 100%; }
  .consulta-table td.consulta-th { min-width: 0; }
}
@media (max-width: 640px) {
  .consulta-table tbody,
  .consulta-table tbody tr,
  .consulta-table tbody td {
    display: block;
    width: 100%;
  }
  .consulta-table tbody tr { padding: 10px 0; }
  .consulta-table tbody td { padding: 3px 12px; }
  .consulta-table td.consulta-th {
    width: 100%;
    font-size: 11px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .consulta-table td.mono,
  .consulta-table td:not(.consulta-th) {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .consulta-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .consulta-actions .consulta-copy-btn,
  .consulta-actions .consulta-gerar-cnh-btn,
  .consulta-actions .consulta-txt-btn {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 14px;
    padding: 13px 12px;
  }
}

/* --- C) Legibilidade de fontes (desktop mantém tabela) --- */
@media (min-width: 769px) {
  .gv-result-table tbody td { font-size: 13.5px; }
  .gv-crlv-btn { font-size: 12px; }
}

/* --- D) Dashboard desktop: cards maiores --- */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* --- E) Logo: restaura tamanho mobile (MODO VITRINE sobrescrevia) --- */
@media (max-width: 768px) {
  .logo-title { font-size: 13px; }
}

/* --- F) Empilha grids em 1 coluna no mobile (≤768px) ---
   Colocado no FINAL do arquivo para vencer as regras base de cada grid
   (status-cards, tool-results-grid, consulta-grid, premium-grid, chassi-grid)
   que aparecem antes e usariam minmax() maior que a largura útil em 320px. */
@media (max-width: 768px) {
  .status-cards,
  .tool-results-grid,
  .premium-grid,
  .chassi-grid,
  .consulta-grid {
    grid-template-columns: 1fr;
  }
}

/* --- F2) Modal: reduz padding e min-width no mobile para não ficar apertado --- */
@media (max-width: 768px) {
  .modal-content {
    min-width: 0;
    width: 100%;
    padding: 28px 20px;
  }
}

/* --- G) Mobile: anula o zoom global (0.92) para priorizar legibilidade.
   O zoom: 0.92 do body é global e reduz o conteúdo em ~8% também no celular.
   No mobile (≤768px) restauramos zoom: 1 para textos, campos e botões ficarem
   em tamanho confortável. Desktop (≥769px) mantém o zoom: 0.92 original. --- */
@media (max-width: 768px) {
  body {
    zoom: 1;
  }
}

/* ============================================================
   ⚡ CORREÇÃO GLOBAL DE RESPONSIVIDADE — ÁREAS RESTANTES
   Adicionado no FINAL do arquivo para vencer as regras base.
   Preserva o desktop (≥901px) exatamente como está.
   Nenhuma alteração em index.html / script.js / server.js.
   As tabelas (gv-result-table, consulta-table) e os grids
   principais (gv-grid, saldo-pacotes) JÁ possuem correção mobile
   em media queries anteriores; este bloco cobre os elementos
   que ainda não tinham regra responsiva.
   ============================================================ */

/* --- 1) ≤900px: elementos que estouravam/arrastavam no mobile --- */
@media (max-width: 900px) {
  /* Opções de modelo da Consulta (Uber/99): 1 coluna em vez de 2 espremidas */
  .consulta-modelo-options {
    grid-template-columns: 1fr;
  }

  /* Abas internas das ferramentas: quebram em vez de exigir arrastar */
  .tool-tabs {
    overflow-x: visible;
    flex-wrap: wrap;
  }
  .tool-tab {
    flex: 1 1 auto;
    white-space: normal;
    text-align: center;
  }

  /* Título do viewport de ferramenta: sem min-width fixo */
  .tool-viewport-title {
    min-width: 0;
  }

  /* Modal de carregamento: sem min-width fixo (antecipa para 900px) */
  .modal-loader {
    min-width: 0;
  }
}

/* --- 2) ≤640px: inputs flex com min-width fixo viram largura total --- */
@media (max-width: 640px) {
  /* Input CPF da CNH: largura total, sem min-width fixo */
  .cnh-consulta-cpf .gerador-input {
    min-width: 0;
    width: 100%;
  }

  /* Barra de busca: largura total, sem min-width fixo */
  .search-input-wrap {
    min-width: 0;
    width: 100%;
  }
}

/* --- 3) ≤480px: ajuste fino de respiro lateral (sem esconder nada) --- */
@media (max-width: 480px) {
  .main-content {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============================================================
   ⚡ CORREÇÃO DE COMPORTAMENTO MOBILE — BLOCO CONSOLIDADO
   Transforma o mobile em interface realmente responsiva.
   Consolidado com o bloco responsivo existente (sem duplicar
   regras já presentes: .tool-tabs wrap, .tool-viewport-title
   min-width:0, grids 1 coluna, inputs 100%).
   Desktop (≥901px) permanece EXATAMENTE como está.
   Nenhuma alteração em index.html / script.js / server.js.
   ============================================================ */

/* --- 1) BOTÕES DE AÇÃO: largura total no mobile (≤900px) ---
   Causa raiz: .tool-action-btn usa display:inline-flex (desktop),
   então os botões encolhem ao texto e "flutuam" à esquerda.
   No mobile viram bloco de toque grande, ocupando toda a largura. */
@media (max-width: 900px) {
  .tool-action-area,
  .cnh-action-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .tool-action-area .tool-action-btn,
  .cnh-action-area .tool-action-btn,
  .cnh-cpf-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 16px;
    font-size: 14px;
  }
  .tool-action-area .tool-action-price,
  .cnh-action-area .tool-action-price {
    text-align: center;
    font-size: 13px;
    width: 100%;
  }
}

/* --- 2) CARDS: reduzir padding no mobile (≤900px) ---
   Recupera os ~50px desperdiçados por card (padding 24px → 16px). */
@media (max-width: 900px) {
  .tool-card {
    padding: 16px;
  }
}

/* --- 3) HEADER DA FERRAMENTA: empilhar no mobile (≤900px) ---
   Título em linha própria; voltar + badge em linha separada.
   Complementa a regra existente .tool-viewport-title { min-width:0 }
   (bloco responsivo anterior) eliminando o espremimento. */
@media (max-width: 900px) {
  .tool-viewport-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .tool-viewport-title {
    width: 100%;
    flex: none;
  }
  .tool-viewport-title h1 {
    font-size: 19px;
    line-height: 1.3;
  }
  .tool-viewport-header .tool-back-btn,
  .tool-viewport-header .tool-status-badge {
    align-self: flex-start;
  }
}

/* --- 4) DASHBOARD: header-title ocupa largura total (≤900px) --- */
@media (max-width: 900px) {
  .page-header .header-title {
    width: 100%;
  }
}

/* --- 5) CNH: cards internos com largura total (≤900px) --- */
@media (max-width: 900px) {
  .cnh-card-head,
  .cnh-options,
  .cnh-textarea {
    width: 100%;
  }
}

/* ============================================================
   ⚡ ACABAMENTO VISUAL MOBILE — APARÊNCIA DE APP NATIVO
   Reduz espaçamentos que ainda pareciam desktop no mobile.
   Desktop (≥901px) permanece EXATAMENTE como está.
   Nenhuma alteração em index.html / script.js / server.js.
   ============================================================ */
@media (max-width: 900px) {
  .tool-viewport-header {
    padding: 16px;
  }
  .tool-viewport {
    gap: 16px;
  }
}

/* ============================================================
   ⚡ NAVEGAÇÃO MOBILE — SIDEBAR → TOPBAR DE APP (≤900px)
   Transforma a sidebar lateral em uma barra superior fina de
   aplicativo no mobile. Nenhum menu fica sobre o conteúdo.
   Desktop (≥901px) permanece EXATAMENTE como está.
   Nenhuma alteração em index.html / script.js / server.js.
   ============================================================ */
@media (max-width: 900px) {
  /* Corpo em coluna: topbar em cima, conteúdo abaixo (sem sobreposição) */
  body {
    flex-direction: column;
  }

  /* Sidebar → topbar horizontal fina (em fluxo, NÃO fixa, NÃO cobre conteúdo) */
  .sidebar {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--border-cyan);
    z-index: 50;
    padding: 8px 12px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  /* Logo compacta (mantém identidade, sem ocupar espaço) */
  .sidebar-logo {
    display: flex;
    flex-shrink: 0;
    padding: 4px 8px 4px 0;
    border-bottom: none;
    gap: 8px;
  }
  .sidebar-logo .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .sidebar-logo .logo-icon svg {
    width: 18px;
    height: 18px;
  }
  .sidebar-logo .logo-subtitle {
    display: none;
  }
  .sidebar-logo .logo-title {
    font-size: 14px;
  }

  /* Navegação principal: linha horizontal rolável (nenhum item escondido) */
  .sidebar-nav {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    display: flex;
  }

  /* Rótulos de seção ocultos na topbar (apenas rótulos, não funções) */
  .sidebar-nav .nav-label,
  .sidebar-footer .nav-label {
    display: none;
  }

  /* Itens de menu: compactos e horizontais */
  .nav-item {
    flex-direction: row;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 10px;
  }
  .nav-item span {
    display: inline;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  /* Categorias do CMS: linha horizontal rolável (acessíveis) */
  #dynamicCmsNav {
    flex-direction: row;
    gap: 4px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
  }
  #dynamicCmsNav .cms-cat-item {
    flex-direction: row;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 10px;
  }
  #dynamicCmsNav .cms-cat-item i {
    width: 16px;
    font-size: 13px;
  }

  /* Rodapé: usuário + Sair em linha, à direita */
  .sidebar-footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    border-top: none;
    flex-shrink: 0;
    display: flex;
  }

  /* Usuário compacto (re-exibido, pois o bloco ≤768px o ocultava) */
  .sidebar-user {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 4px 8px;
    margin-top: 0;
    border-radius: 10px;
  }
  .sidebar-user .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .sidebar-user .user-status {
    display: none;
  }
  .sidebar-user .user-name {
    font-size: 12px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Botão Sair compacto */
  .btn-logout {
    flex-direction: row;
    gap: 6px;
    width: auto;
    padding: 8px 12px;
    margin-top: 0;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .btn-logout svg {
    width: 16px;
    height: 16px;
  }

  /* Conteúdo principal: 100% da largura, abaixo da topbar, sem reserva inferior */
  .main-content {
    flex: 1;
    width: 100%;
    padding: 24px 20px;
    overflow-y: auto;
  }
}

/* Ajuste fino de respiro lateral em telas muito pequenas */
@media (max-width: 480px) {
  .main-content {
    padding: 16px 12px;
  }
  .sidebar {
    padding: 6px 10px;
  }
  .user-guidance-text {
    font-size: 12px;
    padding: 10px 12px;
  }
}
