/* profile XP block */
.xp-block { margin: 18px 0 16px; padding: 12px 14px; border: 1px solid rgba(127,127,127,.25); border-radius: 0; background: rgba(124,80,200,.06); }
.xp-head { display: flex; align-items: center; gap: 12px; }
/* squared, raised Win98-style level badge */
.xp-level-badge { flex: 0 0 auto; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(#8a5ad8, #6a3fb8); padding: 5px 12px; white-space: nowrap;
  border-radius: 0; border: 2px solid; border-color: rgba(255,255,255,.55) rgba(0,0,0,.5) rgba(0,0,0,.5) rgba(255,255,255,.55);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 rgba(0,0,0,.3); text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
/* sunken progress trough — dark so the white XP text is always legible (both themes) */
.xp-bar-wrap { position: relative; flex: 1; height: 22px; background: rgba(0,0,0,.4); border-radius: 0; overflow: hidden; min-width: 120px;
  border: 1px solid; border-color: rgba(0,0,0,.55) rgba(255,255,255,.18) rgba(255,255,255,.18) rgba(0,0,0,.55); }
.xp-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #7CFC00, #1fe34b); border-radius: 0; transition: width .4s ease; }
.xp-bar-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.85); }

.xp-ach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xp-ach-item { display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 0; font-size: 12px; border: 1px solid transparent; }
.xp-ach-item.earned { background: rgba(124,80,200,.16); border-color: rgba(124,80,200,.4); }
.xp-ach-item.locked { background: rgba(127,127,127,.08); color: #999; filter: grayscale(1); opacity: .65; }
.xp-ach-icon { font-size: 14px; }
.xp-ach-name { font-weight: 600; }

/* "how leveling works" explainer */
.xp-help { margin-top: 14px; border-top: 1px solid rgba(127,127,127,.2); padding-top: 10px; }
.xp-help summary { cursor: pointer; font-weight: 700; font-size: 13px; color: #8a5ad8; }
.xp-help-body { font-size: 13px; margin-top: 8px; }
.xp-help-body ul { margin: 6px 0; padding-left: 20px; }
.xp-help-body li { margin: 3px 0; }
.xp-help-body p { margin: 4px 0; }

/* post-profile level pill */
.xp-pp { font-size: 11px; opacity: .85; margin-top: 2px; }
.xp-pp b { color: #8a5ad8; }

/* leaderboard */
.xp-lb-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.xp-lb-table th, .xp-lb-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid rgba(127,127,127,.18); }
.xp-lb-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; opacity: .7; }
.xp-lb-rank { width: 44px; text-align: center; font-weight: 700; }
.xp-lb-top td { background: rgba(124,80,200,.06); }
.xp-lvl { font-weight: 700; color: #8a5ad8; }
