.user-flex-grid {
  display: flex;
  gap: 3rem;
  align-items: center;
  background-color: var(--card-bg);
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  flex-wrap: wrap;
  margin-top: -3rem;
}

.user-left img.user-skin {
  width: 128px;
  height: 128px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.user-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 2.3rem;
}

.user-middle .user-name {
  font-size: 4rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-middle .user-rank {
  font-size: 3.3rem;
  color: var(--text-color);
  opacity: 0.85;
}

.user-middle .user-elo {
  font-size: 2.6rem;
  font-weight: bold;
  color: var(--text-color);
  margin-top: -2.5rem;
}

.user-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-size: 1.3rem;
  min-width: 180px;
}

.user-right .user-tier {
  font-size: 2.5rem;
  font-weight: bold;
}

.tier-splus {
  background: linear-gradient(90deg, gold, white, gold);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  font-weight: bold;
}


.user-right .user-ff {
  font-size: 2.5rem;
  font-weight: bold;
}

@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


.user-name img.user-flag {
  height: 48px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.elo-graph-section {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  max-width: 100%;     
  overflow-x: hidden;    
  min-height: calc(0vh - 360px);
}

#eloChart {
  height: 360px !important;
  width: 100%;
}


#buy-container {
  flex: 0 0 30%;
  max-width: 30%;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding-top: 5.5rem;
  flex: 1;
  min-width: 0;
}

#buy-container:empty::after {
  content: " ";
  display: block;
  height: 100%;
}


@media (max-width: 800px) {
  .elo-graph-section {
    flex-direction: column;
  }
  #eloChart {
    width: 100%;
  }
}

#user-container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 800px) {
  .elo-graph-section {
    flex-direction: column;
  }

  #eloChart,
  #buy-container {
    flex: 1 1 100%;
    width: 100%;
  }
}

.elo-chart-wrapper {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 0 8px rgba(255,255,255,0.05);
    flex: 3;
  min-width: 0;
}

.supporter-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  animation: supporterCatShimmer 2s infinite linear;
}
.supporter-label {
  color: #ffd700;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 0 8px #ffd70088;
}
@keyframes supporterCatShimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}
