@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* Variables Core */
:root {
  --bg-app: #030712;
  --bg-sidebar: #090d1a;
  --bg-card: rgba(17, 24, 39, 0.55);
  --bg-card-hover: rgba(26, 36, 57, 0.75);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-glow: rgba(139, 92, 246, 0.3);
  
  --text-title: #ffffff;
  --text-body: #9ca3af;
  --text-muted: #6b7280;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); /* Purple -> Pink */
  --grad-secondary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); /* Blue -> Cyan */
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --grad-dark: linear-gradient(135deg, #1e1b4b 0%, #111827 100%);

  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(139, 92, 246, 0.05);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-body);
  overflow: hidden;
  height: 100vh;
  display: flex;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--grad-primary);
}

/* Base Animations */
@keyframes glow-pulse {
  0% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.1); }
  50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.3); }
  100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.1); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Layout Sidebar */
.sidebar {
  width: 300px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 2.5rem 1.75rem;
  flex-shrink: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.menu-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.03);
}

.menu-link.active {
  color: white;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: inset 4px 0 0 #8b5cf6;
}

.menu-link svg {
  width: 22px;
  height: 22px;
  opacity: 0.6;
  transition: var(--transition);
}

.menu-link.active svg {
  opacity: 1;
  color: #c084fc;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.5rem 0.5rem 0;
  border-top: 1px solid var(--border-color);
}

.developer-card {
  background: var(--grad-dark);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  text-align: center;
}

.developer-card p {
  color: var(--text-muted);
}

.developer-card strong {
  color: white;
  display: block;
  margin-top: 0.25rem;
}

/* Main Workspace */
.main-content {
  flex-grow: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 3rem;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent 50%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.03), transparent 50%);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.view-section {
  display: none;
  animation: slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-section.active {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Typography & Headers */
.view-title h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: white;
  background: linear-gradient(to right, #ffffff 60%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.view-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons Design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.35), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--grad-success);
  color: white;
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-icon-only {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

/* Metric Display Panels */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.75rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
}

.glass-panel-hover:hover {
  border-color: var(--border-color-glow);
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

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

.stat-card.success::before { background: var(--grad-success); }
.stat-card.warning::before { background: var(--grad-warning); }
.stat-card.accent::before { background: var(--grad-primary); }
.stat-card.info::before { background: var(--grad-secondary); }

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
}

.stat-value.neon-text-green { color: #10b981; }
.stat-value.neon-text-blue { color: #06b6d4; }
.stat-value.neon-text-yellow { color: #f59e0b; }
.stat-value.neon-text-purple { color: #a78bfa; }

.stat-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  opacity: 0.15;
}

/* Showcase - Portfolio Presentation cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover::after {
  opacity: 1;
}

.product-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.badge-pedidos { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-agenda { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-crm { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-orcamentos { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }

.product-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.product-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.product-meta {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.meta-label {
  font-weight: 700;
  color: var(--text-muted);
}

.meta-value {
  color: white;
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

.product-actions .btn {
  flex: 1;
}

/* Control bar / filter controls */
.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  outline: none;
  background-color: rgba(0, 0, 0, 0.35);
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.select-filter {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: white;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.select-filter:focus {
  border-color: #8b5cf6;
  background-color: rgba(0, 0, 0, 0.35);
}

/* Data Table Presentation */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--text-muted);
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

/* Client Identity Row with Avatar */
.client-info-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: var(--grad-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Status Badges Premium */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.status-recebido { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border-color: rgba(59, 130, 246, 0.2); }
.status-aguardando_pagamento { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.status-em_producao { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.2); }
.status-pronto { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); animation: glow-pulse 2s infinite; }
.status-saiu_entrega { background: rgba(168, 85, 247, 0.1); color: #c084fc; border-color: rgba(168, 85, 247, 0.2); }
.status-entregue { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-cancelado { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }

/* Status Orçamentos */
.status-novo_lead { background: rgba(99, 102, 241, 0.1); color: #818cf8; border-color: rgba(99, 102, 241, 0.25); }
.status-em_atendimento { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.2); }
.status-orcamento_enviado { background: rgba(168, 85, 247, 0.1); color: #c084fc; border-color: rgba(168, 85, 247, 0.2); }
.status-aguardando_resposta { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.status-retornar_hoje { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); animation: glow-pulse 2s infinite; }
.status-fechado { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.35); }
.status-perdido { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }

.pay-nao_pago { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.pay-sinal_pago { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.pay-pago_parcial { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.pay-pago_completo { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.pay-atrasado { background: rgba(239, 68, 68, 0.2); color: #ef4444; border-color: rgba(239, 68, 68, 0.35); }

/* Agenda Layout Updates */
.agenda-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.agenda-list-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.agenda-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agenda-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

.agenda-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agenda-time {
  font-weight: 800;
  font-size: 1rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.agenda-time::before {
  content: '⏰';
  font-size: 0.9rem;
}

.agenda-client-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
}

.agenda-details {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.agenda-details strong {
  color: white;
}

.agenda-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Kanban Board Premium */
.kanban-board {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  align-items: flex-start;
  min-height: 520px;
}

.kanban-column {
  width: 300px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 650px;
}

.kanban-header {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.kanban-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kanban-count {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  font-weight: 700;
}

.kanban-cards {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 100px;
}

.kanban-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  cursor: grab;
}

.kanban-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.kanban-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kanban-card-tag {
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  color: #c084fc;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.kanban-card.cold-lead {
  border-left: 4px solid #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.03) 0%, transparent 100%);
}

.kanban-card.warn-lead {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.03) 0%, transparent 100%);
}

/* Modals Modern UI */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fade-in 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #090d1a;
  border: 1px solid var(--border-color-glow);
  width: 90%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(139, 92, 246, 0.1);
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: white;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Form controls */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-grid-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus {
  border-color: #8b5cf6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Code Viewer & Developer assets tabs */
.asset-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.asset-tab {
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.asset-tab:hover {
  color: white;
}

.asset-tab.active {
  color: #c084fc;
  border-color: #8b5cf6;
}

.code-wrapper {
  position: relative;
  background-color: #02040a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-box {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #34d399; /* Green coding style */
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.6;
}

.btn-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

/* Notification Banners Premium */
.notification-banner {
  background: var(--grad-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.4);
  animation: slide-in 0.4s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-banner.warning {
  background: var(--grad-warning);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.3);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* SVG Chart styling */
.svg-chart-container {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 16px;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  gap: 8px;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, #c084fc 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

/* Message templates card inside modal */
.msg-template-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.msg-template-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.msg-template-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.02);
}

.msg-template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msg-template-name {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.msg-template-preview {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  background-color: #030712;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid #8b5cf6;
  white-space: pre-wrap;
  line-height: 1.5;
}

.msg-template-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Kanban helper card mover */
.crm-card-mover {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.crm-move-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.crm-move-btn:hover {
  background-color: rgba(139, 92, 246, 0.2);
  color: white;
  border-color: #8b5cf6;
}

/* Pulsing micro-animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* Micro benefits lists inside portfolio cards */
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.benefit-item {
  font-size: 0.85rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefit-item::before {
  content: '✦';
  color: #c084fc;
  font-weight: 800;
}

/* ==================== MODO DESENVOLVEDOR & COMO FUNCIONA ==================== */

/* Custom Toggle Switch for Developer Mode */
.dev-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.dev-toggle-label {
  font-size: 0.8rem;
  color: var(--text-body);
  font-weight: 600;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-cyan) !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
  border-color: var(--color-cyan);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Hide developer elements by default */
.dev-element {
  display: none !important;
}

/* Show them only when dev mode is active on body */
body.dev-mode-active .dev-element {
  display: inline-flex !important;
}
body.dev-mode-active div.dev-element.developer-card {
  display: block !important;
}

/* Style for Como Funciona Step Cards */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: rgba(255, 255, 255, 0.05);
  padding: 1.75rem;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.1);
}

.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==================== NOVOS PORTFÓLIOS & NICHOS ==================== */

/* Menu lateral agrupado */
.menu-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  margin: 1.5rem 1.2rem 0.4rem;
  opacity: 0.65;
}

/* Vitrine Badges */
.badge-clinica { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-assistencia { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-pagamentos { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-propostas { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-agencia { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Status de Agenda & Clínica */
.status-compareceu { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.2); }
.status-nao_compareceu { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }
.status-agendado { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border-color: rgba(59, 130, 246, 0.2); }
.status-confirmado { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.status-aguardando_confirmacao { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.status-remarcado { background: rgba(168, 85, 247, 0.1); color: #c084fc; border-color: rgba(168, 85, 247, 0.2); }
.status-pos_atendimento { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.2); }
.status-retorno_agendado { background: rgba(99, 102, 241, 0.1); color: #818cf8; border-color: rgba(99, 102, 241, 0.2); }
.status-reativacao { background: rgba(236, 72, 153, 0.15); color: #f472b6; border-color: rgba(236, 72, 153, 0.35); animation: glow-pulse 2s infinite; }

/* Status Assistência */
.status-entrada_equip { background: rgba(99, 102, 241, 0.1); color: #818cf8; border-color: rgba(99, 102, 241, 0.2); }
.status-diagnostico { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.status-aguardando_aprov { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border-color: rgba(245, 158, 11, 0.35); }
.status-aprovado { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.status-em_reparo { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.2); }
.status-pronto_retirada { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); animation: glow-pulse 2s infinite; }

/* Status Pagamentos */
.status-pago { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.status-pendente { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.status-atrasado { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3); animation: glow-pulse 2s infinite; }

/* Status Propostas */
.status-enviada { background: rgba(99, 102, 241, 0.1); color: #818cf8; border-color: rgba(99, 102, 241, 0.2); }
.status-em_negociacao { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.2); }
.status-aprovada { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.status-recusada { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }
.status-expirada { background: rgba(107, 114, 128, 0.1); color: #9ca3af; border-color: rgba(107, 114, 128, 0.2); }

/* Status Agência */
.status-fila_espera { background: rgba(107, 114, 128, 0.1); color: #9ca3af; border-color: rgba(107, 114, 128, 0.2); }
.status-producao { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border-color: rgba(6, 182, 212, 0.2); }
.status-revisao { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.2); }
.status-aprovacao { background: rgba(168, 85, 247, 0.1); color: #c084fc; border-color: rgba(168, 85, 247, 0.2); }

/* Case studies accordion inside demo sections */
.case-study-container {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.case-study-header:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color-glow);
}

.case-study-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-study-body {
  display: none;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -1px;
}

.case-study-container.active .case-study-body {
  display: block;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.case-item h4 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.case-item p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card.featured {
  border-color: var(--border-color-glow);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.05);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 1rem 0;
  background: linear-gradient(to right, white, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.pricing-feature-item {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-feature-item::before {
  content: '✓';
  color: var(--color-cyan);
  font-weight: 900;
}

/* target badge class for orcamentos */
.status-orcamento_enviado {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.2);
}


