/* Classement, niveaux et récompenses */
.lb-progress { width: 180px; height: 8px; border-radius: 999px; background: var(--background-soft); margin: 12px auto 0; overflow: hidden; }
.lb-progress-fill { height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.8s var(--ease-out); }
.lb-level-up { flex-wrap: wrap; justify-content: center; }
.lb-points-total { margin-top: 8px; font-size: 12px; color: var(--text-muted); }

.level-item { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: background 0.2s, border-color 0.2s; }
.level-item.current { background: var(--background-soft); border-color: var(--light-accent); }
.level-reward { margin-top: 3px; font-size: 11.5px; color: var(--accent); font-weight: 600; line-height: 1.35; }
.level-item:not(.unlocked) .level-name { color: var(--text-muted); }

.lb-list { display: flex; flex-direction: column; gap: 4px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.lb-row.me { background: #F4F1FA; }
.lb-rank { width: 24px; text-align: center; font-family: var(--font-title); font-weight: 700; font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.lb-rank.top1 { color: #B7791F; }
.lb-rank.top2 { color: #718096; }
.lb-rank.top3 { color: #B5651D; }
.lb-row-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--grad); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.lb-row-body { min-width: 0; flex: 1; }
.lb-row-name { font-size: 13.5px; font-weight: 600; color: var(--text-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row-level { font-size: 11px; color: var(--text-muted); }
.lb-row-points { font-family: var(--font-title); font-weight: 600; font-size: 13px; color: var(--primary); white-space: nowrap; }
.lb-gap { text-align: center; color: var(--text-faint); line-height: 1; letter-spacing: 2px; }

/* Édition des niveaux (admin) */
.levels-edit { display: grid; grid-template-columns: 70px 1fr 120px; gap: 8px 12px; align-items: center; }
.levels-edit .head { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.levels-edit .lvl { font-family: var(--font-title); font-weight: 700; color: var(--primary); }
#course-level-group[hidden] { display: none; }
.lb-settings-btn[hidden] { display: none; }
