@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg:            #0a0e1a;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.14);
  --gold:          #C8A97E;
  --gold-dim:      rgba(200,169,126,0.18);
  --gold-bg:       rgba(200,169,126,0.05);
  --silver:        rgba(255,255,255,0.72);
  --bronze:        rgba(193,154,107,0.65);
  --text:          #F0EDE8;
  --text-muted:    rgba(240,237,232,0.50);
  --text-faint:    rgba(240,237,232,0.28);
  --red:           #c0444a;
  --green:         #3d9e78;
  --purple:        #a78bfa;
  --radius:        10px;
  --radius-sm:     6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Ambient gradient orbs — give backdrop-filter something to blur */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* Concentrated orb behind #1 podium card — center of page, ~45% from top */
    radial-gradient(ellipse 44% 34% at 50% 46%,  rgba(200,169,126,0.34) 0%, transparent 62%),
    /* Wide ambient covering the whole upper ranking zone */
    radial-gradient(ellipse 110% 60% at 48% 12%, rgba(200,169,126,0.27) 0%, transparent 68%),
    /* Soft bottom-right counterweight */
    radial-gradient(ellipse 55% 44% at 90% 97%,  rgba(200,169,126,0.13) 0%, transparent 58%);
}

/* ── Typography ───────────────────────────────────────────── */
.display {
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1, h2, h3 { font-family: 'Inter', sans-serif; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }

/* ── Layout ───────────────────────────────────────────────── */
.page { max-width: 800px; margin: 0 auto; padding: 0 20px 80px; position: relative; z-index: 1; }
.page--wide { max-width: 1100px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.topbar__brand {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
}
.topbar__nav { display: flex; gap: 16px; align-items: center; }

/* ── Glass card ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.24);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-hover); }

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.avatar--initials {
  background: rgba(200,169,126,0.08);
  border: 1px solid rgba(200,169,126,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ── Podium (top 3) ───────────────────────────────────────── */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 8px;
  margin-bottom: 36px;
  align-items: end;
}
.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.24);
  padding: 20px 14px 18px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.podium-card:hover { transform: translateY(-3px); }

/* Modifiers per position */
.podium-card--gold {
  border-color: rgba(200,169,126,0.30);
  background: rgba(200,169,126,0.04);
  padding-top: 28px;
  padding-bottom: 22px;
}
.podium-card--silver { border-color: rgba(255,255,255,0.14); }
.podium-card--bronze { border-color: rgba(193,154,107,0.20); }

/* Avatar ring per position */
.podium-card--gold   .podium-avatar { box-shadow: 0 0 0 2px var(--gold); }
.podium-card--silver .podium-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.podium-card--bronze .podium-avatar { box-shadow: 0 0 0 2px rgba(193,154,107,0.35); }

.podium-pos {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.podium-card--gold   .podium-pos { color: var(--gold); }
.podium-card--silver .podium-pos { color: rgba(255,255,255,0.55); }
.podium-card--bronze .podium-pos { color: rgba(193,154,107,0.75); }

.podium-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}
.podium-handle {
  font-size: 0.70rem;
  color: var(--text-muted);
  margin-top: -3px;
}
.podium-views {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.podium-card--gold .podium-views { color: var(--gold); }

.podium-views-label {
  font-size: 0.60rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  margin-top: -4px;
}
.podium-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.podium-bar-fill {
  height: 2px;
  border-radius: 2px;
  transition: width 1s cubic-bezier(.2,.8,.3,1);
}
.podium-card--gold   .podium-bar-fill { background: var(--gold); }
.podium-card--silver .podium-bar-fill { background: rgba(255,255,255,0.30); }
.podium-card--bronze .podium-bar-fill { background: rgba(193,154,107,0.55); }

/* ── Ranking list cards ───────────────────────────────────── */
.rank-card {
  position: relative; /* ancla de la insignia de campeón del #1 (.rank-crown) */
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.24);
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
  margin-bottom: 6px;
}
.rank-card:hover { transform: translateY(-2px); border-color: var(--border-hover); }

/* ── Signature element: #1 gets a gold left border ── */
.rank-card--gold {
  border-left: 3px solid var(--gold);
  background: var(--gold-bg);
  margin-top: 22px;      /* holgura para que la insignia sobresalga arriba sin cortarse/tapar la tarjeta previa */
}
/* padding-left con especificidad (0,2,0) para que el @media móvil (.rank-card{padding}) no lo pise:
   corre el contenido para que la insignia no monte sobre el número "1"/avatar. */
.rank-card.rank-card--gold { padding-left: 34px; }
/* Insignia de campeón del #1: círculo dorado en la esquina superior izquierda, corona navy dentro. */
.rank-crown {
  position: absolute; top: -14px; left: -12px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid #0a0e1a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.38);
  pointer-events: none;
}
.rank-crown svg { width: 26px; height: auto; display: block; }
.rank-card--silver { border-color: rgba(255,255,255,0.14); }
.rank-card--bronze { border-color: rgba(193,154,107,0.20); }

.rank-num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-faint);
  min-width: 32px;
  text-align: center;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.rank-card--gold   .rank-num { color: var(--gold); font-size: 1.9rem; }
.rank-card--silver .rank-num { color: var(--silver); }
.rank-card--bronze .rank-num { color: var(--bronze); }

.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 0.93rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-handle { font-size: 0.76rem; color: var(--text-muted); margin-top: 1px; }

.rank-meta { text-align: right; flex-shrink: 0; }
.rank-views {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.025em;
}
/* El dorado del NÚMERO de vistas depende SOLO de elegibilidad (.rank-views--met),
   nunca de la posición. El #1 conserva su distintivo de líder (borde/num/insignia). */
.rank-views-label {
  font-size: 0.62rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em; margin-top: 1px;
}
.rank-videos { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }
/* Vistas en dorado cuando el creador cumplió el mínimo de videos (solo el número, no la fila). */
.rank-views--met { color: var(--gold); }

.rank-bar-wrap { margin-top: 7px; }
.rank-bar-track { height: 2px; background: rgba(255,255,255,0.06); border-radius: 2px; }
.rank-bar-fill {
  height: 2px; border-radius: 2px; background: var(--gold);
  transition: width 1s cubic-bezier(.2,.8,.3,1);
}
.rank-card--silver .rank-bar-fill { background: rgba(255,255,255,0.28); }
.rank-card--bronze .rank-bar-fill { background: rgba(193,154,107,0.50); }

/* ── Ranking FINAL: elegibilidad (mínimo de videos) — solo en congelado ── */
/* No-elegible: se muestra por transparencia pero atenuado, sin lucir como ganador. */
.rank-card--ineligible { opacity: 0.5; border-left: 3px solid transparent; }
.rank-ineligible-label {
  font-size: 0.68rem; color: var(--text-faint);
  margin-top: 3px; font-style: italic;
}
/* Ganador de premio (prize_position 1-3): pill clara "🏆 Premio". */
.rank-prize-badge {
  display: inline-block; margin-top: 4px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold); background: var(--gold-bg);
  border: 1px solid rgba(200,169,126,0.35); border-radius: 20px;
  padding: 1px 8px;
}

/* ── Barra de progreso de videos hacia el mínimo (me.html, tarjeta privada) ── */
.video-progress__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.video-progress__label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.video-progress--done .video-progress__label { color: var(--gold); }
.video-progress__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: #1a1714; font-size: 0.7rem; font-weight: 700;
}
.video-progress__track {
  height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 4px; overflow: hidden;
}
.video-progress__fill {
  height: 100%; width: 0; border-radius: 4px;
  background: rgba(255,255,255,0.35);
  transition: width 0.9s cubic-bezier(.2,.8,.3,1), background-color 0.5s ease;
}
.video-progress__fill--done { background: var(--gold); }
.video-progress__hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }
.video-progress--done .video-progress__hint { color: var(--gold); }

/* ── Pop-up "mínimo completado" (me.html) ── */
.min-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,0.7);
  opacity: 0; transition: opacity 0.25s ease;
}
.min-modal--visible { opacity: 1; }
.min-modal__card {
  width: 100%; max-width: 340px; text-align: center;
  background: var(--surface); border: 1px solid rgba(200,169,126,0.3);
  border-radius: var(--radius); padding: 28px 24px;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transform: translateY(8px) scale(0.98); transition: transform 0.25s ease;
}
.min-modal--visible .min-modal__card { transform: translateY(0) scale(1); }
.min-modal__badge {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #1a1714; font-size: 1.5rem; font-weight: 700;
}
.min-modal__title { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.min-modal__text { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 18px; }
.min-modal__btn { width: 100%; }

/* ── Pop-up de novedades/anuncios (creator-home) — calco del min-modal ── */
.news-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,0.7);
  opacity: 0; transition: opacity 0.25s ease;
}
.news-modal--visible { opacity: 1; }
.news-modal__card {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--surface); border: 1px solid rgba(200,169,126,0.3);
  border-radius: var(--radius); padding: 28px 24px;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transform: translateY(8px) scale(0.98); transition: transform 0.25s ease;
  max-height: 80vh; display: flex; flex-direction: column;
}
.news-modal--visible .news-modal__card { transform: translateY(0) scale(1); }
.news-modal__badge {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--gold-bg); border: 1px solid rgba(200,169,126,0.4);
  font-size: 1.4rem;
}
.news-modal__kicker {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold); margin-bottom: 6px; flex-shrink: 0;
}
.news-modal__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; flex-shrink: 0; }
.news-modal__text {
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.6;
  margin: 0 0 18px; white-space: pre-wrap; text-align: left;
  overflow-y: auto;
}
.news-modal__btn { width: 100%; flex-shrink: 0; }

/* ── Modal bloqueante "Completa tus datos" — reusa el shell .news-modal ── */
.data-modal .news-modal__card { max-width: 420px; }
.data-modal__text {
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.6;
  margin: 0 0 18px; text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .video-progress__fill { transition: none; }
  .min-modal, .min-modal__card { transition: none; }
  .news-modal, .news-modal__card { transition: none; }
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.70rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-input::placeholder { color: rgba(240,237,232,0.42); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select option, .form-input option { background: #12182e; color: #fff; }
.form-hint { font-size: 0.72rem; color: var(--text-faint); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Checkbox estilizado ──────────────────────────────────────
   Reemplaza el checkbox nativo del navegador. Es el MISMO <input type="checkbox">
   (mismo name/value/checked/onchange) — solo cambia la apariencia con appearance:none. */
input.check {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px; flex-shrink: 0; margin: 0;
  border: 1px solid var(--border-hover);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
input.check:hover { border-color: var(--gold); }
input.check:checked { background: var(--gold); border-color: var(--gold); }
input.check:checked::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #0a0e1a; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input.check:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Toggle switch (promovido desde los forms de campaña para reutilizar globalmente) ── */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.12); border-radius: 22px; transition: 0.2s; cursor: pointer; }
.toggle-slider:before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 9px 20px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--gold); color: #0a0e1a; }
.btn--primary:hover { opacity: 0.88; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.btn--danger { background: transparent; color: var(--red); border: 1px solid rgba(192,68,74,0.28); }
.btn--danger:hover { background: rgba(192,68,74,0.07); }
.btn--sm { padding: 6px 12px; font-size: 0.70rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 0.64rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 7px; border-radius: 4px;
}
.badge--pending  { background: rgba(240,180,50,0.09); color: #d4a832; border: 1px solid rgba(240,180,50,0.18); }
.badge--approved { background: rgba(61,158,120,0.09); color: #3d9e78; border: 1px solid rgba(61,158,120,0.20); }
.badge--rejected { background: rgba(192,68,74,0.09); color: #c0444a; border: 1px solid rgba(192,68,74,0.20); }

/* ── Stats strip ──────────────────────────────────────────── */
.stats { display: flex; gap: 1px; margin-bottom: 40px; }
.stat {
  flex: 1; background: var(--surface);
  padding: 20px; text-align: center;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 6px 24px rgba(0,0,0,0.20);
}
.stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.stat__num {
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--gold);
}
.stat__label {
  font-size: 0.64rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.09em; margin-top: 4px;
}

/* ── Prize split — podium layout ─────────────────────────── */
.prizes {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  align-items: flex-end;
}
.prize {
  flex: 1; min-width: 88px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 12px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 6px 20px rgba(0,0,0,0.20);
}
/* Visual order: 2nd left · 1st center · 3rd right */
.prize--1 { border-color: rgba(200,169,126,0.30); padding-top: 30px; padding-bottom: 26px; order: 2; }
.prize--2 { border-color: rgba(255,255,255,0.18); padding-top: 20px; order: 1; }
.prize--3 { border-color: rgba(193,154,107,0.22); padding-top: 14px; order: 3; }
.prize__pos {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--text-faint);
  line-height: 1;
}
.prize--1 .prize__pos { color: var(--gold); font-size: 2.1rem; }
.prize--2 .prize__pos { color: var(--silver); }
.prize--3 .prize__pos { color: var(--bronze); }
.prize__amount { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-top: 6px; }
.prize--1 .prize__amount { font-size: 0.92rem; }

/* ── Table (admin) ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-muted);
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.875rem; margin-bottom: 16px; }
.alert--error   { background: rgba(192,68,74,0.08); border: 1px solid rgba(192,68,74,0.20); color: #d47a7e; }
.alert--success { background: rgba(61,158,120,0.08); border: 1px solid rgba(61,158,120,0.20); color: #5ec4a0; }

/* ── Chip / tag ───────────────────────────────────────────── */
.tag {
  font-size: 0.65rem; color: var(--gold);
  background: rgba(200,169,126,0.08); border: 1px solid rgba(200,169,126,0.18);
  border-radius: var(--radius-sm); padding: 3px 8px;
  display: inline-block; letter-spacing: 0.05em;
}

/* ── Section heading ──────────────────────────────────────── */
.section-title {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--text-muted); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── Utilities ────────────────────────────────────────────── */
.text-muted      { color: var(--text-muted); }
.text-gold       { color: var(--gold); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.flex            { display: flex; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8           { gap: 8px; }
.gap-16          { gap: 16px; }

/* ── Loading spinner ──────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(200,169,126,0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fade-up entry ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease both; }

/* ── Empty state ──────────────────────────────────────────── */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty__icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.28; }
.empty__text { font-size: 0.88rem; }

/* ── Video pill ───────────────────────────────────────────── */
.video-pill {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 6px; font-size: 0.82rem;
}
.video-pill__url {
  color: var(--text-muted); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 260px;
}
.video-pill__views { font-weight: 700; color: var(--text); white-space: nowrap; margin-left: 12px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .podium {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }
  /* Gold card always first on mobile */
  .podium-card--gold   { order: -1; padding-top: 20px; }
  .podium-card--silver { order: 0; }
  .podium-card--bronze { order: 1; }

  .rank-num { font-size: 1.1rem; min-width: 26px; }
  .rank-card--gold .rank-num { font-size: 1.5rem; }
  .rank-card { padding: 12px 14px; gap: 10px; }
  .rank-views { font-size: 1.1rem; }

  .form-row { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
  .stat { min-width: calc(50% - 1px); }

  h1 { font-size: 1.5rem; }
  .display { font-size: 2.2rem !important; }
}

/* ── Admin shared navigation (sidebar + topbar) ───────────── */
:root {
  --sidebar-width: 220px;
  --sidebar-collapsed-width: 56px;
}

.admin-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  width: var(--sidebar-width);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
  transition: width 0.2s ease;
  z-index: 40;
}
.admin-sidebar--collapsed { width: var(--sidebar-collapsed-width); }

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 8px;
  flex: 1;
  overflow-y: auto;
}

.admin-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.admin-sidebar__item:hover { background: var(--surface-hover); color: var(--text); }
.admin-sidebar__item--active { background: var(--gold-bg); color: var(--gold); }

.admin-sidebar__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-sidebar__icon svg { width: 20px; height: 20px; }
.admin-sidebar__label { font-size: 0.88rem; }

.admin-sidebar__badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #c0392b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
}

.admin-sidebar__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  font: inherit;
  transition: background 0.15s, color 0.15s;
}
.admin-sidebar__toggle:hover { background: var(--surface-hover); color: var(--text); }
.admin-sidebar--collapsed .admin-sidebar__toggle__icon,
.admin-sidebar--collapsed .admin-sidebar__icon svg { transform: none; }
.admin-sidebar--collapsed #admin-sidebar-toggle-icon { transform: rotate(180deg); }

/* Collapsed: hide labels, show tooltip on hover */
.admin-sidebar--collapsed .admin-sidebar__label,
.admin-sidebar--collapsed .admin-sidebar__badge { display: none; }
.admin-sidebar--collapsed .admin-sidebar__item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
}

.admin-main {
  min-width: 0;
  padding: 0 28px 80px;
}

.admin-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.admin-hamburger svg { width: 20px; height: 20px; }

.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 60;
  }
  .admin-sidebar--collapsed { width: var(--sidebar-width); }
  .admin-sidebar--collapsed .admin-sidebar__label,
  .admin-sidebar--collapsed .admin-sidebar__badge { display: inline; }
  .admin-sidebar--open { transform: translateX(0); }
  .admin-sidebar__toggle { display: none; }
  .admin-hamburger { display: inline-flex; }
  .admin-backdrop--visible { display: block; }
  .admin-main { padding: 0 18px 80px; }
}

/* ── Per-platform views breakdown ─────────────────────────── */
.views-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Example-video cards (campaign page) ──────────────────── */
.ev-card {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(200, 169, 126, 0.25);
  background: #111;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ev-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.ev-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-card--noimg {
  background: linear-gradient(150deg, #1a1714 0%, #0d0b0a 60%, rgba(200, 169, 126, 0.12) 100%);
}
.ev-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55); color: var(--gold);
  font-size: 0.9rem; padding-left: 3px;
  border: 1px solid rgba(200, 169, 126, 0.5);
  backdrop-filter: blur(2px);
}
.ev-card__author {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px; font-size: 0.74rem; font-weight: 600; color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

/* ── Carrusel de top videos (ranking) — reutiliza .ev-card ── */
.tv-track {
  display: flex; gap: 14px;
  overflow-x: auto; padding-bottom: 10px; margin-bottom: 32px;
  scrollbar-width: thin; scrollbar-color: rgba(200,169,126,0.3) transparent;
  -webkit-overflow-scrolling: touch;
}
.tv-track::-webkit-scrollbar { height: 5px; }
.tv-track::-webkit-scrollbar-thumb { background: rgba(200,169,126,0.3); border-radius: 3px; }
.tv-card__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}
.tv-card__handle {
  font-size: 0.7rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-card__views { font-size: 0.8rem; font-weight: 700; color: var(--gold); margin-top: 1px; }

/* ── Video modal (lightbox) ───────────────────────────────── */
.ev-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  align-items: center; justify-content: center; padding: 20px;
}
.ev-modal__inner {
  position: relative;
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ev-modal__frame {
  width: 100%; aspect-ratio: 9 / 16; max-height: 78vh;
  border-radius: 12px; overflow: hidden; background: #000;
}
.ev-modal__close {
  position: absolute; top: -38px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0;
}
.ev-modal__link { color: var(--gold); font-size: 0.82rem; text-decoration: none; }
.ev-modal__link:hover { text-decoration: underline; }

/* ── Freshness indicator card (ranking / campaign) — estado, no una métrica ─── */
.fresh-card {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid rgba(200, 169, 126, 0.28);
  border-radius: var(--radius);
  padding: 12px 18px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.fresh-card__icon { color: var(--gold); flex-shrink: 0; }
.fresh-card__main { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.fresh-card__sub  { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ── Ranking (ranking.html): títulos grandes + jerarquía TOP 3 ─────────────────
   Todo scoped a .rank-hero / .tv-head — no toca el mini-ranking de campaign.html
   (que conserva el look ligero: borde dorado + fondo sutil en el #1). Los tonos
   oro/plata/bronce van en bordes/números/avatares; el COLOR de las vistas sigue
   la regla de elegibilidad (.rank-views--met), nunca la posición. */
.section-title--lg {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* Fila título "Top videos" + tarjeta de frescura compacta */
.tv-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.tv-head .fresh-card { padding: 8px 14px; gap: 9px; }
.tv-head .fresh-card__main { font-size: 0.75rem; }
.tv-head .fresh-card__sub  { font-size: 0.63rem; }
.tv-head .fresh-card__icon { width: 16px; height: 16px; }

/* #4 en adelante: compactas y atenuadas (el contraste con el podio es intencional) */
.rank-hero .rank-card {
  padding: 15px 22px;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.rank-hero .rank-num { font-size: 20px; color: rgba(240,237,232,0.45); }
.rank-hero .rank-name { font-size: 15px; }
.rank-hero .rank-views { font-size: 18px; }

/* #2 — plata */
.rank-hero .rank-card--silver {
  padding: 20px 24px; border-radius: 15px;
  border: 1.5px solid rgba(192,198,215,0.45);
  background: rgba(192,198,215,0.05);
}
.rank-hero .rank-card--silver::before {
  content: ''; position: absolute; inset: -16px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(192,198,215,0.14) 0%, transparent 70%);
}
.rank-hero .rank-card--silver .rank-num { font-size: 30px; color: #c0c6d7; }
.rank-hero .rank-card--silver .rank-name { font-size: 17px; }
.rank-hero .rank-card--silver .rank-views { font-size: 22px; }
.rank-hero .rank-card--silver .avatar { border: 1.5px solid rgba(192,198,215,0.55); }

/* #3 — bronce (misma estructura que plata, tonos bronce) */
.rank-hero .rank-card--bronze {
  padding: 20px 24px; border-radius: 15px;
  border: 1.5px solid rgba(205,140,90,0.45);
  background: rgba(205,140,90,0.05);
}
.rank-hero .rank-card--bronze::before {
  content: ''; position: absolute; inset: -16px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(205,140,90,0.14) 0%, transparent 70%);
}
.rank-hero .rank-card--bronze .rank-num { font-size: 30px; color: #cd8c5a; }
.rank-hero .rank-card--bronze .rank-name { font-size: 17px; }
.rank-hero .rank-card--bronze .rank-views { font-size: 22px; }
.rank-hero .rank-card--bronze .avatar { border: 1.5px solid rgba(205,140,90,0.55); }

/* #1 — tarjeta de campeón (oro) */
.rank-hero .rank-card--gold {
  padding: 28px 30px 28px 44px; /* izq extra: despeja la corona insignia */
  border-radius: 18px;
  border: 2px solid rgba(200,169,126,0.85);
  background: linear-gradient(135deg, rgba(200,169,126,0.16), rgba(200,169,126,0.05) 60%);
  box-shadow: 0 0 40px rgba(200,169,126,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  margin-top: 26px; /* holgura para corona + resplandor sin tapar lo de arriba */
}
/* Resplandor radial con pulso "respiración" (lento, nunca parpadeo) */
.rank-hero .rank-card--gold::before {
  content: ''; position: absolute; inset: -30px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(200,169,126,0.28) 0%, rgba(200,169,126,0.10) 45%, transparent 72%);
  animation: heroGlowPulse 3.5s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.rank-hero .rank-card--gold .rank-num {
  font-size: 46px; font-weight: 800; color: var(--gold);
  text-shadow: 0 0 24px rgba(200,169,126,0.55);
}
.rank-hero .rank-card--gold .avatar {
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(200,169,126,0.35);
}
.rank-hero .rank-card--gold .rank-name { font-size: 22px; font-weight: 800; }
.rank-hero .rank-card--gold .rank-handle { color: rgba(200,169,126,0.75); }
.rank-hero .rank-card--gold .rank-views { font-size: 30px; font-weight: 800; }
.rank-hero .rank-card--gold .rank-crown {
  width: 52px; height: 52px; top: -16px;
  box-shadow: 0 0 20px rgba(200,169,126,0.5);
}
.rank-hero .rank-card--gold .rank-crown svg { width: 30px; }

@media (prefers-reduced-motion: reduce) {
  .rank-hero .rank-card--gold::before { animation: none; } /* resplandor estático */
}

/* Móvil: el #1 mantiene presencia sin desbordar; el resplandor no genera scroll lateral */
@media (max-width: 600px) {
  .rank-hero .rank-card { padding: 12px 14px; }
  .rank-hero .rank-card--silver, .rank-hero .rank-card--bronze { padding: 16px 14px; }
  .rank-hero .rank-card--silver .rank-num, .rank-hero .rank-card--bronze .rank-num { font-size: 24px; }
  .rank-hero .rank-card--silver::before, .rank-hero .rank-card--bronze::before { inset: -8px; }
  .rank-hero .rank-card--gold { padding: 20px 16px 20px 34px; }
  .rank-hero .rank-card--gold::before { inset: -10px; }
  .rank-hero .rank-card--gold .rank-num { font-size: 34px; }
  .rank-hero .rank-card--gold .rank-name { font-size: 18px; }
  .rank-hero .rank-card--gold .rank-views { font-size: 24px; }
  /* el tamaño del avatar viene inline (renderAvatar) → única excepción con !important */
  .rank-hero .rank-card--gold .avatar { width: 52px !important; height: 52px !important; }
  .rank-hero .rank-card--gold .rank-crown { width: 46px; height: 46px; top: -14px; }
  .rank-hero .rank-card--gold .rank-crown svg { width: 26px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Sistema de componentes base (Fase 1 del rediseño) — aditivo, no toca lo existente.
   metric-card · nw-collapse · nw-sidebar (genérico). Charts: /js/nw-charts.js
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Metric card (tarjeta de resumen) ─────────────────────── */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.metric-card:hover { border-color: var(--border-hover); }
.metric-card__icon { color: var(--gold); margin-bottom: 8px; width: 22px; height: 22px; }
.metric-card__icon svg { width: 22px; height: 22px; }
.metric-card__label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); margin-bottom: 6px;
}
.metric-card__value {
  font-family: 'Clash Display', 'Inter', sans-serif;
  font-size: 1.7rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
}
.metric-card__sub { font-size: 0.74rem; color: var(--text-faint); margin-top: 4px; }

/* ── Sección colapsable formalizada ───────────────────────── */
.nw-collapse { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.nw-collapse + .nw-collapse { margin-top: 8px; }
.nw-collapse__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer; user-select: none; list-style: none;
}
.nw-collapse__head::-webkit-details-marker { display: none; }
.nw-collapse__head:hover { background: var(--surface-hover); }
.nw-collapse__chevron { color: var(--text-muted); font-size: 0.8rem; transition: transform 0.2s; flex-shrink: 0; }
.nw-collapse[open] > .nw-collapse__head .nw-collapse__chevron { transform: rotate(90deg); }
.nw-collapse__title { font-weight: 600; font-size: 0.9rem; color: var(--text); flex: 1; min-width: 0; }
.nw-collapse__right { flex-shrink: 0; color: var(--text-muted); font-size: 0.82rem; }
.nw-collapse__body { padding: 4px 16px 16px; border-top: 1px solid var(--border); }

/* ── Sidebar categorizado genérico (reutilizable: manager, artist-manager, …) ──
   Mismo look que el sidebar admin, pero clases independientes (el admin no se toca). */
.nw-sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  width: var(--sidebar-width); box-sizing: border-box;
  display: flex; flex-direction: column;
  background: var(--bg); border-right: 1px solid var(--border);
  transition: width 0.2s ease; z-index: 40;
}
.nw-sidebar--collapsed { width: var(--sidebar-collapsed-width); }
.nw-sidebar__nav { display: flex; flex-direction: column; gap: 3px; padding: 16px 8px; flex: 1; overflow-y: auto; }
.nw-sidebar__group {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-faint); font-weight: 600;
  padding: 14px 12px 4px;
}
.nw-sidebar--collapsed .nw-sidebar__group { opacity: 0; height: 8px; padding: 0; overflow: hidden; }
.nw-sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none;
  white-space: nowrap; overflow: hidden; position: relative;
  transition: background 0.15s, color 0.15s;
}
.nw-sidebar__item:hover { background: var(--surface-hover); color: var(--text); }
.nw-sidebar__item--active { background: var(--gold-bg); color: var(--gold); }
.nw-sidebar__icon { flex-shrink: 0; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.nw-sidebar__icon svg { width: 20px; height: 20px; }
.nw-sidebar__label { font-size: 0.88rem; }
.nw-sidebar__badge { margin-left: auto; flex-shrink: 0; background: #c0392b; color: #fff; font-size: 0.62rem; font-weight: 700; border-radius: 20px; padding: 1px 7px; }
.nw-sidebar__toggle {
  display: flex; align-items: center; gap: 12px;
  margin: 8px; padding: 9px 12px; border-radius: 8px;
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-family: inherit; font-size: 0.88rem; white-space: nowrap; overflow: hidden;
}
.nw-sidebar__toggle:hover { background: var(--surface-hover); color: var(--text); }
.nw-sidebar--collapsed .nw-sidebar__label { opacity: 0; pointer-events: none; }
.nw-sidebar--collapsed .nw-sidebar__toggle-icon { transform: rotate(180deg); }
