/* ============================================================================
   PAINEL ZEUS - ADMIN DASHBOARD
   ============================================================================ */

.zeus-dashboard {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.zeus-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.zeus-header h1 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFC800, #FF4500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.zeus-subtitle {
  font-size: 16px;
  opacity: 0.7;
}

/* Layout em quadrantes */
.zeus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1100px) {
  .zeus-layout {
    grid-template-columns: 1fr;
  }
}

.zeus-main {
  min-width: 0;
}

.zeus-side {
  display: grid;
  gap: 18px;
}

.zeus-card {
  position: relative;
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Borda com gradiente sutil */
  background:
    linear-gradient(180deg, rgba(20, 20, 25, 0.98), rgba(15, 15, 20, 0.95)) padding-box,
    linear-gradient(135deg,
      rgba(var(--color-primary-rgb), 0.4),
      rgba(var(--color-secondary-rgb), 0.2),
      rgba(var(--color-primary-rgb), 0.3)
    ) border-box;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(var(--color-primary-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.zeus-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(var(--color-primary-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(25, 25, 30, 0.98), rgba(20, 20, 25, 0.95)) padding-box,
    linear-gradient(135deg,
      rgba(var(--color-primary-rgb), 0.6),
      rgba(var(--color-secondary-rgb), 0.3),
      rgba(var(--color-primary-rgb), 0.5)
    ) border-box;
}

/* Glow sutil no canto */
.zeus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(var(--color-primary-rgb), 0.5),
    transparent
  );
  opacity: 0.6;
  border-radius: 16px 16px 0 0;
}

body[data-mode="light"] .zeus-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 0.95)) padding-box,
    linear-gradient(135deg,
      rgba(var(--color-primary-rgb), 0.3),
      rgba(var(--color-secondary-rgb), 0.2),
      rgba(var(--color-primary-rgb), 0.25)
    ) border-box;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(var(--color-primary-rgb), 0.15);
}

body[data-mode="light"] .zeus-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 0 30px rgba(var(--color-primary-rgb), 0.1);
}

.zeus-card-header h2,
.zeus-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.zeus-card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.zeus-card-header .muted {
  margin: 6px 0 0 0;
  opacity: 0.75;
}

/* GRID DE MÉTRICAS */
.zeus-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 18px;
}

.zeus-dashboard .metric-card {
  position: relative;
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;

  /* Borda gradiente sutil */
  background:
    linear-gradient(180deg, rgba(25, 25, 30, 0.95), rgba(18, 18, 22, 0.9)) padding-box,
    linear-gradient(135deg,
      rgba(var(--color-primary-rgb), 0.25),
      transparent 50%,
      rgba(var(--color-secondary-rgb), 0.2)
    ) border-box;

  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Glow de fundo no metric card */
.zeus-dashboard .metric-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--color-primary-rgb), 0.08),
    transparent 50%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.zeus-dashboard .metric-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(var(--color-primary-rgb), 0.2);
  background:
    linear-gradient(180deg, rgba(30, 30, 35, 0.98), rgba(22, 22, 28, 0.95)) padding-box,
    linear-gradient(135deg,
      rgba(var(--color-primary-rgb), 0.5),
      rgba(var(--color-secondary-rgb), 0.3),
      rgba(var(--color-primary-rgb), 0.4)
    ) border-box;
}

.zeus-dashboard .metric-card:hover::before {
  opacity: 1;
}

body[data-mode="light"] .zeus-dashboard .metric-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 252, 0.9)) padding-box,
    linear-gradient(135deg,
      rgba(var(--color-primary-rgb), 0.2),
      transparent 50%,
      rgba(var(--color-secondary-rgb), 0.15)
    ) border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

body[data-mode="light"] .zeus-dashboard .metric-card:hover {
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(var(--color-primary-rgb), 0.08);
}

.metric-icon {
  font-size: 40px;
  margin-bottom: 0.75rem;
}

.metric-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 14px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TABELA DE CLIENTES */
.zeus-clients-table {
  padding: 0;
}

.zeus-clients-table table {
  width: 100%;
  border-collapse: collapse;
}

.zeus-clients-table thead {
  background: rgba(255, 200, 0, 0.1);
}

.zeus-clients-table th {
  padding: 1rem;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* ✅ OPUS FIX: Centralizar colunas específicas (exceto CLIENTE) */
.zeus-clients-table th:nth-child(2),
/* PLANO */
.zeus-clients-table th:nth-child(3),
/* LEADS */
.zeus-clients-table th:nth-child(4),
/* MENSAGENS */
.zeus-clients-table th:nth-child(5),
/* VÍDEOS */
.zeus-clients-table th:nth-child(6)

/* AÇÕES */
  {
  text-align: center;
}

.zeus-clients-table td:nth-child(2),
.zeus-clients-table td:nth-child(3),
.zeus-clients-table td:nth-child(4),
.zeus-clients-table td:nth-child(5),
.zeus-clients-table td:nth-child(6) {
  text-align: center;
}

.zeus-clients-table td {
  padding: 1.25rem 1rem;
  /* Era 0.75rem - AUMENTADO */
  border-bottom: 1px solid rgba(255, 200, 0, 0.1);
  vertical-align: middle;
  /* ✅ OPUS FIX: Alinhamento vertical */
}

.zeus-clients-table tbody tr {
  transition: background 0.2s ease;
}

.zeus-clients-table tbody tr:hover {
  background: rgba(255, 200, 0, 0.05);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.2;
}

/* ✅ OPUS FIX: Override para tabela Zeus - reseta position absolute do 09-hud.css */
.zeus-clients-table .plan-badge,
.zeus-table .plan-badge,
#zeusClientsTable .plan-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.plan-badge.plan-creator {
  background: rgba(147, 51, 234, 0.2);
  color: #A855F7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.4);
  /* ✅ OPUS FIX: Border adicionado */
}

.plan-badge.plan-authority {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.4);
  /* ✅ OPUS FIX: Border adicionado */
}

.plan-badge.plan-empire {
  background: rgba(255, 200, 0, 0.2);
  color: #FFC800;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
  border: 1px solid rgba(255, 200, 0, 0.4);
  /* ✅ OPUS FIX: Border adicionado */
}

.zeus-actions-cell {
  white-space: nowrap;
}

.zeus-actions-cell .btn+.btn {
  margin-left: 8px;
}

/* ✅ OPUS FIX: Botão de ícone único para ações */
.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 200, 0, 0.2);
  color: #ffc800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-only:hover {
  background: rgba(255, 200, 0, 0.2);
  border-color: rgba(255, 200, 0, 0.4);
  transform: scale(1.05);
}

.btn-icon-only svg,
.btn-icon-only i {
  width: 18px;
  height: 18px;
}

.zeus-health-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: grid;
  gap: 10px;
}

.zeus-health-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
  background: rgba(128, 128, 128, 0.5);
  /* Cinza padrão (verificando) */
  flex-shrink: 0;
}

.dot-ok {
  background: #10b981;
  /* Verde success direto (era var inexistente) */
}

.dot-warn {
  background: #f59e0b;
  /* Amarelo warning direto (era var inexistente) */
}

.dot-error {
  background: #ef4444;
  /* Vermelho error direto */
}

.zeus-finance-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.zeus-mini-metric {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-mode="light"] .zeus-mini-metric {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.zeus-mini-metric .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.zeus-mini-metric .value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-secondary);
  font-weight: 900;
  color: var(--text-primary);
}

/* ANIMAÇÃO */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   FIX: ZEUS DASHBOARD (Tabela e Colunas)
   ============================================================================ */
/* Tabela com layout fixo para respeitar larguras */
.zeus-table table {
  table-layout: fixed;
  width: 100%;
}

/* Coluna NOME (40%) */
.zeus-table th:nth-child(1),
.zeus-table td:nth-child(1) {
  width: 35%;
}

/* Coluna PLANO (15%) - Evita quebra de linha */
.zeus-table th:nth-child(2),
.zeus-table td:nth-child(2) {
  width: 15%;
  white-space: nowrap;
}

.plan-badge {
  display: inline-block;
  /* Garante que respeite o nowrap */
  margin: 0;
  max-width: 100%;
}

/* Colunas MÉTRICAS (Leads, Msgs, Videos) - 10% cada */
.zeus-table th:nth-child(3),
.zeus-table td:nth-child(3),
.zeus-table th:nth-child(4),
.zeus-table td:nth-child(4),
.zeus-table th:nth-child(5),
.zeus-table td:nth-child(5) {
  width: 10%;
  text-align: center;
}

/* Coluna AÇÕES (20%) */
.zeus-table th:nth-child(6),
.zeus-table td:nth-child(6) {
  width: 20%;
  text-align: right;
}

/* ============================================================================
   FIX: CRM UI POLISH (Light Mode, Tabs, Header)
   ============================================================================ */

/* 1. AGENT HEADER COMPACTO (Reduzir altura drasticamente) */
/* Override forte para garantir */
.pilar-header-main {
  padding: 1.5rem 1rem !important;
  /* Reduzido de 3rem ou mais */
  min-height: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1400px;
  /* Limita largura em telas gigantes */
  margin: 0 auto;
}

.pilar-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.pilar-icon-wrapper {
  width: 56px !important;
  /* Menor (era 80px) */
  height: 56px !important;
  min-width: 56px;
}

.pilar-title h1 {
  font-size: 1.75rem !important;
  /* Menor (era 2.5rem) */
  margin-bottom: 0.25rem !important;
}

.pilar-description {
  font-size: 0.9rem !important;
  max-width: 600px;
  line-height: 1.4;
}

/* Esconder badge MVP se atrapalhar, ou diminuir */
.pilar-badge {
  position: relative;
  top: auto;
  right: auto;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}


/* 2. TABS CENTRALIZADAS & GLOW */
.tab-navigation {
  justify-content: center !important;
  /* Centraliza as abas */
  margin-top: -1.5rem;
  /* Sobe um pouco pra ficar perto do header compacto */
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.tab-btn {
  border-radius: 99px !important;
  /* Pill shape */
  padding: 0.6rem 1.5rem !important;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* Active State com GLOW/GRADIENT */
.tab-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
  color: #000 !important;
  /* Texto preto no gradiente */
  box-shadow: 0 4px 15px rgba(255, 200, 0, 0.4) !important;
  /* Brilho */
  border: none !important;
  transform: translateY(-1px);
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 3. MODAL SAVE BUTTON ROUNDED */
.btn-primary,
.btn-secondary,
.btn-danger {
  border-radius: 12px !important;
  /* Arredondado moderno (não quadrado, nem pill total) */
  font-family: var(--font-primary) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Modal Inputs & Labels (Reforço) */
.modal-body label {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  display: block;
}

/* Light Mode Cards Fix (Final Nuclear Option) foi aplicado no passo anterior, 
mas vou colocar um override extra aqui caso 13-crm.css tenha conflito */
body[data-mode="light"] .lead-card {
  background: #ffffff !important;
}

/* ============================================================================
   ZEUS HOLOGRAPHIC INTERFACE (V1.9)
   ============================================================================ */

/* HOST */
.zeus-modal-host {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary), monospace;
  /* Cyberpunk Font */
}

.zeus-modal-host.hidden {
  display: none;
}

/* BACKDROP */
.zeus-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 10, 0.85);
  backdrop-filter: blur(8px);
}

/* MAIN INTERFACE */
.zeus-interface {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 70vh;
  background: rgba(10, 15, 20, 0.9);
  border: 1px solid rgba(255, 200, 0, 0.3);
  box-shadow:
    0 0 30px rgba(255, 200, 0, 0.1),
    inset 0 0 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zeus-boot 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zeus-boot {
  0% {
    transform: scale(0.95);
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

/* TOP BAR */
.zeus-top-bar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.zeus-id {
  color: #FFC800;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.zeus-live-indicator {
  color: #FF4500;
  font-weight: 700;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* CENTER STAGE */
.zeus-center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.zeus-status-text {
  font-size: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#zeusVisualizer {
  width: 100%;
  height: 150px;
  opacity: 0.8;
}

/* LOG STREAM */
.zeus-log-stream {
  height: 150px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zeus-log-stream div {
  border-left: 2px solid #FFC800;
  padding-left: 0.5rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-10px);
    opacity: 0;
  }
}

/* CONTROLS */
.zeus-controls {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
}

.zeus-ptt-btn {
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid #FFC800;
  color: #FFC800;
  padding: 1rem 3rem;
  font-family: var(--font-primary), sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.zeus-ptt-btn:active {
  background: #FFC800;
  color: #000;
  box-shadow: 0 0 30px #FFC800;
  transform: scale(0.98);
}

.zeus-icon-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.zeus-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* FLOATING BUTTON */
.zeus-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #FFC800;
  color: #FFC800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.zeus-float-btn:hover {
  transform: scale(1.1);
}

.zeus-btn-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 200, 0, 0.3);
  border-radius: 50%;
  animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* STATE MODIFIERS */
body[data-zeus-state="listening"] .zeus-status-text {
  color: #FF4500;
}

body[data-zeus-state="speaking"] .zeus-status-text {
  color: #00FF99;
  text-shadow: 0 0 15px #00FF99;
}

/* ============================================================================
   ZEUS TABS & HOOKS MURAL (ADDED BY GEMINI)
   ============================================================================ */

/* TABS NAVIGATION */
.zeus-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.zeus-tab {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  /* ✅ OPUS FIX: Pill arredondado */
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zeus-tab:hover {
  color: #fff;
  background: rgba(255, 200, 0, 0.1);
  border-color: rgba(255, 200, 0, 0.3);
}

/* ✅ OPUS FIX: Estilo AUTHORITY nas tabs ativas (gradiente + glow) */
.zeus-tab.active {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.9), rgba(255, 200, 0, 0.85));
  color: #fff;
  border-color: rgba(255, 200, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.4), 0 0 40px rgba(255, 200, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.zeus-tab-content {
  animation: fadeIn 0.3s ease;
}

/* HOOKS HEADER */
.zeus-hooks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.hooks-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hook-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.hook-filter:hover,
.hook-filter.active {
  background: rgba(255, 200, 0, 0.1);
  border-color: #FFC800;
  color: #FFC800;
}

.hooks-search input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  color: #fff;
  border-radius: 4px;
  min-width: 250px;
}

/* HOOKS GRID */
.zeus-hooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.hook-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.hook-card:hover {
  border-color: #FFC800;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.hook-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.hook-card.category-dor::before {
  background: #ef4444;
}

.hook-card.category-desejo::before {
  background: #3b82f6;
}

.hook-card.category-crenca::before {
  background: #a855f7;
}

.hook-card.category-prova::before {
  background: #10b981;
}

.hook-card.category-metodo::before {
  background: #f59e0b;
}

.hook-card.category-medo::before {
  background: #6b7280;
}

.hook-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.hook-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.hook-content {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: #e5e5e5;
  margin-bottom: 2rem;
  font-style: italic;
}

.hook-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-hook-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-hook-action:hover {
  background: #FFC800;
  color: #000;
  border-color: #FFC800;
}

.empty-state,
.error-state,
.hook-skeleton {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   ZEUS IMMERSIVE MODE (OPTION A)
   ============================================================================ */

/* 1. STATE TOGGLE */
body.zeus-mode-active {
  overflow: hidden;
  /* Lock scroll */
}

/* 2. HIDE STANDARD UI */
body.zeus-mode-active #sidebar,
body.zeus-mode-active #topbar,
body.zeus-mode-active #pilaresContainer,
body.zeus-mode-active .mega-menu-backdrop,
body.zeus-mode-active .client-info-panel,
body.zeus-mode-active #welcomeScreen {
  display: none !important;
}

/* 3. IMMERSIVE CONTAINER */
/* Force Zeus Panel to cover everything */
body.zeus-mode-active #zeusPanel {
  display: block !important;
  /* Force visible */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: nonebox;
  margin: 0;
  padding: 0;
  z-index: 99999;
  background: #050505;
  /* Deep Black */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(20, 30, 40, 0.4) 0%, transparent 60%),
    linear-gradient(rgba(255, 200, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 200, 0, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  overflow-y: auto;
}

/* 4. IMMERSIVE LAYOUT ADJUSTMENTS */
body.zeus-mode-active .zeus-layout {
  grid-template-columns: 1fr 300px;
  /* Wider main area */
  height: 100vh;
  padding: 2rem;
  gap: 2rem;
}

/* Sidebar inside Immersive (Health/Finance) */
body.zeus-mode-active .zeus-side {
  height: 100%;
  overflow-y: auto;
}

/* Header Adjustments */
body.zeus-mode-active .zeus-header {
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* EXIT BUTTON */
.zeus-exit-btn {
  display: none;
}

body.zeus-mode-active .zeus-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.3);
  color: #ff6b6b;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: all 0.2s;
}

body.zeus-mode-active .zeus-exit-btn:hover {
  background: rgba(255, 50, 50, 0.2);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

/* VISUALIZER IN IMMERSIVE */
/* Make it huge somewhere if we want, for now keep responsive */
/* ============================================================================
   ZEUS HOLOGRAPHIC MODAL - DIVISION 3D STYLE (THEME-AWARE)
   Autor: CloudMaster (Opus 4.5)
   Data: 28/12/2025
   Redesign: 70% tela, difuso, cores do tema, circulos Division-style
   ============================================================================ */

/* Modal Container - NAO tela cheia, 70% centralizado */
#zeusModalHost {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
}

#zeusModalHost.active {
  display: flex;
  animation: zeus-modal-open 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zeus-modal-open {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(30px);
  }
}

/* Background difuso - CORES DO TEMA */
#zeusModalHost::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 30% 70%, rgba(var(--color-secondary-rgb), 0.15) 0%, transparent 40%),
    radial-gradient(ellipse 60% 60% at 70% 30%, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 40%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.92) 0%, rgba(8, 8, 12, 0.96) 100%);
  z-index: -1;
}

/* Holographic Core - Division Style (70% da tela) */
.zeus-holo-core {
  position: relative;
  width: min(70vw, 70vh);
  height: min(70vw, 70vh);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Division-Style Rings - CORES DO TEMA */
.zeus-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(8, 8, 12, 0.6), rgba(8, 8, 12, 0.6)) padding-box,
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(var(--color-primary-rgb), 0.9) 30deg,
      rgba(var(--color-secondary-rgb), 0.7) 90deg,
      transparent 120deg,
      rgba(var(--color-primary-rgb), 0.6) 200deg,
      transparent 240deg,
      rgba(var(--color-secondary-rgb), 0.8) 300deg,
      transparent 360deg
    ) border-box;
  box-shadow:
    0 0 40px rgba(var(--color-primary-rgb), 0.25),
    0 0 80px rgba(var(--color-secondary-rgb), 0.15),
    inset 0 0 50px rgba(var(--color-primary-rgb), 0.08);
  animation: zeus-ring-rotate 20s linear infinite;
}

/* Ring 1 - Innermost (fast) */
.zeus-pulse-ring:nth-child(1) {
  width: 35%;
  height: 35%;
  border-width: 2px;
  animation-duration: 8s;
  animation-direction: normal;
}

/* Ring 2 - Middle */
.zeus-pulse-ring:nth-child(2) {
  width: 55%;
  height: 55%;
  border-width: 1.5px;
  animation-duration: 15s;
  animation-direction: reverse;
  opacity: 0.8;
}

/* Ring 3 - Outer (slow) */
.zeus-pulse-ring:nth-child(3) {
  width: 80%;
  height: 80%;
  border-width: 1px;
  animation-duration: 25s;
  animation-direction: normal;
  opacity: 0.5;
}

@keyframes zeus-ring-rotate {
  from { transform: rotateZ(0deg); }
  to { transform: rotateZ(360deg); }
}

/* Division Segmented Arcs (decorative) - CORES DO TEMA */
.zeus-pulse-ring::before,
.zeus-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--color-primary-rgb), 0.3);
  animation: zeus-arc-pulse 3s ease-in-out infinite alternate;
}

.zeus-pulse-ring::after {
  inset: -8px;
  border-color: rgba(var(--color-secondary-rgb), 0.2);
  animation-delay: 1.5s;
}

@keyframes zeus-arc-pulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.02); }
}

/* Center Orb - Glowing Core - CORES DO TEMA */
.zeus-orb {
  width: 18%;
  height: 18%;
  min-width: 80px;
  min-height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(var(--color-primary-rgb), 0.8) 30%,
      rgba(var(--color-secondary-rgb), 0.9) 60%,
      rgba(var(--color-primary-rgb), 0.6) 100%
    );
  box-shadow:
    0 0 40px rgba(var(--color-primary-rgb), 0.8),
    0 0 80px rgba(var(--color-primary-rgb), 0.5),
    0 0 120px rgba(var(--color-secondary-rgb), 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
  animation: zeus-orb-breathe 4s ease-in-out infinite;
  z-index: 10;
}

/* Orb inner glow effect */
.zeus-orb::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  animation: zeus-orb-inner 2s ease-in-out infinite alternate;
}

@keyframes zeus-orb-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 40px rgba(var(--color-primary-rgb), 0.8),
      0 0 80px rgba(var(--color-primary-rgb), 0.5),
      0 0 120px rgba(var(--color-secondary-rgb), 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 60px rgba(var(--color-primary-rgb), 1),
      0 0 100px rgba(var(--color-primary-rgb), 0.7),
      0 0 160px rgba(var(--color-secondary-rgb), 0.5);
  }
}

@keyframes zeus-orb-inner {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Speaking State - Orb reacts */
#zeusModalHost.speaking .zeus-orb {
  animation: zeus-orb-speaking 0.5s ease-in-out infinite;
}

@keyframes zeus-orb-speaking {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  75% { transform: scale(0.95); }
}

/* Waveform Visualizer */
#zeusVisualizer {
  position: absolute;
  width: 60%;
  max-width: 400px;
  height: 80px;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
  z-index: 5;
}

/* Status Text - Holographic - CORES DO TEMA */
#zeusStatus {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-title, 'Space Grotesk', sans-serif);
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 600;
  color: rgba(var(--color-primary-rgb), 0.95);
  text-transform: uppercase;
  letter-spacing: 6px;
  text-shadow:
    0 0 10px rgba(var(--color-primary-rgb), 0.8),
    0 0 20px rgba(var(--color-primary-rgb), 0.4);
  animation: zeus-status-glow 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes zeus-status-glow {
  0%, 100% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(var(--color-primary-rgb), 0.8),
      0 0 20px rgba(var(--color-primary-rgb), 0.4);
  }
  50% {
    opacity: 0.7;
    text-shadow:
      0 0 15px rgba(var(--color-primary-rgb), 1),
      0 0 30px rgba(var(--color-primary-rgb), 0.6);
  }
}

/* Log Stream - Glassmorphism - CORES DO TEMA */
#zeusLogStream {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: min(320px, 40vw);
  max-height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(200, 200, 255, 0.85);
  background: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 20;
}

#zeusLogStream::-webkit-scrollbar {
  width: 4px;
}

#zeusLogStream::-webkit-scrollbar-track {
  background: rgba(var(--color-primary-rgb), 0.1);
  border-radius: 2px;
}

#zeusLogStream::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.6), rgba(var(--color-secondary-rgb), 0.4));
  border-radius: 2px;
}

/* Log entries */
#zeusLogStream > div {
  padding: 4px 0 4px 10px;
  border-left: 2px solid rgba(var(--color-primary-rgb), 0.6);
  margin-bottom: 6px;
  animation: zeus-log-slide 0.3s ease-out;
}

@keyframes zeus-log-slide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Plexus Background (Canvas) */
#zeusPlexusBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

/* Voice Button - Redesigned - CORES DO TEMA */
.zeus-voice-btn {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(70px, 12vw, 100px);
  height: clamp(70px, 12vw, 100px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--color-primary-rgb), 0.3), transparent 60%),
    linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.4), rgba(var(--color-secondary-rgb), 0.6));
  border: 2px solid rgba(var(--color-primary-rgb), 0.7);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 30px rgba(var(--color-primary-rgb), 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 15;
}

.zeus-voice-btn i {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.zeus-voice-btn:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow:
    0 0 50px rgba(var(--color-primary-rgb), 0.6),
    0 0 80px rgba(var(--color-primary-rgb), 0.3),
    inset 0 0 25px rgba(255, 255, 255, 0.15);
  border-color: rgba(var(--color-secondary-rgb), 0.9);
}

/* Recording State */
.zeus-voice-btn.recording {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 150, 150, 0.3), transparent 60%),
    linear-gradient(135deg, rgba(239, 68, 68, 0.6), rgba(255, 100, 50, 0.7));
  border-color: rgba(239, 68, 68, 0.9);
  animation: zeus-recording-pulse 0.8s ease-in-out infinite;
}

@keyframes zeus-recording-pulse {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(239, 68, 68, 0.6),
      0 0 60px rgba(239, 68, 68, 0.3);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow:
      0 0 50px rgba(239, 68, 68, 0.8),
      0 0 100px rgba(239, 68, 68, 0.5);
    transform: translateX(-50%) scale(1.05);
  }
}

/* Close Button - Subtle */
.zeus-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 30;
}

.zeus-close-btn i {
  width: 20px;
  height: 20px;
}

.zeus-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ff6b6b;
  transform: rotate(90deg);
}

/* Immersive Mode - Hide everything else */
body.zeus-mode-active .sidebar,
body.zeus-mode-active .topbar,
body.zeus-mode-active .main-content {
  display: none !important;
}

body.zeus-mode-active #zeusModalHost {
  display: flex !important;
}

/* HUD Top Bar - Redesigned */
.zeus-hud-top {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  z-index: 30;
}

.zeus-hud-id {
  color: rgba(var(--color-primary-rgb), 0.8);
  padding: 6px 12px;
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  border-radius: 4px;
}

.zeus-hud-live {
  color: #00FF99;
  font-weight: 700;
  animation: zeus-live-blink 1.5s ease-in-out infinite;
}

.zeus-hud-live.disconnected {
  color: #FF4444;
  animation: none;
}

@keyframes zeus-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================================
   3D PARALLAX EFFECT (Desktop Mouse + Mobile Gyroscope)
   ============================================================================ */

/* Parallax layers - controlado via JS */
.zeus-holo-core {
  --parallax-x: 0deg;
  --parallax-y: 0deg;
  transform-style: preserve-3d;
  /* Transform aplicado via JS para smooth parallax */
}

/* Depth layers for rings - translateZ para profundidade 3D */
.zeus-pulse-ring {
  transform-style: preserve-3d;
  will-change: transform;
}

.zeus-pulse-ring:nth-child(1) {
  animation: zeus-ring-rotate-1 8s linear infinite;
}

.zeus-pulse-ring:nth-child(2) {
  animation: zeus-ring-rotate-2 15s linear infinite reverse;
}

.zeus-pulse-ring:nth-child(3) {
  animation: zeus-ring-rotate-3 25s linear infinite;
}

@keyframes zeus-ring-rotate-1 {
  from { transform: rotateZ(0deg) translateZ(30px); }
  to { transform: rotateZ(360deg) translateZ(30px); }
}

@keyframes zeus-ring-rotate-2 {
  from { transform: rotateZ(0deg) translateZ(15px); }
  to { transform: rotateZ(360deg) translateZ(15px); }
}

@keyframes zeus-ring-rotate-3 {
  from { transform: rotateZ(0deg) translateZ(0px); }
  to { transform: rotateZ(360deg) translateZ(0px); }
}

.zeus-orb {
  transform: translateZ(50px);
  will-change: transform;
}

/* ============================================================================
   RESPONSIVE - Mobile Optimizations
   ============================================================================ */

@media (max-width: 768px) {
  .zeus-holo-core {
    width: min(85vw, 85vh);
    height: min(85vw, 85vh);
  }

  .zeus-orb {
    min-width: 60px;
    min-height: 60px;
  }

  .zeus-voice-btn {
    bottom: 18%;
    width: 70px;
    height: 70px;
  }

  .zeus-voice-btn i {
    width: 26px;
    height: 26px;
  }

  #zeusLogStream {
    width: calc(100vw - 40px);
    max-width: none;
    left: 20px;
    right: 20px;
    bottom: 10px;
    max-height: 120px;
    font-size: 10px;
  }

  #zeusStatus {
    bottom: 5%;
    font-size: 11px;
    letter-spacing: 4px;
  }

  #zeusVisualizer {
    width: 80%;
    bottom: 12%;
    height: 60px;
  }

  .zeus-hud-top {
    font-size: 9px;
    gap: 10px;
  }

  .zeus-hud-id {
    padding: 4px 8px;
  }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
  .zeus-holo-core {
    width: min(65vw, 800px);
    height: min(65vw, 800px);
  }
}
