/*
  Profile inventory and achievements module.
  Extracted from the former pages/60-profile-systems.css; keep after 63-profile-rads-likes.css.
*/

/* ===== Profile / Inventory refresh (micro poster tiles, paged, scoped) ===== */
body.page-profile .profilePane--inv{
  --inv-tile-w: 152px;
  --inv-tile-gap: 12px;
}
body.page-profile .profilePane--inv .profileLikesToolbar{
  display: grid !important;
  grid-template-columns: auto minmax(280px, 1fr) !important;
  align-items: center !important;
  gap: 10px 12px !important;
}
body.page-profile .profilePane--inv .profileLikesSearch{
  width: 100% !important;
}
body.page-profile .profilePane--inv #profileInvList,
body.page-profile .profilePane--inv #profileInvPager{
  width: 100% !important;
}
body.page-profile .profilePane--inv .profilePanel__footerActions--inv{
  margin-top: 10px !important;
  padding-top: 0 !important;
  justify-content: stretch !important;
}
body.page-profile .profilePane--inv .invCatalog{
  display: grid;
  gap: 10px;
}
body.page-profile .profilePane--inv .profileSectionMiniTitle--withMeta{
  margin-bottom: 0 !important;
}
body.page-profile .profilePane--inv .invTileGrid{
  display: flex;
  flex-wrap: wrap;
  gap: var(--inv-tile-gap);
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
}
body.page-profile .profilePane--inv .invTile{
  position: relative;
  display: block;
  flex: 0 0 var(--inv-tile-w);
  width: var(--inv-tile-w);
  max-width: var(--inv-tile-w);
  min-width: var(--inv-tile-w);
  aspect-ratio: 0.86;
  min-height: 176px;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 24px rgba(0,0,0,.14);
  isolation: isolate;
}
body.page-profile .profilePane--inv button.invTile{
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
body.page-profile .profilePane--inv .invTile--claim{
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.page-profile .profilePane--inv .invTile--claim:hover,
body.page-profile .profilePane--inv .invTile--claim:focus-visible{
  transform: translateY(-2px);
  border-color: rgba(255,171,73,.32) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 30px rgba(0,0,0,.20);
  outline: none;
}
body.page-profile .profilePane--inv .invTile.is-busy{
  pointer-events: none;
  opacity: .88;
}
body.page-profile .profilePane--inv .invTile__media,
body.page-profile .profilePane--inv .invTile__body,
body.page-profile .profilePane--inv .invTile__topline,
body.page-profile .profilePane--inv .invTile__caption,
body.page-profile .profilePane--inv .invTile__titleWrap,
body.page-profile .profilePane--inv .invTile__title,
body.page-profile .profilePane--inv .invTile__metaLine,
body.page-profile .profilePane--inv .invTile__date,
body.page-profile .profilePane--inv .invTile__actionPill{
  display: block;
}
body.page-profile .profilePane--inv .invTile__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
body.page-profile .profilePane--inv .invTile__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), rgba(13,18,30,.55));
}
body.page-profile .profilePane--inv .invTile__image--empty{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255,255,255,.88);
}
body.page-profile .profilePane--inv .invTile__shade{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,10,18,.08) 0%, rgba(7,10,18,.18) 26%, rgba(7,10,18,.74) 100%),
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.12), rgba(255,255,255,0) 44%);
  pointer-events: none;
}
body.page-profile .profilePane--inv .invTile__topline{
  position: absolute;
  inset: 8px 8px auto 8px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
}
body.page-profile .profilePane--inv .invTile__body{
  position: absolute;
  inset: auto 8px 8px 8px;
  z-index: 2;
}
body.page-profile .profilePane--inv .invTile__badge,
body.page-profile .profilePane--inv .invTile__date,
body.page-profile .profilePane--inv .invTile__metaLine,
body.page-profile .profilePane--inv .invTile__actionPill{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .02em;
}
body.page-profile .profilePane--inv .invTile__badge{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,22,.54);
  color: #f6f8fd;
}
body.page-profile .profilePane--inv .invTile__badge--ready{
  border-color: rgba(255,171,73,.28);
  background: rgba(255,140,0,.18);
  color: #ffe8ca;
}
body.page-profile .profilePane--inv .invTile__badge--queue{
  border-color: rgba(242,175,64,.30);
  background: rgba(242,175,64,.16);
  color: #ffe7bf;
}
body.page-profile .profilePane--inv .invTile__badge--done{
  border-color: rgba(89,218,146,.26);
  background: rgba(89,218,146,.15);
  color: #d9ffe9;
}
body.page-profile .profilePane--inv .invTile__badge--fail{
  border-color: rgba(255,115,115,.28);
  background: rgba(255,115,115,.14);
  color: #ffd7d7;
}
body.page-profile .profilePane--inv .invTile__badge--ghost{
  opacity: .82;
}
body.page-profile .profilePane--inv .invTile__date{
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,22,.42);
  color: rgba(239,243,251,.78);
  font-weight: 700;
}
body.page-profile .profilePane--inv .invTile__caption{
  display: grid;
  gap: 0;
}
body.page-profile .profilePane--inv .invTile__titleWrap{
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8,11,18,.22), rgba(8,11,18,.84));
  backdrop-filter: blur(5px);
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, transform .18s ease;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
body.page-profile .profilePane--inv .invTile--claim:hover .invTile__titleWrap,
body.page-profile .profilePane--inv .invTile--claim:focus-visible .invTile__titleWrap{
  background: linear-gradient(180deg, rgba(18,14,10,.56), rgba(24,15,9,.86));
  border-color: rgba(255,171,73,.24);
  box-shadow: 0 10px 24px rgba(255,140,0,.16);
}
body.page-profile .profilePane--inv .invTile__title{
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.42);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.page-profile .profilePane--inv .invTile__metaLine,
body.page-profile .profilePane--inv .invTile__date{
  display: none !important;
}
body.page-profile .profilePane--inv .invTile__actionPill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,171,73,.20);
  background: rgba(255,140,0,.18);
  color: #ffe9cc;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
body.page-profile .profilePane--inv .invTile--claim:hover .invTile__actionPill,
body.page-profile .profilePane--inv .invTile--claim:focus-visible .invTile__actionPill{
  background: rgba(255,140,0,.26);
  border-color: rgba(255,171,73,.32);
  color: #fff4e3;
}
body.page-profile .profilePane--inv .invTile__metaLine--action{
  display: none !important;
}
body.page-profile .profilePane--inv .invPager{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
}
body.page-profile .profilePane--inv .invPager__meta{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: rgba(235,240,255,.74);
  font-size: 10px;
}
body.page-profile .profilePane--inv .invPager__note{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(245,247,251,.86);
}
body.page-profile .profilePane--inv .invPager__controls{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
body.page-profile .profilePane--inv .invPager__btn{
  min-width: 34px;
  min-height: 28px;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}
body.page-profile .profilePane--inv .invPager__btn--nav{
  min-width: 74px;
}
body.page-profile .profilePane--inv .invPager__btn.is-active,
body.page-profile .profilePane--inv .invPager__btn[aria-current="page"]{
  background: linear-gradient(180deg, rgba(255,171,73,.20), rgba(255,140,0,.12)) !important;
  border-color: rgba(255,154,59,.40) !important;
  color: #fff2d9 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 24px rgba(255,140,0,.12) !important;
}
body.page-profile .profilePane--inv .invPager__dots{
  color: rgba(235,240,255,.42);
  padding: 0 2px;
  user-select: none;
}
@media (max-width: 1180px){
  body.page-profile .profilePane--inv{
    --inv-tile-w: 144px;
    --inv-tile-gap: 10px;
  }
}
@media (max-width: 980px){
  body.page-profile .profilePane--inv .profileLikesToolbar{
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 860px){
  body.page-profile .profilePane--inv{
    --inv-tile-w: 136px;
    --inv-tile-gap: 10px;
  }
}
@media (max-width: 620px){
  body.page-profile .profilePane--inv{
    --inv-tile-w: calc((100% - 10px) / 2);
    --inv-tile-gap: 10px;
  }
  body.page-profile .profilePane--inv .invTile{
    flex-basis: var(--inv-tile-w);
    width: var(--inv-tile-w);
    max-width: var(--inv-tile-w);
    min-width: var(--inv-tile-w);
    min-height: 170px;
  }
  body.page-profile .profilePane--inv .invPager{
    align-items: stretch;
  }
  body.page-profile .profilePane--inv .invPager__controls{
    width: 100%;
  }
}
@media (max-width: 420px){
  body.page-profile .profilePane--inv .invTile{
    min-height: 160px;
    border-radius: 14px !important;
  }
  body.page-profile .profilePane--inv .invTile__body{
    inset: auto 6px 6px 6px;
  }
  body.page-profile .profilePane--inv .invTile__topline{
    inset: 6px 6px auto 6px;
  }
  body.page-profile .profilePane--inv .invTile__titleWrap{
    padding: 7px 8px;
  }
  body.page-profile .profilePane--inv .invTile__title{
    font-size: 12px;
  }
  body.page-profile .profilePane--inv .invTile__metaLine,
  body.page-profile .profilePane--inv .invTile__badge,
  body.page-profile .profilePane--inv .invTile__date,
  body.page-profile .profilePane--inv .invTile__actionPill{
    font-size: 9px;
    padding: 4px 7px;
  }
}

/* Profile achievements: compact square tiles final fix */
body.page-profile .profilePane--ach{
  --ach-tile-w: 136px;
  --ach-tile-gap: 10px;
}
body.page-profile .profilePane--ach #profileAchList{
  align-content: start !important;
}
body.page-profile .profilePane--ach .achCatalog{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}
body.page-profile .profilePane--ach .achTileGrid{
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(auto-fill, minmax(var(--ach-tile-w), var(--ach-tile-w))) !important;
  justify-content: start !important;
  align-items: start !important;
  gap: var(--ach-tile-gap) !important;
}
body.page-profile .profilePane--ach .achTile{
  width: var(--ach-tile-w) !important;
  min-width: var(--ach-tile-w) !important;
  max-width: var(--ach-tile-w) !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}
body.page-profile .profilePane--ach .achTile__chips{
  top: 7px !important;
  left: 7px !important;
  right: 7px !important;
  gap: 5px !important;
}
body.page-profile .profilePane--ach .achTile__pill{
  padding: 4px 7px !important;
  font-size: 10px !important;
  line-height: 1.08 !important;
}
body.page-profile .profilePane--ach .achTile__body{
  left: 7px !important;
  right: 7px !important;
  bottom: 7px !important;
  gap: 5px !important;
}
body.page-profile .profilePane--ach .achTile__titleBand{
  min-height: 34px !important;
  padding: 8px 9px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.14 !important;
}
body.page-profile .profilePane--ach .achTile__progress{
  font-size: 11px !important;
  padding: 0 2px !important;
}
body.page-profile .profilePane--ach .achTile__progress--done{
  display: inline-flex !important;
  align-self: flex-start !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 24px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(43,153,87,.96), rgba(24,112,60,.94)) !important;
  border: 1px solid rgba(133,255,181,.28) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12) !important;
  color: #f4fff7 !important;
  text-shadow: none !important;
}
body.page-profile .profilePane--ach .achTile__bar{
  height: 6px !important;
}
body.page-profile .profilePane--ach .achTile__foot{
  font-size: 10px !important;
  padding: 0 2px !important;
}
@media (max-width: 1380px){
  body.page-profile .profilePane--ach{
    --ach-tile-w: 132px;
  }
}
@media (max-width: 1180px){
  body.page-profile .profilePane--ach{
    --ach-tile-w: 124px;
    --ach-tile-gap: 9px;
  }
}
@media (max-width: 920px){
  body.page-profile .profilePane--ach{
    --ach-tile-w: 116px;
    --ach-tile-gap: 8px;
  }
  body.page-profile .profilePane--ach .achTile__titleBand{
    min-height: 32px !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
  }
  body.page-profile .profilePane--ach .achTile__progress,
  body.page-profile .profilePane--ach .achTile__foot,
  body.page-profile .profilePane--ach .achTile__pill{
    font-size: 9px !important;
  }
}
@media (max-width: 620px){
  body.page-profile .profilePane--ach{
    --ach-tile-gap: 10px;
  }
  body.page-profile .profilePane--ach .achTileGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.page-profile .profilePane--ach .achTile{
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
@media (max-width: 420px){
  body.page-profile .profilePane--ach .achTile{
    border-radius: 15px !important;
  }
  body.page-profile .profilePane--ach .achTile__chips{
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
  }
  body.page-profile .profilePane--ach .achTile__body{
    left: 6px !important;
    right: 6px !important;
    bottom: 6px !important;
  }
  body.page-profile .profilePane--ach .achTile__titleBand{
    min-height: 30px !important;
    padding: 6px 7px !important;
    font-size: 11px !important;
  }
}


/* Profile achievements: top title chip instead of status/tier */
body.page-profile .profilePane--ach .achTile__chips{
  display: block !important;
}
body.page-profile .profilePane--ach .achTile__titleChip{
  display: -webkit-box !important;
  max-width: 100% !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(6,10,18,.88), rgba(6,10,18,.72)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.34) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: .01em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}
body.page-profile .profilePane--ach .achTile__titleBand{
  display: none !important;
}
body.page-profile .profilePane--ach .achTile__body{
  gap: 6px !important;
}
@media (max-width: 920px){
  body.page-profile .profilePane--ach .achTile__titleChip{
    padding: 6px 8px !important;
    font-size: 11px !important;
    border-radius: 11px !important;
  }
}
@media (max-width: 420px){
  body.page-profile .profilePane--ach .achTile__titleChip{
    padding: 6px 7px !important;
    font-size: 10px !important;
    border-radius: 10px !important;
  }
}

/* Profile achievements: compact semantic filters instead of open/closed tabs */
body.page-profile .profilePane--ach .profileLikesToolbar--ach{
  align-items:flex-start;
  gap:12px;
}
body.page-profile .profilePane--ach .profileAchFilters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}
body.page-profile .profilePane--ach .profileAchFilter{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
  color:rgba(231,237,243,.9);
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}
body.page-profile .profilePane--ach .profileAchFilter:hover{
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
  transform:translateY(-1px);
}
body.page-profile .profilePane--ach .profileAchFilter.is-active{
  color:#fff;
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(240,140,40,.34), rgba(214,109,26,.20));
  box-shadow:0 12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
body.page-profile .profilePane--ach .profileAchFilter:focus-visible{
  outline:none;
  border-color:rgba(255,255,255,.22);
  box-shadow:0 0 0 3px rgba(240,140,40,.18), 0 12px 28px rgba(0,0,0,.2);
}
@media (max-width: 760px){
  body.page-profile .profilePane--ach .profileLikesToolbar--ach{
    align-items:stretch;
  }
  body.page-profile .profilePane--ach .profileAchFilters{
    width:100%;
  }
  body.page-profile .profilePane--ach .profileAchFilter{
    flex:1 1 calc(50% - 4px);
    justify-content:center;
    text-align:center;
  }
}
@media (max-width: 460px){
  body.page-profile .profilePane--ach .profileAchFilters{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  body.page-profile .profilePane--ach .profileAchFilter{
    width:100%;
    min-height:32px;
    padding:0 10px;
    font-size:11px;
  }
}


/* =========================================================
