/* ============================================================
   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 — amarelo/dourado intenso premium */
  --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-gold: #F5B301;          /* dourado metálico — acento premium */
  --brazuca-gold-deep: #C99700;     /* dourado profundo p/ gradientes ricos */
  --brazuca-gold-dark: #B8860B;     /* dourado escuro p/ contraste premium */
  --brazuca-gold-bright: #FFE873;   /* dourado claro p/ brilho/destaque */
  --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 */
  --brazuca-graphite-deep: #0D1016; /* grafite profundo p/ fundos premium */

  /* 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;
}

/* Link discreto "✏️ Altere seu nome" do visitante (sidebar) */
.user-edit-name {
  display: inline-block;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  transition: color 0.15s ease;
}
.user-edit-name:hover {
  color: var(--neon-pink);
  text-decoration: underline;
}

/* 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, #F5B301);
  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, #F5B301);
  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, #F5B301);
  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, #FFE14D, #F5B301);
  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: var(--brazuca-gold);
  box-shadow: 0 0 10px var(--brazuca-gold), 0 0 20px var(--brazuca-gold);
  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;
}

/* FIX (Cenário A — autocomplete PROFISSÃO): o backdrop-filter do .cnh-card
   cria um stacking context que prende o z-index da lista de sugestões
   (#profissaoSugestoes, z-index:60) DENTRO do card. Como o card seguinte
   (ESTADO/UF) é um irmão posterior com seu próprio backdrop-filter, ele é
   pintado POR CIMA da lista que transborda, escondendo as sugestões abaixo
   da primeira. Elevamos o stacking context do card que contém o autocomplete
   para que a lista flutuante seja pintada acima dos cards seguintes, sem
   alterar a ordem real dos cards nem remover o efeito frosted-glass. */
.cnh-card:has(.profissao-autocomplete) {
  position: relative;
  z-index: 100;
}

.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;
}

/* ============================================================
   FORMULÁRIO PRÓPRIO DO GERADOR DE CNH
   ------------------------------------------------------------
   Campos do condutor (nome, CPF, datas, categoria, UF, registro)
   que alimentam o preview DEMO. Layout em 2 colunas no desktop e
   1 coluna no mobile, sem overflow horizontal. NÃO afeta a
   Consulta CNH (que usa .cnh-consulta-cpf, separada).
   ============================================================ */
.cnh-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.cnh-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cnh-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.cnh-field .gerador-input {
  width: 100%;
  min-width: 0;
}
@media (max-width: 900px) {
  .cnh-form-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.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;
}
/* Autocomplete VERTICAL: cada sugestão ocupa uma linha inteira,
   como um botão de toque grande. Texto totalmente visível (sem
   truncar), bem espaçado e com área de clique confortável no
   desktop e no celular. */
.profissao-sugestao {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  transition: background 0.2s ease, color 0.2s ease;
}
.profissao-sugestao:last-child {
  border-bottom: none;
}
.profissao-sugestao:hover,
.profissao-sugestao.ativa {
  background: rgba(255, 212, 0, 0.1);
  color: var(--neon-cyan);
}
.profissao-sugestao:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: -2px;
}
.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;
}
/* Paginação do Gerador de Profissão (15 por página). Reutiliza o visual dos
   botões .tool-pagination-btn já existentes no projeto. Sem scroll horizontal:
   usa flex com wrap e largura máxima de 100%. */
.profissao-paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  max-width: 100%;
}
.profissao-paginacao .tool-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.profissao-paginacao .tool-pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.6);
}
.profissao-paginacao .tool-pagination-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ===== GERADOR DE PROFISSÃO — MOBILE (SEM SCROLL HORIZONTAL) =====
   Em telas estreitas, a tabela de 6 colunas (min-width:720px) estoura a
   largura do viewport e força rolagem horizontal. Para eliminar o overflow
   SEM esconder conteúdo, converte cada linha em um "cartão" empilhado que
   cabe inteiro na largura da tela. No desktop a tabela permanece intacta. */
@media (max-width: 640px) {
  .profissao-tabela-wrapper {
    overflow-x: visible;
    padding: 16px;
  }
  .profissao-tabela {
    min-width: 0;
    width: 100%;
    display: block;
  }
  .profissao-tabela thead {
    display: none;
  }
  .profissao-tabela tbody {
    display: block;
    width: 100%;
  }
  .profissao-tabela tbody tr {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
  }
  .profissao-tabela tbody tr:last-child {
    margin-bottom: 0;
  }
  .profissao-tabela tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: right;
  }
  .profissao-tabela tbody td:last-child {
    border-bottom: none;
  }
  /* Rótulo de cada campo (CPF, NOME, BAIRRO, NASCIMENTO, SITUAÇÃO, UF) */
  .profissao-tabela tbody td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding-top: 2px;
  }
  .profissao-tabela tbody td.profissao-cpf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .profissao-tabela tbody td.profissao-cpf::before {
    content: attr(data-label);
  }
  .profissao-cpf-num {
    word-break: break-all;
  }
  .profissao-copiar {
    margin-left: auto;
    white-space: nowrap;
  }
  .profissao-badge-ativo {
    white-space: nowrap;
  }
}

.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: 18px 20px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.22), rgba(255, 212, 0, 0.13));
  border: 2px solid var(--border-cyan-strong);
  border-radius: var(--radius);
  color: var(--text-primary);
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.25), 0 6px 22px rgba(255, 212, 0, 0.12);
  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 0 1px rgba(255, 212, 0, 0.35), 0 0 24px rgba(255, 212, 0, 0.4);
  transform: translateY(-1px);
}
.cnh-aviso::after {
  content: 'Clique aqui para ir à Consulta CNH →';
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cnh-aviso > i {
  font-size: 24px;
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
}
.cnh-aviso div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  line-height: 1.55;
}
.cnh-aviso div strong {
  color: var(--neon-cyan);
  font-size: 15px;
  font-weight: 800;
}
.cnh-aviso div span {
  color: var(--text-primary);
  font-weight: 500;
}
.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;
}

/* Controles de navegação da busca facial paginada (5+5): PRÓXIMOS/ANTERIORES.
   Ficam abaixo da grade, centralizados, sem alterar o layout dos cards. */
.tool-results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tool-pagination-btn {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #052e16;
  background: linear-gradient(135deg, #00ffa3, #00f2fe);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 255, 163, 0.25);
  transition: all 0.2s ease;
}

.tool-pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.tool-pagination-info {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.7);
  letter-spacing: 0.3px;
}

/* 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);
}

/* Rótulo da região com ícone minimalista (olho/nariz/boca) alinhado à esquerda. */
.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.micro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--text-secondary);
  opacity: 0.85;
}

.micro-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.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: 16px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.10);
  border: 1.5px solid rgba(0, 229, 255, 0.5);
  border-left: 4px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12), 0 4px 14px rgba(0, 229, 255, 0.08);
}

.user-guidance-text strong {
  color: var(--neon-cyan);
  font-weight: 800;
}

.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;
}

/* ===== Destaque de status do resultado da CNH (verde/vermelho) =====
   Selo colorido exibido ao lado do valor de Validade CNH, EAR e
   Tipo/Situação. Apenas o selo é colorido — o restante do resultado
   e o fundo dos cards permanecem inalterados. */
.cnh-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.cnh-status-ok {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.45);
}
.cnh-status-ruim {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.45);
}

/* 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(--brazuca-yellow), var(--brazuca-gold-deep));
  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;
}

/* BLOCO B: resultados do Chassi LADO A LADO na horizontal, cards compactos
   no MESMO conceito visual do BICOS (grade, colunas proporcionais, gap curto).
   Antes: grade auto-ajustável de ~250px gerava cards grandes/inconsistentes. */
.chassi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.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;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

/* ===== Gerador de Chassi: formulário (esquerda) + pré-visualização DEMO (direita) ===== */
.chassi-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}

.chassi-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 12px;
}

.chassi-preview-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.75;
  margin-bottom: 12px;
}

.chassi-preview-empty {
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.5;
}

.chassi-preview-canvas-wrap {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.chassi-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.chassi-preview-status {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.6;
  line-height: 1.4;
}

/* Rótulo de proteção (BLU FRACO) dos cards de Chassi — base (desktop).
   Vem ANTES do @media para que o override mobile (6px) vença a cascata. */
.chassi-card-lock {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ============================================================
   📱 GERADOR DE CHASSI — MOBILE (≤900px)
   ------------------------------------------------------------
   Correção cirúrgica SOMENTE de layout mobile.
   Antes: .chassi-body mantinha 2 colunas (form | preview) no
   celular, espremendo o formulário e a pré-visualização lado a
   lado. Agora, no mobile, o FORMULÁRIO fica em cima (100%) e a
   PRÉ-VISUALIZAÇÃO DEMO logo abaixo, também 100%.
   As imagens geradas (.chassi-grid) ficam TODAS na MESMA linha
   (flex nowrap), compactas, no padrão BICOS-mobile — SEM carrossel,
   SEM empilhamento e SEM rolagem horizontal.
   Desktop (≥901px) permanece EXATAMENTE como está.
   NÃO altera templates, geração, cobrança, saldo nem APIs.
   ============================================================ */
@media (max-width: 900px) {
  .chassi-body {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow-x: hidden;
  }
  .chassi-form {
    order: 1;
    width: 100%;
    min-width: 0;
  }
  .chassi-preview {
    order: 2;
    position: static;
    width: 100%;
    min-width: 0;
  }

  /* BLOCO B (patch 2): TODOS os cards de Chassi lado a lado na MESMA linha,
     IDÊNTICO à lógica do BICOS-mobile (bicos.css @media 640px): flex nowrap,
     gap 4px, cards finos, imagem width:100% e tipografia compacta.
     flex nowrap garante 1 única linha para QUALQUER quantidade de imagens
     (3 hoje; 5 se houver 5) — SEM empilhar, SEM carrossel, SEM scroll-x.
     Somente CSS/layout: não altera geração, cobrança, saldo nem APIs. */
  .chassi-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: visible;
  }
  .chassi-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px;
    gap: 4px;
    border-radius: 8px;
  }
  .chassi-card-title {
    font-size: 7px;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chassi-card-img img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .chassi-download {
    padding: 4px 2px;
    font-size: 7px;
    gap: 2px;
    line-height: 1.05;
  }
  .chassi-card-lock {
    font-size: 6px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.chassi-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brazuca-yellow), var(--brazuca-gold-deep));
  color: #080A10;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  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;
}

/* ============================================================
   PLANO MENSAL — BLOCO NA CARTEIRA FLUTUANTE (CAMADA SEPARADA)
   Exibe 100 consultas + Premium + validade, avisos 7/3/1 dias e
   o botão RENOVAR PLANO. Não interfere no saldo_reais nem na franquia.
   ============================================================ */
.bs-carteira-plano-mensal {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 212, 0, 0.10), rgba(255, 212, 0, 0.03));
  border: 1px solid rgba(255, 212, 0, 0.35);
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.12);
}

.plano-mensal-titulo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--neon-yellow, #ffd400);
  text-shadow: 0 0 10px rgba(255, 212, 0, 0.35);
  margin-bottom: 8px;
}

/* Blocos de destaque: TEMPO RESTANTE e CRÉDITOS DO PLANO. */
.plano-mensal-bloco {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.plano-mensal-rotulo {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(234, 255, 240, 0.85);
  margin-bottom: 4px;
}

.plano-mensal-tempo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--neon-green, #00e676);
  line-height: 1.2;
}

.plano-mensal-tempo.plano-tempo-expirado {
  color: #ff8a8a;
  font-size: 15px;
}

.plano-mensal-creditos {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--neon-yellow, #ffd400);
  line-height: 1.2;
}

/* Contador textual "X / Y consultas" (compatível com o rótulo de créditos). */
.plano-mensal-contador {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #9aa4b2);
  line-height: 1.4;
  margin-top: 2px;
}

.plano-mensal-linha {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(234, 255, 240, 0.92);
  line-height: 1.6;
  margin-top: 8px;
}

/* ============================================================
   PLANO MENSAL ATIVO — OCULTA A CARTEIRA FLUTUANTE
   Enquanto o Plano Mensal estiver ativo, o botão flutuante de
   saldo (#bsSaldoGatilho / .bs-saldo-float) é escondido por
   completo. Ao expirar, a classe é removida e ele volta a
   aparecer. Apenas visibilidade — não remove o elemento.
   ============================================================ */
body.bs-plano-mensal-ativo #bsSaldoGatilho,
body.bs-plano-mensal-ativo .bs-saldo-float {
  display: none !important;
}

/* ============================================================
   PLANO MENSAL ATIVO — NÃO MOSTRAR COBRANÇA DO MENSAL R$130
   Enquanto o plano estiver ATIVO (classe no <body> aplicada por
   bsPlanoMensalOcultarCarteira), NENHUMA opção de cobrança do
   Plano Mensal R$130 pode aparecer: nem o card R$130 da tabela
   de preços (#bsTabelaPrecos), nem o bloco "MIGRAR PARA PLANO
   MENSAL" do modal de recarga (.saldo-migrar-plano). A cobrança
   só volta depois da EXPIRAÇÃO (classe removida). É apenas
   visibilidade — não altera PIX, saldo, ativação nem expiração.
   ============================================================ */
body.bs-plano-mensal-ativo #bsTabelaPrecos,
body.bs-plano-mensal-ativo .bs-precos-plano,
body.bs-plano-mensal-ativo .saldo-migrar-plano {
  display: none !important;
}

.plano-mensal-aviso {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
}

.plano-aviso-7 {
  background: rgba(0, 200, 255, 0.10);
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: #7fe3ff;
}

.plano-aviso-3 {
  background: rgba(255, 165, 0, 0.12);
  border: 1px solid rgba(255, 165, 0, 0.40);
  color: #ffc266;
}

.plano-aviso-1,
.plano-aviso-expirado {
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.45);
  color: #ff8a8a;
}

.plano-renovar-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #10131c;
  background: linear-gradient(90deg, var(--neon-yellow, #ffd400), var(--neon-green, #00e676));
  box-shadow: 0 6px 18px rgba(255, 212, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plano-renovar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 212, 0, 0.5);
}

/* ============================================================
   PLANO MENSAL — CONSULTAS ESGOTADAS (0/100) E EXPIRADO
   Aviso + atalhos para CONSULTA AVULSA R$2 e pacotes 20/60/140.
   Reutiliza o MESMO fluxo de recarga/PIX. Apenas apresentação.
   ============================================================ */
.plano-mensal-esgotado {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  background: rgba(255, 165, 0, 0.12);
  border: 1px solid rgba(255, 165, 0, 0.40);
  color: #ffc266;
}

.plano-mensal-esgotado-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.plano-avulsa-btn,
.plano-pacote-btn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #10131c;
  background: linear-gradient(90deg, var(--neon-yellow, #ffd400), var(--neon-green, #00e676));
  box-shadow: 0 6px 16px rgba(255, 212, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plano-avulsa-btn:hover,
.plano-pacote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 212, 0, 0.45);
}

.plano-titulo-expirado {
  color: #ff8a8a;
}

/* Botão DESFAZER PLANO MENSAL — DEMO (somente localhost, dentro do #planoMensalBox).
   Visual discreto de "teste", separado do botão de compra/renovação. */
.plano-desfazer-demo-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px 14px;
  border: 1px dashed rgba(255, 138, 138, 0.55);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #ff8a8a;
  background: rgba(255, 60, 60, 0.10);
  transition: background 0.15s ease, transform 0.15s ease;
}

.plano-desfazer-demo-btn:hover {
  background: rgba(255, 60, 60, 0.18);
  transform: translateY(-1px);
}

.plano-desfazer-demo-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Container do STATUS do Plano Mensal visível DIRETAMENTE no Home (fora do
   #carteiraOverlay). Reutiliza as MESMAS classes .plano-mensal-* do bloco da
   carteira. Oculto quando não há plano ativo.
   VISIBILIDADE: fundo mais sólido e borda forte para o bloco ficar claramente
   legível no Home (antes estava apagado/quase invisível). */
.bs-plano-home-box {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 212, 0, 0.20), rgba(20, 24, 32, 0.98));
  border: 2px solid rgba(255, 212, 0, 0.75);
  box-shadow: 0 10px 28px rgba(255, 212, 0, 0.22), inset 0 0 24px rgba(255, 212, 0, 0.06);
}

.bs-plano-home-box[hidden] {
  display: none !important;
}

/* Container do botão DESFAZER DEMO visível DIRETAMENTE no Home (fora do
   #carteiraOverlay). Fica logo abaixo da tabela de preços. Só é exibido
   quando localhost + plano ativo + txId DEMO-MENSAL-. */
.bs-plano-demo-home {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
}

.bs-plano-demo-home[hidden] {
  display: none !important;
}

.bs-plano-demo-home .plano-desfazer-demo-btn {
  width: auto;
  min-width: 260px;
  max-width: 100%;
}

/* ============================================================
   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;
}

/* ---- Nova entrada direta de CRLV: seleção de formato UBER / 99 ---- */
.crlv-formato-btn {
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 20px;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}

.crlv-formato-btn.active {
  opacity: 1;
  border-color: var(--neon-cyan);
  background: rgba(255, 212, 0, 0.12);
}

/* ---- Nova entrada direta de CRLV: campo único (textarea) ---- */
.crlv-info-textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.crlv-info-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.75;
}

/* ---- Prévia lateral do CRLV (lado a lado com o formulário) ---- */
/* Grid responsivo: formulário à esquerda, prévia à direita. Em telas
   estreitas, empilha (a prévia vai para baixo do formulário). */
.crlv-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.crlv-inline-form {
  min-width: 0;
}

.crlv-inline-preview {
  position: sticky;
  top: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}

.crlv-inline-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.crlv-inline-preview-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.crlv-inline-preview-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  background: rgba(255, 212, 0, 0.12);
}

.crlv-inline-preview-empty {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.7;
  padding: 24px 8px;
  text-align: center;
}

.crlv-inline-preview-content {
  display: block;
}

.crlv-inline-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.crlv-inline-preview-status {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.8;
  word-break: break-word;
}

@media (max-width: 900px) {
  .crlv-inline-grid {
    grid-template-columns: 1fr;
  }
  .crlv-inline-preview {
    position: static;
  }
}

/* ===== M26 — INTERFACE SIMPLES DO GERADOR CRLV (UBER / 99) ===== */
/* CSS ISOLADO (escopo .crlv-simple-*). Não altera o CSS global nem outros
   cards. Layout em duas colunas: controles do veículo (esquerda) + prévia do
   CRLV (direita). Em telas estreitas, empilha (controles em cima, prévia
   abaixo) para preservar a legibilidade no mobile. */
.crlv-simple-card {
  max-width: 1180px;
  margin: 0 auto;
}

.crlv-simple-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.6fr;
  gap: 22px;
  align-items: start;
}

.crlv-simple-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.crlv-simple-placa-field {
  margin-bottom: 4px;
}

.crlv-simple-placa-input {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
}

.crlv-simple-actions {
  margin-top: 10px;
}

.crlv-simple-btn-consultar {
  width: 100%;
  justify-content: center;
}

/* Prévia lateral: ocupa toda a altura disponível, documento centralizado e
   proporcional, com fundo neutro para destacar o CRLV. */
.crlv-simple-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100%;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 16px;
}

.crlv-simple-preview .crlv-inline-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.crlv-simple-preview .crlv-inline-preview-canvas {
  max-width: 100%;
  margin: 0 auto;
}

/* Mobile: empilha controles e prévia (prévia abaixo), mantendo o documento
   proporcional e centralizado. */
@media (max-width: 900px) {
  .crlv-simple-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .crlv-simple-preview {
    min-height: 0;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .crlv-simple-preview {
    padding: 10px;
  }
  .crlv-simple-placa-input {
    font-size: 14px;
  }
}

/* ---- 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;
}

/* ---- Resultado: barra de navegação ANTERIOR / PRÓXIMO ---- */
/* MERGE ETAPA 5A: bloco PRESERVADO do LOCAL. As classes .gv-nav-bar/.gv-nav-btn/
   .gv-nav-indicator são emitidas por script.js (idêntico local↔prod, intocável,
   L7546) e foram removidas do CSS de PRODUÇÃO. Mantidas aqui para não deixar a
   navegação "Conjunto X de N" sem estilo. */
.gv-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.gv-nav-btn {
  min-width: 130px;
  justify-content: center;
  font-size: 13px;
  padding: 10px 18px;
}

.gv-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.gv-nav-indicator {
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

/* A navegação percorre CONJUNTOS (páginas) de opções — várias linhas
   permanecem visíveis simultaneamente. Não há mais realce de uma única
   linha (o modelo antigo de "um veículo por página" foi removido). */

/* 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, #F5B301);
  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, #F5B301);
  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);
}

/* ===== MIGRAR PARA PLANO MENSAL (CAMADA SEPARADA) =====
   Bloco abaixo dos três pacotes. Reutiliza o MESMO modal/PIX existente:
   o botão dispara o fluxo do pacote "mensal" (R$ 130,00 -> 100 consultas
   + Premium/30 dias). NÃO cria novo modal nem novo sistema de pagamento. */
.saldo-migrar-plano {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(255, 212, 0, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.saldo-migrar-plano-info {
  min-width: 0;
  flex: 1 1 200px;
}
.saldo-migrar-plano-titulo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFD400;
  display: flex;
  align-items: center;
  gap: 7px;
}
.saldo-migrar-plano-titulo i {
  color: #FFD400;
}
.saldo-migrar-plano-desc {
  margin-top: 4px;
  font-size: 11.5px;
  color: #c7cdda;
  line-height: 1.35;
}
.saldo-migrar-plano-desc strong {
  color: #00E676;
}
.saldo-migrar-plano-beneficios {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.saldo-migrar-plano-beneficios li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #e6ebf5;
}
.saldo-migrar-plano-beneficios li i {
  color: #00E676;
  font-size: 11px;
  flex: 0 0 auto;
}
.saldo-migrar-plano-beneficios li strong {
  color: #fff;
  font-weight: 800;
}
.saldo-migrar-plano-acao {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.saldo-migrar-plano-preco {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.saldo-migrar-plano-btn {
  width: auto;
  margin-top: 0;
  padding: 10px 16px;
  font-size: 12px;
  white-space: nowrap;
  background: linear-gradient(135deg, #7c5cff, #5b3fd6);
}
.saldo-migrar-plano-btn:hover {
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.45);
}
@media (max-width: 560px) {
  .saldo-migrar-plano {
    flex-direction: column;
    align-items: stretch;
  }
  .saldo-migrar-plano-acao {
    justify-content: space-between;
  }
  .saldo-migrar-plano-btn {
    flex: 1 1 auto;
  }
}

/* ===== ORDEM 8: RECARGA LIVRE DA CARTEIRA =====
   Bloco de valor personalizado exibido ABAIXO do card do Plano Mensal.
   Não interfere no Plano Mensal nem nos preços dos serviços. */
.saldo-recarga-livre {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 92, 255, 0.28);
}
.saldo-recarga-livre-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #c9b8ff;
  margin-bottom: 8px;
}
.saldo-recarga-livre-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.saldo-recarga-livre-desc strong {
  color: #fff;
  font-weight: 800;
}
.saldo-recarga-livre-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.saldo-recarga-livre-prefix {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}
#saldoRecargaValor {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}
#saldoRecargaValor:focus {
  border-color: #7c5cff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
}
#saldoRecargaValor::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}
.saldo-recarga-livre-btn {
  width: auto;
  margin-top: 0;
  padding: 11px 18px;
  font-size: 12px;
  white-space: nowrap;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.saldo-recarga-livre-btn:hover {
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
}
.saldo-recarga-livre-limites {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}
.saldo-recarga-livre-erro {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f87171;
}
@media (max-width: 560px) {
  .saldo-recarga-livre-row {
    flex-wrap: wrap;
  }
  .saldo-recarga-livre-btn {
    flex: 1 1 100%;
  }
}

/* ===== RECARGA DE SALDO (CARTEIRA) =====
   Bloco separado dos PLANOS: o valor pago vira saldo_reais integral
   (R$ 20 -> R$ 20, R$ 50 -> R$ 50, R$ 100 -> R$ 100), sem franquia. */
.saldo-recarga-bloco {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.saldo-recarga-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #00E676;
  margin-bottom: 6px;
}
.saldo-recarga-texto {
  font-size: 11.5px;
  color: #9aa3b5;
  line-height: 1.45;
  margin: 0 0 12px;
}
.saldo-recarga-texto strong {
  color: #fff;
}
.saldo-recargas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.saldo-recarga-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #1f2434;
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 12px;
  padding: 12px 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}
.saldo-recarga-btn:hover {
  transform: translateY(-1px);
  border-color: #00E676;
  box-shadow: 0 6px 18px rgba(0, 230, 118, 0.25);
}
.saldo-recarga-valor {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.saldo-recarga-credito {
  font-size: 10px;
  color: #00E676;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

/* 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;
}

/* ============================================================
   DEMO / TESTE LOCAL — PAGAMENTO PLANO MENSAL (SOMENTE LOCALHOST)
   Bloco exibido apenas em localhost (via JS). Não aparece em produção.
   ============================================================ */
.saldo-demo-bloco {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saldo-demo-selo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.saldo-demo-btn {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.saldo-demo-btn:hover { filter: brightness(1.08); }
.saldo-demo-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.saldo-demo-desfazer {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #9aa3b5;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.saldo-demo-desfazer:hover {
  color: #e8ecf4;
  border-color: rgba(148, 163, 184, 0.7);
}
.saldo-demo-desfazer:disabled { opacity: 0.5; cursor: not-allowed; }
.saldo-demo-status {
  font-size: 12px;
  line-height: 1.4;
  color: #cbd5e1;
  text-align: center;
}
.saldo-demo-status.ok { color: #4ade80; }
.saldo-demo-status.erro { color: #f87171; }

/* ============================================================
   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;
}
/* Avisos internos do paywall reforçados visualmente (mantendo o texto original). */
.paywall-aviso-premium {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 8px;
  padding: 7px 10px;
  margin: 6px 0 10px !important;
  line-height: 1.45;
}
.paywall-aviso-saldo {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 7px 10px;
  margin: 6px 0 10px !important;
  line-height: 1.45;
}
.paywall-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD400, #F5B301);
  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: var(--brazuca-gold-bright);
}
.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, #F5B301);
  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-recargas {
    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, #FFE14D, #FFD400 45%, #F5B301);
  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, #F5B301);
  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, #F5B301);
  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, #FFE14D, #FFD400 55%, #F5B301);
  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, #FFE873 0%, #FFD400 35%, #F5B301 65%, #C99700 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;
  }
  /* Selo de status da CNH em telas estreitas: quebra para a própria linha
     para nunca causar rolagem horizontal nem cortar o texto. */
  .cnh-status {
    display: block;
    margin: 6px 0 0;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    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)
   que aparecem antes e usariam minmax() maior que a largura útil em 320px.
   BLOCO B: .chassi-grid foi REMOVIDO desta lista — os resultados do Chassi
   devem permanecer lado a lado na horizontal (padrão BICOS) no mobile. */
@media (max-width: 768px) {
  .status-cards,
  .tool-results-grid,
  .premium-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%;
  }
}

/* --- 1b) AUTOCOMPLETE DE PROFISSÃO: área de toque confortável no mobile ---
   Cada sugestão vira um bloco de toque alto e de largura total, com texto
   totalmente visível (sem truncar) para boa leitura no celular. */
@media (max-width: 900px) {
  .profissao-sugestao {
    padding: 15px 16px;
    font-size: 15px;
  }
  .profissao-sugestoes {
    max-height: 300px;
  }
}

/* --- 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: 12.5px;
    padding: 12px 13px;
  }
}

/* ============================================================
   🔵 MODO BLU — PRÉVIA ANTES DA COBRANÇA
   Visual BLUE / DARK / PREMIUM / UNDERGROUND.
   Etapa intermediária de visualização (preview) que aparece
   ANTES do menu de cobrança. NÃO libera o serviço pago.
   ============================================================ */
.modo-blu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(37, 99, 235, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(29, 78, 216, 0.18) 0%, transparent 55%),
    rgba(3, 7, 18, 0.92);
  overflow-y: auto;
  box-sizing: border-box;
}
.modo-blu-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(165deg, #0b1220 0%, #060b16 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 22px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  color: #fff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
/* Cabeçalho com selo MODO BLU — PRÉVIA */
.modo-blu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.modo-blu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(29, 78, 216, 0.18));
  border: 1px solid rgba(59, 130, 246, 0.55);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #93c5fd;
  text-transform: uppercase;
  white-space: nowrap;
}
.modo-blu-badge i {
  color: #3b82f6;
  font-size: 13px;
}
.modo-blu-servico {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #64748b;
  text-transform: uppercase;
}
.modo-blu-titulo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modo-blu-titulo i {
  color: #3b82f6;
}
.modo-blu-sub {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 16px 0;
}
/* Área do preview borrado */
.modo-blu-preview {
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: #0a1120;
  margin-bottom: 16px;
}
.modo-blu-preview-inner {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform: scale(1.02);
  max-height: 420px;
  overflow: hidden;
}
.modo-blu-preview-inner img {
  max-width: 100%;
  display: block;
}
/* Faixa diagonal "PRÉVIA" sobre o conteúdo borrado */
.modo-blu-ribbon {
  position: absolute;
  top: 18px;
  right: -42px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 48px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  z-index: 3;
  text-transform: uppercase;
}
/* Selo central de cadeado */
.modo-blu-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
  text-align: center;
  padding: 16px;
}
.modo-blu-lock-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #60a5fa;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.35);
}
.modo-blu-lock-text {
  font-size: 13px;
  font-weight: 700;
  color: #bfdbfe;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  max-width: 260px;
  line-height: 1.4;
}
/* Aviso de que é apenas prévia */
.modo-blu-aviso {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(37, 99, 235, 0.18);
  border: 1.5px solid rgba(59, 130, 246, 0.55);
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.55;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 4px 16px rgba(37, 99, 235, 0.15);
}
.modo-blu-aviso i {
  color: #60a5fa;
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}
.modo-blu-aviso strong {
  color: #bfdbfe;
  font-weight: 800;
}
/* Botões */
.modo-blu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modo-blu-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
}
.modo-blu-btn:active {
  transform: translateY(0);
}
.modo-blu-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.4);
}
.modo-blu-btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}
.modo-blu-btn-secondary {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.modo-blu-btn-secondary:hover {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(148, 163, 184, 0.08);
}
.modo-blu-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* Responsividade mobile */
@media (max-width: 480px) {
  .modo-blu-overlay {
    padding: 10px;
    align-items: flex-start;
  }
  .modo-blu-card {
    padding: 16px;
    border-radius: 16px;
  }
  .modo-blu-titulo {
    font-size: 16px;
  }
  .modo-blu-preview-inner {
    max-height: 340px;
  }
  .modo-blu-btn {
    min-height: 52px;
    font-size: 15px;
  }
}

/* ============================================================
   IDENTIDADE PERMANENTE (CÓDIGO DE ACESSO BZ-123456)
   Modal "Minha Identidade" + aviso de identidade criada.
   Reutiliza o ícone .loja-action-user do header (id lojaActionUser).
   ============================================================ */
.identidade-modal-overlay,
.identidade-aviso-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 5, 10, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.identidade-modal-overlay[hidden],
.identidade-aviso-overlay[hidden] {
  display: none;
}
.identidade-modal,
.identidade-aviso {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: 20px;
  background: rgba(18, 22, 36, 0.86);
  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);
  color: #e8ecf5;
}
.identidade-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.identidade-modal-title {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.identidade-modal-title i {
  color: #ffd400;
}
.identidade-modal-close {
  background: transparent;
  border: none;
  color: #9aa4b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.identidade-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.identidade-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.identidade-label {
  font-size: 13px;
  color: #9aa4b8;
  margin: 0;
}
.identidade-nome {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.identidade-alterar-nome {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255, 212, 0, 0.45);
  color: #ffd400;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  margin: 0 0 6px;
  cursor: pointer;
}
.identidade-alterar-nome:hover {
  background: rgba(255, 212, 0, 0.12);
}
.identidade-visitor {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0;
  word-break: break-all;
}
.identidade-hint {
  font-size: 12.5px;
  color: #8b95a8;
  line-height: 1.45;
  margin: 4px 0 0;
}
.identidade-codigo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 212, 0, 0.08);
  border: 1px dashed rgba(255, 212, 0, 0.45);
  border-radius: 12px;
  padding: 12px;
  margin: 4px 0;
}
.identidade-codigo {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffd400;
  flex: 1 1 auto;
  word-break: break-all;
}
.identidade-copiar {
  background: #ffd400;
  color: #14181f;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.identidade-copiar:hover {
  filter: brightness(1.06);
}
.identidade-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
  margin-top: 4px;
}
.identidade-input:focus {
  outline: none;
  border-color: #ffd400;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.15);
}
.identidade-identificar {
  background: #ffd400;
  color: #14181f;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.identidade-identificar:hover {
  filter: brightness(1.06);
}
.identidade-identificar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.identidade-erro {
  color: #ff6b6b;
  font-size: 13px;
  margin: 6px 0 0;
}
.identidade-aviso {
  text-align: center;
}
.identidade-aviso-icon {
  font-size: 44px;
  color: #22c55e;
  margin-bottom: 6px;
}
.identidade-aviso-titulo {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}
.identidade-aviso-sub {
  font-size: 13px;
  color: #9aa4b8;
  margin: 0 0 8px;
}
.identidade-aviso-hint {
  font-size: 12.5px;
  color: #8b95a8;
  line-height: 1.45;
  margin: 8px 0 14px;
}
.identidade-aviso-ok {
  background: #ffd400;
  color: #14181f;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.identidade-aviso-ok:hover {
  filter: brightness(1.06);
}
/* ============================================================
   IDENTIDADE — AJUSTE MOBILE (<=768px)
   Corrige SOMENTE o componente .identidade-* em telas pequenas.
   O desktop permanece visualmente idêntico (regras acima).
   ============================================================ */
@media (max-width: 768px) {
  .identidade-modal-overlay,
  .identidade-aviso-overlay {
    padding: 12px;
  }
  .identidade-modal,
  .identidade-aviso {
    max-width: 100%;
    padding: 16px;
    border-radius: 16px;
  }
  .identidade-modal-title {
    font-size: 19px;
  }
  .identidade-modal-close {
    font-size: 20px;
    padding: 6px 10px;
  }
  .identidade-label {
    font-size: 14px;
  }
  .identidade-nome {
    font-size: 20px;
  }
  .identidade-hint {
    font-size: 14px;
    line-height: 1.5;
  }
  .identidade-codigo-box {
    padding: 14px;
    gap: 12px;
  }
  .identidade-codigo {
    font-size: 22px;
    letter-spacing: 2px;
  }
  .identidade-copiar {
    font-size: 14px;
    padding: 11px 16px;
  }
  .identidade-input {
    font-size: 17px;
    padding: 14px 16px;
  }
  .identidade-identificar {
    font-size: 15px;
    padding: 14px 18px;
  }
  .identidade-erro {
    font-size: 14px;
  }
  .identidade-aviso-icon {
    font-size: 48px;
  }
  .identidade-aviso-titulo {
    font-size: 20px;
  }
  .identidade-aviso-sub {
    font-size: 14px;
  }
  .identidade-aviso-hint {
    font-size: 14px;
    line-height: 1.5;
  }
  .identidade-aviso-ok {
    font-size: 15px;
    padding: 14px 22px;
  }
}
@media (max-width: 480px) {
  .identidade-codigo {
    font-size: 20px;
  }
  .identidade-copiar {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   📱 AJUSTE RESPONSIVO MOBILE — PIX (cobrança) + CARD GERADOR DE CNH
   Somente layout/espaçamento no celular. Desktop (≥641px) permanece
   EXATAMENTE como está. Nenhuma regra de pagamento/backend alterada.
   Reaproveita as classes existentes (sem estrutura paralela).
   ============================================================ */

/* --- 1) COBRANÇA PIX: modal mais compacto e melhor uso da altura --- */
@media (max-width: 640px) {
  .saldo-modal-overlay {
    padding: 10px;
    align-items: flex-start;
  }
  .saldo-modal {
    max-height: 94vh;
    padding: 14px 14px 16px;
    border-radius: 16px;
  }
  .saldo-modal-head {
    margin-bottom: 8px;
  }
  .saldo-modal-title {
    gap: 9px;
  }
  .saldo-modal-title i {
    font-size: 17px;
  }
  .saldo-modal-title h3 {
    font-size: 16px;
  }
  .saldo-modal-desc {
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 10px;
  }
  .saldo-modal-desc-titulo {
    font-size: 15px;
    margin: 0 0 6px;
  }
  .saldo-modal-desc-texto {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 6px;
  }
  /* Bloco de valor do Pix mais enxuto */
  .saldo-pix-info {
    margin-bottom: 10px;
  }
  .saldo-pix-pacote {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .saldo-pix-valor {
    font-size: 22px;
  }
  .saldo-pix-recebe {
    font-size: 12px;
    margin-top: 2px;
  }
  /* QR Code moderadamente menor e com menos respiro */
  .saldo-pix-qr {
    padding: 10px;
    margin-bottom: 10px;
    min-height: 0;
    border-radius: 12px;
  }
  .saldo-pix-qr img {
    width: 150px;
    height: 150px;
  }
  /* Copia e Cola mais compacto */
  .saldo-pix-copia {
    margin-bottom: 10px;
  }
  .saldo-pix-copia-label {
    margin-bottom: 4px;
  }
  .saldo-pix-copia-row input {
    padding: 9px 10px;
    font-size: 12px;
  }
  .saldo-pix-copy {
    padding: 9px 12px;
    font-size: 12px;
  }
  .saldo-pix-aviso {
    padding: 8px 10px;
    margin-bottom: 10px;
  }
  /* Botão COPIAR PIX (fluxos premium) mais compacto no celular */
  .pix-copiar-btn {
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    margin-top: 6px !important;
  }
}

/* Telas muito estreitas (≤390px): reduzir mais um pouco o QR */
@media (max-width: 390px) {
  .saldo-pix-qr img {
    width: 132px;
    height: 132px;
  }
  .saldo-pix-valor {
    font-size: 20px;
  }
}

/* --- 2) CARD GERADOR DE CNH: mais respiro no mobile --- */
@media (max-width: 900px) {
  .cnh-card {
    padding: 26px 22px;
  }
  .cnh-card-head {
    gap: 14px;
    margin-bottom: 12px;
  }
  .cnh-card-head h3 {
    font-size: 17px;
    line-height: 1.3;
  }
  .cnh-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 18px;
  }
  .cnh-options {
    gap: 12px;
  }
  .cnh-option {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .cnh-card {
    padding: 22px 18px;
  }
  .cnh-card-head {
    gap: 12px;
    margin-bottom: 10px;
  }
  .cnh-card-head h3 {
    font-size: 16px;
  }
  .cnh-card-desc {
    margin-bottom: 16px;
  }
}

/* ============================================================
   📱 AJUSTE RESPONSIVO MOBILE — COMPONENTE REAL DE COBRANÇA PIX
   (.paywall-overlay / .paywall-box / .paywall-pix-status)
   Este é o componente efetivamente exibido no fluxo de cobrança
   (paywall avulso e híbrido), NÃO o .saldo-modal.
   Somente layout/espaçamento no celular. Desktop (≥641px) intacto.
   Nenhuma regra de pagamento/backend alterada.
   ============================================================ */
@media (max-width: 640px) {
  /* Overlay: permite rolagem vertical interna se o conteúdo exceder a tela */
  .paywall-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }
  /* Box: largura confortável, padding lateral menor e respiro interno */
  .paywall-box {
    max-width: 100%;
    width: 100%;
    padding: 20px 16px;
    border-radius: 14px;
    margin: auto 0;
  }
  .paywall-box-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .paywall-box-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .paywall-box-desc {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .paywall-box-valor {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .paywall-aviso-premium,
  .paywall-aviso-saldo {
    font-size: 11.5px !important;
    padding: 6px 9px;
    margin: 6px 0 10px !important;
  }
  .paywall-btn {
    padding: 12px;
    font-size: 14.5px;
  }
  .paywall-btn-pix {
    margin-top: 8px;
  }
  /* Status do Pix: largura total, QR com espaço e sem esmagamento */
  .paywall-pix-status {
    margin-top: 10px;
    width: 100%;
    overflow: visible;
  }
  .paywall-pix-status img {
    max-width: 160px !important;
    width: 160px;
    height: 160px;
    margin: 6px auto !important;
    display: block;
  }
  .paywall-pix-status input {
    width: 100% !important;
    box-sizing: border-box;
    font-size: 11.5px !important;
    padding: 9px 10px !important;
  }
  .paywall-pix-status .pix-copiar-btn {
    width: 100% !important;
    box-sizing: border-box;
    padding: 11px 12px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
  }
}

/* Telas muito estreitas (≤390px): QR um pouco menor, mantendo espaço */
@media (max-width: 390px) {
  .paywall-box {
    padding: 18px 14px;
  }
  .paywall-pix-status img {
    max-width: 140px !important;
    width: 140px;
    height: 140px;
  }
  .paywall-box-valor {
    font-size: 20px;
  }
}

/* ============================================================
   ✨ FUNDO PREMIUM — ESTRELAS DISCRETAS (somente visual)
   Mantém o fundo preto/grafite atual (#0A0C10) e adiciona
   pequenos pontos luminosos atrás de TODO o conteúdo.

   IMPORTANTE (cascata): usamos o pseudo-elemento html::after
   (e NÃO body::after) porque body::before/body::after são
   redefinidos por arquivos carregados DEPOIS deste
   (brasil-street.css, brazuca-dark.css, loja-digital.css),
   o que sobrescreveria as estrelas. Nenhum outro arquivo usa
   html::after, então a camada permanece intacta.

   z-index: 0 (e NÃO negativo): o body tem fundo OPACO
   (var(--bd-bg)) e o body::after é um overlay preto denso
   (z-index: -1). Se as estrelas usassem z-index negativo,
   ficariam escondidas atrás dessas camadas opacas. Com
   z-index: 0 elas ficam ACIMA do fundo/overlay e ABAIXO do
   conteúdo (.main-content z-index: 1, .sidebar z-index: 10),
   exatamente atrás de cards, textos, botões e modais.
   Nenhuma regra funcional alterada. Sem imagens externas —
   só gradientes CSS.
   ============================================================ */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Pontos minúsculos (1–1.5px) distribuídos de forma irregular.
     Opacidades variadas para um brilho natural, sem padrões óbvios. */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 9%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 34%, rgba(255, 255, 255, 0.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 77%, rgba(255, 255, 255, 0.50) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 22%, rgba(255, 255, 255, 0.40) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 58%, rgba(255, 255, 255, 0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 84%, rgba(255, 255, 255, 0.42) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 41%, rgba(255, 255, 255, 0.26) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 12%, rgba(255, 255, 255, 0.38) 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 88%, rgba(255, 255, 255, 0.33) 50%, transparent 51%),
    radial-gradient(1px 1px at 79% 49%, rgba(255, 255, 255, 0.24) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 33%, rgba(255, 255, 255, 0.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 91%, rgba(255, 255, 255, 0.36) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 5% 52%, rgba(255, 255, 255, 0.32) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 66%, rgba(255, 255, 255, 0.27) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 74%, rgba(255, 255, 255, 0.34) 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 6%, rgba(255, 255, 255, 0.29) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 96%, rgba(255, 255, 255, 0.31) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 27%, rgba(255, 255, 255, 0.37) 50%, transparent 51%),
    /* Alguns pontos com leve tom amarelo BRAZUCA (brilho levemente diferente) */
    radial-gradient(1px 1px at 44% 55%, rgba(255, 212, 0, 0.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 39%, rgba(255, 212, 0, 0.24) 50%, transparent 51%),
    radial-gradient(1px 1px at 15% 71%, rgba(255, 212, 0, 0.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 82%, rgba(255, 212, 0, 0.26) 50%, transparent 51%);
  background-repeat: repeat;
  background-size: 520px 520px;
  /* Brilho muito sutil e opcional (respeita quem prefere menos movimento) */
  animation: brazucaStarTwinkle 7s ease-in-out infinite;
}

/* Em telas pequenas (mobile) mantemos um tile um pouco maior que o
   desktop para as estrelas ficarem esparsas e discretas, sem agrupar.
   Valor moderado: visível o suficiente para o efeito premium, mas
   ainda bem pequeno e sem manchas. */
@media (max-width: 600px) {
  html::after {
    background-size: 640px 640px;
  }
}

@keyframes brazucaStarTwinkle {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html::after {
    animation: none;
  }
}

/* ============================================================
   PÁGINA LOCAL: COMPROVANTE ENDEREÇO TIM
   Estilos isolados (prefixo .tim-) da página própria do card
   "COMPROVANTE ENDEREÇO TIM". Não afeta nenhum outro componente.
   Layout responsivo: 2 colunas (form + preview) no desktop e
   1 coluna empilhada no mobile.
   ============================================================ */
.tim-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

.tim-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.tim-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tim-back:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tim-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.tim-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}

.tim-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.tim-form-title,
.tim-preview-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.75;
  margin-bottom: 12px;
}

/* Subtítulo de apoio do formulário (copy/UI — não altera lógica). */
.tim-form-subtitle {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.6;
  margin: -6px 0 14px;
}

/* Separador visual do bloco do canhoto (copy/UI). */
.tim-form-sep {
  grid-column: 1 / -1;
  margin: 8px 0 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tim-form-sep-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.75;
}

.tim-form-sep-sub {
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.55;
  margin-top: 3px;
}

.tim-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.tim-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tim-field-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

/* Subtítulo de apoio de cada campo (copy/UI — não altera lógica). */
.tim-field-sub {
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.55;
  margin-bottom: 3px;
}

.tim-field-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  color: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.tim-field-input:focus {
  border-color: rgba(0, 242, 254, 0.6);
}

.tim-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.tim-btn-primary {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #04121a;
}

.tim-btn-primary:hover {
  opacity: 0.9;
}

.tim-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: inherit;
}

.tim-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Botão "BAIXAR PDF" — fluxo de comprovante de endereço (VIVO/CLARO).
   Ajuste visual: destaque AZUL. Somente aparência — não altera handler,
   cobrança, PIX, saldo nem backend. */
.tim-btn-pdf {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.tim-btn-pdf:hover {
  opacity: 0.9;
}

.tim-btn-pdf:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Aviso do botão "BAIXAR PDF" (VIVO/CLARO): informa que o PDF só é gerado
   após a confirmação do pagamento. Somente informativo — não altera o fluxo. */
.tim-pdf-aviso {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.tim-pdf-aviso i {
  color: #4facfe;
  flex-shrink: 0;
}

.tim-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 12px;
  /* Preview ACIMA do formulário (VIVO/CLARO): no grid de 2 colunas o preview
     ocupa a 1ª coluna e o formulário a 2ª; no empilhamento mobile ele fica
     acima do formulário. Não altera campos nem funcionamento. */
  order: -1;
}

.tim-preview-empty {
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.5;
}

/* Preview REAL sobre o template calibrado (canvas). */
.tim-preview-canvas-wrap {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.tim-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.tim-preview-status {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.6;
  line-height: 1.4;
}

@media (max-width: 900px) {
  /* 📱 MOBILE (VIVO/CLARO): IMAGEM/PREVIEW ACIMA ↓ FORMULÁRIO ABAIXO.
     Antes o mobile mantinha 2 colunas lado a lado (form | preview),
     espremendo os campos. Agora empilha em UMA coluna: a
     PRÉ-VISUALIZAÇÃO vem primeiro (order:-1) e o FORMULÁRIO logo
     abaixo, ambos com 100% de largura, campos confortáveis e SEM
     overflow horizontal. Desktop (≥901px) permanece EXATAMENTE
     como está. NÃO altera coordenadas, canvas, template, campos
     nem lógica. */
  .tim-body {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow-x: hidden;
  }
  .tim-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tim-preview {
    position: static;
    order: -1;
    width: 100%;
    min-width: 0;
  }
  .tim-form {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   📱 CARD GERADOR CNH — RESPIRO VERTICAL NO MOBILE (≤900px)
   ------------------------------------------------------------
   Correção cirúrgica SOMENTE de layout mobile da tela do
   GERADOR CNH (cards MODELO / MÓDULO / IMAGEM / DADOS DO
   DOCUMENTO). O problema: no celular os cards ficavam
   comprimidos, com as 2 opções de modelo esmagadas e exigindo
   rolagem excessiva. Aqui aumentamos o espaço vertical, o
   espaçamento entre os cards e a área de toque das opções,
   preservando a proporção/tamanho dos elementos.
   Desktop (≥901px) permanece EXATAMENTE como está.
   NÃO altera geração, template, dados, cobrança, saldo ou APIs.
   ============================================================ */
@media (max-width: 900px) {
  /* Grade de cards: mais respiro vertical entre os cards */
  .cnh-grid {
    gap: 22px;
  }

  /* Card: padding confortável e sem esmagamento interno */
  .cnh-card {
    padding: 24px 20px;
  }

  /* Cabeçalho do card: mais espaço antes do conteúdo */
  .cnh-card-head {
    gap: 14px;
    margin-bottom: 14px;
  }

  /* Descrição: leitura confortável e mais espaço antes das opções */
  .cnh-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* Lista de opções (as 2 CNHs de modelo/módulo): mais espaço entre elas */
  .cnh-options {
    gap: 14px;
  }

  /* Cada opção: área de toque alta, texto que quebra sem esmagar */
  .cnh-option {
    padding: 16px 16px;
    min-height: 56px;
    font-size: 13.5px;
    line-height: 1.4;
    white-space: normal;
    align-items: center;
  }
  .cnh-option i {
    flex-shrink: 0;
  }

  /* Área de upload: altura mínima confortável no celular */
  .upload-zone {
    min-height: 240px;
    padding: 22px 18px;
  }

  /* Textarea de dados: altura maior para não comprimir a digitação */
  .cnh-textarea {
    min-height: 200px;
    font-size: 14px;
    line-height: 1.65;
  }

  /* Área de ação (botão GERAR CNH + preço): mais espaço acima */
  .cnh-action-area {
    margin-top: 22px;
    gap: 14px;
  }

  /* Bloco de consulta por CPF: respiro consistente com os cards */
  .cnh-consulta-cpf {
    padding: 22px 20px;
    margin-bottom: 22px;
  }

  /* Aviso obrigatório: respiro no topo do fluxo */
  .cnh-aviso {
    padding: 18px 18px;
    margin-bottom: 22px;
  }
}

/* Telas estreitas (≤480px): reforço do respiro sem esmagar nada */
@media (max-width: 480px) {
  .cnh-grid {
    gap: 20px;
  }
  .cnh-card {
    padding: 22px 16px;
  }
  .cnh-card-desc {
    margin-bottom: 18px;
  }
  .cnh-options {
    gap: 12px;
  }
  .cnh-option {
    padding: 15px 14px;
    min-height: 54px;
    font-size: 13px;
  }
  .upload-zone {
    min-height: 220px;
    padding: 20px 14px;
  }
  .cnh-textarea {
    min-height: 180px;
  }
}

/* ============================================================
   📄 SPLIT CNH — FORMULÁRIO (esquerda) + PRÉ-VISUALIZAÇÃO (direita)
   ------------------------------------------------------------
   Espelha o padrão do CRLV (#crlvModalOverlay .crlv-body). Aplica-se
   às DUAS telas de CNH: "CNH COMPLETA" (buildCnhUnificadaTemplate) e
   "GERADOR DE CNH" (buildGeradorCnhTemplate), ambas usando .cnh-body.
   Desktop (≥901px): 2 colunas (form 1fr | preview 1.6fr).
   Mobile (≤900px): MANTÉM as 2 colunas lado a lado (form esquerda,
   preview direita) com larguras FLUIDAS, SEM overflow horizontal.
   NÃO altera geração, dados, cobrança, saldo ou APIs.
   ============================================================ */
.cnh-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 18px;
  align-items: start;
}
.cnh-form {
  min-width: 0;
}
/* Dentro do split, o formulário é UMA coluna: os cards empilham
   verticalmente e ocupam TODA a largura útil da coluna esquerda.
   Sem isto, o .cnh-grid (1fr 1fr) tentava colocar 2 cards lado a lado
   dentro da coluna estreita do split, comprimindo os campos. */
.cnh-form .cnh-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}
/* Filhos do grid podem encolher abaixo do conteúdo (evita overflow
   horizontal quando o card contém textarea/opções longas). */
.cnh-form .cnh-grid > * {
  min-width: 0;
}
.cnh-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 12px;
  min-width: 0;
}
.cnh-preview-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.75;
  margin-bottom: 12px;
  color: #fff;
}
.cnh-preview-empty {
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.5;
  color: #fff;
}
.cnh-preview-sheet-wrap {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  position: relative;
  line-height: 0;
}
.cnh-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.cnh-preview-status {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.6;
  line-height: 1.4;
  color: #fff;
}

/* 📱 MOBILE (≤900px): PREVIEWS ACIMA ↓ FORMULÁRIO ABAIXO.
   Antes o mobile mantinha 2 colunas lado a lado, espremendo o
   formulário. Agora empilha em UMA coluna: a PRÉ-VISUALIZAÇÃO vem
   primeiro (order:-1) e o FORMULÁRIO logo abaixo, ambos com 100%
   de largura, campos confortáveis e SEM overflow horizontal.
   Desktop (≥901px) permanece EXATAMENTE como está.
   NÃO altera geração, dados, cobrança, saldo ou APIs. */
@media (max-width: 900px) {
  .cnh-body {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow-x: hidden;
  }
  /* Preview primeiro, formulário depois. */
  .cnh-preview {
    order: -1;
    position: static;
    width: 100%;
    min-width: 0;
    padding: 14px;
  }
  .cnh-form {
    order: 1;
    width: 100%;
    min-width: 0;
  }
  /* Cards do formulário: largura total, sem compressão. */
  .cnh-form .cnh-card {
    padding: 18px 16px;
  }
  .cnh-form .cnh-grid {
    gap: 16px;
  }
  .cnh-preview-title {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .cnh-preview-status {
    font-size: 10px;
  }
}
/* Telas muito estreitas (≤480px): mantém empilhado, respiro consistente. */
@media (max-width: 480px) {
  .cnh-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cnh-form .cnh-card {
    padding: 16px 14px;
  }
  .cnh-preview {
    padding: 12px;
  }
  .cnh-preview-title {
    font-size: 11px;
  }
}

/* ============================================================
   M27 — REDESIGN VISUAL CRLV UBER 99 (hacker premium 2030)
   Escopo EXCLUSIVO ao gerador CRLV simples (.crlv-simple-*).
   Somente aparência. Nenhuma regra funcional é alterada.
   Paleta: bg #070B12 | painéis #101923 | campos #0B1420
           azul #168BFF | ciano #22C7E8 | verde #20D879
           texto #E7EDF5 | secundário #8996A8
   ============================================================ */

/* --- Variáveis locais do card (não vazam para o resto do app) --- */
.crlv-simple-card {
  --m27-bg: #070B12;
  --m27-panel: #101923;
  --m27-field: #0B1420;
  --m27-blue: #168BFF;
  --m27-cyan: #22C7E8;
  --m27-green: #20D879;
  --m27-text: #E7EDF5;
  --m27-text-2: #8996A8;
  --m27-border: rgba(34, 199, 232, 0.16);
  --m27-border-soft: rgba(137, 150, 168, 0.14);
  --m27-radius: 14px;
  --m27-radius-sm: 10px;

  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--m27-border-soft);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(22, 139, 255, 0.07) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(34, 199, 232, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, #0C131C 0%, #0A1017 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 24px 60px -30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

/* Linha técnica sutil no topo do card */
.crlv-simple-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 199, 232, 0.45), transparent);
  pointer-events: none;
}

/* --- Cabeçalho do card: substitui o título por "CONTROLE DO VEÍCULO" --- */
.crlv-simple-card .tool-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--m27-border-soft);
}

.crlv-simple-card .tool-card-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--m27-cyan);
  background: rgba(34, 199, 232, 0.08);
  border: 1px solid rgba(34, 199, 232, 0.22);
  box-shadow: 0 0 0 1px rgba(34, 199, 232, 0.04) inset;
}

/* Oculta o texto original "Dados do Veículo" e injeta o novo título */
.crlv-simple-card .tool-card-title h3 {
  font-size: 0;
  letter-spacing: 0;
  margin: 0;
  color: var(--m27-text);
  font-weight: 700;
  text-transform: uppercase;
}
.crlv-simple-card .tool-card-title h3::before {
  content: "CONTROLE DO VEÍCULO";
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--m27-text);
}

.crlv-simple-card .tool-card-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--m27-text-2);
  margin: 0 0 20px;
  max-width: 60ch;
}

/* --- Grid: formulário ~40% / preview ~60% --- */
.crlv-simple-card .crlv-simple-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.66fr) 1fr;
  gap: 22px;
  align-items: stretch;
}

/* ============================================================
   PAINEL ESQUERDO — FORMULÁRIO
   ============================================================ */
.crlv-simple-card .crlv-simple-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 18px;
  border-radius: var(--m27-radius);
  border: 1px solid var(--m27-border-soft);
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.92) 0%, rgba(11, 18, 27, 0.92) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.025) inset,
    0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

/* Labels modernos e discretos */
.crlv-simple-card .crlv-simple-controls .gv-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m27-text-2);
  margin-bottom: 8px;
}

.crlv-simple-card .crlv-simple-controls .gv-field {
  margin: 0;
}

/* Campos de placa (consulta e edição) — mesmo visual */
.crlv-simple-card .crlv-simple-placa-input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m27-text);
  background: var(--m27-field);
  border: 1px solid rgba(34, 199, 232, 0.22);
  border-radius: var(--m27-radius-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.crlv-simple-card .crlv-simple-placa-input::placeholder {
  color: rgba(137, 150, 168, 0.55);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.crlv-simple-card .crlv-simple-placa-input:hover {
  border-color: rgba(34, 199, 232, 0.34);
}

.crlv-simple-card .crlv-simple-placa-input:focus {
  border-color: var(--m27-cyan);
  background: #0A1520;
  box-shadow:
    0 0 0 3px rgba(34, 199, 232, 0.12),
    0 0 18px -6px rgba(34, 199, 232, 0.45);
}

/* Grupo de formato (UBER / 99) — discreto, sem neon */
.crlv-simple-card .crlv-formato-group {
  display: flex;
  gap: 8px;
}

.crlv-simple-card .crlv-formato-btn {
  flex: 1;
  height: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--m27-text-2);
  background: var(--m27-field);
  border: 1px solid var(--m27-border-soft);
  border-radius: var(--m27-radius-sm);
  opacity: 1;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.crlv-simple-card .crlv-formato-btn:hover {
  color: var(--m27-text);
  border-color: rgba(34, 199, 232, 0.3);
}

.crlv-simple-card .crlv-formato-btn.active {
  color: var(--m27-text);
  background: rgba(22, 139, 255, 0.12);
  border-color: rgba(22, 139, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(22, 139, 255, 0.18) inset;
}

/* Ações (botões) */
.crlv-simple-card .crlv-simple-actions {
  margin: 0;
}

.crlv-simple-card .crlv-simple-actions .tool-action-btn {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--m27-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.crlv-simple-card .crlv-simple-actions .tool-action-btn i {
  font-size: 13px;
}

/* CONSULTAR PLACA — azul elétrico, gradiente discreto */
.crlv-simple-card .crlv-simple-btn-consultar {
  color: #F2F8FF;
  background: linear-gradient(180deg, #1E96FF 0%, #168BFF 55%, #0F7AE6 100%);
  border-color: rgba(22, 139, 255, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 24px -14px rgba(22, 139, 255, 0.75);
}

.crlv-simple-card .crlv-simple-btn-consultar:hover {
  background: linear-gradient(180deg, #2A9DFF 0%, #1E96FF 55%, #168BFF 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 28px -12px rgba(22, 139, 255, 0.85);
}

.crlv-simple-card .crlv-simple-btn-consultar:active {
  transform: translateY(1px);
}

/* GERAR CRLV — verde elegante, sem neon exagerado */
.crlv-simple-card .crlv-simple-actions .gv-generate-btn {
  min-width: 0;
  color: #EAFBF2;
  background: linear-gradient(180deg, #24E084 0%, #20D879 55%, #17B866 100%);
  border-color: rgba(32, 216, 121, 0.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 10px 24px -16px rgba(32, 216, 121, 0.7);
}

.crlv-simple-card .crlv-simple-actions .gv-generate-btn:hover {
  background: linear-gradient(180deg, #2EEA8E 0%, #24E084 55%, #20D879 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 28px -14px rgba(32, 216, 121, 0.8);
}

.crlv-simple-card .crlv-simple-actions .gv-generate-btn:active {
  transform: translateY(1px);
}

/* Hint e status do formulário */
.crlv-simple-card .crlv-info-hint {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--m27-text-2);
}

.crlv-simple-card .crlv-info-status {
  font-size: 12px;
  line-height: 1.5;
  color: var(--m27-text-2);
  padding: 10px 12px;
  border-radius: var(--m27-radius-sm);
  border: 1px solid var(--m27-border-soft);
  background: rgba(11, 20, 32, 0.6);
}

/* ============================================================
   PAINEL DIREITO — VISUALIZADOR DO DOCUMENTO
   ============================================================ */
.crlv-simple-card .crlv-simple-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--m27-radius);
  border: 1px solid var(--m27-border-soft);
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(22, 139, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0E1620 0%, #0A1017 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.025) inset,
    0 18px 40px -28px rgba(0, 0, 0, 0.9);
  min-height: 420px;
}

/* Cabeçalho do visualizador */
.crlv-simple-card .crlv-inline-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--m27-border-soft);
}

/* Substitui o título dinâmico por "VISUALIZAÇÃO CRLV" */
.crlv-simple-card .crlv-inline-preview-title {
  font-size: 0;
  letter-spacing: 0;
  color: var(--m27-text);
  font-weight: 700;
  text-transform: uppercase;
}
.crlv-simple-card .crlv-inline-preview-title::before {
  content: "VISUALIZAÇÃO CRLV";
  font-size: 12.5px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--m27-text);
}

/* Badge "PREVIEW" */
.crlv-simple-card .crlv-inline-preview-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m27-cyan);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 199, 232, 0.35);
  background: rgba(34, 199, 232, 0.08);
  box-shadow: 0 0 0 1px rgba(34, 199, 232, 0.05) inset;
}

/* Estado vazio */
.crlv-simple-card .crlv-inline-preview-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--m27-text-2);
  border-radius: var(--m27-radius-sm);
  border: 1px dashed rgba(137, 150, 168, 0.22);
  background: rgba(11, 20, 32, 0.4);
}

/* Área do documento */
.crlv-simple-card .crlv-inline-preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px;
}

/* Documento branco centralizado, proporção preservada, sombra suave */
.crlv-simple-card .crlv-inline-preview-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 22px 50px -24px rgba(0, 0, 0, 0.85);
}

.crlv-simple-card .crlv-inline-preview-status {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--m27-text-2);
  text-align: center;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* Desktop médio: mantém 40/60 mas reduz respiro */
@media (max-width: 1024px) {
  .crlv-simple-card {
    padding: 22px 20px 24px;
  }
  .crlv-simple-card .crlv-simple-grid {
    grid-template-columns: minmax(280px, 0.7fr) 1fr;
    gap: 18px;
  }
}

/* Tablet / mobile: empilha — formulário primeiro, preview abaixo */
@media (max-width: 900px) {
  .crlv-simple-card .crlv-simple-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .crlv-simple-card .crlv-simple-preview {
    min-height: 340px;
  }
}

/* Telas estreitas: respiro consistente, sem rolagem horizontal */
@media (max-width: 480px) {
  .crlv-simple-card {
    padding: 18px 14px 20px;
    border-radius: 14px;
  }
  .crlv-simple-card .crlv-simple-controls {
    padding: 16px 14px;
  }
  .crlv-simple-card .crlv-simple-preview {
    padding: 14px;
    min-height: 300px;
  }
  .crlv-simple-card .crlv-simple-placa-input {
    font-size: 14px;
    letter-spacing: 0.12em;
  }
  .crlv-simple-card .crlv-inline-preview-title::before {
    font-size: 11.5px;
  }
}
