@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

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

:root {
  /* Input Nova Corporate Colors */
  --bg-out: #080808;
  --bg-inner: #111111;
  --bg-sidebar: #0d0d0d;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.08);
  
  --text: #FFFFFF;
  --text-muted: #888888;
  
  --accent-lime: #CFFF0D;
  --accent-mint: #CFFF0D;
  --accent-lavender: #CFFF0D;
  --accent-danger: #FF6B6B;
  
  --border: rgba(255, 255, 255, 0.06);
  --radius-outer: 32px;
  --radius-inner: 24px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-out);
  color: var(--text);
  min-height: 100vh;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* APP WRAPPER */
.app-background {
  width: 100%;
  max-width: 1800px;
  height: calc(100vh - 32px);
  background: var(--bg-inner);
  border-radius: var(--radius-outer);
  overflow: hidden;
  display: flex;
  box-shadow: 0 0 50px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* SIDEBAR */
.sidebar {
  width: 80px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  z-index: 10;
}

.sidebar-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  background: var(--surface);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 40px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.nav-item {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-item.active {
  background: var(--accent-lime);
  color: #000;
  box-shadow: 0 0 20px rgba(207, 255, 13, 0.3);
}

.sidebar-bottom .nav-user img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* HEADER */
.top-header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-marca, #cfff0d);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(207, 255, 13, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}

.header-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#header-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.header-breadcrumbs {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.breadcrumb-root { color: var(--text-muted); }
.breadcrumb-separator { margin: 0 8px; color: var(--border); }
.breadcrumb-current { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-module-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search {
  background: #FFFFFF;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  width: 250px;
}
.header-search svg { width: 16px; color: #000; margin-right: 8px; }
.header-search input {
  border: none; background: transparent; outline: none; font-family: 'Outfit';
  font-weight: 600; font-size: 0.9rem; color: #000; width: 100%;
}

.btn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #FFFFFF; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #000;
}
.btn-icon svg { width: 18px; }

/* TABS LOGIC */
.tab-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}
.tab-pane.active {
  display: block;
}

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: max-content;
  gap: 24px;
}

.bento-card {
  border-radius: var(--radius-inner);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.bento-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-box {
  background: rgba(0,0,0,0.1); padding: 8px; border-radius: 12px; display: flex;
}
.icon-box svg { width: 20px; height: 20px; }

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bento-select {
  background: rgba(0,0,0,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.bento-select svg { width: 14px; }

.bento-btn-round {
  width: 40px; height: 40px; border-radius: 50%;
  background: #FFFFFF; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #000;
}
.bento-btn-round.small { width: 32px; height: 32px; }
.bento-btn-round svg { width: 18px; }

/* REVENUE CARD (Lima) */
.bento-revenue {
  grid-column: span 2;
  background: #111111;
  color: #fff;
}
.revenue-content { display: flex; flex: 1; gap: 40px; }
.revenue-chart-mock {
  flex: 2; display: flex; align-items: flex-end; gap: 12px; padding-top: 20px;
}
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar { width: 100%; border-radius: 8px 8px 0 0; }

.bar-label { font-size: 0.75rem; font-weight: 700; }

.revenue-stats {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.stat-box { display: flex; flex-direction: column; gap: 8px; }
.stat-label { font-size: 0.8rem; font-weight: 700; opacity: 0.7; display: flex; align-items: center; gap: 8px; }
.badge-growth { background: #000; color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 0.7rem; }
.stat-value { font-size: 3rem; font-weight: 800; line-height: 1; color: #CFFF0D; }
.stat-value.small { font-size: 2rem; color: #CFFF0D; }

/* PEDIDOS ACTIVOS GIGANTE (Columna Derecha Completa) */
.bento-alert {
  background: #000000;
  border: 2px solid var(--accent-lavender);
  box-shadow: 0 0 40px rgba(207, 255, 13, 0.15);
  border-radius: 36px;
  color: #fff;
  grid-column: 3 / 4;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
}
.bento-alert .bento-card-header h3 { color: var(--accent-lavender); }
.active-orders-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: center;
}
.ao-item {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.ao-item:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.2); }
.ao-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.ao-item.nuevos .ao-icon { background: rgba(207,255,13,0.1); color: var(--accent-lime); border: 1px solid rgba(207,255,13,0.2); }
.ao-item.cocina .ao-icon { background: rgba(207,255,13,0.1); color: var(--accent-lavender); border: 1px solid rgba(207,255,13,0.2); }
.ao-item.reparto .ao-icon { background: rgba(207,255,13,0.1); color: var(--accent-mint); border: 1px solid rgba(207,255,13,0.2); }

.ao-info { display: flex; flex-direction: column; gap: 4px; }
.ao-info span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}
.ao-number { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1;}

/* ANIMACIONES PEDIDOS ACTIVOS */
.live-indicator { display: flex; align-items: center; gap: 8px; color: var(--accent-lime); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; background: rgba(207,255,13,0.1); padding: 4px 10px; border-radius: 12px; }
.pulse-dot { width: 8px; height: 8px; background: var(--accent-lime); border-radius: 50%; box-shadow: 0 0 10px var(--accent-lime); animation: pulse 1s infinite alternate; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.3); opacity: 1; } }

.active-orders-animation { margin-top: auto; display: flex; justify-content: center; padding: 20px 0 10px 0; opacity: 0.7; }
.equalizer { display: flex; gap: 6px; height: 30px; align-items: flex-end; }
.equalizer .bar { width: 6px; border-radius: 3px; animation: eq 1s infinite alternate ease-in-out; }
.equalizer .bar:nth-child(1) { height: 10px; animation-delay: 0.1s; background: var(--accent-lavender); }
.equalizer .bar:nth-child(2) { height: 20px; animation-delay: 0.3s; background: var(--accent-lime); }
.equalizer .bar:nth-child(3) { height: 30px; animation-delay: 0.5s; background: var(--accent-mint); }
.equalizer .bar:nth-child(4) { height: 15px; animation-delay: 0.2s; background: var(--text-muted); }
.equalizer .bar:nth-child(5) { height: 25px; animation-delay: 0.4s; background: var(--accent-lavender); }
@keyframes eq { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }

/* CAPACITY CARD (Mint) */
.bento-capacity {
  background: #111111;
  color: #fff;
}
.capacity-circles {
  display: flex; justify-content: space-between; margin-top: 20px; margin-bottom: 30px;
}
.capacity-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.capacity-item .circle {
  width: 48px; height: 48px; border-radius: 50%; background: #2C2C2C; color: #CFFF0D; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
}
.capacity-item span { font-size: 0.75rem; font-weight: 600; opacity: 0.7; }
.capacity-item .monto { font-weight: 800; font-size: 0.85rem; color: #fff; opacity: 1; margin-top: -4px; }
.capacity-legend {
  display: flex; gap: 16px; font-size: 0.8rem; font-weight: 700;
}
.capacity-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }

/* POINTS CARD (Azul oscuro / Mapa) */
.bento-points {
  background: #111111;
  color: #fff;
  position: relative;
}
.map-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 10px 10px;
}
.map-marker {
  position: absolute; font-size: 1.5rem;
}
.map-marker.active span {
  background: #000; color: #fff; font-size: 0.8rem; font-weight: 700; padding: 6px 12px; border-radius: 12px; white-space: nowrap;
}

/* AI CARD (Dark) */
.bento-ai {
  grid-column: span 2;
  background: #1A1A1A;
  border: 1px solid var(--border);
}
.bento-ai h3 { color: #fff; }
.ai-content { display: flex; flex-direction: column; gap: 20px; flex: 1; justify-content: center; }
.ai-message { display: flex; gap: 16px; align-items: flex-start; }
.ai-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.ai-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; font-weight: 500; }
.ai-actions { display: flex; gap: 12px; margin-left: 56px; }
.ai-chip {
  background: var(--surface); border: 1px solid var(--border); color: #fff; padding: 6px 12px; border-radius: 16px; font-size: 0.8rem; font-weight: 600; font-family: 'Outfit';
}
.ai-input {
  display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.3); padding: 8px; border-radius: 20px; margin-top: auto;
}
.ai-input-btn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-danger); border: none; color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.ai-input input {
  flex: 1; background: transparent; border: none; color: #fff; font-family: 'Outfit'; outline: none;
}


/* TAB KANBAN */
.kanban-tools {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.kanban-clock {
  font-size: 1.5rem; font-weight: 800; color: var(--accent-mint); font-variant-numeric: tabular-nums;
}
.btn-cerrar-dia {
  background: transparent; color: var(--text); border: 1px solid var(--border); padding: 10px 24px; border-radius: 16px; font-weight: 700; font-family: 'Outfit'; cursor: pointer; transition: all 0.3s;
}
.btn-cerrar-dia:hover { background: var(--text); color: var(--bg-inner); }

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  height: calc(100% - 60px);
}
.columna {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.columna-header {
  padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid;
}
.columna-header h2 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }
.badge { background: var(--surface); padding: 4px 12px; border-radius: 16px; font-size: 0.9rem; font-weight: 800; color: #000; }

.columna-header--nuevos { border-color: var(--accent-lime); color: var(--accent-lime); }
.columna-header--nuevos .badge { background: var(--accent-lime); }

.columna-header--cocina { border-color: var(--accent-lavender); color: var(--accent-lavender); }
.columna-header--cocina .badge { background: var(--accent-lavender); }

.columna-header--reparto { border-color: var(--accent-mint); color: var(--accent-mint); }
.columna-header--reparto .badge { background: var(--accent-mint); }

.columna-body {
  padding: 16px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px;
}

/* TARJETAS KANBAN */
.tarjeta {
  background: var(--bg-sidebar); border-radius: 16px; padding: 20px; border: 1px solid var(--border); position: relative;
}
.tarjeta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--border); border-radius: 16px 16px 0 0;
}
.tarjeta--nuevo::before { background: var(--accent-lime); }

.tarjeta-cliente { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.tarjeta-direccion { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.tarjeta-items { font-size: 0.9rem; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.tarjeta-acciones { display: flex; gap: 8px; }
.btn { border: none; padding: 10px; border-radius: 8px; font-weight: 700; font-family: 'Outfit'; flex: 1; cursor: pointer; }
.btn-cocina { background: var(--accent-lavender); color: #000; }
.btn-reparto { background: var(--accent-mint); color: #000; }
.btn-entregado { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ========== PLATOS DESTACADOS — DUAL SIDE BY SIDE ========== */
.platos-dual-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 12px;
}

.platos-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platos-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platos-section-title .section-icon {
  font-size: 1.1rem;
}

/* Horizontal bar row */
.plato-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.plato-bar-rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: #555;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.plato-bar-track {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plato-bar-fill {
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  min-width: 60px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.plato-bar-track .plato-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  color: inherit;
  order: -1;
  padding: 0 2px;
}

.plato-bar-fill .plato-count {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
  flex-shrink: 0;
}

/* Top seller bar colors */
.plato-bar-fill.top-1 {
  background: var(--color-marca, #cfff0d);
  color: #000;
}
.plato-bar-fill.top-n {
  background: #2a2a2a;
  color: #fff;
}

/* Least seller bar colors */
.plato-bar-fill.bottom-bar {
  background: #ff4444;
  color: #fff;
}

/* Action button */
.plato-bar-action {
  flex-shrink: 0;
}

.plato-bar-action a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 4px 8px;
  border-radius: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid;
}

.plato-bar-action a.btn-crear {
  color: var(--color-marca, #cfff0d);
  border-color: rgba(207, 255, 13, 0.3);
  background: rgba(207, 255, 13, 0.06);
}
.plato-bar-action a.btn-crear:hover {
  background: rgba(207, 255, 13, 0.15);
  border-color: rgba(207, 255, 13, 0.6);
  box-shadow: 0 0 12px rgba(207, 255, 13, 0.15);
}

.plato-bar-action a.btn-rescatar {
  color: #ff6b6b;
  border-color: rgba(255, 68, 68, 0.3);
  background: rgba(255, 68, 68, 0.06);
}
.plato-bar-action a.btn-rescatar:hover {
  background: rgba(255, 68, 68, 0.15);
  border-color: rgba(255, 68, 68, 0.6);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.15);
}

/* Insight line */
.platos-insight {
  margin-top: 14px;
  padding: 10px 16px;
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-radius: 12px;
  font-size: 0.82rem;
  color: #ccc;
  line-height: 1.5;
}

.platos-insight strong {
  color: #ff6b6b;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .platos-dual-container {
    grid-template-columns: 1fr;
  }
}

/* --- Conversaciones Bot Widget --- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.bento-ai {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bento-ai .ai-content {
  flex: 1;
  overflow: hidden;
}

#conv-list::-webkit-scrollbar { width: 4px; }
#conv-list::-webkit-scrollbar-track { background: transparent; }
#conv-list::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

#conv-chat-panel::-webkit-scrollbar { width: 4px; }
#conv-chat-panel::-webkit-scrollbar-track { background: transparent; }
#conv-chat-panel::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

/* ════════════════════════════════════════════════
   OVERVIEW — PESTAÑAS EN HEADER
════════════════════════════════════════════════ */
.overview-header-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.overview-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #888888;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  top: 1px; /* aligns border-bottom flush with header border */
}

.overview-tab-btn:hover {
  color: #ffffff;
  border-bottom-color: rgba(207, 255, 13, 0.3);
}

.overview-tab-btn.active {
  background: transparent;
  color: #cfff0d;
  font-weight: 700;
  border-bottom: 3px solid #cfff0d;
  border-radius: 0;
}

/* ════════════════════════════════════════════════
   OVERVIEW — PANELES DE CONTENIDO
════════════════════════════════════════════════ */
.overview-tab-pane {
  display: none;
  animation: ovtab-fadein 0.22s ease;
}

.overview-tab-pane.active {
  display: block;
}

@keyframes ovtab-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════
   OVERVIEW — PLACEHOLDER FIDELIZACIÓN
════════════════════════════════════════════════ */
.ovtab-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  gap: 20px;
  min-height: 400px;
}

.ovtab-placeholder-icon {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(207,255,13,0.3));
}

.ovtab-placeholder-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #cfff0d;
  margin: 0;
}

.ovtab-placeholder-desc {
  font-size: 1rem;
  color: #888;
  line-height: 1.7;
  max-width: 500px;
  margin: 0;
}

.ovtab-placeholder-badge {
  background: #1a1a1a;
  color: #666;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  margin-top: 8px;
}

/* ════════════════════════════════════════════════
   OVERVIEW — PANEL APPS
════════════════════════════════════════════════ */
.ovtab-apps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  gap: 32px;
  min-height: 400px;
}

.app-launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 600px;
}

.app-launch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 24px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.app-launch-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  filter: brightness(1.08);
}

.app-launch-btn:active {
  transform: translateY(0);
}

.app-launch-btn--mesero {
  background: #cfff0d;
  color: #000;
}

.app-launch-btn--repartidor {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #cfff0d;
}

.app-launch-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.app-launch-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.app-launch-subtitle {
  font-size: 0.82rem;
  opacity: 0.7;
  font-weight: 400;
}

.app-launch-hint {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.7;
}

.fidelizacion-metricas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.fidel-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fidel-numero {
  font-size: 32px;
  font-weight: 700;
  color: #cfff0d;
}
.fidel-label {
  font-size: 12px;
  color: #888;
  text-align: center;
}
.fidel-cliente-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #1a1a1a;
}
.fidel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #cfff0d;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.fidel-info { flex: 1; }
.fidel-nombre {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.fidel-detalle { font-size: 12px; color: #888; }
.fidel-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.fidel-badge.activo { 
  background: #1a3300; color: #cfff0d; 
}
.fidel-badge.inactivo { 
  background: #2a1a00; color: #ff8c42; 
}
.fidel-puntos {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.fidel-campana {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fidel-campana select,
.fidel-campana textarea {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  width: 100%;
}
.fidel-campana-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#fidel-enviar-campana {
  background: #cfff0d;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
}

.fidel-nivel-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.nivel-normal  { background: #1a1a1a; color: #888; }
.nivel-silver  { background: #1a2a3a; color: #7ec8e3; }
.nivel-gold    { background: #2a2000; color: #ffd700; }
.nivel-vip     { background: #2a0a2a; color: #cf0dff; }

.fidel-tips {
  font-size: 12px;
  color: #666;
  padding: 8px 12px;
  background: #111;
  border-radius: 8px;
}
.fidel-tips code {
  background: #1a1a1a;
  color: #cfff0d;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- HOVER STATES & UX TWEAKS --- */
.overview-tab-btn svg { stroke: currentColor; transition: stroke 0.3s; margin-right: 4px; }
.overview-tab-btn.active svg { stroke: var(--accent-lime); }
.overview-tab-btn:hover { color: #fff; }
.overview-tab-btn:hover svg { stroke: #fff; }
.overview-tab-btn.active:hover svg { stroke: var(--accent-lime); }

.revenue-chart-mock { border-bottom: 1px solid #333; }
.bar { transition: background 0.3s, height 0.3s; }
.bar.hover-effect:hover { filter: brightness(1.2); }

.tarjeta { transition: transform 0.2s, box-shadow 0.2s; }
.tarjeta:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); }

select:hover, input:hover { border-color: rgba(255,255,255,0.3); }
.btn-icon:hover { background: rgba(255,255,255,0.1); }
.bento-card-header button:hover { background: rgba(255,255,255,0.1); }
.fidel-card { transition: border-color 0.2s; }
.fidel-card:hover { border-color: rgba(255,255,255,0.3); }
.app-launch-btn { transition: transform 0.2s, border-color 0.2s; }
.app-launch-btn:hover { transform: translateY(-2px); border-color: var(--accent-lime); }
