/**
 * PLANIT Publisher Pro V3 - Hoja de Estilos de Alta Fidelidad
 * Basada en la especificación visual y diseño moderno de la interfaz V3.
 */

:root {
  --bg-app: rgba(10, 10, 14, 0.75);
  --bg-sidebar: rgba(12, 12, 16, 0.75);
  --bg-topbar: rgba(14, 15, 20, 0.75);
  --bg-card: rgba(18, 19, 26, 0.75);
  --bg-card-inner: rgba(24, 25, 34, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 204, 41, 0.35);

  --color-primary: #FFCC29;
  --color-primary-hover: #F59E0B;
  --color-primary-glow: rgba(255, 204, 41, 0.3);

  --color-text-main: #FFFFFF;
  --color-text-sub: #9CA3AF;
  --color-text-muted: #6B7280;

  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* ═══════════════════════════════════════════════════════════════════════ */
/* CONSOLA DE REGISTRO: Permitir selección y copia de texto               */
/* ═══════════════════════════════════════════════════════════════════════ */
.terminal-body,
.terminal-body *,
.terminal-line,
.terminal-line * {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text;
}

body {
  font-family: var(--font-family);
  background-color: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--color-text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

/* ═════════════════════════════════════════════════════════════════════ */
/* ESTRUCTURA GENERAL: SIDEBAR + VIEWPORT                               */
/* ═════════════════════════════════════════════════════════════════════ */
.layout-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-app);
}

/* ═════════════════════════════════════════════════════════════════════ */
/* BARRA LATERAL IZQUIERDA (SIDEBAR)                                    */
/* ═════════════════════════════════════════════════════════════════════ */
.sidebar {
  width: 86px;
  background-color: rgba(12, 12, 16, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid rgba(255, 204, 41, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8px;
  gap: 16px;
  position: relative;
  flex-shrink: 0;
  z-index: 100;
}

/* Marca Superior Planit - Logo Mascota */
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 204, 41, 0.15);
  width: 100%;
}

.brand-avatar-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 204, 41, 0.22) 0%, rgba(18, 18, 20, 0.8) 100%);
  border: 2px solid #FFCC29;
  box-shadow: 0 0 16px rgba(255, 204, 41, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.brand-avatar-container:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 24px rgba(255, 204, 41, 0.65);
}

.sidebar-mascot-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Menú de Navegación Vertical */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.sidebar-nav-divider {
  width: 38px;
  height: 1px;
  background: rgba(255, 204, 41, 0.18);
  margin: 6px 0;
}

.nav-item {
  width: 58px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #FFCC29;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFCC29;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item .nav-icon svg {
  width: 28px;
  height: 28px;
  stroke: #FFCC29;
  fill: none;
}

/* Estado Hover: sutil brillo dorado y elevación */
.nav-item:hover {
  background: rgba(255, 204, 41, 0.12);
  border-color: rgba(255, 204, 41, 0.35);
  box-shadow: 0 4px 14px rgba(255, 204, 41, 0.2);
}

.nav-item:hover .nav-icon {
  transform: scale(1.12);
}

/* TOOLTIP ELEGANTE EN HOVER (A la derecha del sidebar) */
.nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  background: rgba(14, 15, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFCC29;
  border: 1px solid rgba(255, 204, 41, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 204, 41, 0.2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.nav-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* Estado Activo: Fondo dorado sólido e ícono oscuro de contraste */
.nav-item.active {
  background: #FFCC29;
  border-color: #FFCC29;
  box-shadow: 0 6px 18px rgba(255, 204, 41, 0.45);
}

.nav-item.active .nav-icon {
  color: #121214;
}

.nav-item.active .nav-icon svg {
  stroke: #121214;
}

/* Mascota Ilustrada Base */


/* ═════════════════════════════════════════════════════════════════ */
/* VIEWPORT PRINCIPAL                                                */
/* ═════════════════════════════════════════════════════════════════ */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(255, 204, 41, 0.03) 0%, transparent 60%);
}

/* ── BARRA SUPERIOR (HEADER / DESKTOP / LICENCIA) ── */
.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
  -webkit-app-region: drag;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  -webkit-app-region: no-drag;
}

/* Selector de Escritorio / Carpeta */
.desktop-selector-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e1f2a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.desktop-selector-pill:hover {
  background: #272836;
  border-color: var(--color-primary);
}

.desktop-selector-pill .prefix {
  color: var(--color-text-sub);
  font-weight: 500;
}

.desktop-selector-pill .client-name {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.desktop-selector-pill .arrow {
  color: var(--color-primary);
  font-size: 9px;
  margin-left: 2px;
}

/* Badge de Licencia */
.license-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 204, 41, 0.08);
  border: 1px solid rgba(255, 204, 41, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--color-primary);
}

.license-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

/* Controles de Ventana */
.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-sub);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.win-btn.win-close:hover {
  background: var(--color-danger);
  color: #fff;
}

/* ═════════════════════════════════════════════════════════════════ */
/* CONTENEDOR CON DESPLAZAMIENTO FLUIDO                              */
/* ═════════════════════════════════════════════════════════════════ */
.app-scroll-container {
  flex: 1;
  overflow-y: overlay;
  overflow-x: hidden;
  padding: 20px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.app-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.app-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.app-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ═════════════════════════════════════════════════════════════════ */
/* TARJETAS DEL DASHBOARD (DISEÑO GLASS/DARK MODERNO)                */
/* ═════════════════════════════════════════════════════════════════ */
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

.dashboard-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 204, 41, 0.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.card-heading h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Píldora de estado verde */
.status-badge-green {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* ═════════════════════════════════════════════════════════════════ */
/* SECCIÓN 1: DOS TARJETAS SUPERIORES                                */
/* ═════════════════════════════════════════════════════════════════ */
.top-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ── TARJETA PLANIFICADOR AUTÓNOMO ── */
.next-pub-block {
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pub-clock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.clock-circle-icon {
  font-size: 24px;
}

.pub-clock-info {
  display: flex;
  flex-direction: column;
}

.pub-label {
  font-size: 11px;
  color: var(--color-text-sub);
  font-weight: 500;
}

.pub-time-display {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.pub-countdown-strip {
  border-left: 3px solid var(--color-primary);
  padding-left: 8px;
  font-size: 11.5px;
  color: var(--color-primary);
  font-weight: 600;
}

/* Ciclo de Contenidos */
.cycle-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.cycle-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cycle-tag {
  background: var(--color-primary);
  color: #121214;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.stepper-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  align-items: center;
}

.btn-step {
  background: #1e202c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-step:hover {
  background: #2a2c3d;
  border-color: var(--color-primary);
}

.day-center-pill {
  background: var(--color-primary);
  color: #121214;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

/* ── TARJETA CONTROL MANUAL Y EJECUCIÓN ── */
/* Toggle Modo */
.toggle-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-mode input {
  display: none;
}

.toggle-slider-round {
  width: 36px;
  height: 20px;
  background: #333;
  border-radius: 20px;
  position: relative;
  transition: 0.3s;
}

.toggle-slider-round::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  background: #fff;
  transition: 0.3s;
}

.toggle-mode input:checked + .toggle-slider-round {
  background: var(--color-primary);
}

.toggle-mode input:checked + .toggle-slider-round::before {
  transform: translateX(16px);
  background: #121214;
}

.toggle-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-sub);
}

/* BOTÓN HERO CTA */
.btn-hero-cta {
  width: 100%;
  background: linear-gradient(135deg, #FFCC29 0%, #F59E0B 100%);
  color: #121214;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
  margin-bottom: 12px;
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.hero-icon {
  font-size: 20px;
  line-height: 1;
}

.hero-text-block {
  text-align: left;
}

.hero-text-block strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.hero-text-block small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
}

/* FILA DE 3 ACCIONES SECUNDARIAS */
.secondary-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-action-pill {
  background: #1e202c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-action-pill:hover {
  background: #272a3a;
  border-color: rgba(255, 255, 255, 0.2);
}

/* FILA DE SESIONES */
.sessions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-session {
  background: #181924;
  border: 1px solid rgba(255, 204, 41, 0.35);
  border-radius: 20px;
  padding: 7px 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-session:hover {
  background: rgba(255, 204, 41, 0.1);
  border-color: var(--color-primary);
}

/* BOTÓN REINICIAR PIPELINE */
.btn-reset-pipeline {
  width: 100%;
  background: #181924;
  border: 1px solid rgba(255, 204, 41, 0.5);
  border-radius: 20px;
  padding: 7px 14px;
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.btn-reset-pipeline:hover {
  background: rgba(255, 204, 41, 0.15);
  border-color: var(--color-primary);
}

/* FILA FACEBOOK PAGE ID */
.meta-page-row {
  background: #12131c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-fb-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1877F2;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meta-fb-info {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.meta-fb-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.meta-fb-sub {
  font-size: 9.5px;
  color: var(--color-text-muted);
}

.meta-page-input {
  flex: 1;
  background: #1e202c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  font-size: 11px;
  outline: none;
}

.meta-page-input:focus {
  border-color: var(--color-primary);
}

.meta-status-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.btn-save-page {
  background: #2a2c3a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-save-page:hover {
  background: var(--color-primary);
  color: #121214;
}

/* FILA CARPETA DE PROYECTO EN CHATGPT */
.chatgpt-project-row {
  background: #12131c;
  border: 1px solid rgba(16, 163, 127, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatgpt-project-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10a37f;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatgpt-project-info {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chatgpt-project-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.chatgpt-project-sub {
  font-size: 9.5px;
  color: var(--color-text-muted);
}

.chatgpt-project-input {
  flex: 1;
  background: #1e202c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  font-size: 11px;
  outline: none;
}

.chatgpt-project-input:focus {
  border-color: #10a37f;
}

.chatgpt-status-tag {
  background: rgba(161, 161, 170, 0.15);
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.chatgpt-status-tag.active {
  background: rgba(16, 163, 127, 0.2);
  color: #10a37f;
  border: 1px solid rgba(16, 163, 127, 0.4);
}

.btn-save-project {
  background: #1a332a;
  border: 1px solid rgba(16, 163, 127, 0.35);
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-save-project:hover {
  background: #10a37f;
  color: #fff;
}

/* ═════════════════════════════════════════════════════════════════ */
/* SECCIÓN 2: VISTA PREVIA EN VIVO                                   */
/* ═════════════════════════════════════════════════════════════════ */
.topic-pill-tag {
  background: var(--color-primary);
  color: #121214;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

/* ── COLUMNA IZQUIERDA: IMAGEN ── */
.preview-image-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assets-badge-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.assets-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.asset-badge {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-logo {
  background: var(--color-primary);
  color: #121214;
  font-weight: 700;
}

.badge-avatar {
  background: #242533;
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.badge-product {
  background: #242533;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.image-display-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111218;
  border: 2px dashed rgba(255, 204, 41, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-display-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.placeholder-icon {
  font-size: 36px;
  opacity: 0.8;
}

.image-placeholder-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.image-placeholder-box p {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.4;
}

/* BOTONES DE IMPORTAR Y GUARDAR IMAGEN (V3) */
.image-tools-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-tool-import,
.btn-tool-save {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-tool-import {
  background: #202230;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-tool-import:hover {
  background: #2a2d40;
  border-color: var(--color-primary);
}

.btn-tool-save {
  background: rgba(255, 204, 41, 0.12);
  border: 1px solid rgba(255, 204, 41, 0.4);
  color: var(--color-primary);
}

.btn-tool-save:hover {
  background: var(--color-primary);
  color: #121214;
}

.image-specs-bar {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--color-text-muted);
}

/* ── COLUMNA DERECHA: TEXTO / COPY ── */
.preview-copy-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-callout-card {
  background: #14151e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
}

.callout-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.callout-content h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.callout-content p {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.4;
}

.copy-editor-box {
  flex: 1;
  min-height: 200px;
  background: #13141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.copy-edit-pencil {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 12px;
  opacity: 0.5;
  pointer-events: none;
}

.copy-editor-box textarea {
  width: 100%;
  height: 100%;
  min-height: 190px;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.copy-editor-box textarea:focus {
  border-color: var(--color-primary);
}

/* BOTONES DE HERRAMIENTAS DE COPY */
.copy-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-counter-tag {
  font-size: 11px;
  color: var(--color-text-muted);
}

.copy-buttons-group {
  display: flex;
  gap: 8px;
}

.btn-tool-save-copy {
  background: #202230;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-tool-save-copy:hover {
  background: #2c2f42;
  border-color: var(--color-primary);
}

.btn-copy-gold {
  background: var(--color-primary);
  color: #121214;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-copy-gold:hover {
  background: var(--color-primary-hover);
}

/* BOTÓN PUBLICAR GUARDADO */
.btn-publish-saved {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-publish-saved:hover {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* ── REDES SOCIALES DESTINO ── */
.social-networks-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-sub);
}

.social-buttons-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-pill {
  background: #181924;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.social-pill.active {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877F2;
  color: #fff;
}

.social-status-dot.green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.social-pill.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}

.social-pill.disabled:hover {
  opacity: 0.8;
}

.social-tag-soon {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 8px;
  color: var(--color-text-muted);
}

/* ═════════════════════════════════════════════════════════════════ */
/* SECCIÓN 3: HISTORIAL HISTÓRICO                                    */
/* ═════════════════════════════════════════════════════════════════ */
.history-actions-group,
.terminal-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-count-badge,
.events-counter-badge {
  font-size: 11px;
  color: var(--color-text-muted);
}

.btn-refresh-history,
.btn-clear-console {
  background: #202230;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-refresh-history:hover,
.btn-clear-console:hover {
  background: #2b2e40;
  border-color: var(--color-primary);
}

.table-responsive {
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11.5px;
}

.history-table th {
  background: #14151e;
  padding: 8px 12px;
  color: var(--color-text-sub);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
}

.history-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.empty-row {
  text-align: center;
  padding: 24px !important;
  color: var(--color-text-muted) !important;
}

.empty-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

/* ═════════════════════════════════════════════════════════════════ */
/* SECCIÓN 4: CONSOLA EN TIEMPO REAL (LIVE LOG)                      */
/* ═════════════════════════════════════════════════════════════════ */
.terminal-body {
  height: 150px;
  background: #0a0b0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  overflow-y: auto;
  font-family: "Consolas", "Cascadia Code", monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.terminal-line .time {
  color: var(--color-text-muted);
}

.terminal-line .badge {
  font-weight: 700;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
}

.terminal-line .badge.info {
  background: #1E3A8A;
  color: #93C5FD;
}

.terminal-line .badge.success {
  background: #064E3B;
  color: #6EE7B7;
}

.terminal-line .badge.warn {
  background: #78350F;
  color: #FCD34D;
}

.terminal-line .badge.error {
  background: #7F1D1D;
  color: #FCA5A5;
}

.terminal-line .msg {
  color: #E5E7EB;
  word-break: break-word;
}

/* ═════════════════════════════════════════════════════════════════ */
/* MODAL FLUIDO (CALENDARIO DE PUBLICACIÓN)                          */
/* ═════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-dialog {
  width: 90%;
  max-width: 580px;
  background: #181924;
  border: 1px solid rgba(255, 204, 41, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-sub);
  font-size: 20px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-tab {
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.btn-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.modal-body {
  padding: 16px 20px;
}

.modal-desc {
  font-size: 11.5px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
}

.weekly-days-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weekly-tools-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-copy-time {
  background: #252736;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
}

.desc-hint {
  font-size: 10.5px;
  color: var(--color-text-muted);
}

.time-picker-wrapper {
  margin: 16px 0;
}

.time-picker-control {
  background: #111218;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.quick-times-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-title {
  font-size: 11px;
  color: var(--color-text-muted);
}

.btn-quick-pill {
  background: #202230;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.btn-quick-pill.active {
  background: var(--color-primary);
  color: #121214;
  font-weight: 700;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-cancel {
  background: #222433;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
}

.btn-modal-save {
  background: var(--color-primary);
  color: #121214;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ESTILOS V3: CANALES BLOQUEADOS, TOPBAR SOPORTE Y MODALES (AJUSTES/SOPORTE) */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Botón de Espejo Cloud (Firebase PWA Web App v4.1) */
.topbar-cloud-mirror-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.topbar-cloud-mirror-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.topbar-cloud-mirror-btn.online {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #34D399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.topbar-cloud-mirror-btn.online:hover {
  background: rgba(16, 185, 129, 0.25);
}

.cloud-mirror-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease;
}

.cloud-mirror-dot.offline {
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
}

.cloud-mirror-dot.online {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: cloudPulseRadar 1.8s infinite;
}

@keyframes cloudPulseRadar {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Botón de Soporte en Topbar */
.topbar-support-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-support-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10B981;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* Redes Sociales Bloqueadas (Candado) */
.social-pill.locked {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 204, 41, 0.28);
  color: var(--color-text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.social-pill.locked:hover {
  background: rgba(255, 204, 41, 0.08);
  border-color: rgba(255, 204, 41, 0.7);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(255, 204, 41, 0.2);
}

.social-tag-lock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 204, 41, 0.15);
  color: #FFCC29;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 41, 0.35);
}

/* MODAL DE AJUSTES Y SUSCRIPCIÓN */
.modal-settings {
  max-width: 660px;
  width: 90%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.settings-body {
  overflow-y: auto;
  max-height: calc(88vh - 120px);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-subtitle {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-top: 2px;
}

.settings-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.settings-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.settings-card-title h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.settings-desc {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Tarjeta Destacada de Suscripción $590 */
.subscription-card {
  background: linear-gradient(135deg, rgba(255, 204, 41, 0.12), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(255, 204, 41, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.sub-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 204, 41, 0.2);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.sub-badge-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-badge-title h4 {
  font-size: 14px;
  font-weight: 800;
  color: #FFCC29;
}

.sub-badge-title p {
  font-size: 11px;
  color: var(--color-text-sub);
}

.sub-price-pill {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: #121214;
  border: 1px solid rgba(255, 204, 41, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
}

.sub-price-pill .currency {
  font-size: 14px;
  font-weight: 700;
  color: #FFCC29;
}

.sub-price-pill .amount {
  font-size: 22px;
  font-weight: 900;
  color: #FFCC29;
}

.sub-price-pill .cycle {
  font-size: 10px;
  color: var(--color-text-sub);
  margin-left: 2px;
}

.sub-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.sub-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.detail-value {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.detail-value.status-active {
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.detail-value.highlight-gold {
  color: #FFCC29;
  font-weight: 800;
}

.sub-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-renew-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #121214;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-renew-sub:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.sub-hint {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Formularios en Ajustes */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.form-row {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
}

/* Tarjeta WhatsApp */
.whatsapp-card {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
}

.whatsapp-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.switch-container {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #374151;
  transition: .3s;
  border-radius: 20px;
}

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

.switch-container input:checked + .switch-slider {
  background-color: #10B981;
}

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

.toggle-label {
  font-size: 12px;
  color: #FFFFFF;
  font-weight: 600;
}

.whatsapp-helper-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.helper-text {
  font-size: 11px;
  color: var(--color-text-sub);
}

.helper-text strong {
  color: #10B981;
  display: block;
  margin-bottom: 2px;
}

.helper-text code {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  color: #FFCC29;
}

.btn-test-whatsapp {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-test-whatsapp:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* MODAL DE RED SOCIAL BLOQUEADA */
.modal-locked-channel {
  max-width: 460px;
  width: 90%;
}

.text-center {
  text-align: center;
}

.justify-center {
  justify-content: center !important;
}

.locked-hero-icon {
  position: relative;
  display: inline-block;
  margin: 10px auto 14px;
}

.locked-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1F202C;
  border: 2px solid rgba(255, 204, 41, 0.4);
  font-size: 28px;
}

.locked-lock-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #121214;
  border: 1px solid #FFCC29;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.locked-headline {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.gold-text {
  color: #FFCC29;
}

.locked-intro {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.4;
  margin-bottom: 14px;
}

.locked-pricing-card {
  background: #121214;
  border: 1px solid rgba(255, 204, 41, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  margin-bottom: 16px;
}

.locked-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.price-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.price-value {
  font-size: 18px;
  font-weight: 900;
  color: #FFCC29;
}

.price-value small {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-sub);
}

.locked-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--color-text-sub);
}

.btn-unlock-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #121214;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-unlock-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.unlock-subtext {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* MODAL DE CENTRO DE SOPORTE */
.modal-support {
  max-width: 620px;
  width: 90%;
}

.support-intro-text {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 14px;
  line-height: 1.4;
}

.support-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.support-channel-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.support-channel-card.whatsapp-support {
  border-color: rgba(37, 211, 102, 0.35);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(0, 0, 0, 0.2));
}

.support-channel-card.email-support {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(0, 0, 0, 0.2));
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.channel-icon {
  font-size: 24px;
}

.channel-top h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.response-time {
  font-size: 10px;
  color: #10B981;
  font-weight: 600;
  display: block;
}

.channel-desc {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.35;
  margin-bottom: 10px;
}

.channel-contact-info {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.channel-contact-info strong {
  color: #FFFFFF;
  margin-left: 4px;
}

.btn-channel-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-wa-action {
  background: #25D366;
  color: #121214;
}

.btn-wa-action:hover {
  background: #1EBE5D;
}

.btn-email-action {
  background: #3B82F6;
  color: #FFFFFF;
}

.btn-email-action:hover {
  background: #2563EB;
}

.quick-support-box {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.quick-support-box label {
  display: block;
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
  font-weight: 600;
}

.support-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
  resize: none;
  font-family: inherit;
}

.support-textarea:focus {
  border-color: var(--color-primary);
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* ESTILOS V4: CARGA DE DIRECTIVAS Y GESTOR MULTI-ESCRITORIO PARA AGENCIAS    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.topbar-load-txt-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 204, 41, 0.12);
  border: 1px solid rgba(255, 204, 41, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  color: #FFCC29;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.topbar-load-txt-btn:hover {
  background: rgba(255, 204, 41, 0.22);
  border-color: #FFCC29;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(255, 204, 41, 0.25);
}

.desktop-switcher-wrap {
  position: relative;
}

.desktop-switcher-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #171822;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 20px;
  padding: 6px 14px;
  color: #60A5FA;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.desktop-switcher-pill:hover {
  background: #1f2130;
  border-color: #60A5FA;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.25);
}
.desktop-switcher-pill .arrow {
  font-size: 9px;
  margin-left: 2px;
}

.desktop-dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  width: 330px;
  background: #15161f;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 20px rgba(96, 165, 250, 0.15);
  z-index: 1000;
  overflow: hidden;
}

.desktop-dd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1b1c28;
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.desktop-dd-header .badge-pro {
  background: #FFCC29;
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.desktop-dd-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
}

.desktop-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.desktop-dd-item:hover {
  background: rgba(96, 165, 250, 0.12);
}
.desktop-dd-item.active {
  background: rgba(96, 165, 250, 0.18);
  border-left: 3px solid #60A5FA;
}
.desktop-dd-item-title {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.desktop-dd-item-sub {
  font-size: 10px;
  color: #9CA3AF;
}
.desktop-dd-page-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: monospace;
}

.desktop-dd-actions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #12131a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-dd-sub {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #20222f;
  border: 1px solid rgba(255,255,255,0.1);
  color: #E5E7EB;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-dd-sub:hover {
  background: #292c3d;
  color: #FFCC29;
  border-color: #FFCC29;
}

.btn-tool-import-txt {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 204, 41, 0.12);
  border: 1px solid rgba(255, 204, 41, 0.35);
  border-radius: 8px;
  padding: 6px 14px;
  color: #FFCC29;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-tool-import-txt:hover {
  background: rgba(255, 204, 41, 0.22);
  border-color: #FFCC29;
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* MODAL DE AYUDA — PLANIT PUBLISHER PRO V5                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.modal-help {
  max-width: 960px;
  width: 96%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal-help .modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  padding: 0;
  gap: 0;
}

/* Barra lateral de navegación del Help */
.help-sidebar {
  width: 190px;
  min-width: 190px;
  background: rgba(10, 10, 14, 0.6);
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.help-sidebar-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px 8px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}

.help-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text-sub);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
}

.help-nav-item:hover {
  background: rgba(255, 204, 41, 0.08);
  color: #FFCC29;
  border-color: rgba(255, 204, 41, 0.15);
}

.help-nav-item.active {
  background: rgba(255, 204, 41, 0.14);
  color: #FFCC29;
  border-color: rgba(255, 204, 41, 0.3);
  font-weight: 700;
}

.help-nav-item .nav-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* Contenido de cada sección de Ayuda */
.help-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.help-section {
  display: none;
}

.help-section.active {
  display: block;
}

.help-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 204, 41, 0.2);
}

.help-section-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.help-section-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.help-section-header p {
  font-size: 11.5px;
  color: var(--color-text-sub);
  line-height: 1.4;
}

/* Tarjetas de pasos / funciones */
.help-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.help-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}

.help-card:hover {
  border-color: rgba(255, 204, 41, 0.3);
}

.help-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFCC29;
  margin-bottom: 6px;
}

.help-card-title .hc-icon {
  font-size: 15px;
}

.help-card p {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* Lista de pasos numerados */
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.help-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 14px;
}

.help-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(255, 204, 41, 0.15);
  border: 1px solid rgba(255, 204, 41, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFCC29;
}

.help-step-body {
  flex: 1;
}

.help-step-body strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.help-step-body span {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.45;
}

/* Alertas de Ayuda */
.help-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  line-height: 1.5;
}

.help-alert.info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
}

.help-alert.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FDE68A;
}

.help-alert.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.help-alert-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tabla de módulos */
.help-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 11px;
}

.help-table th {
  text-align: left;
  padding: 8px 12px;
  background: rgba(255, 204, 41, 0.08);
  color: #FFCC29;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 204, 41, 0.2);
}

.help-table td {
  padding: 9px 12px;
  color: var(--color-text-sub);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
  line-height: 1.4;
}

.help-table tr:hover td {
  background: rgba(255,255,255,0.03);
  color: #fff;
}

.help-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.help-tag.new {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.help-tag.pro {
  background: rgba(255, 204, 41, 0.15);
  color: #FFCC29;
  border: 1px solid rgba(255, 204, 41, 0.3);
}

/* Separadores de subsección */
.help-subsection {
  margin-bottom: 18px;
}

.help-subsection h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-subsection h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-left: 8px;
}

/* Footer del modal de ayuda con soporte rápido */
.help-footer-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 204, 41, 0.07);
  border: 1px solid rgba(255, 204, 41, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 20px;
}

.help-footer-contact .hfc-icon {
  font-size: 28px;
}

.help-footer-contact p {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

.help-footer-contact strong {
  color: #FFCC29;
}

/* Scrollbar dentro del área de ayuda */
.help-content-area::-webkit-scrollbar,
.help-sidebar::-webkit-scrollbar {
  width: 4px;
}

.help-content-area::-webkit-scrollbar-thumb,
.help-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 204, 41, 0.3);
  border-radius: 4px;
}

