:root {
  /* ========================================
     🎨 PREMIUM COLOR PALETTE (Vibrant)
     ======================================== */

  /* Primary Colors */
  --primary-deep-blue: #1e3a8a;
  --primary-cyan: #00b4d8;
  --primary-magenta: #ec4899;
  --primary-orange: #ff6b35;
  --primary-purple: #9333ea;
  --primary-violet: #7b2cbf;

  /* Background Colors */
  --bg-dark: #0f172a;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.1);
  --bg-glass-white: rgba(255, 255, 255, 0.7);

  /* Text Colors */
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-tertiary: #94a3b8;
  --text-white: #ffffff;

  /* State Colors (con gradientes) */
  --success: #10B981;
  --success-light: #34d399;
  --warning: #F59E0B;
  --warning-light: #fbbf24;
  --error: #EF4444;
  --error-light: #f87171;
  --info: #3B82F6;
  --info-light: #60a5fa;

  /* ========================================
     ✨ PREMIUM GRADIENTS
     ======================================== */

  /* Main Gradients */
  --gradient-main: linear-gradient(135deg, #ff6b35 0%, #ec4899 30%, #9333ea 60%, #00b4d8 100%);
  --gradient-primary: linear-gradient(135deg, #00b4d8, #ec4899);
  --gradient-secondary: linear-gradient(135deg, #9333ea, #7b2cbf);

  /* Specific Gradients */
  --gradient-blue: linear-gradient(135deg, #1e3a8a, #00b4d8);
  --gradient-cyan: linear-gradient(135deg, #00b4d8, #0891b2);
  --gradient-pink: linear-gradient(135deg, #ec4899, #ff6b35);
  --gradient-orange: linear-gradient(135deg, #ff6b35, #f97316);
  --gradient-purple: linear-gradient(135deg, #9333ea, #7b2cbf);
  --gradient-violet: linear-gradient(135deg, #7b2cbf, #6b21a8);

  /* State Gradients */
  --gradient-success: linear-gradient(135deg, #10B981, #00b4d8);
  --gradient-warning: linear-gradient(135deg, #fbbf24, #ff6b35);
  --gradient-error: linear-gradient(135deg, #f87171, #ec4899);
  --gradient-info: linear-gradient(135deg, #3B82F6, #00b4d8);

  /* ========================================
     💎 GLOW & SHADOW EFFECTS
     ======================================== */

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 4px 24px rgba(0, 0, 0, 0.08);

  /* Colored Glows */
  --glow-cyan: 0 0 20px rgba(0, 180, 216, 0.5), 0 0 40px rgba(0, 180, 216, 0.3);
  --glow-magenta: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
  --glow-orange: 0 0 20px rgba(255, 107, 53, 0.5), 0 0 40px rgba(255, 107, 53, 0.3);
  --glow-purple: 0 0 20px rgba(147, 51, 234, 0.5), 0 0 40px rgba(147, 51, 234, 0.3);

  /* ========================================
     📐 SPACING & SIZING
     ======================================== */

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ========================================
     ⚡ TRANSITIONS & ANIMATIONS
     ======================================== */

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   🌈 GLOBAL NOVAVERSE SCROLLBAR
   ======================================== */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00b4d8 0%, #ec4899 100%);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0ea5e9 0%, #db2777 100%);
}

/* PWA Standalone Support - iOS Safe Area */
html {
  height: 100%;
  height: -webkit-fill-available;
  background: #030014;
}

body {
  min-height: 100%;
  min-height: -webkit-fill-available;
  background: #030014;
}

/* When in standalone PWA mode (added to home screen) */
@media all and (display-mode: standalone) {
  body {
    /* Safe area support for iOS notch/Dynamic Island - solo laterales */
    padding-top: 0;
    padding-bottom: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Glassmorphism */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   📐 LAYOUT - LIGHT MODE PREMIUM
   ======================================== */

.app-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-secondary);
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  width: 280px;
  height: 100vh;
  position: fixed;
  /* FIXED para que nunca se mueva */
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
  gap: var(--spacing-xl);
  transition: var(--transition-normal);
  z-index: 100;
  background: linear-gradient(180deg, #2e1065 0%, #0f172a 100%);
  /* Morado oscuro profundo */
  border-right: 3px solid transparent;
  /* Ancho de la línea */
  border-image: linear-gradient(180deg, #9333ea, #3b82f6) 1;
  /* Gradiente vertical colorido */
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  /* Scroll interno si es necesario */
}

/* .sidebar::before eliminado para limpiar fondo */

.sidebar>* {
  position: relative;
  z-index: 1;
}

/* Ajustar el layout principal para respetar el sidebar fijo */
.main-layout {
  margin-left: 280px;
  /* Espacio para el sidebar fijo */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  width: calc(100% - 280px);
  max-width: 100%;
  overflow-x: hidden;
}

/* Sidebar Background Icons */
.sidebar-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-icon {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.05);
  /* Blancos sutiles sobre fondo oscuro */
  transform: rotate(15deg);
  transition: all 0.5s ease;
}

/* Efecto sutil de movimiento */
.sidebar:hover .bg-icon {
  opacity: 0.1;
  /* Un poco más visibles al hover */
  transform: rotate(0deg) scale(1.1);
}

.sidebar::after {
  content: none;
}

/* Asegurar contenido encima */
.sidebar .logo-container,
.sidebar .nav-menu {
  position: relative;
  z-index: 2;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Background "tarjeta" eliminado */
  background: transparent;
  border: none;
  /* Mantener estructura */
  padding: 10px 16px;
  /* Menos padding vertical */
  margin-bottom: 2px;
  position: relative;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
}

/* Línea divisoria elegante debajo del logo */
.logo-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  box-shadow: none;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Solo el logo se anima al hover */
.logo-img:hover {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 30%, #60a5fa 70%, #3b82f6 100%);
  /* Gradiente original restaurado */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(147, 51, 234, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Solo el texto se anima al hover */
.logo-text:hover {
  letter-spacing: 2px;
  transform: scale(1.08);
  filter: drop-shadow(0 4px 16px rgba(147, 51, 234, 0.6));
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Menos espacio entre items */
  flex-grow: 1;
}

/* GENERAL ITEM ANIMATION */
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  /* Texto gris muy claro */
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  /* Animate Smoother/Slower */
  border-left: 3px solid transparent;
}

.nav-item i {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  /* Base (overridden below) */
  color: white;
  transform: translateX(12px) scale(1.05);
  /* SALTO EXTRA FUERTE + ESCALA */
  padding-left: calc(var(--spacing-md) - 3px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

/* ESTILO ACTIVO - COLORES POR MODULO (SOLID GRADIENTS) */
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  /* Fallback */
  border-left-width: 4px;
  padding-left: calc(var(--spacing-md) - 4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateX(4px);
  /* Activo se mantiene un poco saltado */
}

.nav-item.active i {
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
  transform: scale(1.15);
  color: white !important;
  /* Icono blanco en solidos */
}


/* --- HOVER EFFECTS & ACTIVE COLORS (PREVIEW COLOR ON HOVER) --- */

/* Dashboard: Cyan/Blue */
.nav-item[data-module="dashboard"]:hover {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), transparent);
  border-left-color: #06b6d4;
}

.nav-item[data-module="dashboard"]:hover i {
  color: #06b6d4;
}

.nav-item[data-module="dashboard"].active {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border-left-color: #06b6d4;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* Leads: Purple/Pink */
.nav-item[data-module="leads"]:hover {
  background: linear-gradient(90deg, rgba(147, 51, 234, 0.15), transparent);
  border-left-color: #d946ef;
}

.nav-item[data-module="leads"]:hover i {
  color: #d946ef;
}

.nav-item[data-module="leads"].active {
  background: linear-gradient(90deg, #9333ea, #d946ef);
  border-left-color: #d946ef;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

/* Clientes: Blue/Indigo */
.nav-item[data-module="clientes"]:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
  border-left-color: #6366f1;
}

.nav-item[data-module="clientes"]:hover i {
  color: #6366f1;
}

.nav-item[data-module="clientes"].active {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-left-color: #6366f1;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Proyectos: Amber/Orange */
.nav-item[data-module="proyectos"]:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent);
  border-left-color: #ea580c;
}

.nav-item[data-module="proyectos"]:hover i {
  color: #ea580c;
}

.nav-item[data-module="proyectos"].active {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-left-color: #ea580c;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Servicios: Teal/Cyan */
.nav-item[data-module="servicios"]:hover {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.15), transparent);
  border-left-color: #06b6d4;
}

.nav-item[data-module="servicios"]:hover i {
  color: #06b6d4;
}

.nav-item[data-module="servicios"].active {
  background: linear-gradient(90deg, #0d9488, #06b6d4);
  border-left-color: #06b6d4;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

/* Tareas: Rose/Pink */
.nav-item[data-module="tareas"]:hover {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.15), transparent);
  border-left-color: #db2777;
}

.nav-item[data-module="tareas"]:hover i {
  color: #db2777;
}

.nav-item[data-module="tareas"].active {
  background: linear-gradient(90deg, #e11d48, #db2777);
  border-left-color: #db2777;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

/* Finanzas: Green */
.nav-item[data-module="finanzas"]:hover {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.15), transparent);
  border-left-color: #10b981;
}

.nav-item[data-module="finanzas"]:hover i {
  color: #10b981;
}

.nav-item[data-module="finanzas"].active {
  background: linear-gradient(90deg, #059669, #10b981);
  border-left-color: #10b981;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

/* Equipo: Indigo */
.nav-item[data-module="equipo"]:hover {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.15), transparent);
  border-left-color: #7c3aed;
}

.nav-item[data-module="equipo"]:hover i {
  color: #7c3aed;
}

.nav-item[data-module="equipo"].active {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-left-color: #7c3aed;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* Comunidad: Blue */
.nav-item[data-module="comunidad"]:hover {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.15), transparent);
  border-left-color: #38bdf8;
}

.nav-item[data-module="comunidad"]:hover i {
  color: #38bdf8;
}

.nav-item[data-module="comunidad"].active {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-left-color: #38bdf8;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

/* Calendario: Red/Orange */
.nav-item[data-module="calendario"]:hover {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.15), transparent);
  border-left-color: #f97316;
}

.nav-item[data-module="calendario"]:hover i {
  color: #f97316;
}

.nav-item[data-module="calendario"].active {
  background: linear-gradient(90deg, #dc2626, #f97316);
  border-left-color: #f97316;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

/* Cotizaciones: Slate/Gray */
.nav-item[data-module="cotizaciones"]:hover {
  background: linear-gradient(90deg, rgba(71, 85, 105, 0.15), transparent);
  border-left-color: #94a3b8;
}

.nav-item[data-module="cotizaciones"]:hover i {
  color: #94a3b8;
}

.nav-item[data-module="cotizaciones"].active {
  background: linear-gradient(90deg, #475569, #64748b);
  border-left-color: #94a3b8;
  box-shadow: 0 4px 15px rgba(71, 85, 105, 0.4);
}

/* Nebula: Cosmic */
.nav-item[data-module="nebula"]:hover {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), transparent);
  border-left-color: #db2777;
}

.nav-item[data-module="nebula"]:hover i {
  color: #db2777;
}

.nav-item[data-module="nebula"].active {
  background: linear-gradient(90deg, #7c3aed, #db2777);
  border-left-color: #db2777;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Configuración: Zinc */
.nav-item[data-module="configuracion"]:hover {
  background: linear-gradient(90deg, rgba(82, 82, 91, 0.15), transparent);
  border-left-color: #a1a1aa;
}

.nav-item[data-module="configuracion"]:hover i {
  color: #a1a1aa;
}

.nav-item[data-module="configuracion"].active {
  background: linear-gradient(90deg, #52525b, #71717a);
  border-left-color: #a1a1aa;
  box-shadow: 0 4px 15px rgba(82, 82, 91, 0.4);
}

.nav-item.active span {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.main-layout {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
}

.header {
  background: white;
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(0, 180, 216, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-area {
  padding: var(--spacing-xl);
  flex-grow: 1;
  background: transparent;
  max-width: 100%;
  overflow-x: hidden;
}

/* ========================================
   💳 PREMIUM CARD SYSTEM
   ======================================== */

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 180, 216, 0.15);
  border-color: rgba(0, 180, 216, 0.2);
}

/* Card Variants */
.card-cyan::before {
  background: var(--gradient-cyan);
}

.card-cyan:hover {
  box-shadow: 0 12px 40px rgba(0, 180, 216, 0.2);
}

.card-magenta::before {
  background: var(--gradient-pink);
}

.card-magenta:hover {
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.2);
}

.card-purple::before {
  background: var(--gradient-purple);
}

.card-purple:hover {
  box-shadow: 0 12px 40px rgba(147, 51, 234, 0.2);
}

.card-orange::before {
  background: var(--gradient-orange);
}

.card-orange:hover {
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}

/* Glass Card */
.card-glass {
  background: var(--bg-glass-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   🔘 PREMIUM BUTTON SYSTEM
   ======================================== */

.btn {
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary Button - Cyan to Magenta Gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6), var(--glow-cyan);
  transform: translateY(-3px) scale(1.02);
}

/* Secondary Button - Glass with Cyan Border */
.btn-secondary {
  background: var(--bg-glass-white);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--primary-magenta);
  color: var(--primary-magenta);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Success Button - Green to Cyan Gradient */
.btn-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  transform: translateY(-3px) scale(1.02);
}

/* Danger/Error Button - Orange to Magenta Gradient */
.btn-danger {
  background: var(--gradient-error);
  color: white;
  box-shadow: 0 4px 15px rgba(248, 113, 113, 0.4);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6), var(--glow-magenta);
  transform: translateY(-3px) scale(1.02);
}

/* Info Button */
.btn-info {
  background: var(--gradient-info);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-info:hover {
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.6);
  transform: translateY(-3px) scale(1.02);
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Full Width */
.full-width {
  width: 100%;
}

/* ========================================
   🏷️ PREMIUM BADGE SYSTEM
   ======================================== */

.badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.badge-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: var(--gradient-warning);
  color: white;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.badge-danger,
.badge-error {
  background: var(--gradient-error);
  color: white;
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3);
}

.badge-info {
  background: var(--gradient-info);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.badge-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* ========================================
   📑 PREMIUM TABS (Sin Scroll Horizontal)
   ======================================== */

.tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  border-bottom: 2px solid rgba(0, 180, 216, 0.2);
  margin-bottom: 20px;
  overflow-x: visible;
  padding-bottom: 5px;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
  margin-bottom: -5px;
  white-space: nowrap;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
}

.tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  background: rgba(0, 180, 216, 0.1);
  color: var(--primary-cyan);
}

.tab-btn:hover::before {
  transform: scaleX(1);
}

.tab-btn.active {
  color: var(--primary-cyan);
  background: rgba(0, 180, 216, 0.08);
  border-bottom-color: transparent;
}

.tab-btn.active::before {
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Marquee Effect for Long Quotes */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.quote-marquee {
  display: flex;
  gap: 2rem;
  animation: marquee 20s linear infinite;
}

.gradient-text-icon {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Finance Stats */
.main-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card.luxury {
  padding: 24px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(147, 51, 234, 0.1);
}

.stat-card .val {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

/* Kanban & Cards */
.kanban-board-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.kanban-column {
  flex: 1;
  min-width: 260px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 15px;
}

.column-header {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.luxury-hover {
  transition: 0.3s;
  border: 1px solid rgba(147, 51, 234, 0.05) !important;
  cursor: pointer;
}

.luxury-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(147, 51, 234, 0.1) !important;
}

/* Timeline Interaction */
.timeline-item-detail {
  display: flex;
  gap: 15px;
  position: relative;
  padding-left: 20px;
}

.timeline-item-detail .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.timeline-item-detail .icon.call {
  background: var(--info);
}

.timeline-item-detail .icon.email {
  background: var(--primary-medium);
}

.timeline-item-detail .icon.meeting {
  background: var(--success);
}

.timeline-item-detail .text {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  flex: 1;
}

/* Forms */
/* ========================================
   📝 PREMIUM FORM SYSTEM
   ======================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  outline: none;
  transition: var(--transition-normal);
  font-size: 0.95rem;
  background: white;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15), var(--glow-cyan);
  transform: translateY(-1px);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--primary-magenta);
}

/* Validation States */
.form-control:valid:not(:placeholder-shown) {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Select */
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2300b4d8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-cyan);
}

/* Form Row */
.form-row {
  display: grid;
  gap: var(--spacing-md);
}

/* ========================================
   ⚡ PREMIUM ANIMATIONS
   ======================================== */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.8);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation Classes */
.fade-in {
  animation: fade-in 0.5s var(--ease-smooth);
}

.slide-in {
  animation: slide-in-right 0.4s var(--ease-smooth);
}

.bounce-in {
  animation: bounce-in 0.6s var(--ease-bounce);
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* ========================================
   🎨 UTILITY CLASSES
   ======================================== */

/* Text Gradients */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-magenta {
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glows */
.glow-cyan {
  box-shadow: var(--glow-cyan);
}

.glow-magenta {
  box-shadow: var(--glow-magenta);
}

.glow-purple {
  box-shadow: var(--glow-purple);
}

/* Spacing Utilities */
.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.p-1 {
  padding: var(--spacing-xs);
}

.p-2 {
  padding: var(--spacing-sm);
}

.p-3 {
  padding: var(--spacing-md);
}

.p-4 {
  padding: var(--spacing-lg);
}

.p-5 {
  padding: var(--spacing-xl);
}

/* ========================================
   🎯 DRAG & DROP STYLES (Leads/Tasks)
   ======================================== */

/* Sortable Ghost - Sólido en lugar de transparente */
.sortable-ghost {
  opacity: 1 !important;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(236, 72, 153, 0.15)) !important;
  border: 2px solid var(--primary-cyan) !important;
  box-shadow: var(--glow-cyan) !important;
  transform: scale(1.05) !important;
  cursor: grabbing !important;
}

/* Mientras se arrastra */
.sortable-drag {
  opacity: 1 !important;
  background: white !important;
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3) !important;
  transform: rotate(3deg) !important;
  cursor: grabbing !important;
}

/* Placeholder donde se soltará */
.sortable-chosen {
  background: rgba(0, 180, 216, 0.05) !important;
  border: 2px dashed var(--primary-cyan) !important;
}

/* ========================================
   📌 SECTION HEADERS - GRADIENT TEXT + LINE
   ======================================== */

/* Headers de sección con texto gradient y línea */
.section-header,
.page-header,
.welcome-box {
  background: transparent;
  padding: var(--spacing-lg) 0;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-primary) 1;
  margin-bottom: var(--spacing-lg);
}

.section-header h1,
.section-header h2,
.section-header h3,
.page-header h1,
.page-header h2,
.welcome-box h1,
.welcome-box h2 {
  margin: 0 0 8px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.section-header p,
.page-header p,
.welcome-box p {
  margin: 8px 0 0 0;
  color: var(--text-secondary);
}

/* ========================================
   🎨 LIGHT MODE ENHANCEMENTS
   ======================================== */

/* Module Headers */
.module-header {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(236, 72, 153, 0.08));
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid transparent;
  border-image: var(--gradient-primary) 1;
  margin-bottom: var(--spacing-lg);
}

.module-header h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.module-header p {
  color: var(--text-secondary);
}

/* Typography - Mantener colores oscuros para light mode */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

/* Modal Improvements */
.modal-overlay {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: white;
  border: 1px solid rgba(0, 180, 216, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), var(--glow-cyan);
  border-radius: 12px;
}

.modal-content h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Table Enhancements */
table {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

table thead {
  background: var(--gradient-primary);
}

table thead th {
  color: white !important;
  font-weight: 600;
  padding: 15px;
}

table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

table tbody tr:hover {
  background: rgba(0, 180, 216, 0.08);
  border-left: 3px solid var(--primary-cyan);
}

table tbody td {
  padding: 12px 15px;
  color: var(--text-primary);
}

/* Stats/KPI Cards */
.stat-card,
.kpi-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 3px solid transparent;
  border-image: var(--gradient-primary) 1;
}

.stat-card:hover,
.kpi-card:hover {
  background: rgba(0, 180, 216, 0.02);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }

  .logo-text,
  .nav-item span {
    display: none;
  }

  .kanban-board-wrapper {
    flex-direction: column;
  }

  /* ========================================
   ✨ CUSTOM ANIMATIONS
   ======================================== */

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ========================================
   📐 Responsive tuning for laptops & mobile
   ======================================== */

@media (max-width: 1400px) {
  .sidebar {
    width: 260px;
    padding: 18px;
  }

  .main-layout {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
  }

  .logo-img {
    width: 54px;
    height: 54px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .nav-item {
    padding: 10px 14px;
    gap: 12px;
  }

  .content-area {
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .grid-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px;
  }

  .kanban-column {
    min-width: 280px !important;
    width: 280px !important;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding: 16px;
  }

  .main-layout {
    margin-left: 220px !important;
    width: calc(100% - 220px) !important;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav-item {
    padding: 9px 12px;
    gap: 10px;
  }

  .nav-item span {
    font-size: 0.95rem;
  }

  .content-area {
    padding: 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .stats-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px;
  }

  .grid-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 14px;
  }

  .kanban-column {
    min-width: 240px !important;
    width: 240px !important;
  }

  .card,
  .stat-card {
    padding: 18px;
  }
}

@media (max-width: 992px) {

  /* Tablet/small laptop tightening */
  .sidebar {
    width: 200px;
    padding: 14px;
  }

  .main-layout {
    margin-left: 200px !important;
    width: calc(100% - 200px) !important;
  }

  .content-area {
    padding: 14px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .stat-card,
  .card {
    padding: 16px;
  }

  .grid-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px;
  }

  .kanban-column {
    min-width: 220px !important;
    width: 220px !important;
  }

  .stats-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px;
  }
}

@media (max-width: 768px) {

  /* Compact layout for mobile/mini laptops */
  .main-layout {
    margin-left: 70px !important;
    width: calc(100% - 70px) !important;
  }

  .content-area {
    padding: 12px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .kanban-column {
    min-width: 100% !important;
    width: 100% !important;
  }

  .grid-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 12px;
  }
}

@media (max-width: 600px) {

  /* Full-width content; sidebar stays slim */
  .sidebar {
    width: 64px;
  }

  .main-layout {
    margin-left: 64px !important;
    width: calc(100% - 64px) !important;
  }

  .content-area {
    padding: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-item {
    padding: 8px 10px;
  }
}

/* ========================================
   🌐 NOVA WEB LINK (SIDEBAR)
   ======================================== */

.nova-sidebar-logo {
  width: 35px;
  /* Tamaño "chiquito" pero visible */
  height: auto;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 2px rgba(0, 210, 255, 0.4));
  display: block;
  margin: 0 auto;
}

.nav-item.nova-web-link:hover .nova-sidebar-logo {
  transform: scale(1.3) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.9));
}

.nav-item.nova-web-link {
  justify-content: center !important;
  padding-left: 0 !important;
  margin-bottom: 20px !important;
  background: transparent !important;
  border-left: none !important;
}

/* ========================================
   🧹 BROWSER CACHE CLEANER ICONS
   ======================================== */
.cleaner-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 10px;
  margin-top: auto;
  /* Push to bottom if flex container allows */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.cleaner-icon {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.cleaner-icon:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Chrome - Brand Colors */
.icon-chrome:hover {
  color: #4285F4;
  /* Google Blue */
  background: -webkit-linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(66, 133, 244, 0.6));
}

/* Firefox - Brand Colors */
.icon-firefox:hover {
  color: #FF7139;
  filter: drop-shadow(0 0 10px rgba(255, 113, 57, 0.6));
}

/* Edge - Brand Colors */
.icon-edge:hover {
  color: #0078D7;
  filter: drop-shadow(0 0 10px rgba(0, 120, 215, 0.6));
}

/* Opera - Brand Colors */
.icon-opera:hover {
  color: #FF1B2D;
  filter: drop-shadow(0 0 10px rgba(255, 27, 45, 0.6));
}

.cleaner-icon:active {
  transform: scale(0.9);
}

/* ========================================
   LiliaDex (#marketing) — sin fondo claro ni “tarjeta pegada”
   El sidebar fijo se mantiene; solo el main se oscurece y el chat llena el hueco.
   ======================================== */

/* Evita scroll de página: si no, sube toda la columna y el composer “desaparece” */
html:has(body.novadex-module-marketing) {
  height: 100%;
  overflow: hidden;
}

body.novadex-module-marketing {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}

body.novadex-module-marketing .app-container {
  background: #0a0612;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  min-height: 0;
}

body.novadex-module-marketing .main-layout.main-layout--liliadex {
  background: #0a0612;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

body.novadex-module-marketing #content-area.content-area--liliadex {
  padding: 0 !important;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

body.novadex-module-marketing #content-area.content-area--liliadex > #module-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.novadex-module-marketing #module-content .ldx-shell.ldx-shell--unified {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Anula height:calc(100dvh - 120px) del bloque embebido en marketing.js */
body.novadex-module-marketing #module-content .ldx-card.ldx-chat {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-left: 1px solid rgba(99, 79, 140, 0.4);
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Solo el hilo de mensajes hace scroll; cabecera, quick bar y composer fijos */
body.novadex-module-marketing #module-content .ldx-card.ldx-chat > .ldx-chat-header,
body.novadex-module-marketing #module-content .ldx-card.ldx-chat > .ldx-quick-bar,
body.novadex-module-marketing #module-content .ldx-card.ldx-chat > .ldx-video-options {
  flex-shrink: 0 !important;
}

body.novadex-module-marketing #module-content .ldx-card.ldx-chat > .ldx-chat-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.novadex-module-marketing #module-content .ldx-card.ldx-chat > .ldx-attachments,
body.novadex-module-marketing #module-content .ldx-card.ldx-chat > .ldx-input {
  flex-shrink: 0 !important;
}

/* Mensajes (#mensajes): pantalla completa junto al sidebar, sin marco blanco */
body.novadex-module-messages .app-container {
  background: #0b1220;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  min-height: 0;
}

body.novadex-module-messages .main-layout.main-layout--messages {
  background: #0b1220;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

body.novadex-module-messages #content-area.content-area--messages {
  padding: 0 !important;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

body.novadex-module-messages #content-area.content-area--messages > #module-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.novadex-module-messages #module-content #tm-shell.tm-shell {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-left: 1px solid rgba(99, 102, 241, 0.22);
}

body.novadex-module-messages #module-content #tm-main {
  min-height: 0;
}

body.novadex-module-messages #module-content #tm-thread {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.novadex-module-messages #module-content #tm-thread-head {
  flex-shrink: 0;
}

body.novadex-module-messages #module-content #tm-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body.novadex-module-messages #module-content .tm-compose,
body.novadex-module-messages #module-content .tm-typing {
  flex-shrink: 0;
}