/* Portfolio page */
body:has(.mp-portfolio) {
  margin: 0;
  padding: 0;
  background: #f4f4f8;
  font-family: "Inter", system-ui, sans-serif;
}

.mp-portfolio {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.mp-portfolio__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  background: rgba(244, 244, 248, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mp-portfolio__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f5a623;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.mp-portfolio__icon-btn:active {
  transform: scale(0.92);
}

.mp-portfolio__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  text-align: center;
}

/* ── Estatísticas ── */
.mp-portfolio__stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px 12px;
  gap: 12px;
}

.mp-portfolio__stats-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.mp-portfolio__stats-value {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a2e;
}

.mp-portfolio__stats-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.mp-portfolio__stats-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
}

.mp-portfolio__stats-row svg {
  color: #f5a623;
  flex-shrink: 0;
}

.mp-portfolio__stats-row strong {
  color: #1a1a2e;
  font-weight: 800;
}

/* ── Lista de cartas ── */
.mp-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
  padding: 12px 10px 100px;
}

.mp-portfolio__grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #aaa;
  padding: 32px 0;
}

.mp-portfolio-card {
  display: block;
  text-decoration: none;
}

.mp-portfolio-card__name {
  margin: 6px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-portfolio-card__price {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #888;
}
