.header {
  background-color: #FFFFFF; /* Непрозрачный белый */
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: var(--safe-area-inset-top); /* Учитываем безопасную область сверху */
  /* Удалены эффекты размытия и прозрачности */
}

.container {
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--spacing-small) var(--spacing-medium);
  width: 100%;
  box-sizing: border-box;
}

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

.profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-small);
  padding: var(--spacing-small);
  margin: calc(-1 * var(--spacing-small));
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.profile:hover {
  background-color: rgba(var(--color-text-rgb), 0.05);
}

.profile:active {
  background-color: rgba(var(--color-text-rgb), 0.08);
  transform: scale(0.98);
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-background);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.profile:hover .avatar {
  border-color: var(--color-primary);
}

.avatarImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.username {
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.profile:hover .username {
  color: var(--color-primary);
}

.balance {
  display: flex;
  align-items: center;
  gap: var(--spacing-small);
  background-color: rgba(var(--color-text-rgb), 0.05);
  padding: var(--spacing-small) var(--spacing-medium);
  border-radius: 9999px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  margin-left: auto;
}

.balance:hover {
  background-color: rgba(var(--color-text-rgb), 0.08);
  transform: translateY(-1px);
}

.balanceIcon {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.balanceValue {
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
