.nav-logo-wrap::before{content:'';position:absolute;inset:-3px;border-radius:50%;background:conic-gradient(#9147ff,#53fc18,#38bdf8,#ff0050,#f59e0b,#9147ff);animation:logo-hue 4s linear infinite;z-index:0}
/* ═══════════════════════════════════════════════
   COCOZI STREAMER DASHBOARD — Design System
   ═══════════════════════════════════════════════ */
:root {
  --purple: #9147ff;
  --purple-light: #bf94ff;
  --purple-dim: rgba(145,71,255,0.15);
  --cyan: #53fc18;
  --green: #22c55e;
  --red: #f87171;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --bg: #07070f;
  --bg2: #0d0d1a;
  --bg3: #111125;
  --text: #f0f0ff;
  --muted: rgba(240,240,255,0.5);
  --border: rgba(255,255,255,0.07);
}

::-webkit-scrollbar-thumb { background: rgba(145,71,255,0.3); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════ */
#loginScreen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, rgba(145,71,255,0.12) 0%, transparent 60%);
}
.login-box {
  background: var(--bg2); border: 1px solid rgba(145,71,255,0.25);
  border-radius: 24px; padding: 52px 44px; width: 100%; max-width: 500px;
  text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
.login-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.login-logo {
  font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 900;
  background: linear-gradient(90deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.btn-twitch-login {
  width: 100%; background: #9147ff; color: #fff;
  padding: 16px; border-radius: 14px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 6px 24px rgba(145,71,255,0.4);
}
.btn-twitch-login:hover { background: #7c33e8; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(145,71,255,0.5); }
.btn-twitch-login svg { width: 20px; height: 20px; fill: #fff; }
.btn-kick-login {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #53fc18; color: #0a0a0f; border: none; border-radius: 14px;
  padding: 14px 28px; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%;
  font-family: 'Plus Jakarta Sans','DM Sans',sans-serif; letter-spacing: -0.3px;
  transition: all 0.2s; box-shadow: 0 4px 24px rgba(83,252,24,0.25); margin-top: 10px;
}
.btn-kick-login:hover { background: #6aff2e; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(83,252,24,0.45); }
.btn-kick-login svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════
   MAIN DASHBOARD
   ═══════════════════════════════════════════════ */

.dash-logo {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 900;
  background: linear-gradient(90deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.dash-user-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(145,71,255,0.35);
}
.plan-badge.pro {
  background: linear-gradient(135deg, rgba(145,71,255,0.2), rgba(83,252,24,0.1));
  border: 1px solid rgba(145,71,255,0.4); color: var(--purple-light);
}
.plan-badge.basico {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
}

/* ═══════════════════════════════════════════════
   SECTION CARDS
   ═══════════════════════════════════════════════ */
.section-card:hover { border-color: rgba(145,71,255,0.2); }
.section-card::before {
  content: ''; position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgba(145,71,255,0.15); transition: background 0.3s, box-shadow 0.3s;
}
.section-card:hover::before {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(145,71,255,0.3);
}

/* ── Per-section accent colors ── */

#sectionRaid::before { background: rgba(236,72,153,0.3); }
#sectionRaid:hover::before { background: #ec4899; box-shadow: 0 0 8px rgba(236,72,153,0.4); }
#sectionRaid:hover { border-color: rgba(236,72,153,0.25); }

#sectionSubsAgr::before { background: rgba(168,85,247,0.3); }
#sectionSubsAgr:hover::before { background: #a855f7; box-shadow: 0 0 8px rgba(168,85,247,0.4); }
#sectionSubsAgr:hover { border-color: rgba(168,85,247,0.25); }

#sectionBitsAgr::before { background: rgba(99,102,241,0.3); }
#sectionBitsAgr:hover::before { background: #6366f1; box-shadow: 0 0 8px rgba(99,102,241,0.4); }
#sectionBitsAgr:hover { border-color: rgba(99,102,241,0.25); }

/* ── Ventana flotante ── */
.res-modal {
  background: linear-gradient(135deg, rgba(13,13,26,0.98), rgba(25,15,45,0.98));
  border: 1px solid rgba(145,71,255,0.3); border-radius: 22px;
  padding: 30px 32px 26px; width: 100%; max-width: 520px; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5); max-height: 92vh; overflow-y: auto;
  transform: scale(0.94) translateY(14px); transition: transform 0.3s ease;
}
.res-av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--purple), #5b0faa);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.res-texto:focus { border-color: rgba(145,71,255,0.5); }

@media (max-width: 768px) {
  .res-chip { padding: 7px 12px; font-size: 12px; gap: 6px; }
  .res-chip-largo { display: none; }
  .res-chip-corto { display: inline; }
  .res-modal { padding: 26px 20px 22px; border-radius: 18px; max-height: 88vh; }
  .res-titulo { font-size: 18px; }
  .res-estrellas span { font-size: 28px; }
  .res-pie .btn { width: 100%; justify-content: center; }
  .res-cuenta { margin-left: 0; }
  .res-fijo { display: none; }
}

/* ═══════════════════════════════════════════════
   COLLAPSIBLE SECTIONS
   ═══════════════════════════════════════════════ */
.section-card.collapsed:hover {
  background: var(--bg2);
  border-color: rgba(145,71,255,0.25);
}
/* Acordeón por voz: cabecera siempre visible, cuerpo plegable */
.fish-voz-chevron { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(var(--fish-col, 56,189,248), 0.5); background: rgba(var(--fish-col, 56,189,248), 0.14); color: rgb(var(--fish-col, 125,211,252)); font-size: 12px; font-weight: 700; cursor: pointer; user-select: none; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease; }
.fish-voz-chevron:hover { background: rgba(var(--fish-col, 56,189,248), 0.26); border-color: rgba(var(--fish-col, 56,189,248), 0.85); }
.fish-cv-caret { font-size: 10px; transition: transform 0.2s ease; display: inline-block; }
.fish-cv-close { display: none; }
.section-card.collapsible:not(.collapsed) {
  border-color: rgba(145,71,255,0.2);
  box-shadow: 0 4px 24px rgba(145,71,255,0.06);
}
#sectionRaid.collapsible:not(.collapsed) { border-color: rgba(236,72,153,0.25); box-shadow: 0 4px 24px rgba(236,72,153,0.08); }
#sectionSubsAgr.collapsible:not(.collapsed) { border-color: rgba(168,85,247,0.25); box-shadow: 0 4px 24px rgba(168,85,247,0.08); }
#sectionBitsAgr.collapsible:not(.collapsed) { border-color: rgba(99,102,241,0.25); box-shadow: 0 4px 24px rgba(99,102,241,0.08); }

/* v37: sectionSaludo — sin color especial en la card completa, solo el bloque de voz */

#sectionTTS::before { background: rgba(145,71,255,0.3); }
#sectionTTS:hover::before { background: #9147ff; box-shadow: 0 0 8px rgba(145,71,255,0.4); }
#sectionTTS:hover { border-color: rgba(145,71,255,0.25); }
#sectionTTS.collapsible:not(.collapsed) { border-color: rgba(145,71,255,0.25); box-shadow: 0 4px 24px rgba(145,71,255,0.08); }

#sectionVoice::before { background: rgba(236,72,153,0.3); }
#sectionVoice:hover::before { background: #ec4899; box-shadow: 0 0 8px rgba(236,72,153,0.4); }
#sectionVoice:hover { border-color: rgba(236,72,153,0.25); }
#sectionVoice.collapsible:not(.collapsed) { border-color: rgba(236,72,153,0.25); box-shadow: 0 4px 24px rgba(236,72,153,0.08); }

/* v30: Extras sections */
#sectionJuegos.collapsible:not(.collapsed) { border-color: rgba(251,146,60,0.25); box-shadow: 0 4px 24px rgba(251,146,60,0.08); }
#sectionCanalCommands::before { background: rgba(239,68,68,0.3); }
#sectionCanalCommands:hover::before { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
#sectionCanalCommands:hover { border-color: rgba(239,68,68,0.25); }
#sectionCanalCommands.collapsible:not(.collapsed) { border-color: rgba(239,68,68,0.25); box-shadow: 0 4px 24px rgba(239,68,68,0.08); }
#sectionViewers::before { background: rgba(16,185,129,0.3); }
#sectionViewers:hover::before { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.4); }
#sectionViewers:hover { border-color: rgba(16,185,129,0.25); }
#sectionViewers.collapsible:not(.collapsed) { border-color: rgba(16,185,129,0.25); box-shadow: 0 4px 24px rgba(16,185,129,0.08); }
#sectionRankings.collapsible:not(.collapsed) { border-color: rgba(168,85,247,0.25); box-shadow: 0 4px 24px rgba(168,85,247,0.08); }
#sectionAutoResp.collapsible:not(.collapsed) { border-color: rgba(251,146,60,0.25); box-shadow: 0 4px 24px rgba(251,146,60,0.08); }


.tts-copy-btn {
  background: rgba(145,71,255,0.12); border: 1px solid rgba(145,71,255,0.3);
  color: var(--purple-light); padding: 8px 16px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.tts-copy-btn:hover { background: rgba(145,71,255,0.22); }
.tts-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(145,71,255,0.1); border: 1px solid rgba(145,71,255,0.2);
  color: var(--purple-light); padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}

/* ═══════════════════════════════════════════════
   STYLE CUSTOMIZATION
   ═══════════════════════════════════════════════ */
.style-range-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--purple-light); cursor: pointer;
  border: 2px solid var(--bg2);
}
/* TTS overlay preview */
.tts-preview-tag {
  font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: rgba(145,71,255,0.15); color: #c4a0ff;
}

/* Header right: status | divider | chevron */

.section-card:hover .section-chevron {
  background: rgba(145,71,255,0.12); border-color: rgba(145,71,255,0.25);
  color: var(--purple-light);
}

/* ═══════════════════════════════════════════════
   SECTIONS GRID (two independent columns)
   ═══════════════════════════════════════════════ */
.pro-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, rgba(145,71,255,0.15), rgba(83,252,24,0.08));
  border: 1px solid rgba(145,71,255,0.3); color: var(--purple-light);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}

/* ═══════════════════════════════════════════════
   TOGGLES
   ═══════════════════════════════════════════════ */
.toggle-item:hover { border-color: rgba(145,71,255,0.15); }

/* ── Hints inline ── */
.hint-inline {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(145,71,255,0.06);
  border: 1px solid rgba(145,71,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(200,185,255,0.85);
  line-height: 1.5;
}
.hint-inline a { color: rgba(180,150,255,0.9); text-decoration: underline; cursor: pointer; }
.hint-inline strong { color: rgba(220,205,255,0.95); font-weight: 600; }

/* ═══════════════════════════════════════════════
   CONFIG / PERSONALIZATION FORMS
   ═══════════════════════════════════════════════ */

.form-label {
  display: block; font-size: 12px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; font-weight: 600;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(145,71,255,0.5); }
.form-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,240,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-select optgroup { background: var(--bg2); color: var(--purple-light); font-weight: 600; font-style: normal; }
.form-textarea { resize: vertical; min-height: 64px; line-height: 1.5; }

.btn {
  padding: 10px 22px; border-radius: 10px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), #5b0faa); color: #fff;
  box-shadow: 0 4px 16px rgba(145,71,255,0.3);
}
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border); }
.btn-green { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.btn-red { background: rgba(248,113,113,0.1); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.btn-yellow { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 10px; }

/* ── PRO LOCK OVERLAY ── */
.pro-lock-msg h4 { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }

/* ═══════════════════════════════════════════════
   SORTEO SECTION
   ═══════════════════════════════════════════════ */
.sorteo-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; margin-bottom: 14px;
}
.sorteo-status.abierto {
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
}
.sorteo-status.cerrado {
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
}
.sorteo-status.finalizado {
  background: rgba(145,71,255,0.08); border: 1px solid rgba(145,71,255,0.2);
}
.sorteo-status-icon { font-size: 22px; flex-shrink: 0; }
.sorteo-status-text { font-size: 14px; line-height: 1.5; }
.sorteo-status-text strong { font-weight: 700; }

.sorteo-winner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(145,71,255,0.1), rgba(83,252,24,0.05));
  border: 1px solid rgba(145,71,255,0.3); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 14px;
}
.sorteo-winner-icon { font-size: 28px; }
.sorteo-winner-name {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 18px; font-weight: 700;
  background: linear-gradient(90deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sorteo-winner-label { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

.sorteo-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sorteo-participantes {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 14px 16px; margin: 14px 0;
  max-height: 180px; overflow-y: auto;
}
.sorteo-participantes-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.sorteo-participantes-title {
  font-size: 11px; color: var(--muted); letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600;
}
.sorteo-participantes-count {
  font-size: 12px; font-weight: 700; color: var(--green);
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.2);
  padding: 2px 10px; border-radius: 20px;
}
.sorteo-participantes-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.sorteo-participante-chip {
  display: inline-flex; align-items: center;
  background: rgba(145,71,255,0.08); border: 1px solid rgba(145,71,255,0.15);
  color: var(--purple-light); font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
}
.sorteo-participantes-empty {
  font-size: 13px; color: var(--muted); text-align: center; padding: 8px;
}

/* ═══════════════════════════════════════════════
   LIST ITEMS (mensajes auto + comandos custom)
   ═══════════════════════════════════════════════ */
.list-item:hover { border-color: rgba(145,71,255,0.15); }
.list-item-num {
  font-size: 12px; color: var(--purple-light); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.list-item-remove {
  background: none; border: none; color: var(--red); font-size: 16px;
  cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.2s;
  opacity: 0.6;
}

.add-item-btn:hover { background: rgba(145,71,255,0.05); border-color: rgba(145,71,255,0.15); color: var(--text); }

/* ═══════════════════════════════════════════════
   MODE SELECTOR (manual / ia)
   ═══════════════════════════════════════════════ */
.mode-option {
  flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; cursor: pointer;
  transition: all 0.2s; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative;
  /* v69.3: si el texto no cabe, que baje de línea con gracia en vez de romper la fila.
     `min-width:0` evita que un hijo largo desborde el flex. */
  flex-wrap: wrap; row-gap: 2px; min-width: 0;
}
.mode-option:hover { border-color: rgba(145,71,255,0.2); }
.mode-option.active {
  background: var(--mode-active-bg, rgba(145,71,255,0.15)); border-color: var(--mode-active-border, rgba(145,71,255,0.55));
  box-shadow: 0 0 0 1px rgba(145,71,255,0.18) inset;
}
.mode-option.active .mode-option-icon { filter: drop-shadow(0 0 4px rgba(145,71,255,0.5)); }
.mode-option.active::after {
  content: '✓';
  position: absolute; top: 5px; right: 8px;
  font-size: 10px; font-weight: 800;
  color: var(--mode-active-color, rgba(145,71,255,0.9));
  line-height: 1;
}
.mode-option-icon { font-size: 18px; margin-bottom: 0; flex-shrink: 0; }
.mode-option-label { font-size: 14px; font-weight: 600; white-space: nowrap; }
.mode-option-desc { font-size: 12px; color: var(--muted); margin-top: 0; min-width: 0; }

/* ═══════════════════════════════════════════════
   MEMORY SECTION (read-only)
   ═══════════════════════════════════════════════ */
.memory-section-label { font-size: 11px; color: var(--purple-light); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 5px; }
.memory-section-text { font-size: 14px; color: rgba(240,240,255,0.7); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   COMMANDS REFERENCE
   ═══════════════════════════════════════════════ */
.cmd-table code {
  background: rgba(145,71,255,0.1); color: var(--purple-light);
  padding: 3px 8px; border-radius: 6px; font-size: 13px; font-family: monospace;
  word-break: break-all;
}

/* ═══════════════════════════════════════════════
   STATUS INFO
   ═══════════════════════════════════════════════ */
.info-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(145,71,255,0.04); border: 1px solid rgba(145,71,255,0.1);
  border-radius: 12px; padding: 12px 18px; margin-bottom: 16px;
  font-size: 14px; color: rgba(240,240,255,0.55); line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════════ */

.tab-btn:hover {
  color: var(--text); background: rgba(145,71,255,0.08);
  border-color: rgba(145,71,255,0.15);
}
.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(145,71,255,0.2), rgba(83,252,24,0.06));
  border-color: rgba(145,71,255,0.35);
  box-shadow: 0 0 12px rgba(145,71,255,0.15);
}

/* Tab badge (counter) */
.tab-badge {
  background: var(--purple); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Tab status dot */
.tab-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.tab-dot.on {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
}
.tab-dot.off {
  background: rgba(255,255,255,0.15);
}

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

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .dash-header { padding: 18px 20px; }
  .dash-content { padding: 16px 16px 48px; }
  .config-grid { grid-template-columns: 1fr; }
  .dash-user { display: none; }
  .logout-btn { padding: 8px 14px; font-size: 12px; }
  .login-box { padding: 40px 24px; }
  .mode-selector { flex-direction: column; }
  .sorteo-actions { flex-direction: column; }
  .sorteo-actions .btn { width: 100%; justify-content: center; }
  .config-grid-3 { grid-template-columns: 1fr !important; }
  .tab-bar { padding: 8px 12px; top: 63px; gap: 4px; }
  .tab-btn { font-size: 11px; padding: 10px 6px; gap: 4px; border-radius: 10px; }
  .tab-btn .tab-icon { font-size: 13px; }
  .tab-badge { font-size: 9px; min-width: 16px; height: 16px; }
  .tab-dot { width: 6px; height: 6px; }
  .sections-grid { flex-direction: column; }
}

/* ══ Cross-platform — "Cocozi también en otras plataformas" ══ */
.cross-plat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  color: var(--muted); transition: all 0.2s; text-decoration: none;
}
.cross-plat-icon svg { width: 19px; height: 19px; fill: currentColor; }

/* pills del tab Info */
.cross-plat-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  color: var(--muted); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.cross-plat-pill svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* header limpio — marca izquierda / sesión derecha */
.dash-cocozi-pill {
  font-size: 12px; color: var(--cyan); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(83,252,24,0.06); border: 1px solid rgba(83,252,24,0.15);
  padding: 3px 10px; border-radius: 8px; transition: all 0.2s; line-height: 1.4;
}
.dash-cocozi-pill:hover { background: rgba(83,252,24,0.12); border-color: rgba(83,252,24,0.3); }

/* (30/09/2026) Ranking: «✏️ Estás editando el estilo de» 🌐 Todos / 💎 Bits / 🎁 Subs / 💬 Chat */
.rk-edit { margin: 4px 0 8px; }
.rk-edit-titulo { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rk-edit-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rk-edit-chip {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--muted); transition: background .15s, color .15s, border-color .15s;
}
.rk-edit-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.rk-edit-chip.activo { color: var(--text); border-color: var(--purple); background: rgba(145,71,255,0.18); box-shadow: 0 0 0 1px rgba(145,71,255,0.35) inset; }
.rk-edit-marca { color: #f59e0b; font-size: 10px; vertical-align: 1px; }
.rk-edit-nota {
  font-size: 12px; line-height: 1.55; color: var(--muted); padding: 10px 12px; border-radius: 10px;
  background: rgba(145,71,255,0.05); border: 1px dashed rgba(145,71,255,0.25);
}
.rk-edit-nota b { color: var(--text); font-weight: 600; }
.rk-edit-info { font-size: 12px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.rk-edit-info b { color: var(--text); font-weight: 600; }
.rk-edit-info-cat {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px;
  background: rgba(145,71,255,0.08); border: 1px solid rgba(145,71,255,0.3); color: var(--text);
}
.rk-edit-info-cat span { flex: 1; min-width: 200px; }
.rk-edit-igualar {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: var(--text);
}
.rk-edit-igualar:hover { border-color: var(--purple); }
