/* ═══════════════════════════════════════════════════════════════════
   CSS COMÚN DE LOS 4 PANELES DEL STREAMER (Twitch, Kick, TikTok, YouTube)
   ═══════════════════════════════════════════════════════════════════
   Reglas que eran idénticas en los cuatro css/base.css y que se pueden cargar
   ANTES que ellos sin cambiar ningún estilo (fase 2 del Plan_Dashboard,
   analizar-css.js). Copia literal de las de Twitch, en su mismo orden.
   Se enlaza en el <head> justo antes de assets/<panel>/css/base.css.
   Cambiar algo aquí cambia los 4 paneles. Los colores de marca vienen de las
   variables de :root, que define cada panel en su base.css. */
.nav-logo-wrap{position:relative;width:36px;height:36px;flex-shrink:0}
.nav-logo-img{position:relative;width:100%;height:100%;border-radius:50%;z-index:1;display:block;object-fit:cover;background:#07070f}
.nav-logo-wrap.sm{width:28px;height:28px}
@keyframes logo-hue{0%{filter:hue-rotate(0deg)}100%{filter:hue-rotate(360deg)}}
.login-logo-inner{display:flex;align-items:center;justify-content:center;gap:10px}
.dash-logo-inner{display:flex;align-items:center;gap:10px}

/* ═══════════════════════════════════════════════
   COCOZI STREAMER DASHBOARD — Design System
   ═══════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; min-height: 100vh; overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════ */
.login-sub { font-size: 11px; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.login-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.login-error { color: var(--red); font-size: 13px; margin-top: 16px; min-height: 18px; line-height: 1.6; }
@keyframes fadeInDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════
   NO ACCESS SCREEN
   ═══════════════════════════════════════════════ */
#noAccessScreen {
  display: none; align-items: center; justify-content: center;
  min-height: 100vh; text-align: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(248,113,113,0.08) 0%, transparent 60%);
}
.no-access-box {
  background: var(--bg2); border: 1px solid rgba(248,113,113,0.2);
  border-radius: 24px; padding: 52px 44px; max-width: 440px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.no-access-icon { font-size: 56px; margin-bottom: 20px; }
.no-access-title { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.no-access-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }

/* ═══════════════════════════════════════════════
   MAIN DASHBOARD
   ═══════════════════════════════════════════════ */
#dashboard { display: none; }
.dash-header {
  padding: 24px 10%; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,15,0.92); backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 40; flex-wrap: wrap; gap: 12px;
}
.dash-header-left { display: flex; align-items: center; gap: 16px; }
.dash-header-right { display: flex; align-items: center; gap: 14px; }
.dash-user {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text); font-weight: 500;
}
.dash-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.plan-badge {
  padding: 5px 14px; border-radius: 20px; font-size: 11px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.logout-btn {
  background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2);
  color: var(--red); padding: 10px 20px; border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; transition: background 0.2s;
}
.logout-btn:hover { background: rgba(248,113,113,0.16); }
.dash-content { max-width: 100%; margin: 0 auto; padding: 20px 10% 60px; }

/* ═══════════════════════════════════════════════
   SECTION CARDS
   ═══════════════════════════════════════════════ */
.section-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; margin-bottom: 10px; position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: visible;
}

/* ── Per-section accent colors ── */
#sectionIdioma::before { background: rgba(29,158,117,0.3); }
#sectionIdioma:hover::before { background: #1d9e75; box-shadow: 0 0 8px rgba(29,158,117,0.4); }
#sectionIdioma:hover { border-color: rgba(29,158,117,0.25); }
#sectionPersonalidad::before { background: rgba(56,189,248,0.3); }
#sectionPersonalidad:hover::before { background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,0.4); }
#sectionPersonalidad:hover { border-color: rgba(56,189,248,0.25); }
#sectionSaludo::before { background: rgba(251,146,60,0.3); }
#sectionSaludo:hover::before { background: #fb923c; box-shadow: 0 0 8px rgba(251,146,60,0.4); }
#sectionSaludo:hover { border-color: rgba(251,146,60,0.25); }
#sectionSorteo::before { background: rgba(245,158,11,0.3); }
#sectionSorteo:hover::before { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.4); }
#sectionSorteo:hover { border-color: rgba(245,158,11,0.25); }
#sectionMensajesAuto::before { background: rgba(244,63,94,0.3); }
#sectionMensajesAuto:hover::before { background: #f43f5e; box-shadow: 0 0 8px rgba(244,63,94,0.4); }
#sectionMensajesAuto:hover { border-color: rgba(244,63,94,0.25); }
#sectionBienvenida::before { background: rgba(34,197,94,0.3); }
#sectionBienvenida:hover::before { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
#sectionBienvenida:hover { border-color: rgba(34,197,94,0.25); }
#sectionComandos::before { background: rgba(14,165,233,0.3); }
#sectionComandos:hover::before { background: #0ea5e9; box-shadow: 0 0 8px rgba(14,165,233,0.4); }
#sectionComandos:hover { border-color: rgba(14,165,233,0.25); }
.section-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
.section-card-title {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-card-title .icon { font-size: 22px; }

/* ═══════════════════════════════════════════════
   RESEÑA DEL STREAMER  →  cocozi.app
   Chip en la cabecera + ventana flotante
   ═══════════════════════════════════════════════ */
.res-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; cursor: pointer; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.res-chip:hover { border-color: rgba(245,158,11,0.45); color: var(--text); background: rgba(245,158,11,0.07); }
.res-chip .est { font-size: 14px; letter-spacing: 1.5px; color: var(--yellow); line-height: 1; }
.res-chip .est i { font-style: normal; color: rgba(255,255,255,0.18); }
.res-chip.puesta { border-color: rgba(245,158,11,0.3); cursor: default; }
.res-chip.puesta:hover { background: var(--bg3); }
.res-chip-corto { display: none; }

/* ── Ventana flotante ── */
.res-fondo {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.res-fondo.visible { opacity: 1; visibility: visible; }
.res-fondo.visible .res-modal { transform: scale(1) translateY(0); }
.res-cerrar {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 9px; line-height: 1;
  transition: color 0.2s;
}
.res-cerrar:hover { color: #fff; }
.res-titulo {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 20px; font-weight: 800;
  margin-bottom: 7px; display: flex; align-items: center; gap: 9px;
}
.res-intro { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.res-yo {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 18px;
}
.res-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-quien { min-width: 0; }
.res-quien b { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.res-quien span { font-size: 12px; color: var(--muted); }
.res-fijo {
  margin-left: auto; font-size: 11px; color: var(--muted); flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.res-estrellas { display: flex; gap: 8px; margin-bottom: 16px; }
.res-estrellas span {
  font-size: 32px; line-height: 1; cursor: pointer; color: rgba(255,255,255,0.16);
  transition: color 0.15s, transform 0.15s;
}
.res-estrellas span:hover, .res-estrellas span.on { color: var(--yellow); transform: scale(1.12); }
.res-texto {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 15px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14.5px; line-height: 1.6;
  min-height: 100px; resize: vertical; outline: none; transition: border-color 0.2s;
}
.res-texto::placeholder { color: rgba(240,240,255,0.3); }
.res-pie { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.res-cuenta { font-size: 12px; color: var(--muted); margin-left: auto; }
.res-aviso { font-size: 13px; margin-top: 12px; line-height: 1.6; }
.res-aviso.mal { color: var(--red); }
.res-aviso.bien { color: var(--green); }
.res-gracias { text-align: center; padding: 12px 0 4px; }
.res-gracias .ico { font-size: 40px; margin-bottom: 12px; }
.res-gracias b { display: block; font-family: 'Plus Jakarta Sans','DM Sans',sans-serif; font-size: 19px; margin-bottom: 9px; }
.res-gracias p { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 44ch; margin: 0 auto; }
.res-gracias .mis-estrellas { font-size: 26px; color: var(--yellow); letter-spacing: 3px; margin-bottom: 14px; }
.res-gracias p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.res-gracias p a:hover { color: var(--yellow); }
.res-nota {
  background: rgba(245,158,11,0.09); border: 1px solid rgba(245,158,11,0.28);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 18px;
  font-size: 13px; color: var(--text); line-height: 1.55; text-align: left;
}
.res-otra {
  margin-top: 18px; background: none; border: none; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: 12px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s;
}
.res-otra:hover { color: var(--text); }

/* ═══════════════════════════════════════════════
   COLLAPSIBLE SECTIONS
   ═══════════════════════════════════════════════ */
.section-card.collapsible {
  padding: 20px 28px;
}
.section-card.collapsible .section-card-header {
  cursor: pointer; user-select: none; margin-bottom: 0;
}
.section-card.collapsible:not(.collapsed) .section-card-header {
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-card.collapsed { background: rgba(13,13,26,0.6); }
.section-card-body {
  transition: max-height 0.35s ease, opacity 0.25s ease;
  overflow: hidden;
}
.section-card.collapsed .section-card-body {
  max-height: 0; opacity: 0; pointer-events: none;
}
.section-card.collapsible:not(.collapsed) .section-card-body {
  max-height: 5000px; opacity: 1;
}

/* 🐟 Fish: la sección puede crecer bastante (hasta 15 voces). Más altura al expandirse para
   que el botón "Guardar" NUNCA se recorte (overflow:hidden + max-height base clipaba el fondo
   a partir de ~10 voces). Aislado a #sectionFish. */
#sectionFish.collapsible:not(.collapsed) .section-card-body { max-height: 24000px; }

/* Acordeón por voz: cabecera siempre visible, cuerpo plegable */
.fish-voz-head { cursor: pointer; }
.fish-voz-head input, .fish-voz-head .toggle-switch, .fish-voz-head button { cursor: auto; }
.fish-voz-body { display: flex; flex-direction: column; gap: 9px; }
.fish-voz-card.fish-collapsed .fish-voz-body { display: none; }
.fish-voz-card:not(.fish-collapsed) .fish-cv-caret { transform: rotate(180deg); }
.fish-voz-card:not(.fish-collapsed) .fish-cv-open { display: none; }
.fish-voz-card:not(.fish-collapsed) .fish-cv-close { display: inline; }
.fish-voz-card.fish-inactiva { opacity: 0.62; }
#sectionIdioma.collapsible:not(.collapsed) { border-color: rgba(29,158,117,0.25); box-shadow: 0 4px 24px rgba(29,158,117,0.08); }
#sectionPersonalidad.collapsible:not(.collapsed) { border-color: rgba(56,189,248,0.25); box-shadow: 0 4px 24px rgba(56,189,248,0.08); }
#sectionSaludo.collapsible:not(.collapsed) { border-color: rgba(251,146,60,0.25); box-shadow: 0 4px 24px rgba(251,146,60,0.08); }
#sectionSorteo.collapsible:not(.collapsed) { border-color: rgba(245,158,11,0.25); box-shadow: 0 4px 24px rgba(245,158,11,0.08); }
#sectionMensajesAuto.collapsible:not(.collapsed) { border-color: rgba(244,63,94,0.25); box-shadow: 0 4px 24px rgba(244,63,94,0.08); }
#sectionBienvenida.collapsible:not(.collapsed) { border-color: rgba(34,197,94,0.25); box-shadow: 0 4px 24px rgba(34,197,94,0.08); }
#sectionComandos.collapsible:not(.collapsed) { border-color: rgba(14,165,233,0.25); box-shadow: 0 4px 24px rgba(14,165,233,0.08); }
/* v30: Extras sections */
#sectionTimer.collapsible:not(.collapsed) { border-color: rgba(245,158,11,0.25); box-shadow: 0 4px 24px rgba(245,158,11,0.08); }
#sectionAlertas.collapsible:not(.collapsed) { border-color: rgba(244,63,94,0.25); box-shadow: 0 4px 24px rgba(244,63,94,0.08); }
#sectionChatOverlay.collapsible:not(.collapsed) { border-color: rgba(56,189,248,0.25); box-shadow: 0 4px 24px rgba(56,189,248,0.08); }
#sectionMetas.collapsible:not(.collapsed) { border-color: rgba(34,197,94,0.25); box-shadow: 0 4px 24px rgba(34,197,94,0.08); }
#sectionCola::before { background: rgba(56,189,248,0.3); }
#sectionCola:hover::before { background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,0.4); }
#sectionCola:hover { border-color: rgba(56,189,248,0.25); }
#sectionCola.collapsible:not(.collapsed) { border-color: rgba(56,189,248,0.25); box-shadow: 0 4px 24px rgba(56,189,248,0.08); }
#sectionContadores::before { background: rgba(251,191,36,0.3); }
#sectionContadores:hover::before { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.4); }
#sectionContadores:hover { border-color: rgba(251,191,36,0.25); }
#sectionContadores.collapsible:not(.collapsed) { border-color: rgba(251,191,36,0.25); box-shadow: 0 4px 24px rgba(251,191,36,0.08); }

.tts-url-box {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-family: monospace; font-size: 12px;
  color: var(--muted); word-break: break-all; line-height: 1.6; margin-bottom: 12px;
}
.tts-regen-btn {
  background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2);
  color: var(--red); padding: 8px 16px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.tts-regen-btn:hover { background: rgba(248,113,113,0.16); }
.tts-chip .chip-remove {
  background: none; border: none; color: var(--red); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px;
}

/* ═══════════════════════════════════════════════
   STYLE CUSTOMIZATION
   ═══════════════════════════════════════════════ */
.style-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}
.style-section-title {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 16px;
}
.color-field {
  display: flex; align-items: center; gap: 10px;
}
.color-field input[type="color"] {
  width: 36px; height: 36px; border: 2px solid var(--border);
  border-radius: 8px; cursor: pointer; background: transparent;
  padding: 2px; flex-shrink: 0;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }
.color-field label {
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.style-range-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.style-range-row input[type="range"] {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.08); border-radius: 4px; outline: none;
}
.style-range-val {
  font-size: 12px; color: var(--muted); min-width: 36px; text-align: right; font-family: monospace;
}

/* TTS overlay preview */
.tts-preview-box {
  border-radius: 14px; padding: 0; overflow: hidden;
  margin-top: 12px; margin-bottom: 8px;
  max-width: 400px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
.tts-preview-accent { height: 3px; }
.tts-preview-inner { padding: 12px 18px 10px; }
.tts-preview-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tts-preview-user { font-size: 12px; font-weight: 700; }
.tts-preview-waves { display: flex; gap: 2px; margin-left: auto; }
.tts-preview-waves span { width: 3px; border-radius: 2px; display: inline-block; }
.tts-preview-text { font-size: 13px; line-height: 1.5; font-weight: 500; }
.tts-preview-progress { height: 2px; margin-top: 8px; border-radius: 2px; width: 60%; }

/* Subtitle preview */
.sub-preview-box {
  display: inline-block; padding: 10px 24px; border-radius: 10px;
  font-weight: 600; line-height: 1.4; letter-spacing: 0.3px;
  margin-top: 12px; margin-bottom: 8px;
  max-width: 100%; word-break: break-word;
}

/* Header right: status | divider | chevron */
.section-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  transition: opacity 0.25s;
}
.section-status.active {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: var(--green);
}
.section-status.inactive {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); color: var(--muted);
}
.section-card:not(.collapsed) .section-status { opacity: 0.3; }
.section-divider {
  width: 1px; height: 20px; background: var(--border); margin: 0 14px;
}
.section-chevron {
  font-size: 10px; color: var(--muted); transition: all 0.3s ease;
  display: inline-flex;
  width: 28px; height: 28px; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.section-card.collapsed .section-chevron { transform: rotate(0deg); }
.section-card:not(.collapsed) .section-chevron { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════
   SECTIONS GRID (two independent columns)
   ═══════════════════════════════════════════════ */
.sections-grid {
  display: flex; gap: 20px;
}
.sections-col {
  flex: 1; display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.sections-grid .section-card {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   TOGGLES
   ═══════════════════════════════════════════════ */
.toggle-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 16px 20px; transition: border-color 0.2s;
}
.toggle-info { display: flex; flex-direction: column; gap: 2px; }
.toggle-label { font-size: 15px; font-weight: 600; }
.toggle-desc { font-size: 13px; color: var(--muted); }

/* ── Hints inline ── */
.hint-inline .hint-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; }

/* Toggle switch */
.toggle-switch {
  position: relative; width: 56px; height: 30px; flex-shrink: 0; cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: rgba(255,255,255,0.12);
  border-radius: 30px; transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.15);
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 22px; height: 22px; background: rgba(255,255,255,0.5);
  border-radius: 50%; transition: all 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: rgba(34,197,94,0.35); border-color: rgba(34,197,94,0.5);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px); background: var(--green);
  box-shadow: 0 0 10px rgba(34,197,94,0.6);
}

/* ═══════════════════════════════════════════════
   CONFIG / PERSONALIZATION FORMS
   ═══════════════════════════════════════════════ */
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.sections-grid .config-grid { grid-template-columns: 1fr; }
.form-group { margin-bottom: 14px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(240,240,255,0.3); }
.form-select option { background: var(--bg2); color: var(--text); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-charcount { font-size: 12px; color: var(--muted); text-align: right; margin-top: 3px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-green:hover { background: rgba(34,197,94,0.22); }
.btn-red:hover { background: rgba(248,113,113,0.2); }
.btn-yellow:hover { background: rgba(245,158,11,0.22); }
.btn-wa {
  background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.3);
  color: #25D366; padding: 10px 22px; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-wa:hover { background: rgba(37,211,102,0.22); }

/* ── PRO LOCK OVERLAY ── */
.pro-locked { position: relative; }
.pro-locked::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px;
  background: rgba(7,7,15,0.7); backdrop-filter: blur(3px);
  z-index: 5;
}
.pro-lock-msg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 6; text-align: center; padding: 24px;
}
.pro-lock-msg .lock-icon { font-size: 36px; margin-bottom: 12px; }
.pro-lock-msg p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════
   LIST ITEMS (mensajes auto + comandos custom)
   ═══════════════════════════════════════════════ */
.list-item {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 8px;
  transition: border-color 0.2s;
}
.list-item-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.list-item-remove:hover { background: rgba(248,113,113,0.15); opacity: 1; }
.add-item-btn {
  width: 100%; background: rgba(255,255,255,0.02); border: 2px dashed rgba(255,255,255,0.08);
  border-radius: 12px; padding: 12px; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}

/* ═══════════════════════════════════════════════
   MODE SELECTOR (manual / ia)
   ═══════════════════════════════════════════════ */
.mode-selector {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.mode-option.active .mode-option-label { color: var(--mode-active-color, rgba(175,110,255,0.95)); }

/* ═══════════════════════════════════════════════
   MEMORY SECTION (read-only)
   ═══════════════════════════════════════════════ */
.memory-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px; padding: 20px; margin-bottom: 12px;
}
.memory-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.memory-date { font-size: 13px; color: var(--muted); }
.memory-section { margin-bottom: 10px; }

/* ═══════════════════════════════════════════════
   COMMANDS REFERENCE
   ═══════════════════════════════════════════════ */
.cmd-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.cmd-table th {
  text-align: left; padding: 10px 12px; font-size: 11px; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015);
}
.cmd-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.cmd-table tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 24px;
  font-size: 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transform: translateY(120%); opacity: 0; visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s, visibility 0.35s;
}
.toast.show { transform: translateY(0); opacity: 1; visibility: visible; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }

/* ═══════════════════════════════════════════════
   STATUS INFO
   ═══════════════════════════════════════════════ */
.info-banner .info-icon { font-size: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════════ */
.tab-bar {
  display: flex; gap: 6px; padding: 10px 10%;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,15,0.6); backdrop-filter: blur(12px);
  position: sticky; top: 73px; z-index: 35;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--muted); font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; padding: 12px 12px;
  cursor: pointer; transition: all 0.25s; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; position: relative;
}
.tab-btn .tab-icon { font-size: 16px; }

/* Tab badge (counter) */
.tab-btn.active .tab-badge {
  background: rgba(255,255,255,0.2); color: #fff;
}

/* Prevenir fondo blanco en emojis */
[id$="PreviewBox"] img { background: transparent; }

/* Tab panel fade animation */
.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.3s ease-out;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══ Cross-platform — "Cocozi también en otras plataformas" ══ */
.cross-plat { margin-top: 22px; text-align: center; }
.cross-plat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.cross-plat-icons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cross-plat-icon.sm { width: 32px; height: 32px; border-radius: 9px; }
.cross-plat-icon.sm svg { width: 15px; height: 15px; }
.cross-plat-icon:hover { transform: translateY(-2px); }
.cross-plat-icon[data-plat="twitch"]:hover  { color:#bf94ff; background:rgba(145,71,255,0.12); border-color:rgba(145,71,255,0.4); box-shadow:0 4px 16px rgba(145,71,255,0.25); }
.cross-plat-icon[data-plat="kick"]:hover    { color:#53fc18; background:rgba(83,252,24,0.10); border-color:rgba(83,252,24,0.4); box-shadow:0 4px 16px rgba(83,252,24,0.22); }
.cross-plat-icon[data-plat="youtube"]:hover { color:#ff5555; background:rgba(255,0,0,0.10); border-color:rgba(255,0,0,0.38); box-shadow:0 4px 16px rgba(255,0,0,0.22); }
.cross-plat-icon[data-plat="tiktok"]:hover  { color:#fe4d6d; background:rgba(254,44,85,0.10); border-color:rgba(254,44,85,0.4); box-shadow:0 4px 16px rgba(254,44,85,0.22); }

/* header compacto */
.cross-plat-header { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
@media (min-width: 1200px) {
  .cross-plat-header { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
}
.cross-plat-header-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase; }

/* pills del tab Info */
.cross-plat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.cross-plat-pill:hover { transform: translateY(-1px); }
.cross-plat-pill[data-plat="twitch"]:hover  { color:#bf94ff; background:rgba(145,71,255,0.10); border-color:rgba(145,71,255,0.35); }
.cross-plat-pill[data-plat="kick"]:hover    { color:#53fc18; background:rgba(83,252,24,0.08); border-color:rgba(83,252,24,0.35); }
.cross-plat-pill[data-plat="youtube"]:hover { color:#ff5555; background:rgba(255,0,0,0.08); border-color:rgba(255,0,0,0.32); }
.cross-plat-pill[data-plat="tiktok"]:hover  { color:#fe4d6d; background:rgba(254,44,85,0.08); border-color:rgba(254,44,85,0.35); }

/* header limpio — marca izquierda / sesión derecha */
.dash-logo-col { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.dash-user-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dash-user-meta .plan-badge { padding: 3px 10px; font-size: 10px; }

/* (02/10/2026) «🔊 Ir a TTS →»: resalta un momento la fila «TTS activo» al llegar (irATTS). */
.cz-ir-resalte { animation: czIrResalte .9s ease-in-out 3; border-radius: 10px; }
@keyframes czIrResalte {
  0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,.55); }
  50%     { box-shadow: 0 0 0 4px rgba(34,197,94,.95), 0 0 18px rgba(34,197,94,.35); }
}
