.brand-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
}

.public-profile-page {
  max-width: 1180px;
  margin: clamp(24px, 5vw, 56px) auto;
  padding: 0 clamp(14px, 3vw, 24px) clamp(48px, 8vw, 88px);
  display: grid;
  gap: 22px;
}

.public-profile-hero {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 26px);
  background: linear-gradient(160deg, rgba(14, 24, 56, 0.94), rgba(7, 12, 30, 0.96));
  border: 1px solid rgba(116, 243, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
}

.public-profile-hero::before {
  content: "";
  position: absolute;
  inset: -120px 48% auto -80px;
  height: 240px;
  background: radial-gradient(circle, rgba(116, 243, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.public-profile-hero:has(.public-profile-hero__settings) {
  padding-right: 58px;
}

.public-profile-hero__settings {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(116, 243, 255, 0.2);
  background: rgba(8, 14, 36, 0.72);
  color: #9befff;
  cursor: pointer;
}

.public-profile-hero__settings:hover {
  background: rgba(116, 243, 255, 0.16);
  color: #fff;
}

.public-profile-hero__settings svg,
.public-profile-hero__settings i[data-lucide] {
  width: 18px;
  height: 18px;
}

.public-profile-hero__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
  flex-wrap: wrap;
}

.public-profile-avatar-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(116, 243, 255, 0.22);
  flex-shrink: 0;
}

.public-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(7, 12, 30, 0.8);
}

.public-profile-hero__info {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 240px;
}

.public-profile-hero__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(116, 243, 255, 0.7);
}

.public-profile-hero__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.public-profile-hero__name {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.public-profile-role-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  border: 1px solid transparent;
}

.public-profile-role-badge[data-role="owner"] {
  background: rgba(249, 179, 76, 0.16);
  border-color: rgba(249, 179, 76, 0.32);
  color: #f9b34c;
}

.public-profile-role-badge[data-role="admin"] {
  background: rgba(116, 243, 255, 0.12);
  border-color: rgba(116, 243, 255, 0.28);
  color: #74f3ff;
}

.public-profile-role-badge[data-role="moderator"] {
  background: rgba(124, 140, 255, 0.16);
  border-color: rgba(124, 140, 255, 0.3);
  color: #9aa6ff;
}

.public-profile-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid rgba(116, 243, 255, 0.24);
  background: rgba(116, 243, 255, 0.08);
  color: #9befff;
  cursor: pointer;
  font: inherit;
}

.public-profile-edit-btn:hover {
  background: rgba(116, 243, 255, 0.18);
  color: #fff;
}

.public-profile-edit-btn svg,
.public-profile-edit-btn i[data-lucide] {
  width: 16px;
  height: 16px;
}

.public-profile-hero__meta,
.public-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.public-profile-hero__meta {
  margin-top: 2px;
}

.public-profile-hero__meta-item,
.public-profile-chip-btn,
.public-profile-supporter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(176, 196, 220, 0.86);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.3;
}

.public-profile-chip-btn {
  cursor: pointer;
  color: rgba(155, 239, 255, 0.88);
}

.public-profile-chip-btn:hover {
  color: #fff;
}

.public-profile-hero__meta-item i,
.public-profile-hero__meta-item svg,
.public-profile-chip-btn i,
.public-profile-chip-btn svg,
.public-profile-supporter-badge i,
.public-profile-supporter-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.public-profile-supporter-badge {
  color: #fcd34d;
}

.public-profile-hero__actions {
  margin-top: 6px;
  gap: 8px;
}

.public-profile-hero__socials-row,
.public-profile-hero__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.public-profile-hero__actions .public-profile-hero__socials {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.public-profile-hero__steam-link,
.public-profile-hero__report-btn,
.public-profile-hero__share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.public-profile-hero__steam-link,
.public-profile-hero__share {
  background: rgba(35, 152, 218, 0.12);
  border-color: rgba(102, 192, 244, 0.22);
  color: #cdebff;
}

.public-profile-hero__steam-link:hover,
.public-profile-hero__share:hover {
  background: rgba(35, 152, 218, 0.2);
}

.public-profile-hero__report-btn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.public-profile-hero__report-btn:hover {
  background: rgba(239, 68, 68, 0.14);
}

.public-profile-hero__social {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-decoration: none;
}

.public-profile-hero__social[data-brand="x"] { color: #fff; }
.public-profile-hero__social[data-brand="youtube"] { color: #ff5b5b; }
.public-profile-hero__social[data-brand="twitch"] { color: #bf94ff; }
.public-profile-hero__social[data-brand="discord"] { color: #8ea8ff; }
.public-profile-hero__social[data-brand="github"] { color: #e2e8f0; }
.public-profile-hero__social[data-brand="website"] { color: #74f3ff; }

.public-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-profile-stat {
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 20, 48, 0.45);
  border: 1px solid rgba(116, 243, 255, 0.1);
}

.public-profile-stat__label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.public-profile-stat__value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.public-profile-stat__sub {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
}

.public-profile-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-profile-tabs button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.public-profile-tabs button.is-active {
  color: #74f3ff;
  border-bottom-color: #74f3ff;
}

.public-profile-panel[hidden] {
  display: none !important;
}

.public-profile-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.public-profile-section__title {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}

.public-profile-section__count,
.public-profile-owner__lead {
  margin: 0 0 12px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.88rem;
}

.pp-collection-group {
  margin-top: 18px;
}

.pp-pattern-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pp-pattern-modal__highlight {
  margin: 6px 0 0;
  color: rgba(148, 163, 184, 0.9);
}

.pp-pattern-modal__footer {
  display: flex;
  justify-content: flex-end;
}

.profile-social-editor__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.public-profile-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 243, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 18, 44, 0.88), rgba(7, 12, 30, 0.82));
}

.public-profile-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.public-profile-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.public-profile-search i[data-lucide],
.public-profile-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(148, 163, 184, 0.75);
  pointer-events: none;
}

.public-profile-search__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 36, 0.78);
  color: #fff;
  font: inherit;
}

.public-profile-search__input:focus {
  outline: none;
  border-color: rgba(116, 243, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(116, 243, 255, 0.12);
}

.public-profile-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}

.public-profile-filter.is-active {
  border-color: rgba(116, 243, 255, 0.38);
  background: rgba(116, 243, 255, 0.14);
  color: #74f3ff;
}

.public-profile-filter__count {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(8, 14, 36, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.public-profile-filter.is-active .public-profile-filter__count {
  background: rgba(8, 14, 36, 0.5);
  color: #9befff;
}

.public-profile-grid,
.pp-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.public-profile-card,
.pp-collection-card {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(12, 20, 48, 0.82), rgba(7, 12, 30, 0.92));
  border: 1px solid rgba(116, 243, 255, 0.12);
  min-width: 0;
}

.public-profile-card__art,
.pp-collection-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #070b1c;
}

.public-profile-card__art-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.public-profile-card__thumb,
.pp-collection-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-profile-card__thumb--empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.8rem;
}

.public-profile-card__corner-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  pointer-events: none;
}

.pp-collection-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.public-profile-card__status,
.public-profile-card__tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.public-profile-card__status--approved { background: rgba(16, 80, 42, 0.78); color: #86efac; }
.public-profile-card__status--pending { background: rgba(90, 68, 10, 0.82); color: #fde68a; }
.public-profile-card__status--denied { background: rgba(88, 24, 24, 0.82); color: #fca5a5; }
.public-profile-card__tag { background: rgba(8, 14, 36, 0.78); color: #cbd5e1; }

.public-profile-card__skin,
.pp-collection-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  overflow-wrap: anywhere;
}

.public-profile-card__highlight,
.pp-collection-card__meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: rgba(226, 232, 240, 0.88);
  overflow-wrap: anywhere;
}

.public-profile-card__description {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(196, 226, 255, 0.78);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.public-profile-card__description-edit {
  display: none;
  gap: 8px;
}
.public-profile-card__description-edit.is-open {
  display: grid;
}
.public-profile-card__description-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 14, 32, 0.9);
  color: #f3f7ff;
  font-size: 0.74rem;
  line-height: 1.4;
  resize: vertical;
  font-family: inherit;
}
.public-profile-card__description-input:focus {
  outline: none;
  border-color: rgba(116, 243, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(116, 243, 255, 0.12);
}
.public-profile-card__description-actions {
  display: flex;
  gap: 8px;
}
.public-profile-card__description-btn {
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 14, 32, 0.85);
  color: #c4e2ff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.public-profile-card__description-btn:hover {
  background: rgba(20, 40, 80, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
}
.public-profile-card__description-btn--save {
  background: rgba(40, 90, 160, 0.7);
  border-color: rgba(80, 140, 220, 0.5);
  color: #fff;
}
.public-profile-card__description-btn--save:hover {
  background: rgba(50, 110, 200, 0.8);
}
.public-profile-card__description-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.public-profile-card__rename-status {
  margin: 4px 0 0;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 200, 90, 0.32);
  background: rgba(80, 60, 10, 0.28);
  color: rgba(255, 222, 160, 0.92);
  font-size: 0.7rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.public-profile-card__rename-edit {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.public-profile-card__rename-edit[hidden] {
  display: none;
}
.public-profile-card__rename-from {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(196, 226, 255, 0.7);
}
.public-profile-card__rename-from strong {
  color: #c4e2ff;
}
.public-profile-card__edit-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(196, 226, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.public-profile-card__edit-toggle:hover {
  color: #c4e2ff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(20, 40, 80, 0.4);
}
.public-profile-card__edit-toggle i,
.public-profile-card__edit-toggle svg {
  width: 13px;
  height: 13px;
}

.public-profile-card__footer,
.pp-collection-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.public-profile-card__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-profile-card__link,
.pp-collection-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: rgba(116, 243, 255, 0.88);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.public-profile-card__votes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.85);
}

.public-profile-card__vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.public-profile-card__vote--btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.public-profile-card__vote--btn[data-direction="up"].is-selected { color: #86efac; }
.public-profile-card__vote--btn[data-direction="down"].is-selected { color: #fca5a5; }

.public-profile-empty {
  padding: 36px 16px;
  text-align: center;
  color: rgba(148, 163, 184, 0.85);
}

.pp-edit-modal,
.pp-pattern-modal,
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pp-edit-modal[hidden],
.pp-pattern-modal[hidden],
.report-modal[hidden] {
  display: none;
}

.pp-edit-modal__backdrop,
.pp-pattern-modal__backdrop,
.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.pp-edit-modal__dialog,
.pp-pattern-modal__dialog,
.report-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(16, 28, 68, 0.98), rgba(8, 14, 36, 0.98));
  border: 1px solid rgba(116, 243, 255, 0.2);
  border-radius: 16px;
}

.report-modal__dialog { width: min(480px, 100%); }

.pp-edit-modal__header,
.pp-pattern-modal__header,
.report-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pp-edit-modal__title,
.pp-pattern-modal__title,
.report-modal__title {
  margin: 0;
  color: #fff;
}

.pp-pattern-modal__close,
.report-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.pp-pattern-modal__art {
  display: grid;
  place-items: center;
  background: #050814;
  border-radius: 12px;
  overflow: hidden;
}

.pp-pattern-modal__img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: contain;
}

.pp-pattern-modal__skin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #74f3ff;
  text-decoration: none;
  font-weight: 700;
}

.pp-edit-modal__section-title,
.pp-collection-group__title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.profile-social-editor__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.profile-social-clear {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
}

.pp-inventory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.pp-referral-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 0 0 16px;
}

.pp-referral-stats .public-profile-stat {
  min-width: 140px;
}

.pp-referral-spark {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 64px;
  min-width: 180px;
  flex: 1 1 220px;
  padding: 10px 12px 8px;
  border-radius: 12px;
  border: 1px solid rgba(116, 243, 255, 0.1);
  background: rgba(8, 14, 36, 0.55);
}

.pp-referral-spark span {
  flex: 1;
  min-width: 5px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(116, 243, 255, 0.85), rgba(116, 243, 255, 0.28));
}

.report-modal__body,
.report-modal__field,
.report-modal__actions {
  display: grid;
  gap: 10px;
}

.report-modal__select,
.report-modal__textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(116, 243, 255, 0.14);
  background: rgba(8, 14, 36, 0.6);
  color: #e2e8f0;
  font: inherit;
}

.public-profile-hero__social--nolink {
  cursor: default;
}

.public-profile-hero__social .brand-icon,
.profile-social-editor__label .brand-icon,
.public-profile-hero__steam-link .brand-icon {
  width: 16px;
  height: 16px;
}

.pp-collection-card__remove,
.pp-collection-card__unown {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fda4af;
  cursor: pointer;
}

.pp-collection-card__remove.is-active,
.pp-collection-card__unown:hover {
  background: rgba(239, 68, 68, 0.14);
}

.pp-inventory-status,
.pp-inventory-empty {
  margin: 0;
  padding: 6px 2px 2px;
  text-align: left;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.88rem;
}

.pp-inventory-status[data-state="error"] {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.pp-inventory-load,
.pp-inventory-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pp-inventory-load.is-loading {
  opacity: 0.62;
}

.pp-inventory-privacy {
  margin-top: 12px;
}

.pp-inventory-summary {
  margin: 0;
  margin-right: auto;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.92);
}

.pp-inventory-summary strong {
  color: #e2e8f0;
}

.pp-inventory-summary span {
  color: #86efac;
  font-weight: 700;
}

.pp-inventory-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pp-inventory-grid,
.pp-inventory-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}

.pp-inventory-skeleton[hidden],
.pp-inventory-grid[hidden],
.pp-inventory-status[hidden],
.pp-inventory-summary[hidden],
[data-inventory-search-wrap][hidden],
[data-inventory-filters][hidden] {
  display: none !important;
}

.pp-inventory-card {
  --pp-rarity: rgba(116, 243, 255, 0.55);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(16, 26, 58, 0.96), rgba(7, 11, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pp-rarity) 16%, transparent);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pp-inventory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--pp-rarity);
  opacity: 0.92;
  z-index: 2;
}

.pp-inventory-card:hover,
.pp-inventory-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pp-rarity) 42%, rgba(255, 255, 255, 0.08));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 28px color-mix(in srgb, var(--pp-rarity) 20%, transparent);
}

.pp-inventory-card.is-unmapped {
  opacity: 0.92;
}

.pp-inventory-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 88%, color-mix(in srgb, var(--pp-rarity) 32%, transparent), transparent 72%),
    #070b1c;
}

.pp-inventory-card__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(7, 11, 26, 0.96), transparent);
  pointer-events: none;
}

.pp-inventory-card__art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: scale(0.92);
  transition: transform 0.22s ease;
}

.pp-inventory-card:hover .pp-inventory-card__art > img,
.pp-inventory-card:focus-visible .pp-inventory-card__art > img {
  transform: scale(1.04);
}

.pp-inventory-card__empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.78rem;
}

.pp-inventory-card__badges {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pp-inventory-card__badge {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.pp-inventory-card__badge--st {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}

.pp-inventory-card__badge--sv {
  background: rgba(116, 243, 255, 0.16);
  color: #9befff;
}

.pp-inventory-card__badge--star {
  background: rgba(228, 174, 57, 0.2);
  color: #fbbf24;
}

.pp-inventory-card__qty {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(8, 13, 28, 0.82);
  border: 1px solid rgba(116, 243, 255, 0.28);
  color: #9befff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
}

.pp-inventory-card__body {
  display: grid;
  gap: 3px;
  padding: 10px 12px 12px;
  min-width: 0;
}

.pp-inventory-card__weapon {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-inventory-card__skin {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-inventory-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.pp-inventory-card__wear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.74rem;
  color: var(--pp-wear, #94a3b8);
}

.pp-inventory-card__wear.is-empty,
.pp-inventory-card__price.is-empty {
  color: rgba(148, 163, 184, 0.55);
  font-weight: 500;
}

.pp-inventory-card__wear-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pp-wear, #94a3b8);
  box-shadow: 0 0 8px var(--pp-wear, transparent);
  flex-shrink: 0;
}

.pp-inventory-card__wear-short {
  display: none;
}

.pp-inventory-card__price {
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.pp-inventory-card__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.pp-inventory-card__chip,
.pp-inventory-card__nametag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.88);
}

.pp-inventory-card__nametag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fde68a;
}

.pp-inventory-card__float-bar {
  position: relative;
  height: 4px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #facc15, #fb923c, #f87171);
  opacity: 0.85;
}

.pp-inventory-card__float-bar i {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(7, 11, 26, 0.85);
  transform: translate(-50%, -50%);
}

.pp-inventory-card__stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: rgba(148, 163, 184, 0.92);
}

.pp-inventory-card__float {
  color: #e2e8f0;
  font-weight: 650;
}

.pp-inventory-card__seed {
  color: rgba(155, 239, 255, 0.88);
}

.pp-inventory-card__stickers {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 2px;
  margin-top: -14px;
}

.pp-inventory-card__sticker {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(7, 11, 26, 0.78);
  border: 1px solid color-mix(in srgb, var(--pp-sticker, rgba(255, 255, 255, 0.16)) 55%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.pp-inventory-card__sticker img,
.pp-inventory-card__sticker-empty {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pp-inventory-card__sticker-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  min-width: 132px;
  max-width: 220px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(8, 13, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 5;
}

.pp-inventory-card__sticker-tip strong,
.pp-inventory-card__sticker-tip em {
  display: block;
}

.pp-inventory-card__sticker-tip strong {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
}

.pp-inventory-card__sticker-tip em {
  margin-top: 3px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 750;
  color: #86efac;
}

.pp-inventory-card__sticker:hover,
.pp-inventory-card__sticker:focus-visible {
  z-index: 6;
}

.pp-inventory-card__sticker:hover .pp-inventory-card__sticker-tip,
.pp-inventory-card__sticker:focus-visible .pp-inventory-card__sticker-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pp-inventory-card__sticker:first-child .pp-inventory-card__sticker-tip {
  left: 0;
  transform: translateY(4px);
}

.pp-inventory-card__sticker:first-child:hover .pp-inventory-card__sticker-tip,
.pp-inventory-card__sticker:first-child:focus-visible .pp-inventory-card__sticker-tip {
  transform: translateY(0);
}

.pp-inventory-card__sticker:last-child:not(:first-child) .pp-inventory-card__sticker-tip {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.pp-inventory-card__sticker:last-child:not(:first-child):hover .pp-inventory-card__sticker-tip,
.pp-inventory-card__sticker:last-child:not(:first-child):focus-visible .pp-inventory-card__sticker-tip {
  transform: translateY(0);
}

.pp-inventory-card:has(.pp-inventory-card__sticker:hover),
.pp-inventory-card:has(.pp-inventory-card__sticker:focus-visible) {
  overflow: visible;
  z-index: 5;
}

.pp-inventory-skel-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(12, 20, 48, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: pp-inv-breathe 1.7s ease-in-out infinite;
}

.pp-inventory-skel-card:nth-child(2) { animation-delay: 0.1s; }
.pp-inventory-skel-card:nth-child(3) { animation-delay: 0.2s; }
.pp-inventory-skel-card:nth-child(4) { animation-delay: 0.3s; }
.pp-inventory-skel-card:nth-child(5) { animation-delay: 0.4s; }
.pp-inventory-skel-card:nth-child(6) { animation-delay: 0.5s; }
.pp-inventory-skel-card:nth-child(7) { animation-delay: 0.6s; }
.pp-inventory-skel-card:nth-child(8) { animation-delay: 0.7s; }

.pp-inventory-skel-card__art {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.05);
}

.pp-inventory-skel-card__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.pp-inventory-skel-card__line {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pp-inventory-skel-card__line--xs { width: 42%; height: 8px; }
.pp-inventory-skel-card__line--sm { width: 48%; }
.pp-inventory-skel-card__line--price { width: 28%; }

.pp-inventory-skel-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

@keyframes pp-inv-breathe {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.92; }
}

.referral-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.referral-list__item {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(12, 20, 48, 0.82), rgba(7, 12, 30, 0.92));
  border: 1px solid rgba(116, 243, 255, 0.12);
}

.referral-list__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.referral-list__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.referral-list__slug {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: #fff;
}

.referral-list__url {
  border: 0;
  background: none;
  color: #9befff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0;
  text-align: left;
}

.referral-list__url:hover {
  color: #fff;
}

.referral-list__stat {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.8rem;
  font-weight: 650;
}

.referral-list__empty {
  margin: 0 0 12px;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.88rem;
}

.referral-form {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.referral-form__label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.referral-form__group {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(116, 243, 255, 0.16);
  background: rgba(8, 14, 36, 0.78);
}

.referral-form__prefix {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: rgba(148, 163, 184, 0.82);
  background: rgba(5, 10, 24, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.referral-form__group input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.referral-form__submit {
  flex: 0 0 auto;
  border: 0;
  padding: 0 14px;
  background: rgba(116, 243, 255, 0.16);
  color: #74f3ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.referral-form__submit:hover {
  background: rgba(116, 243, 255, 0.24);
}

.referral-form__status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.88);
}

.public-profile-panel__intro {
  margin: 4px 0 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.86rem;
}

.pp-edit-modal {
  padding: 18px;
  align-items: center;
}

.pp-edit-modal__backdrop {
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(10px);
}

.pp-edit-modal .pp-edit-modal__dialog {
  width: min(520px, 100%);
  max-height: min(88vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #0b1228;
  border: 1px solid rgba(116, 243, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.pp-edit-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.pp-edit-modal__eyebrow {
  margin: 0 0 3px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(116, 243, 255, 0.7);
}

.pp-edit-modal__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
}

.pp-edit-modal__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
}

.pp-edit-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pp-nameplates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.pp-nameplates-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(12, 20, 48, 0.5);
  border: 1px solid rgba(116, 243, 255, 0.1);
  min-width: 0;
}

.pp-nameplates-card.is-equipped {
  border-color: rgba(116, 243, 255, 0.35);
}

.pp-nameplates-card__preview {
  justify-self: start;
  font-size: 1rem;
}

.pp-nameplates-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
}

.pp-nameplates-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

.pp-nameplates-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pp-privacy-list,
.pp-privacy-nameplates {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.pp-privacy-toggle {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.pp-privacy-toggle--plate {
  grid-template-columns: 42px max-content minmax(0, 1fr);
}

.pp-privacy-toggle--plate .nameplate,
.pp-nameplate-option__sample,
.pp-nameplate-preview,
.pp-nameplates-card__preview {
  width: max-content;
  max-width: 100%;
  justify-self: start;
}

.pp-privacy-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pp-privacy-toggle__ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}

.pp-privacy-toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.16s ease, background 0.16s ease;
}

.pp-privacy-toggle input:checked + .pp-privacy-toggle__ui {
  background: rgba(116, 243, 255, 0.35);
}

.pp-privacy-toggle input:checked + .pp-privacy-toggle__ui::after {
  transform: translateX(18px);
  background: #74f3ff;
}

.pp-privacy-toggle__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pp-privacy-toggle__copy strong {
  font-size: 0.86rem;
  color: #e2e8f0;
}

.pp-privacy-toggle__copy small {
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.74rem;
}

.pp-edit-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}

.pp-edit-modal__tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(148, 163, 184, 0.95);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}

.pp-edit-modal__tab svg,
.pp-edit-modal__tab i[data-lucide] {
  width: 15px;
  height: 15px;
}

.pp-edit-modal__tab.is-active {
  background: rgba(116, 243, 255, 0.12);
  border-color: rgba(116, 243, 255, 0.32);
  color: #74f3ff;
}

.pp-edit-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 4px 18px 16px;
}

.pp-edit-modal__section[hidden] {
  display: none;
}

.pp-edit-modal__hint {
  margin: 0 0 12px;
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.82rem;
}

.pp-social-list {
  display: grid;
  gap: 8px;
}

.pp-social-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pp-social-row__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #e2e8f0;
}

.pp-social-row__brand .brand-icon,
.pp-social-row__brand i[data-lucide] {
  width: 15px;
  height: 15px;
}

.pp-social-row__brand[data-brand="x"] { color: #fff; }
.pp-social-row__brand[data-brand="youtube"] { color: #ff6b6b; }
.pp-social-row__brand[data-brand="twitch"] { color: #bf94ff; }
.pp-social-row__brand[data-brand="discord"] { color: #8ea8ff; }
.pp-social-row__brand[data-brand="github"] { color: #e2e8f0; }
.pp-social-row__brand[data-brand="website"] { color: #74f3ff; }

.pp-social-row__control {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  border-radius: 9px;
  background: rgba(5, 10, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pp-social-row__control:focus-within {
  border-color: rgba(116, 243, 255, 0.38);
}

.pp-social-row__prefix {
  flex: 0 0 auto;
  padding: 0 0 0 10px;
  color: rgba(148, 163, 184, 0.75);
  font-size: 0.76rem;
  white-space: nowrap;
}

.pp-social-row__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  padding: 8px 8px;
  outline: none;
  box-shadow: none;
}

.pp-social-row__input:focus,
.pp-social-row__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.pp-social-row__clear {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgba(148, 163, 184, 0.8);
  cursor: pointer;
}

.pp-social-row__clear:hover {
  color: #fda4af;
}

.pp-nameplate-preview-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(116, 243, 255, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(116, 243, 255, 0.12);
}

.pp-nameplate-preview-card__label,
.pp-nameplate-preview-card__meta {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.pp-nameplate-preview {
  font-size: 1.15rem;
  width: max-content;
  max-width: 100%;
}

.pp-nameplate-grid {
  display: grid;
  gap: 8px;
}

.pp-nameplate-option {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.pp-nameplate-option__sample {
  justify-self: start;
  font-size: 0.92rem;
  width: max-content;
  max-width: 100%;
}

.pp-nameplate-option__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pp-nameplate-option__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.pp-nameplate-option__req {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.pp-nameplate-option__lock {
  width: 14px;
  height: 14px;
  color: rgba(148, 163, 184, 0.75);
}

.pp-nameplate-option:hover {
  border-color: rgba(116, 243, 255, 0.24);
}

.pp-nameplate-option.is-selected {
  border-color: rgba(116, 243, 255, 0.45);
  background: rgba(116, 243, 255, 0.08);
}

.pp-nameplate-option.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.pp-edit-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 10, 22, 0.7);
}

.pp-edit-modal__footer[hidden] {
  display: none;
}

.pp-edit-modal__status {
  font-size: 0.78rem;
  color: #86efac;
}

.pp-edit-modal__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.pp-edit-modal__ghost,
.pp-edit-modal__save {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.pp-edit-modal__ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #cbd5e1;
}

.pp-edit-modal__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #74f3ff;
  color: #071018;
}

.pp-edit-modal__save:disabled,
.pp-edit-modal__ghost:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.pp-edit-modal__save svg,
.pp-edit-modal__save i[data-lucide] {
  width: 15px;
  height: 15px;
}

@media (max-width: 720px) {
  .pp-inventory-grid,
  .pp-inventory-skeleton {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
  }

  .pp-inventory-card__wear-full { display: none; }
  .pp-inventory-card__wear-short { display: inline; }

  .public-profile-avatar-wrap {
    width: 76px;
    height: 76px;
  }

  .public-profile-hero__identity {
    align-items: flex-start;
  }

  .public-profile-toolbar {
    padding: 10px;
  }

  .public-profile-search {
    flex-basis: 100%;
  }

  .public-profile-grid,
  .pp-collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }

  .pp-edit-modal {
    padding: 0;
  }

  .pp-edit-modal .pp-edit-modal__dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .pp-nameplate-option {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pp-nameplate-option__sample {
    grid-column: 1 / -1;
  }
}

/* ─── Inventory source dropdown ─────────────────────────────────── */

.pp-inventory__source-select {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 36, 0.78);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  outline: none;
}

.pp-inventory__source-select:focus-visible {
  border-color: rgba(116, 243, 255, 0.38);
}

.pp-inventory__source-select:hover {
  border-color: rgba(116, 243, 255, 0.24);
}

/* ─── Per-item chart icon on cards ──────────────────────────────── */

.pp-inventory-card__chart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  color: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.pp-inventory-card__chart-btn:hover,
.pp-inventory-card__chart-btn:focus-visible {
  color: #74f3ff;
  background: rgba(116, 243, 255, 0.1);
  outline: none;
}

/* ─── Inventory value chart section ─────────────────────────────── */

.pp-inventory-value-chart {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 20, 48, 0.46);
  padding: 14px 16px;
}

.pp-inventory-value-chart summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.pp-inventory-value-chart__body {
  width: 100%;
  min-height: 280px;
}

.pp-inventory-value-chart__attr {
  margin: 6px 0 0;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.55);
  text-align: right;
}

.pp-inventory-value-chart__attr a {
  color: rgba(148, 163, 184, 0.7);
  text-decoration: none;
}

/* ─── Chart modal ───────────────────────────────────────────────── */

.pp-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pp-chart-modal[hidden] {
  display: none;
}

.pp-chart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(10px);
}

.pp-chart-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 600px);
  display: flex;
  flex-direction: column;
  background: #0b1228;
  border: 1px solid rgba(116, 243, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.pp-chart-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pp-chart-modal__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-chart-modal__source {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 36, 0.78);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}

.pp-chart-modal__source:focus-visible {
  border-color: rgba(116, 243, 255, 0.38);
}

.pp-chart-modal__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 1.2rem;
  cursor: pointer;
}

.pp-chart-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pp-chart-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 18px;
}

.pp-chart-modal__canvas {
  width: 100%;
  height: 340px;
}

.pp-chart-modal__empty {
  margin: 40px 0;
  text-align: center;
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.88rem;
}

.pp-chart-modal__footer {
  padding: 8px 18px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
}

.pp-chart-modal__footer a {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.55);
  text-decoration: none;
}

@media (max-width: 720px) {
  .pp-inventory__source-select {
    margin-left: 0;
    flex-basis: 100%;
  }

  .pp-chart-modal {
    padding: 0;
  }

  .pp-chart-modal__dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}
