/* ═══════════════════════════════════════════════════════
   STATS / STATS — الإحصائيات + المستويات والإنجازات
   ═══════════════════════════════════════════════════════ */

/* ── STATS ── */
.stw {
  padding: 14px 14px 80px;
  max-width: 580px;
  margin: 0 auto;
}
.wbrs {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 68px;
  margin-top: 9px;
}
.wbw {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.wb_ {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: height .4s;
}
.wbl {
  font-size: .36rem;
  color: var(--muted);
}
.wbc {
  font-size: .34rem;
  color: var(--muted);
}
.lvr {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.lvtg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .52rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 26px;
  text-align: center;
}
.lvtr {
  flex: 1;
  height: 5px;
  background: var(--brd);
  border-radius: 20px;
  overflow: hidden;
}
.lvtf {
  height: 100%;
  border-radius: 20px;
  transition: width .5s;
}
.lvtc {
  font-size: .43rem;
  color: var(--muted);
  min-width: 32px;
}


/* ── LEVELS / ACHIEVEMENTS ── */
.lvl-card {
  background: linear-gradient(135deg, var(--v-bg) 0%, var(--n-bg) 100%);
  border: 1.5px solid var(--v-brd);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh);
}
.lvl-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--v-bg) 0%, transparent 70%);
  opacity: .5;
}
.lvl-badge {
  font-size: 2.5rem;
  margin-bottom: 4px;
}
.lvl-name {
  font-size: .9rem;
  font-weight: 900;
}
.lvl-sub {
  font-size: .55rem;
  color: var(--sub);
  margin-top: 2px;
}
.lvl-bar {
  height: 8px;
  background: var(--brd);
  border-radius: 20px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.lvl-fill {
  height: 100%;
  border-radius: 20px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.lvl-xp-txt {
  font-size: .48rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
}
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.ach {
  background: var(--sur);
  border: 1.5px solid var(--brd);
  border-radius: var(--r);
  padding: 8px 4px;
  text-align: center;
  box-shadow: var(--sh);
  transition: all var(--t);
  cursor: default;
}
.ach.earned {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.ach.earned:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.ach-ic {
  font-size: 1.4rem;
  margin-bottom: 3px;
}
.ach-name {
  font-size: .38rem;
  font-weight: 700;
  color: var(--sub);
}
.ach.locked {
  opacity: .45;
  filter: grayscale(1);
}

