.rdm-leaderboard-nudge-wrapper,
.rdm-leaderboard-nudge-wrapper * {
  padding: 0;
  margin: 0;
  font-weight: 400;
}

.rdm-leaderboard-nudge-wrapper {
  padding: 50px;
}

.rdm-leaderboard-nudge-wrapper h2 {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 30px;
}

/* Layout */
.rdm-leaderboard-tab-buttons {
  display: flex;
  gap: 24px;
  margin: 18px 0;
  max-width: 1024px;
  overflow-x: auto;
}

.rdm-leaderboard-tab-button {
  border: none;
  cursor: pointer;
  opacity: 0.4;
  font-weight: bold;
  background: transparent;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  padding-bottom: 6px;
}

.rdm-leaderboard-tab-button.active {
  opacity: 1;
}

.rdm-leaderboard-tab-button.active:before {
  content: '';
  width: 100%;
  background: currentColor;
  height: 2px;
  position: absolute;
  bottom: 0;
}

/* Content animation */
.rdm-leaderboard-tab-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rdm-leaderboard-tab-content.active {
  opacity: 1;
  max-height: 100%;
  pointer-events: auto;
}

.rdm-leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rdm-rank-heading {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

.rdm-rank {
  font-weight: bold;
}

.rdm-leaderboard-row.rdm-user-rank {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid currentColor;
}

.rdm-leaderboard-row+.rdm-leaderboard-row {
  margin-top: 16px;
}

.rdm-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rdm-user-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.rdm-user-text .rdm-name {
  font-weight: bold;
  text-transform: capitalize;
}

.rdm-badge {
  font-weight: bold;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 24px;
  background-color: color-mix(in srgb, currentColor 30%, transparent);
  margin-left: 16px;
}

.rdm-user-info img {
  width: 44px;
  height: 44px;
  border-radius: 100%;
}

.rdm-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: #666;
}

.rdm-leaderboard-btn {
  width: 100%;
  padding: 12px;
  border-radius: 60px;
  border: 0;
  font-weight: bold;
  cursor: pointer;
  background-color: color-mix(in srgb, currentColor 30%, transparent);
}