/* ==========================================================================
   Profile achievements: badge tiles + milestone ladders
   ========================================================================== */

.bc-ach-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bc-ach-head > :first-child { margin-bottom: 0 !important; }
.bc-ach-count {
  flex: 0 0 auto;
  color: var(--bc-muted, #6b6b76);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Badge tiles */
.bc-ach-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}
.bc-ach-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--bc-line, rgba(15, 15, 25, 0.07));
  border-radius: 12px;
  background: var(--bc-surface, #fff);
  transition: transform 0.2s var(--bc-ease, ease), box-shadow 0.2s var(--bc-ease, ease), border-color 0.2s var(--bc-ease, ease);
}
.bc-ach-badge.is-earned:hover { transform: translateY(-1px); box-shadow: var(--bc-shadow-2); border-color: var(--bc-line-strong, rgba(15, 15, 25, 0.12)); }
.bc-ach-icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #7c6ee6, var(--bc-accent, #5b4bd1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.bc-ach-badge.tone-gold .bc-ach-icon { background: linear-gradient(135deg, #f5b301, #e67e22); }
.bc-ach-badge.tone-green .bc-ach-icon { background: linear-gradient(135deg, #22c55e, #0f9f6e); }
.bc-ach-badge.tone-blue .bc-ach-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.bc-ach-label {
  min-width: 0;
  color: var(--bc-ink, #0b0b10);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-ach-badge.is-locked { background: var(--bc-surface-2, #f6f6f8); border-style: dashed; }
.bc-ach-badge.is-locked .bc-ach-icon { background: var(--bc-surface-3, #eeeef2); color: var(--bc-faint, #9a9aa5); box-shadow: none; }
.bc-ach-badge.is-locked .bc-ach-label { color: var(--bc-faint, #9a9aa5); font-weight: 500; }
.bc-ach-lock {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bc-surface, #fff);
  box-shadow: 0 0 0 1px var(--bc-line, rgba(15, 15, 25, 0.07));
  color: var(--bc-faint, #9a9aa5);
  font-size: 7.5px;
}

/* Milestone ladders */
.bc-ach-ladders { display: flex; flex-direction: column; }
.bc-ach-ladder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
}
.bc-ach-ladder + .bc-ach-ladder { box-shadow: 0 -1px 0 0 var(--bc-line, rgba(15, 15, 25, 0.07)); }
.bc-ach-licon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(91, 75, 209, 0.1);
  color: var(--bc-accent, #5b4bd1);
  font-size: 13px;
}
.bc-ach-ladder.is-maxed .bc-ach-licon { background: linear-gradient(135deg, #f5b301, #e67e22); color: #fff; }
.bc-ach-ladder.is-none .bc-ach-licon { background: var(--bc-surface-3, #eeeef2); color: var(--bc-faint, #9a9aa5); }
.bc-ach-lmain { flex: 1 1 auto; min-width: 0; }
.bc-ach-ltop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.bc-ach-lname { color: var(--bc-ink, #0b0b10); font-size: 13.5px; font-weight: 600; }
.bc-ach-lvalue { color: var(--bc-muted, #6b6b76); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-ach-lvalue b { color: var(--bc-ink, #0b0b10); font-size: 13.5px; font-weight: 650; }
.bc-ach-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--bc-surface-3, #eeeef2);
}
.bc-ach-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c6ee6, var(--bc-accent, #5b4bd1));
  transition: width 0.8s var(--bc-ease, ease);
}
.bc-ach-ladder.is-maxed .bc-ach-bar > span { background: linear-gradient(90deg, #f5b301, #e67e22); }
.bc-ach-pip {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--bc-surface, #fff);
  box-shadow: 0 0 0 2px var(--bc-surface-3, #eeeef2);
}
.bc-ach-pip:last-of-type { margin-left: -10px; }
.bc-ach-pip.is-on { background: var(--bc-accent, #5b4bd1); box-shadow: 0 0 0 2px var(--bc-surface, #fff); }
.bc-ach-ladder.is-maxed .bc-ach-pip.is-on { background: #e67e22; }
.bc-ach-tiers { position: relative; display: flex; margin-top: 6px; }
.bc-ach-tiers > span {
  flex: 1 1 0;
  text-align: right;
  color: var(--bc-faint, #9a9aa5);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.bc-ach-tiers > span.is-on { color: var(--bc-ink-2, #3a3a44); font-weight: 600; }

@media (max-width: 600px) {
  .bc-ach-badges { grid-template-columns: 1fr; gap: 6px; }
  .bc-ach-badge { padding: 9px 10px; gap: 8px; }
  .bc-ach-icon { width: 30px; height: 30px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-ach-badge, .bc-ach-bar > span { transition: none; }
}
