.profile-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.profile-topbar h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.formation-status-pill {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.formation-status-pill--pending {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.formation-status-pill--validated {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.profile-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0;
}

.profile-settings-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-settings-btn .icon {
  width: 20px;
  height: 20px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 2px;
}

.profile-since {
  font-size: 13.5px;
  color: var(--color-muted);
  margin: 0;
}

.profile-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  margin-bottom: 16px;
}

.profile-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}

.profile-stat-card__icon .icon {
  width: 20px;
  height: 20px;
}

.profile-stat-card__value {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.profile-stat-card__label {
  font-size: 13px;
  color: var(--color-muted);
  margin: 2px 0 0;
}

.gain-total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--color-secondary-soft);
  margin-bottom: 24px;
}

.gain-total-card__label {
  font-size: 14px;
  color: var(--color-primary);
  margin: 0 0 6px;
  font-weight: 600;
}

.gain-total-card__value {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

.gain-total-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  flex-shrink: 0;
}

.gain-total-card__icon .icon {
  width: 24px;
  height: 24px;
}

.gains-history__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gains-history__head h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.gains-history__see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.gains-history__see-all .icon {
  width: 15px;
  height: 15px;
}

.gains-history__see-all:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gains-history__empty {
  padding: 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
  background: var(--color-secondary-soft);
  border-radius: 14px;
}

.gain-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-top: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}

.gains-history > div > .gain-row:first-child {
  border-top: none;
}

.gain-row__date {
  font-size: 13px;
  color: var(--color-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.gain-row__vehicle {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  min-width: 0;
}

.gain-row__amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.gain-row__chevron {
  color: var(--color-muted);
  flex-shrink: 0;
  display: flex;
}

.gain-row__chevron .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .gain-row__date {
    min-width: 70px;
    font-size: 12px;
  }
}
