/* ============================================================
   ESPAÇO UBER - PAINEL PREMIUM
   Dark Neon Glassmorphism UI
   ============================================================ */

/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
  /* Fundos */
  --bg-primary: #080A10;
  --bg-sidebar: rgba(10, 14, 23, 0.95);
  --bg-card: rgba(20, 25, 40, 0.6);
  --bg-card-hover: rgba(24, 30, 48, 0.75);
  --bg-input: rgba(255, 255, 255, 0.04);

  /* Cores Neon */
  --neon-cyan: #00f2fe;
  --neon-pink: #fe0979;
  --neon-green: #00ffa3;

  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #8b95a5;
  --text-muted: #5a6478;

  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-cyan: rgba(0, 242, 254, 0.1);
  --border-cyan-strong: rgba(0, 242, 254, 0.3);

  /* Sombras */
  --shadow-card: 0 8px 32px 0 rgba(0, 242, 254, 0.05);
  --shadow-card-hover: 0 8px 40px 0 rgba(0, 242, 254, 0.15);
  --shadow-pink: 0 8px 32px 0 rgba(254, 9, 121, 0.2);

  /* Layout */
  --sidebar-width: 260px;
  --grid-gap: 20px;
  --accent-color: #00f2fe;
  --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: 100vw;
  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 neon sutis */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 242, 254, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(254, 9, 121, 0.05) 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(0, 242, 254, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.3);
}

/* ===== 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(0, 242, 254, 0.15), rgba(254, 9, 121, 0.15));
  border: 1px solid var(--border-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-card);
}

.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(--neon-cyan);
}

.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(0, 242, 254, 0.06);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.12), rgba(0, 242, 254, 0.03));
  color: var(--neon-cyan);
  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(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
}

/* ===== 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(--neon-pink);
  transition: color 0.25s ease;
}

#dynamicCmsNav .cms-cat-item:hover {
  background: rgba(254, 9, 121, 0.06);
  color: var(--text-primary);
}

/* Estado ativo (Cyan/Magenta) da categoria selecionada */
#dynamicCmsNav .cms-cat-item.active {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.14), rgba(254, 9, 121, 0.08));
  color: var(--neon-cyan);
  font-weight: 600;
}

#dynamicCmsNav .cms-cat-item.active i {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

#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: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 12px var(--neon-pink);
}

/* 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(--neon-pink);
  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(254, 9, 121, 0.2), rgba(254, 9, 121, 0.05));
  border: 1px solid rgba(254, 9, 121, 0.3);
  box-shadow: var(--shadow-pink);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-status {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

/* Botão Sair */
.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: rgba(254, 9, 121, 0.08);
  border: 1px solid rgba(254, 9, 121, 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(254, 9, 121, 0.15);
  border-color: rgba(254, 9, 121, 0.5);
  box-shadow: 0 0 20px rgba(254, 9, 121, 0.2);
  transform: translateY(-1px);
}

.btn-logout:active {
  transform: translateY(0);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 36px 40px;
  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: 32px;
  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(--neon-pink);
  text-shadow: 0 0 20px rgba(254, 9, 121, 0.4);
}

.highlight-cyan {
  color: var(--accent-color, var(--neon-cyan));
  text-shadow: 0 0 20px rgba(0, 242, 254, 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(--neon-pink), #d4006a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-pink);
  transition: all 0.25s ease;
  border: 1px solid rgba(254, 9, 121, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(254, 9, 121, 0.35);
}

.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(0, 242, 254, 0.12), rgba(0, 242, 254, 0.04));
  border: 1px solid var(--border-cyan);
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-service:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(0, 242, 254, 0.08));
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

/* ===== 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(0, 242, 254, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.status-icon.pink {
  background: rgba(254, 9, 121, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(254, 9, 121, 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(254, 9, 121, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(254, 9, 121, 0.3);
}

.status-badge.up {
  background: rgba(0, 242, 254, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 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(0, 242, 254, 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(0, 242, 254, 0.15), rgba(0, 242, 254, 0.04));
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.service-icon.nine-nine {
  background: linear-gradient(135deg, rgba(254, 9, 121, 0.15), rgba(254, 9, 121, 0.04));
  color: var(--neon-pink);
  border: 1px solid rgba(254, 9, 121, 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%;
}

/* Tags de status do CMS */
.service-tag.manutencao {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 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(0, 242, 254, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 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(254, 9, 121, 0.2);
}

.maintenance-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(254, 9, 121, 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(0, 242, 254, 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(0, 242, 254, 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(254, 9, 121, 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(0, 242, 254, 0.15), rgba(254, 9, 121, 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-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(0, 242, 254, 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: 28px 28px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 72px;
  }

  .sidebar-logo {
    justify-content: center;
    padding: 20px 8px;
  }

  .logo-text,
  .nav-label,
  .nav-item span,
  .sidebar-user .user-info {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .sidebar-user {
    justify-content: center;
    padding: 8px;
  }

  .main-content {
    padding: 24px 20px;
  }

  .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;
  }

  .cms-cat-title {
    margin-top: 28px;
  }
}

/* ===== MOBILE (SMARTPHONES) ===== */
@media (max-width: 480px) {
  .main-content {
    padding: 16px 14px;
  }

  .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;
  }

  .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(0, 242, 254, 0.05), rgba(10, 14, 26, 0.6));
  border: 1px solid rgba(0, 242, 254, 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(0, 242, 254, 0.5);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.15);
}

.plan-vitrine-card.featured {
  border-color: rgba(254, 9, 121, 0.5);
  background: linear-gradient(160deg, rgba(254, 9, 121, 0.08), rgba(10, 14, 26, 0.6));
}

.plan-vitrine-card.featured:hover {
  border-color: rgba(254, 9, 121, 0.8);
  box-shadow: 0 12px 40px rgba(254, 9, 121, 0.2);
}

.plan-vitrine-glow {
  position: absolute;
  top: -40%;
  right: -40%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
  pointer-events: none;
}

.plan-vitrine-card.featured .plan-vitrine-glow {
  background: radial-gradient(circle, rgba(254, 9, 121, 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(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00f2fe;
}

.plan-vitrine-icon.pink {
  background: rgba(254, 9, 121, 0.12);
  border-color: rgba(254, 9, 121, 0.4);
  color: #fe0979;
}

.plan-vitrine-icon.green {
  background: rgba(0, 255, 163, 0.12);
  border-color: rgba(0, 255, 163, 0.4);
  color: #00ffa3;
}

.plan-vitrine-icon.orange {
  background: rgba(255, 159, 67, 0.12);
  border-color: rgba(255, 159, 67, 0.4);
  color: #ff9f43;
}

.plan-vitrine-badge {
  padding: 4px 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, #fe0979, #ff6a3d);
  color: #fff;
  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(--neon-cyan);
  line-height: 1;
}

.plan-vitrine-card.featured .plan-vitrine-currency,
.plan-vitrine-card.featured .plan-vitrine-value {
  color: #fe0979;
}

.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: #00ffa3;
  font-size: 12px;
  flex-shrink: 0;
}

.plan-vitrine-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #00f2fe, #00c6ff);
  color: #04121f;
  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(0, 242, 254, 0.35);
}

.plan-vitrine-card.featured .plan-vitrine-btn {
  background: linear-gradient(90deg, #fe0979, #ff6a3d);
  color: #fff;
}

.plan-vitrine-card.featured .plan-vitrine-btn:hover {
  box-shadow: 0 8px 24px rgba(254, 9, 121, 0.4);
}

@media (max-width: 768px) {
  .plans-vitrine {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   VIEWPORT INTERNA DE FERRAMENTAS (ex.: "Venda de Bicos")
   Dark Neon Abyssal · Amaterasu / Black Flames
   ============================================================ */

.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(0, 242, 254, 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(254, 9, 121, 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(0, 242, 254, 0.15), rgba(0, 242, 254, 0.05));
  color: var(--neon-cyan);
  border-color: var(--border-cyan-strong);
  box-shadow: 0 0 16px rgba(0, 242, 254, 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(0, 242, 254, 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(0, 242, 254, 0.08);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.15);
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(254, 9, 121, 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;
}

.upload-preview img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-cyan-strong);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.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(0, 242, 254, 0.2), rgba(254, 9, 121, 0.1));
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
}

.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(0, 242, 254, 0.3), rgba(254, 9, 121, 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(0, 242, 254, 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(0, 242, 254, 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(--neon-pink), #d4006a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-pink);
  border: 1px solid rgba(254, 9, 121, 0.4);
  transition: all 0.25s ease;
}

.tool-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(254, 9, 121, 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;
}

.tool-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.tool-result-card:hover {
  border-color: var(--border-cyan-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.tool-result-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tool-result-avatar.cyan {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(0, 242, 254, 0.05));
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.tool-result-avatar.pink {
  background: linear-gradient(135deg, rgba(254, 9, 121, 0.2), rgba(254, 9, 121, 0.05));
  color: var(--neon-pink);
  border: 1px solid rgba(254, 9, 121, 0.3);
}

.tool-result-avatar.green {
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.2), rgba(0, 255, 163, 0.05));
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.3);
}

.tool-result-info {
  flex: 1;
  min-width: 0;
}

.tool-result-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tool-result-info p {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.tool-result-info p i {
  font-size: 11px;
  color: var(--text-muted);
}

.tool-result-confidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.confidence-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--neon-cyan);
  background: conic-gradient(var(--neon-cyan) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.06) 0);
  position: relative;
  z-index: 0;
}

.confidence-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--bg-card);
  z-index: -1;
}

.confidence-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== 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(0, 242, 254, 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(0, 242, 254, 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(--neon-green);
  background: rgba(0, 255, 163, 0.12);
  border: 1px solid rgba(0, 255, 163, 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);
}

.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(254, 9, 121, 0.06);
  border: 1px dashed rgba(254, 9, 121, 0.4);
  border-radius: var(--radius);
}

.consulta-notfound i {
  font-size: 34px;
  color: var(--neon-pink);
  filter: drop-shadow(0 0 10px rgba(254, 9, 121, 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(254, 9, 121, 0.5);
  box-shadow: 0 0 0 3px rgba(254, 9, 121, 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, #00f2fe);
}

/* Consulta Placa — Estado de carregamento */
.consulta-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.consulta-loading i {
  color: var(--neon-cyan);
  font-size: 18px;
}

/* Consulta Placa — Seções estilo planilha */
.consulta-secao {
  margin-bottom: 20px;
}

.consulta-secao-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.02));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.consulta-secao-titulo i {
  font-size: 14px;
}

/* Consulta Placa — Botão Gerar CRLV */
.consulta-crlv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(0, 242, 254, 0.04));
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.consulta-crlv-btn:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(0, 242, 254, 0.08));
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 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, 255, 163, 0.18), rgba(0, 255, 163, 0.04));
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.3);
}
.premium-gold .premium-icon {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(255, 193, 7, 0.04));
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.premium-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.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, 255, 163, 0.2), rgba(0, 255, 163, 0.08));
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 163, 0.4);
}
.premium-green .btn-premium:hover {
  background: var(--neon-green);
  color: #080A10;
  box-shadow: 0 0 24px rgba(0, 255, 163, 0.4);
}

.premium-gold .btn-premium {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.08));
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
}
.premium-gold .btn-premium:hover {
  background: #ffc107;
  color: #080A10;
  box-shadow: 0 0 24px rgba(255, 193, 7, 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(0, 242, 254, 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(0, 242, 254, 0.18), rgba(0, 242, 254, 0.04));
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.25);
}

.welcome-modal-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.welcome-modal-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.welcome-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.welcome-modal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.welcome-modal-list li i {
  font-size: 16px;
  color: var(--neon-cyan);
}

.welcome-modal-list li:first-child i {
  color: var(--neon-pink);
}

.btn-welcome {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-cyan), #00b3ff);
  color: #080A10;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-welcome:hover {
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.5);
  transform: translateY(-2px);
}

/* ===== GERADOR DE CHASSI (VIN) ===== */
.chassi-result {
  margin-top: 24px;
}

.chassi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.chassi-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chassi-card:hover {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.12);
}

.chassi-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.chassi-card-img {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0b0f1a;
}

.chassi-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.chassi-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-cyan), #00b3ff);
  color: #080A10;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

.chassi-download:hover {
  box-shadow: 0 0 22px rgba(0, 242, 254, 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(0, 242, 254, 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(0, 242, 254, 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(254, 9, 121, 0.12);
  border-color: rgba(254, 9, 121, 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(0, 242, 254, 0.5);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.consulta-meter-text {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

/* ============================================================
   GERADOR DE VEÍCULOS — UI PREMIUM (SEARCHABLE SELECT + GRID)
   ============================================================ */
.gv-card {
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.92), rgba(20, 25, 40, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Grid de filtros (alinhado horizontalmente em telas grandes) */
.gv-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.gv-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gv-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Select padrão (UF, Cor, Anos) */
.gv-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gv-select option {
  background: #0d1220;
  color: var(--text-primary);
}

/* Searchable Select (campo Modelo) */
.gv-searchable {
  position: relative;
  width: 100%;
}

.gv-search-input {
  padding-right: 36px;
}

.gv-search-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 12px;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.gv-searchable-open .gv-search-caret {
  transform: translateY(-50%) rotate(180deg);
  color: var(--neon-cyan);
}

/* Dropdown sobreposto (z-index alto para cobrir elementos abaixo) */
.gv-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gv-dropdown-item {
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gv-dropdown-item:last-child {
  border-bottom: none;
}

.gv-dropdown-item:hover {
  background: rgba(0, 242, 254, 0.12);
  color: var(--neon-cyan);
}

.gv-dropdown-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Barra de rolagem do dropdown */
.gv-dropdown::-webkit-scrollbar {
  width: 8px;
}
.gv-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.gv-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* Botão Gerar Veículos (centralizado, com lupa) */
.gv-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.gv-generate-btn {
  min-width: 240px;
  justify-content: center;
  font-size: 14px;
  padding: 14px 32px;
}

/* ---- Resultado: cabeçalho + abas (Placas / Tudo / TXT) ---- */
.gv-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.gv-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.gv-result-title i {
  color: var(--neon-green);
}

.gv-result-count {
  background: rgba(0, 242, 254, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 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(0, 242, 254, 0.2), rgba(0, 242, 254, 0.08));
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 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(0, 242, 254, 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(0, 242, 254, 0.04);
}

.gv-result-placa {
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
}

.gv-result-actions {
  text-align: right;
}

.gv-crlv-btn {
  font-size: 11px;
  padding: 7px 12px;
  white-space: nowrap;
}

/* Responsividade: empilha os campos em telas menores */
@media (max-width: 900px) {
  .gv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gv-field-modelo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .gv-grid {
    grid-template-columns: 1fr;
  }
  .gv-generate-btn {
    width: 100%;
    min-width: 0;
  }
}
