@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── Tokens Enterprise BROLY 2.0 ────────────────────── */
:root {
  --bg-base:     #07090e;
  --bg-surface:  #0c101c;
  --bg-card:     #111728;
  --bg-card-glass: rgba(17, 23, 40, 0.75);
  --bg-hover:    rgba(255, 255, 255, 0.05);
  --bg-active:   rgba(254, 44, 85, 0.12);

  /* Brand Signature TikTok Live + Enterprise */
  --brand:       #fe2c55;
  --brand-glow:  rgba(254, 44, 85, 0.32);
  --brand-light: #ff6082;
  --brand-dim:   rgba(254, 44, 85, 0.16);
  --brand-gradient: linear-gradient(135deg, #fe2c55 0%, #ff0050 45%, #7928ca 100%);
  --brand-gradient-alt: linear-gradient(135deg, #25f4ee 0%, #00d4ff 50%, #3b82f6 100%);

  --accent-cyan:  #25f4ee;
  --accent-blue:  #00d4ff;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-gold:  #fbbf24;
  --accent-red:   #fe2c55;
  --accent-purple:#8b5cf6;

  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-link:      #25f4ee;

  --border:     rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(254, 44, 85, 0.45);

  --sidebar-w: 230px;
  --topbar-h:  60px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  --shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  --shadow-brand: 0 0 28px rgba(254,44,85,.28);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45);

  --transition: .18s cubic-bezier(.16, 1, .3, 1);
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; color-scheme: dark; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: -150px; left: -100px;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(37, 244, 238, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -150px; right: -100px;
  width: 750px; height: 750px;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--text-link); text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Layout ─────────────────────────────────────────── */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-w));
  min-width: 0;
}

/* ─── Logo ───────────────────────────────────────────── */
.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-cyan) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: white;
  box-shadow: 0 0 16px var(--brand-glow);
  flex-shrink: 0;
}
.logo-text { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.logo-sub  { font-size: 10px; color: var(--text-muted); font-weight: 400; }

/* ─── Nav ────────────────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  padding: 12px 10px 90px;
  overflow-y: auto;
}
.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 8px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  margin-bottom: 1px;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--brand-glow);
  color: var(--brand-light);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--brand);
  border-radius: 0 4px 4px 0;
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.nav-badge.green { background: var(--accent-green); color: #000; }
.nav-badge.amber { background: var(--accent-amber); color: #000; }

/* ─── Sidebar Footer ─────────────────────────────────── */
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  transition: background var(--transition);
}
.user-card:hover { background: var(--bg-hover); }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10.5px; color: var(--text-muted); }

/* ─── Topbar ─────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 16px; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* ─── Main Content ───────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 24px 32px 60px;
  animation: fadeIn .2s ease;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 14px; font-weight: 600; }
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── Grid Layouts ───────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; }

/* ─── Stats KPI ──────────────────────────────────────── */
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition);
}
.kpi:hover { border-color: var(--border-mid); }
.kpi-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { font-size: 28px; font-weight: 800; margin: 6px 0 4px; line-height: 1; }
.kpi-delta { font-size: 12px; color: var(--text-secondary); }
.kpi-delta.up { color: var(--accent-green); }
.kpi-delta.down { color: var(--accent-red); }
.kpi-icon { font-size: 22px; margin-bottom: 8px; }

/* ─── Buttons (Ingeniería Inversa Exacta NuvoCheck) ────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.btn:hover {
  filter: brightness(1.08);
}
.btn[disabled], .btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}

/* Primary (NuvoCheck / Broly Brand Accent) */
.btn.primary, .btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: 0 0 14px var(--brand-glow);
}
.btn.primary:hover, .btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  box-shadow: 0 0 20px var(--brand-glow);
}

/* Secondary (Card / Surface with solid border) */
.btn.secondary, .btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
}
.btn.secondary:hover, .btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

/* Ghost with SOLID contour and background (Never bare text) */
.btn.ghost, .btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn.ghost:hover, .btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
  color: #fff;
}

/* Danger */
.btn.danger, .btn-danger {
  background: var(--bg-card);
  color: var(--accent-red);
  border: 1px solid rgba(255,77,109,0.35);
}
.btn.danger:hover, .btn-danger:hover {
  background: rgba(255,77,109,0.14);
  border-color: var(--accent-red);
}
.btn.danger.solid, .btn-danger.solid {
  background: var(--accent-red);
  color: #fff;
  border: 1px solid var(--accent-red);
}

/* Sizes */
.btn.sm, .btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
}
.btn.lg, .btn-lg {
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 8px;
}
.btn.btn-icon, .btn-icon {
  padding: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  color: var(--text-primary);
}
.btn.btn-icon:hover, .btn-icon:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: '';
  width: 13px; height: 13px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Backstage Connection Banner (NuvoCheck .ct-conex) ─── */
.ct-conex {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0 18px;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ct-conex.ok {
  border-color: rgba(0,229,150,0.35);
  background: rgba(0,229,150,0.06);
}
.ct-conex.mal {
  border-color: rgba(255,184,63,0.38);
  background: rgba(255,184,63,0.06);
}
.ct-conex .txt {
  flex: 1;
  min-width: 170px;
}
.ct-conex .txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.ct-conex .txt span {
  font-size: 12px;
  color: var(--text-muted);
}
.ct-conex .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media(max-width:640px) {
  .ct-conex .actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ─── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13.5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--accent-red); }
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 11.5px; color: var(--accent-red); margin-top: 5px; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── Tables ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  background: var(--bg-surface);
  position: sticky; top: 0;
}
tr:hover td { background: var(--bg-hover); }
td:last-child, th:last-child { text-align: right; }

/* ─── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-green  { background: rgba(0,229,150,.12); color: var(--accent-green); }
.badge-red    { background: rgba(255,77,109,.12); color: var(--accent-red); }
.badge-amber  { background: rgba(255,184,63,.12); color: var(--accent-amber); }
.badge-blue   { background: rgba(0,212,255,.12); color: var(--accent-cyan); }
.badge-purple { background: rgba(108,99,255,.15); color: var(--brand-light); }
.badge-gray   { background: rgba(139,144,160,.12); color: var(--text-secondary); }

/* ─── Ligas ──────────────────────────────────────────── */
.liga-tier {
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
}
.liga-B { background: rgba(255,184,63,.12); color: var(--accent-amber); }
.liga-C { background: rgba(0,212,255,.12); color: var(--accent-cyan); }
.liga-D { background: rgba(108,99,255,.15); color: var(--brand-light); }

.creator-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.creator-row:hover { background: var(--bg-hover); }
.creator-rank {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  width: 28px; text-align: center; flex-shrink: 0;
}
.creator-rank.top { color: var(--accent-amber); }
.creator-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dim), var(--accent-purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: white; flex-shrink: 0;
}
.creator-info { flex: 1; min-width: 0; }
.creator-handle {
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.creator-handle a { color: var(--text-primary); }
.creator-handle a:hover { color: var(--brand-light); }
.creator-meta { font-size: 11.5px; color: var(--text-muted); }
.creator-diamonds {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700;
  color: var(--accent-cyan); flex-shrink: 0;
}
.creator-new-badge {
  background: var(--accent-green); color: #000;
  font-size: 9px; font-weight: 800;
  padding: 1px 5px; border-radius: 3px;
  vertical-align: middle; margin-left: 4px;
}

/* ─── Search / Jobs ──────────────────────────────────── */
.handle-area {
  width: 100%; height: 160px;
  background: var(--bg-base);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 12.5px;
  resize: vertical;
  transition: border-color var(--transition);
}
.handle-area:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.handle-count { font-size: 12px; color: var(--text-muted); }

.job-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-card);
  transition: border-color var(--transition);
}
.job-item:hover { border-color: var(--border-mid); }
.job-header { display: flex; align-items: center; gap: 12px; }
.job-label { font-weight: 600; flex: 1; }
.job-progress {
  height: 4px; background: var(--border); border-radius: 4px;
  margin-top: 10px; overflow: hidden;
}
.job-progress-bar {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent-cyan));
  transition: width .5s ease;
}

/* ─── Provider Banner ────────────────────────────────── */
.provider-banner {
  background: linear-gradient(135deg, rgba(108,99,255,.08), rgba(0,212,255,.05));
  border: 1px solid var(--brand-dim);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.provider-banner h3 { font-size: 14px; color: var(--brand-light); margin-bottom: 6px; }
.provider-banner p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }
.provider-banner code {
  background: var(--bg-base); padding: 1px 6px;
  border-radius: 3px; font-family: var(--mono); font-size: 11.5px;
  color: var(--accent-cyan);
}

/* ─── Tabs & Button Pills (NuvoCheck L619–L801) ────────── */
.tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.tabs button {
  background: var(--bg-card, #141419);
  border: 1px solid var(--border-mid, #282833);
  border-radius: 99px;
  padding: 8px 16px;
  color: var(--text-secondary, #8B909C);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.tabs button:hover {
  color: var(--text-primary, #F2F3F6);
  background: var(--bg-hover, #1B1B22);
  border-color: rgba(255, 255, 255, 0.2);
}
.tabs button.on, .tabs button.active {
  background: var(--accent-red, #FE2C55) !important;
  border-color: var(--accent-red, #FE2C55) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(254, 44, 85, 0.35);
}

.tab {
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all var(--transition); margin-bottom: -1px;
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--brand-light); border-bottom-color: var(--brand); }

/* NuvoCheck .tk-zona, .tk-filtro, .tk-rot */
.tk-rot {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-secondary, #8B909C);
  margin: 0 0 8px;
}
.tk-zona {
  background: var(--bg-card, #141419);
  border: 1px solid var(--border-mid, #282833);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.tk-zona .tabs { margin-bottom: 0; }
.tk-zona .tabs button.on {
  background: #7C3AED !important;
  border-color: #7C3AED !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

.tk-filtro {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-mid, #282833);
}
.tk-filtro .tabs { margin-bottom: 0; }
.tk-filtro .tabs button.on {
  background: #F2F3F6 !important;
  border-color: #F2F3F6 !important;
  color: #0A0A0E !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.tk-res {
  background: var(--bg-card, #141419);
  border: 1px solid var(--border-mid, #282833);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.tk-abajo { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.tk-l { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-secondary, #8B909C); }
.tk-v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tk-nuevos .tk-v { color: #2DD4CF; }

.tk-hc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tk-av-box {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.tk-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-hover, #1B1B22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary, #8B909C);
  border: 1px solid var(--border-mid, #282833);
}
.tk-av0 {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.25), rgba(45, 212, 207, 0.25));
  color: #fff;
  border-color: rgba(254, 44, 85, 0.4);
}

/* ─── Contactar Resumen Stats (.stat de NuvoCheck L591-L605) ─ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 14px; }
.stats.stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: var(--bg-card, #141419);
  border: 1px solid var(--border-mid, #282833);
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color .2s ease, background .2s ease;
}
.stat .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
}
.stat .ico svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block;
}
.stat .n {
  font-family: var(--mono, monospace);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text-primary, #F2F3F6);
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary, #8B909C);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 3px;
}
.i-han { background: rgba(0, 212, 255, 0.12); color: #00D4FF; }
.i-col { background: rgba(254, 44, 85, 0.12); color: #FE2C55; }
.i-dur { background: rgba(255, 184, 63, 0.12); color: #FFB83F; }

/* ─── Contactar Creadores (NuvoCheck L1019–L1085) ──────── */
.ct-conex {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-mid, #282833);
  background: var(--bg-card, #141419);
  margin-bottom: 16px;
}
.ct-conex.mal {
  border-color: rgba(254, 44, 85, 0.35);
  background: rgba(254, 44, 85, 0.08);
}
.ct-conex .txt { flex: 1; min-width: 170px; }
.ct-conex .txt b { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary, #F2F3F6); }
.ct-conex .txt span { font-size: 12.5px; color: var(--text-secondary, #8B909C); }
.ct-conex .btn { margin-left: auto; }

.ct-ahora {
  border: 1px solid var(--border-mid, #282833);
  border-left: 3px solid #FE2C55;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0 18px;
  background: var(--bg-card, #141419);
}
.ct-ahora-cab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ct-ahora-cab b { font-size: 14.5px; font-weight: 800; color: var(--text-primary); }
.ct-ahora-cab .pill { margin-left: auto; }
.ct-punto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34D399;
  flex: 0 0 9px;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: ctlate 1.6s ease-in-out infinite;
}
@keyframes ctlate {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}
.ct-ahora-cif {
  font-size: 13px;
  color: var(--text-secondary, #8B909C);
  margin-top: 8px;
  line-height: 1.5;
}
.ct-ahora-cif b { color: var(--text-primary, #F2F3F6); font-weight: 800; font-family: var(--mono); }
.ct-ahora .cif {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .85;
  margin-top: 8px;
}
.ct-ahora .cif i { font-style: normal; opacity: .6; margin-left: 4px; }
.ct-ahora .ct-acciones { margin-top: 14px; }

.ct-msgs {
  border: 1px solid var(--border-mid, #282833);
  border-radius: 12px;
  margin-top: 14px;
  padding: 16px;
  background: var(--bg-card, #141419);
}
.ct-msgs-cab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.ct-msgs-cab b { font-size: 14.5px; font-weight: 800; display: block; color: var(--text-primary); }
.ct-msgs-que {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary, #8B909C);
  margin-top: 3px;
  line-height: 1.45;
}
.ct-estado {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 2px;
}
.ct-estado.ok { color: #34D399; }
.ct-estado.sucio { color: #FBBF24; }

.ct-fila {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.ct-num {
  flex: 0 0 28px;
  text-align: right;
  padding-top: 10px;
  opacity: .5;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
}
.ct-fila textarea {
  flex: 1;
  min-height: 64px;
  margin: 0;
  resize: vertical;
  background: var(--bg-hover, #1B1B22);
  border: 1px solid var(--border-mid, #282833);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  transition: border-color .15s ease;
}
.ct-fila textarea:focus {
  outline: none;
  border-color: var(--brand, #7C3AED);
}
.ct-fila textarea.llena {
  border-color: rgba(52, 211, 153, 0.4);
}
.ct-quitar {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 6px;
  opacity: .6;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all .15s ease;
}
.ct-quitar:hover {
  opacity: 1;
  color: #FE2C55;
  background: rgba(254, 44, 85, 0.1);
}

.ct-msgs-pie {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ct-msgs-pie .ct-cont {
  margin-left: auto;
  font-weight: 700;
  opacity: .6;
  font-size: 13px;
  font-family: var(--mono);
}

.ct-campo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  min-width: 172px;
}
.ct-campo span { opacity: .75; font-weight: 600; color: var(--text-secondary); }
.ct-campo input {
  width: 140px;
  background: var(--bg-hover, #1B1B22);
  border: 1px solid var(--border-mid, #282833);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--mono);
}
.ct-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: .85;
  align-self: flex-end;
  padding-bottom: 9px;
  cursor: pointer;
  user-select: none;
}
.ct-check input { width: auto; margin: 0; cursor: pointer; }

.ct-tanda {
  border: 1px solid var(--border-mid, #282833);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--bg-card, #141419);
  transition: border-color .15s ease;
}
.ct-tanda:hover { border-color: rgba(255, 255, 255, 0.15); }
.ct-tanda .cab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ct-tanda .cab b { font-size: 14px; font-weight: 700; }
.ct-tanda .cif {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  opacity: .85;
  margin-top: 8px;
}
.ct-tanda .cif span { display: inline-flex; align-items: center; gap: 4px; }
.ct-tanda .cif b { font-weight: 800; font-family: var(--mono); color: var(--text-primary); }
.ct-tanda .cif i { font-style: normal; opacity: .6; }

.ct-barra {
  height: 8px;
  border-radius: 99px;
  background: #26262F;
  overflow: hidden;
  margin: 6px 0;
}
.ct-barra>i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #25F4EE, #FE2C55);
  transition: width .4s ease;
}

.ct-acciones {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.ct-borrar.peligro { color: #FE2C55; border-color: #FE2C55; }
.ct-quien { font-size: 12px; opacity: .6; margin-left: auto; }

/* ─── Selectors / Pills ──────────────────────────────── */
.pill-group { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
}
.pill:hover { border-color: var(--brand-dim); color: var(--text-primary); }
.pill.active {
  background: var(--brand-glow); color: var(--brand-light);
  border-color: var(--brand-dim);
}

/* ─── Zone / Horario Selector ────────────────────────── */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 8px; margin-bottom: 16px; }
.zone-card {
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; transition: all var(--transition);
  text-align: center;
}
.zone-card:hover { border-color: var(--brand-dim); background: var(--bg-hover); }
.zone-card.active { border-color: var(--brand); background: var(--brand-glow); }
.zone-name { font-size: 12px; font-weight: 700; }
.zone-tz { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.hora-grid { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.hora-btn {
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; font-family: var(--mono); font-size: 12px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.hora-btn:hover { border-color: var(--brand-dim); color: var(--text-primary); }
.hora-btn.active { border-color: var(--brand); background: var(--brand-glow); color: var(--brand-light); }

/* ─── Empty State ────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-muted);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-desc { font-size: 13px; line-height: 1.6; }

/* ─── Toast Notifications ────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  min-width: 280px; max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  animation: toastIn .2s ease;
}
.toast.leaving { animation: toastOut .2s ease forwards; }
.toast-success { border-color: rgba(0,229,150,.3); }
.toast-error   { border-color: rgba(255,77,109,.3); }
.toast-info    { border-color: rgba(108,99,255,.3); }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg { font-size: 13px; flex: 1; }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform:none; } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform: translateX(20px); } }

/* ─── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: min(500px, 95vw);
  box-shadow: var(--shadow);
  animation: scaleIn .18s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@keyframes scaleIn { from { opacity:0; transform: scale(.95); } to { opacity:1; transform:none; } }

/* ─── Spinner ────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
.loading-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 32px; gap: 12px; color: var(--text-muted);
}

/* ─── Auth Pages ─────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0,212,255,.05) 0%, transparent 60%),
              var(--bg-base);
}
.auth-box {
  width: 380px; max-width: 95vw;
  padding: 36px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-icon { margin: 0 auto 12px; width: 50px; height: 50px; font-size: 26px; border-radius: 12px; }
.auth-logo h1 { font-size: 22px; font-weight: 800; }
.auth-logo p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 12.5px; color: var(--text-muted); }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 12px; margin: 16px 0; position: relative; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ─── Ticket ─────────────────────────────────────────── */
.ticket-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}
.ticket-item:hover { border-color: var(--border-mid); background: var(--bg-hover); }
.ticket-asunto { font-weight: 600; font-size: 13.5px; }
.ticket-date { font-size: 11.5px; color: var(--text-muted); }

/* ─── Responsive ─────────────────────────────────────── */
.mobile-menu-btn { display: none; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main-wrap { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ─── Utilities ──────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-brand { color: var(--brand-light); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-cyan { color: var(--accent-cyan); }
.font-mono { font-family: var(--mono); }
.font-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius-sm); }
.separator { height: 1px; background: var(--border); margin: 16px 0; }

#app {
  width: 100%;
  min-height: 100vh;
}

/* ─── AUTH SCREEN ─── */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%), var(--bg-base);
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.auth-logo h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.auth-logo p {
  font-size: 13px;
  color: var(--text-muted);
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-divider:not(:empty)::before {
  margin-right: .5em;
}
.auth-divider:not(:empty)::after {
  margin-left: .5em;
}
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}
.form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════
   LIGAS TIKTOK LIVE (CREATOR LEAGUE)
   ═══════════════════════════════════════════════════════════ */
.tk-zona {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.tk-rot {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 6px;
}
.tk-dia-acc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  flex-wrap: wrap;
}
.lg-franjas {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media(max-width: 992px) {
  .lg-franjas { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 580px) {
  .lg-franjas { grid-template-columns: repeat(2, 1fr); }
}
.tk-franja {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.tk-franja:hover:not(:disabled) {
  border-color: rgba(255, 59, 105, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.tk-franja.active, .tk-franja.on {
  border-color: #ff3b69;
  background: rgba(255, 59, 105, 0.08);
  box-shadow: 0 0 16px rgba(255, 59, 105, 0.22);
}
.tk-franja:disabled {
  opacity: 0.45;
  cursor: default;
  border-style: dashed;
}
.tk-franja-hora {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1;
}
.tk-franja-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.lg-prop {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 2px;
}
.lg-prop i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #25f4ee, #ff3b69);
  transition: width 0.3s ease;
}
.tk-franja-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
  color: var(--text-muted);
}
.tk-franja-tag.cierra {
  color: #ff3b69;
}
.tk-franja-tag.cerrada {
  color: var(--text-muted);
}
.tk-franja-tag.curro {
  color: #f59e0b;
}
.tk-franja-tag.curro::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

.tk-res {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.tk-filtro {
  margin-bottom: 14px;
}
.tk-abajo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tk-summary-group {
  display: flex;
  align-items: center;
  gap: 24px;
}
.tk-l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}
.tk-v {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--mono);
  line-height: 1.1;
}
.tk-v.nuevos-col {
  color: var(--accent-green);
}
.tk-acc {
  display: flex;
  gap: 8px;
}

.lg-ligas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tk-liga {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid #0ea5a4;
  border-radius: 12px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.tk-liga:hover {
  border-color: var(--border-mid);
  border-left-color: #0ea5a4;
  background: rgba(255, 255, 255, 0.015);
}
.tk-liga.abierta {
  border-color: rgba(14, 165, 164, 0.35);
  border-left-color: #0ea5a4;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.cabe-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}
.cabe {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
  flex: 1;
}
.cabe .fle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.tk-liga.abierta .cabe .fle {
  transform: rotate(90deg);
  color: var(--brand-light);
}
.cabe .d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--mono);
  background: var(--bg-hover);
  border: 1px solid var(--border);
}
.cabe .d.tier-b {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(255, 140, 0, 0.2));
  color: #ff6b8b;
  border-color: rgba(255, 77, 109, 0.4);
}
.cabe .d.tier-c {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 212, 255, 0.2));
  color: #8da2fb;
  border-color: rgba(108, 99, 255, 0.4);
}
.cabe .d.tier-d {
  background: linear-gradient(135deg, rgba(0, 229, 150, 0.15), rgba(46, 204, 113, 0.15));
  color: #2ecc71;
  border-color: rgba(0, 229, 150, 0.3);
}
.cabe .c {
  font-size: 13px;
  color: var(--text-secondary);
}
.cabe .c .n {
  color: var(--accent-green);
  font-weight: 700;
}
.cabe-fila .acc {
  display: flex;
  gap: 6px;
}
.tk-top {
  border-top: 1px solid var(--border);
  padding: 8px 16px 16px;
  background: var(--bg-base);
  animation: fadeIn 0.15s ease;
}
.tk-top table {
  width: 100%;
  border-collapse: collapse;
}
.tk-top th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.tk-top td {
  padding: 8px 10px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.tk-top tr:hover td {
  background: var(--bg-hover);
}
.tk-hc {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tk-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.tk-nv {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 229, 150, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 229, 150, 0.3);
}
.tk-dia {
  font-family: var(--mono);
  font-weight: 700;
  color: #00d4ff;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   DONADORES TIKTOK LIVE
   ═══════════════════════════════════════════════════════════ */
.dn-barra {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dn-barra input {
  max-width: 240px;
}
.dn-barra select {
  max-width: 120px;
}
.dn-barra .note {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
.dn-podio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .dn-podio { grid-template-columns: 1fr; }
}
.dn-pod {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dn-pod:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.dn-pod1 {
  border-color: rgba(255, 215, 0, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.08) 0%, var(--bg-surface) 75%);
}
.dn-pod2 {
  border-color: rgba(192, 192, 192, 0.35);
}
.dn-pod3 {
  border-color: rgba(205, 127, 50, 0.35);
}
.dn-medalla {
  font-size: 28px;
  margin-bottom: 6px;
}
.dn-av-xl {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  margin-bottom: 10px;
  object-fit: cover;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}
.dn-pod1 .dn-av-xl { border-color: #ffd700; box-shadow: 0 0 16px rgba(255, 215, 0, 0.3); }
.dn-pod2 .dn-av-xl { border-color: #c0c0c0; }
.dn-pod3 .dn-av-xl { border-color: #cd7f32; }

.dn-pod-nom {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dn-h {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.dn-pod-cifra {
  font-size: 20px;
  font-weight: 800;
  color: #00d4ff;
  font-family: var(--mono);
  margin-bottom: 6px;
}
.dn-pod-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.dn-tt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all 0.15s ease;
  text-decoration: none;
  width: 100%;
}
.dn-tt:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   RADAR DE CREADORES LIBRES & MOVERS
   ═══════════════════════════════════════════════════════ */
.badge-libre-neon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: #00ff88;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
  animation: pulseNeon 2.5s infinite alternate;
}
@keyframes pulseNeon {
  0% { box-shadow: 0 0 4px rgba(0, 255, 136, 0.2); }
  100% { box-shadow: 0 0 14px rgba(0, 255, 136, 0.45); }
}

.movers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.mover-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.mover-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.15);
}
.mover-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.mover-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  object-fit: cover;
}
.mover-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mover-tag.super {
  background: rgba(255, 77, 109, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 77, 109, 0.4);
}
.mover-tag.explosivo {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.4);
}
.mover-tag.talento {
  background: rgba(255, 184, 63, 0.15);
  color: #ffb83f;
  border: 1px solid rgba(255, 184, 63, 0.4);
}
.mover-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.mover-gain {
  font-size: 15px;
  font-weight: 800;
  color: #00ff88;
  font-family: var(--mono);
}

/* ═══════════════════════════════════════════════════════
   CRM KANBAN PIPELINE
   ═══════════════════════════════════════════════════════ */
.crm-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: flex-start;
  min-height: 600px;
}
@media (max-width: 1100px) {
  .crm-pipeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .crm-pipeline { grid-template-columns: 1fr; }
}
.crm-col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.crm-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.crm-col-title {
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: all 0.15s ease;
}
.crm-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.crm-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════
   FASE RIBBON (LOTES DE 30)
   ═══════════════════════════════════════════════════════ */
.phase-ribbon {
  display: flex;
  gap: 4px;
  margin: 14px 0;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.phase-seg {
  flex: 1;
  background: var(--border-mid);
  border-radius: 2px;
  transition: background 0.3s ease;
}
.phase-seg.done {
  background: linear-gradient(90deg, #6c63ff, #00d4ff);
}
.phase-seg.run {
  background: #ffb83f;
  animation: pulseSeg 1s infinite alternate;
}
@keyframes pulseSeg {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   ADMIN SAAS SWITCHES & TOGGLES
   ═══════════════════════════════════════════════════════ */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
}
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-mid);
  transition: .2s;
  border-radius: 20px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
.switch-toggle input:checked + .switch-slider {
  background-color: var(--brand);
}
.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(16px);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN (Móvil, Tablet, Desktop & Ultrawide)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1400px) {
  .page-content {
    padding: 28px 40px 60px;
  }
}

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrap {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .page-content {
    padding: 16px 20px 40px;
  }
  .topbar {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .stats-3 {
    grid-template-columns: 1fr;
  }
  .topbar-actions .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
  }
  .card {
    padding: 14px;
  }
  .page-content {
    padding: 12px 14px 40px;
  }
  .tabs {
    gap: 6px;
  }
  .tabs button {
    padding: 6px 12px;
    font-size: 12px;
  }
  .tk-dia-acc {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tk-dia-acc > div {
    margin-left: 0 !important;
    width: 100%;
  }
  .tk-abajo {
    flex-direction: column;
    gap: 12px;
  }
  .tk-acc {
    margin-left: 0 !important;
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .tk-acc button {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BROLY 2.0 ENTERPRISE LANDING PAGE — AESTHETIC VIBRANCE & HUMAN DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ─── Topbar Navbar ──────────────────────────────────────────────────────── */
.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all .25s ease;
}
.landing-topbar.scrolled {
  background: rgba(7, 9, 14, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8);
}
.landing-topbar .landing-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  letter-spacing: -0.02em;
}
.landing-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 0 20px var(--brand-glow);
}
.landing-tag-enterprise {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(37, 244, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(37, 244, 238, 0.3);
  text-transform: uppercase;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.landing-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.landing-nav-link:hover {
  color: #fff;
}
@media (max-width: 960px) {
  .landing-nav-links { display: none; }
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
  overflow: hidden;
}

/* Floating Lights */
.landing-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.landing-light.a {
  width: min(520px, 65vw);
  height: min(520px, 65vw);
  top: -120px;
  left: 10%;
  background: radial-gradient(circle, rgba(37, 244, 238, 0.28) 0%, transparent 68%);
  animation: floatDrift 20s ease-in-out infinite;
}
.landing-light.b {
  width: min(580px, 70vw);
  height: min(580px, 70vw);
  top: -90px;
  right: 8%;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.24) 0%, transparent 68%);
  animation: floatDrift 24s ease-in-out infinite reverse;
}
@keyframes floatDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(25px, 20px, 0) scale(1.08); }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseLive 2s infinite;
}
@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.landing-h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 980px;
  margin: 0 auto;
}
.landing-h1 .destaca {
  background: linear-gradient(100deg, #25f4ee 0%, #c084fc 46%, #fe2c55 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.1em;
}

.landing-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 24px auto 0;
  line-height: 1.65;
}
.landing-sub b {
  color: #fff;
  font-weight: 700;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.btn-enterprise-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 99px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: 0 0 28px rgba(254, 44, 85, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.btn-enterprise-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(254, 44, 85, 0.6);
}
.btn-enterprise-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all .18s ease;
  cursor: pointer;
}
.btn-enterprise-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ─── Live KPI Stats Strip ───────────────────────────────────────────────── */
.landing-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (max-width: 840px) {
  .landing-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .landing-kpis { grid-template-columns: 1fr; }
}
.landing-kpi-card {
  background: rgba(17, 23, 40, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease;
}
.landing-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 238, 0.3);
}
.landing-kpi-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.landing-kpi-num .accent {
  background: var(--brand-gradient-alt);
  -webkit-background-clip: text;
  color: transparent;
}
.landing-kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── Interactive Showcase / Product Tour ───────────────────────────────── */
.landing-section {
  padding: clamp(60px, 7vw, 100px) 0;
  position: relative;
}
.landing-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.landing-eyebrow i {
  width: 18px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}
.landing-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.landing-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.6;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.showcase-tab {
  padding: 10px 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s ease;
}
.showcase-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.showcase-tab.active {
  background: rgba(254, 44, 85, 0.15);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 20px rgba(254, 44, 85, 0.3);
}

/* Browser Frame Container */
.showcase-frame {
  background: rgba(13, 17, 28, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0,0,0,0.85);
}
.showcase-frame-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.showcase-dot.red { background: #ff5f56; }
.showcase-dot.yellow { background: #ffbd2e; }
.showcase-dot.green { background: #27c93f; }
.showcase-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.showcase-body {
  padding: clamp(18px, 3vw, 28px);
}

/* Showcase League Simulation */
.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.showcase-market-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(37, 244, 238, 0.12);
  border: 1px solid rgba(37, 244, 238, 0.3);
  color: var(--accent-cyan);
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}

.showcase-hours {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 760px) {
  .showcase-hours { grid-template-columns: repeat(3, 1fr); }
}
.showcase-hour-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  transition: all .16s ease;
  cursor: pointer;
}
.showcase-hour-box.active {
  background: rgba(254, 44, 85, 0.12);
  border-color: rgba(254, 44, 85, 0.4);
}
.showcase-hour-box .hour {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.showcase-hour-box .disp {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.showcase-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.showcase-bar-fill {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: 2px;
  transition: width 1s ease;
}

/* Showcase League Rows */
.showcase-league-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
  transition: background .16s ease;
}
.showcase-league-card:hover {
  background: rgba(255, 255, 255, 0.05);
}
.showcase-badge-c {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.showcase-league-info {
  flex: 1;
  min-width: 0;
}
.showcase-league-info .creators {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.showcase-league-info .creators b {
  color: #fff;
}

/* ─── Enterprise Features Bento Grid ─────────────────────────────────────── */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .landing-features-grid { grid-template-columns: 1fr; }
}
.landing-feature-card {
  background: rgba(17, 23, 40, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.6);
}
.landing-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.25);
  color: var(--brand);
}
.landing-feature-card:nth-child(2) .landing-feature-icon {
  background: rgba(37, 244, 238, 0.12);
  border-color: rgba(37, 244, 238, 0.25);
  color: var(--accent-cyan);
}
.landing-feature-card:nth-child(3) .landing-feature-icon {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--accent-purple);
}
.landing-feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.landing-feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Contact Section ────────────────────────────────────────────────────── */
.landing-contact-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  background: rgba(17, 23, 40, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}
.landing-contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
}
@media (max-width: 860px) {
  .landing-contact-card { grid-template-columns: 1fr; }
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.contact-left p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 14px;
  line-height: 1.6;
}
.contact-left .whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 20px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all .16s ease;
}
.contact-left .whatsapp-cta:hover {
  background: rgba(37, 211, 102, 0.22);
  transform: translateY(-2px);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .contact-form-grid { grid-template-columns: 1fr; }
}
.contact-form-grid .full {
  grid-column: 1 / -1;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 11, 0.95);
  padding: 48px 0 32px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}
.landing-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 760px) {
  .landing-footer-top { grid-template-columns: 1fr; }
}
.landing-footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.landing-footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: color var(--transition);
}
.landing-footer-col a:hover {
  color: #fff;
}
.landing-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Auth Modal (Glassmorphism Popup) ───────────────────────────────────── */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: modalFadeIn .2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.auth-modal-container {
  width: 100%;
  max-width: 460px;
  background: rgba(14, 18, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.9);
  position: relative;
  animation: modalSlideUp .22s cubic-bezier(.16, 1, .3, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all .15s ease;
}
.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ─── Animación para Badge y Botón Promocional ─── */
@keyframes pulsePromo {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(254, 44, 85, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 22px rgba(254, 44, 85, 0.95); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(254, 44, 85, 0.6); }
}

