/* Rank Income — current rank + ladder */

.rank-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.rank-current__label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rank-current__title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rank-current__title strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.rank-current__title small {
  font-size: 0.8rem;
  color: var(--muted);
}

.rank-medal {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rank-medal i,
.rank-medal svg {
  width: 24px !important;
  height: 24px !important;
}

.rank-medal--bronze {
  background: #fef3c7;
  color: #b8954f;
}

.rank-medal--silver {
  background: #f1f5f9;
  color: #475569;
}

.rank-medal--gold {
  background: color-mix(in srgb, var(--brand) 14%, #e8f8f2);
  color: var(--brand);
}

.rank-medal--platinum {
  background: #e0e7ff;
  color: #4338ca;
}

.rank-medal--diamond {
  background: #e8f8f2;
  color: #00a67e;
}

.rank-ladder {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.rank-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 64px;
  padding: 0.55rem 0.45rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-step.is-done {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, #fff);
}

.rank-step.is-current {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
  transform: translateY(-2px);
}

.rank-step.is-locked {
  opacity: 0.55;
}

.rank-step__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.rank-step.is-done .rank-step__dot,
.rank-step.is-current .rank-step__dot {
  background: var(--brand);
}

.rank-step span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rank-tag--bronze {
  background: #fef3c7;
  color: #92400e;
}

.rank-tag--silver {
  background: #f1f5f9;
  color: #334155;
}

.rank-tag--gold {
  background: #e8f8f2;
  color: #00a67e;
}

.rank-tag--platinum {
  background: #e0e7ff;
  color: #3730a3;
}

.rank-tag--diamond {
  background: #e8f8f2;
  color: #0b6e56;
}

@media (max-width: 767.98px) {
  .rank-current__left {
    width: 100%;
  }

  .rank-ladder {
    width: 100%;
  }

  .rank-step {
    flex: 1;
    min-width: 56px;
  }
}
