/* Profile → Achievements (Premium program) */

.profile-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 2px;
  position: relative;
  z-index: 2;
}

.profile-subtab {
  appearance: none;
  border: 1px solid var(--theme-ach-subtab-border);
  background: var(--theme-ach-subtab-bg);
  color: var(--theme-ach-subtab-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-subtab:hover {
  background: var(--theme-ach-subtab-hover-bg);
  border-color: var(--theme-ach-subtab-hover-border);
}

.profile-subtab.active {
  background: var(--theme-ach-subtab-active-bg);
  border-color: var(--theme-ach-subtab-active-border);
  color: var(--theme-ach-subtab-active-text);
}

.profile-subtab-notification-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 700;
  color: var(--theme-text-on-filled-primary);
  background: var(--theme-ach-badge-bg);
  border: 1px solid var(--theme-ach-badge-border);
}

.profile-premium-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--theme-ach-premium-gradient);
  color: var(--theme-ach-premium-text);
  font-weight: 700;
}

.profile-accolades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  min-height: 0;
  justify-content: center;
}

.profile-accolades:empty {
  display: none;
}

.profile-accolade-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--theme-ach-accolade-bg);
  border: 1px solid var(--theme-ach-accolade-border);
  color: var(--theme-ach-accolade-text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  letter-spacing: 0.01em;
}

.profile-accolade-chip i {
  color: var(--theme-ach-accolade-icon);
  font-size: 0.9rem;
}

.achievements-root {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.achievements-upsell {
  text-align: center;
  padding: 28px 20px 36px;
  background: var(--theme-ach-upsell-bg);
  border-radius: 14px;
  border: 1px solid var(--theme-ach-upsell-border);
}

.achievements-upsell h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--theme-text-heading);
}

.achievements-upsell p {
  margin: 0 0 18px;
  color: var(--theme-ach-upsell-text);
  line-height: 1.5;
}

.achievements-teaser-list {
  text-align: left;
  max-width: min(560px, 100%);
  margin: 0 auto 20px;
  padding: 0;
  list-style: none;
}

.achievements-teaser-list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--theme-ach-teaser-li-bg);
  border-radius: 8px;
  border: 1px solid var(--theme-ach-teaser-li-border);
  color: var(--theme-text-body);
}

.achievements-teaser-list li strong {
  display: block;
  margin-bottom: 4px;
}

.achievements-banner-muted {
  font-size: 0.85rem;
  color: var(--theme-ach-banner-muted-text);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--theme-ach-banner-muted-bg);
  border-radius: 8px;
  border: 1px solid var(--theme-ach-banner-muted-border);
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-card {
  background: var(--theme-ach-card-bg);
  border-radius: 12px;
  border: 1px solid var(--theme-ach-card-border);
  padding: 14px 16px;
}

.achievement-card.unlocked {
  border-color: var(--theme-ach-card-unlocked-border);
  background: var(--theme-ach-card-unlocked-bg);
}

.achievement-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.achievement-card-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--theme-text-heading);
}

.achievement-card-desc {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--theme-ach-card-desc);
  line-height: 1.45;
}

.achievement-status {
  flex-shrink: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--theme-ach-status-bg);
  color: var(--theme-ach-status-text);
}

.achievement-card.unlocked .achievement-status {
  background: var(--theme-ach-status-unlocked-bg);
  color: var(--theme-ach-status-unlocked-text);
}

.achievement-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--theme-ach-progress-track);
  overflow: hidden;
  margin-bottom: 8px;
}

.achievement-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--theme-ach-progress-fill);
  transition: width 0.35s ease;
}

.achievement-card.unlocked .achievement-progress-fill {
  background: var(--theme-ach-progress-fill-done);
}

.achievement-progress-label {
  font-size: 0.8rem;
  color: var(--theme-ach-progress-label);
  margin-bottom: 6px;
}

.achievement-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.achievement-reward-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--theme-ach-reward-bg);
  border: 1px solid var(--theme-ach-reward-border);
}

.achievement-reward-tag.reward-bg {
  border-color: var(--theme-ach-reward-bg-border);
}

.achievement-reward-tag.reward-accolade {
  border-color: var(--theme-ach-reward-accolade-border);
}

.achievements-placeholder {
  text-align: center;
  color: var(--theme-ach-placeholder);
  padding: 24px;
}

.achievements-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--theme-ach-metrics-text);
}

.achievements-metrics span {
  padding: 6px 10px;
  background: var(--theme-ach-metrics-bg);
  border-radius: 8px;
  border: 1px solid var(--theme-ach-metrics-border);
}
