.profile-screen {
  padding: var(--space-md);
}

.profile__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) 0;
}

.profile__avatar {
  margin-bottom: var(--space-md);
  position: relative;
}

.profile__level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--gradient-secondary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  border: 2px solid var(--bg-app);
}

.profile__name {
  font-size: var(--text-xl);
  font-weight: 800;
}

.profile__discriminator {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.profile__rank {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-primary-50);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.profile__xp-bar {
  width: 100%;
  max-width: 240px;
  margin-top: var(--space-md);
}

.profile__xp-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.profile__stat {
  padding: var(--space-md);
  text-align: center;
}

.profile__stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.profile__stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.profile__iq-card {
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-lg);
  background: var(--gradient-dark);
  color: white;
  border-radius: var(--radius-xl);
}

.profile__iq-label {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.profile__iq-value {
  font-size: var(--text-4xl);
  font-weight: 900;
  margin: var(--space-sm) 0;
}

.profile__iq-rank {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.profile__section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.profile__history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.profile__history-mode {
  font-weight: 600;
  font-size: var(--text-sm);
}

.profile__history-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.profile__history-score {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* ═══ Tablet (640px+) ═══ */
@media (min-width: 640px) {
  .profile-screen {
    padding: var(--space-lg);
  }

  .profile__name {
    font-size: var(--text-2xl);
  }

  .profile__stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  .profile__stat-value {
    font-size: var(--text-2xl);
  }

  .profile__stat-label {
    font-size: var(--text-sm);
  }

  .profile__iq-card {
    padding: var(--space-xl);
  }

  .profile__iq-value {
    font-size: var(--text-5xl);
  }

  .profile__xp-bar {
    max-width: 360px;
  }

  .profile__history-mode {
    font-size: var(--text-base);
  }
}

/* ═══ Desktop (1024px+) ═══ */
@media (min-width: 1024px) {
  .profile-screen {
    padding: var(--space-xl);
  }

  .profile__level-badge {
    width: 36px;
    height: 36px;
    font-size: var(--text-sm);
  }
}
