/* === collection.css (design tokens + shared) === */
/* ============================================================
   COLLECTOR — design system
   Media-agnostic showcase (games / books / albums / films).
   Palette anchored on the app: navy #273C52, slate #A1ACBB, blues.
   ============================================================ */

:root {
  /* Brand */
  --navy:        #273C52;
  --navy-900:    #1B2C3D;
  --navy-800:    #213347;
  --navy-700:    #2F4A66;
  --blue-600:    #3A5775;
  --blue-500:    #4A6B8A;
  --slate:       #A1ACBB;
  --slate-400:   #8B97A6;
  --slate-300:   #C3CBD4;

  /* Surfaces (cool-toned, low chroma) */
  --bg:          #EAEEF2;
  --bg-2:        #F3F6F8;
  --card:        #FFFFFF;
  --line:        #E2E8ED;
  --line-soft:   #EDF1F4;

  /* Ink */
  --ink:         #1D2A38;
  --ink-soft:    #5B6B7B;
  --ink-faint:   #8896A4;

  /* Accent (interactive) — kept in the navy family */
  --accent:      #273C52;

  /* Tokens */
  --r-card:  20px;
  --r-tile:  14px;
  --r-pill:  999px;
  --shadow:  0 1px 2px rgba(27,44,61,.04), 0 8px 24px rgba(27,44,61,.07);
  --shadow-lift: 0 2px 6px rgba(27,44,61,.08), 0 20px 44px rgba(27,44,61,.16);
  --pad:     28px;

  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- shared micro-label ---- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* =========================================================
   HEADER BAND  (matches the app: COLLECTOR / Video Games)
   ========================================================= */
.app-header {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.app-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 40px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.app-header__eq {
  position: absolute;
  left: 40px; bottom: 0; top: 0;
  display: flex; align-items: flex-end; gap: 7px;
  opacity: .10; z-index: 1; pointer-events: none;
}
.app-header__eq span { width: 16px; background: #fff; border-radius: 4px 4px 0 0; }
.app-header__titles { position: relative; z-index: 2; }
.app-header__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 4px;
}
.app-header__title {
  font-size: 46px; font-weight: 800; letter-spacing: -.02em;
  margin: 0; color: rgba(255,255,255,.92); line-height: 1;
}
.app-header__title em { font-style: normal; color: rgba(161,172,187,.55); }
.app-header__actions { display: flex; align-items: center; gap: 12px; z-index: 2; }

/* circular / square navy buttons echoing the app */
.icon-btn {
  width: 46px; height: 46px; border-radius: 13px;
  border: 1.4px solid rgba(255,255,255,.34);
  background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer;
  font-size: 22px; line-height: 1; transition: .18s;
}
.icon-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.icon-btn--round { border-radius: var(--r-pill); }

.brand__name { color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.brand__name b { font-weight: 800; }
.brand__name em { font-style: normal; color: var(--slate); font-weight: 600; }

/* =========================================================
   PAGE SHELL
   ========================================================= */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 40px 80px;
  display: grid;
  grid-template-columns: 312px 1fr;
  gap: 28px;
  align-items: start;
}

/* =========================================================
   PROFILE SIDEBAR
   ========================================================= */
.profile {
  position: sticky;
  top: 24px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.profile__avatar {
  width: 84px; height: 84px; border-radius: 22px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 30px; letter-spacing: .02em;
  background: linear-gradient(150deg, var(--blue-500), var(--navy));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.profile__name { font-size: 23px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.profile__handle { font-size: 14px; color: var(--blue-500); font-weight: 600; margin: 3px 0 0; }
.profile__bio { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; text-wrap: pretty; }

.profile__meta { display: flex; flex-direction: column; gap: 10px; }
.profile__meta-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-soft); }
.profile__meta-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-300); }

.profile__divider { height: 1px; background: var(--line); margin: 2px 0; }

/* stat strip — mirrors the app's pill (controller 0 · clock ---) */
.profile__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: var(--bg-2); border-radius: var(--r-tile);
  padding: 13px 14px; display: flex; flex-direction: column; gap: 2px;
}
.stat__num { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stat__label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }

/* socials */
.socials { display: flex; flex-direction: column; gap: 8px; }
.social {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink); font-size: 13.5px;
  padding: 7px 9px; border-radius: 11px; transition: .15s;
}
.social:hover { background: var(--bg-2); }
.social__glyph {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--navy); color: #fff;
}
.social__handle { color: var(--ink-soft); font-weight: 600; }

/* =========================================================
   MAIN COLUMN
   ========================================================= */
.main { min-width: 0; }

.collection-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.collection-bar__title { display: flex; align-items: baseline; gap: 12px; }
.collection-bar__title h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.collection-bar__count { font-size: 14px; color: var(--ink-faint); font-weight: 600; }

/* equalizer glyph used next to "Collection" like the app */
.eq-glyph { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq-glyph span { width: 4px; border-radius: 2px; background: var(--slate); }

/* ---- filter toolbar ---- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 6px; }
.chip {
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1.3px solid var(--line);
  background: var(--card); color: var(--ink-soft);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--slate-300); color: var(--ink); }
.chip[data-active="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.chip__count { opacity: .55; margin-left: 5px; font-weight: 700; }
.filter-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-right: 2px; }
.filter-reset {
  background: none; border: none; color: var(--blue-500);
  font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 8px 4px;
}
.filter-reset:hover { color: var(--navy); text-decoration: underline; }

/* =========================================================
   GAME GRID + COVER CARD
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 22px;
}

.card {
  display: flex; flex-direction: column; gap: 11px;
  cursor: pointer; border: none; background: none; padding: 0;
  text-align: left; font-family: var(--font);
}

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-tile);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s;
  isolation: isolate;
}
.card:hover .cover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

/* typographic poster placeholder */
.cover__art {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
}
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: #c8cfd8; }
.cover__placeholder svg { width: 36px; height: 36px; fill: #fff; opacity: .5; }
.cover__art::after { /* sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,0) 40%, rgba(0,0,0,.28));
}
.cover__toprow { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.cover__rating {
  font-size: 9px; font-weight: 800; letter-spacing: .08em;
  color: rgba(255,255,255,.92); border: 1.2px solid rgba(255,255,255,.5);
  padding: 2px 5px; border-radius: 4px;
}
.cover__tag {
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  background: rgba(255,255,255,.92); color: var(--navy-900);
  padding: 3px 6px; border-radius: 4px;
}
.cover__title {
  position: relative; z-index: 2;
  color: #fff; font-weight: 800; line-height: 1.02;
  font-size: 21px; letter-spacing: -.01em;
  text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.cover__hint {
  position: relative; z-index: 2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-top: 6px;
}

/* meta under the cover */
.card__meta { display: flex; flex-direction: column; gap: 6px; }
.card__title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.card__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.platform-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  color: var(--blue-500);
}
.card__row .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--slate-300); }

/* format badge — outlined style #2 */
.format-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--navy); border: 1.2px solid var(--slate-300);
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
  background: var(--card);
}

/* empty state */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--ink-faint);
}
.empty h3 { color: var(--ink-soft); font-size: 18px; margin: 0 0 6px; }

/* =========================================================
   THEME / LAYOUT VARIANTS
   ========================================================= */

/* ---------- IMMERSIVE: dark, larger covers, overlay detail ---------- */
.theme-immersive { background: var(--navy-900); }
.theme-immersive .app-header {
  background: linear-gradient(180deg, #2C435C 0%, var(--navy) 60%, var(--navy-900) 100%);
}
.theme-immersive .profile {
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.theme-immersive .profile__name,
.theme-immersive .collection-bar__title h2 { color: #fff; }
.theme-immersive .profile__bio { color: var(--slate-300); }
.theme-immersive .profile__meta-row { color: var(--slate); }
.theme-immersive .stat { background: rgba(255,255,255,.05); }
.theme-immersive .stat__num { color: #fff; }
.theme-immersive .profile__divider { background: rgba(255,255,255,.1); }
.theme-immersive .social { color: #fff; }
.theme-immersive .social:hover { background: rgba(255,255,255,.06); }
.theme-immersive .social__handle { color: var(--slate); }
.theme-immersive .collection-bar__count { color: var(--slate); }
.theme-immersive .eq-glyph span { background: var(--blue-500); }
.theme-immersive .chip {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: var(--slate-300);
}
.theme-immersive .chip:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.theme-immersive .chip[data-active="true"] { background: #fff; border-color: #fff; color: var(--navy-900); }
.theme-immersive .filter-label { color: var(--slate-400); }
.theme-immersive .card__title { color: #fff; }
.theme-immersive .format-badge { background: transparent; color: var(--slate-300); border-color: rgba(255,255,255,.22); }
.theme-immersive .grid { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 26px; }

/* hover detail overlay (immersive only) */
.cover__overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(0deg, rgba(13,22,31,.92) 0%, rgba(13,22,31,.2) 55%, transparent 100%);
  opacity: 0; transition: opacity .2s; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 14px; gap: 8px;
}
.theme-immersive .card:hover .cover__overlay { opacity: 1; }
.cover__overlay .ov-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
}
.cover__overlay .ov-line { display: flex; gap: 8px; align-items: center; }

/* ---------- EDITORIAL: light, airy, featured first tile ---------- */
.theme-editorial { background: var(--bg-2); }
.theme-editorial .page { gap: 40px; }
.theme-editorial .grid { gap: 28px; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); }
.theme-editorial .card--featured { grid-column: span 2; grid-row: span 2; }
.theme-editorial .card--featured .cover { aspect-ratio: auto; height: 100%; min-height: 380px; }
.theme-editorial .card--featured .cover__title { font-size: 38px; }
.theme-editorial .card--featured .card__title { font-size: 18px; }
.theme-editorial .chip { border-radius: 9px; }
.theme-editorial .app-header__title { font-weight: 800; }

@media (max-width: 880px) {
  .page { grid-template-columns: 1fr; }
  .profile { position: static; }
  .app-header__title { font-size: 34px; }
  .theme-editorial .card--featured { grid-column: span 1; grid-row: auto; }
  .theme-editorial .card--featured .cover { aspect-ratio: 3/4; min-height: 0; }
}


/* === profile.css (banner + shelves) === */
/* ============================================================
   COLLECTOR — Profile overview page
   Reuses tokens from collection.css. Editorial language:
   light surfaces, white cards, strong colored shelf headers.
   ============================================================ */

.cprofile { background: var(--bg-2); min-height: 100vh; }

/* ---- simple top header ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243,246,248,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1240px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; gap: 13px;
}
.topbar__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
}
.topbar__mark span { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.topbar__mark span i { width: 3px; background: #fff; border-radius: 1.5px; }
.topbar__label { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.topbar__label b { color: var(--slate-400); font-weight: 800; }
.topbar__share {
  margin-left: auto; background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px; display: grid; place-items: center;
  color: var(--slate); transition: color .15s;
}
.topbar__share:hover { color: var(--navy); }
.topbar__share svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.copy-toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--card); color: var(--navy); border: 1.5px solid var(--navy);
  font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r-pill);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.copy-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ---- page shell ---- */
.cprofile-page {
  max-width: 1240px; margin: 0 auto;
  padding: 30px 40px 90px;
  display: flex; flex-direction: column; gap: 30px;
}

/* =========================================================
   PROFILE BANNER (horizontal, Editorial profile treatment)
   ========================================================= */
.pbanner {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 30px 34px;
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 26px;
}
.pbanner__row { display: flex; align-items: center; gap: 34px; }
.pbanner__row--top { align-items: center; }
.pbanner__row--bottom {
  align-items: stretch; gap: 40px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.pbanner__group { display: flex; flex-direction: column; gap: 12px; }
.pbanner__group--stats { flex: 1 1 0; min-width: 0; }
.pbanner__group--social { flex: 1 1 0; min-width: 0; padding-left: 40px; border-left: 1px solid var(--line); }
.pbanner__group-label { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); padding-left: 10px; }
.pbanner__avatar {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 5px rgba(158, 173, 189, 0.5);
}
.pbanner__avatar--img { overflow: hidden; }
.pbanner__avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbanner__avatar--initials {
  display: grid; place-items: center;
  background: #9EADBD;
  color: #fff; font-weight: 800; font-size: 34px; letter-spacing: .02em;
}
.pbanner__id { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.pbanner__nameline { display: flex; align-items: center; gap: 12px; }
.pbanner__role {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-500); background: var(--bg-2);
  padding: 5px 10px; border-radius: var(--r-pill);
}
.pbanner__name { font-size: 27px; font-weight: 800; letter-spacing: -.015em; margin: 0; }
.pbanner__handle { font-size: 14px; font-weight: 600; color: var(--blue-500); }
.pbanner__meta { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.pbanner__meta-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); }
.pbanner__meta-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--slate-300); }

.pbanner__bio {
  flex: 1 1 0; min-width: 0; align-self: stretch;
  display: flex; align-items: center;
  font-size: 18px; line-height: 1.65; color: var(--ink-soft);
  margin: 0; text-wrap: pretty;
  padding-left: 34px; border-left: 1px solid var(--line);
}
.pbanner__bio--empty { color: var(--ink-faint); gap: 10px; }
.pbanner__bio--empty::before { content: ''; flex: none; width: 22px; height: 1.5px; background: var(--ink-faint); }

.pbanner__stats { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr auto; gap: 12px; }
.pstat { background: var(--bg-2); border-radius: var(--r-tile); padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.pstat__num { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.pstat__label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.pstat--update { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 24px; }
.pstat__update-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.pstat__update-date { font-size: 18px; font-weight: 600; color: var(--navy); }

.pbanner__socials {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 8px;
  align-content: start;
}
.psocial { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 11px 16px; border-radius: 11px; background: var(--bg-2); transition: .15s; min-width: 0; }
.psocial:hover { background: var(--card); box-shadow: var(--shadow); }
.psocial__glyph { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--navy); color: #fff; }
.psocial__glyph svg { width: 18px; height: 18px; fill: #fff; display: block; }
.psocial__glyph svg * { fill: #fff; }
.psocial__handle { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   COLLECTION SHELF  (colored header band + row of items)
   ========================================================= */
.shelf { display: flex; flex-direction: column; gap: 18px; }

.shelf__head {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
  box-shadow: var(--shadow);
}
.shelf__head::before { /* faint equalizer texture */
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 16px, transparent 16px 30px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 30%, transparent 62%);
          mask-image: linear-gradient(90deg, #000 0 30%, transparent 62%);
  opacity: .5; pointer-events: none;
}
.shelf__titles { position: relative; z-index: 2; }
.shelf__kicker { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0 0 4px; }
.shelf__name { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1; color: #fff; }

.shelf__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; }
.shelf__count { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.shelf__count b { color: #fff; font-weight: 800; }
.shelf__go {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1.4px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  font-size: 20px; text-decoration: none; transition: .18s;
}
.shelf__go:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

/* horizontal row of covers */
.shelf__row {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 14px;
  scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent;
}
.shelf__row::-webkit-scrollbar { height: 8px; }
.shelf__row::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }
.shelf__row::-webkit-scrollbar-track { background: transparent; }

.shelf-card {
  flex: 0 0 auto; width: 158px;
  display: flex; flex-direction: column; gap: 11px;
  scroll-snap-align: start; cursor: pointer;
  border: none; background: none; padding: 0; text-align: left; font-family: var(--font);
  text-decoration: none; transition: transform .18s cubic-bezier(.2,.7,.3,1);
}
.shelf-card:hover { transform: translateY(-4px); }
.shelf-card:active { transform: translateY(-1px) scale(.97); transition-duration: .08s; }
.shelf-card .cover { width: 100%; }
.shelf-card .card__title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.shelf-card .card__sub { font-size: 12px; font-weight: 600; color: var(--ink-faint); }

@media (max-width: 980px) {
  .pbanner__row { flex-wrap: wrap; gap: 22px; }
  .pbanner__row--bottom { flex-direction: column; align-items: stretch; }
  .pbanner__bio { border-left: none; padding-left: 0; flex-basis: 100%; order: 5; align-items: flex-start; }
  .pbanner__group--social { flex: 1 1 auto; padding-left: 0; border-left: none; }
  .topbar__inner, .cprofile-page { padding-left: 24px; padding-right: 24px; }
}


/* === profile-sections.css (empty / used apps / promo) === */
/* ============================================================
   COLLECTOR — three bottom sections for the profile page
   Each has a deliberately distinct surface so they read apart
   from one another and from the white banner / colored shelves:
     1. EMPTY STATE  — light, dashed, airy invitation
     2. USED APPS    — white cards on a soft inset tray
     3. PROMO AD     — dark navy gradient marketing banner
   ============================================================ */

/* shared section heading */
.psec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.psec-head__titles { display: flex; flex-direction: column; gap: 6px; }
.psec-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.psec-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.psec-sub { font-size: 15px; color: var(--ink-faint); margin: 0; }
.psec-count { font-size: 15px; font-weight: 600; color: var(--ink-faint); }

/* shared buttons */
.pbtn { font-family: var(--font); font-size: 14px; font-weight: 700; border-radius: var(--r-pill); padding: 12px 22px; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; transition: .16s; white-space: nowrap; }
.pbtn--primary { background: var(--navy); color: #fff; }
.pbtn--primary:hover { background: var(--navy-900); transform: translateY(-1px); }
.pbtn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pbtn--ghost:hover { border-color: var(--slate-300); background: var(--bg-2); }
.pbtn--light { background: #fff; color: var(--navy-900); }
.pbtn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.pbtn--outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.4); }
.pbtn--outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* =========================================================
   1 — EMPTY STATE
   ========================================================= */
.empty {
  border: 1.6px dashed var(--slate-300);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(39,60,82,.05), transparent 60%),
    var(--bg-2);
  padding: 56px 40px 60px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty__stack { position: relative; height: 124px; width: 240px; margin-bottom: 16px; }
.empty__icon {
  position: absolute; top: 8px; left: 50%; width: 92px; height: 92px;
  border-radius: 24px; object-fit: contain;
  filter: grayscale(.55) drop-shadow(0 10px 22px rgba(27,44,61,.18));
  opacity: .9;
}
.empty__icon--l { transform: translateX(-130%) rotate(-13deg) scale(.86); opacity: .55; }
.empty__icon--r { transform: translateX(30%)   rotate(13deg)  scale(.86); opacity: .55; }
.empty__icon--c { transform: translateX(-50%); z-index: 2; }
.empty__plus {
  position: absolute; z-index: 3; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 24px; font-weight: 400; line-height: 1;
  box-shadow: 0 6px 16px rgba(27,44,61,.3); border: 3px solid var(--bg-2);
}
.empty__title { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.empty__sub { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 440px; text-wrap: pretty; }
.empty__actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
   2 — USED APPS  (white cards on a soft inset tray)
   ========================================================= */
.usedapps {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 26px 28px 28px;
}
.usedapps__grid { display: flex; flex-direction: row; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.usedapps__grid::-webkit-scrollbar { height: 4px; }
.usedapps__grid::-webkit-scrollbar-track { background: transparent; }
.usedapps__grid::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }
.appcard {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--r-tile); padding: 14px 16px;
  text-decoration: none; transition: .16s;
  flex: 0 0 auto; scroll-snap-align: start;
}
.appcard:hover { background: #fff; box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--line); }
.appcard__icon { width: 54px; height: 54px; border-radius: 14px; flex: none; object-fit: contain; box-shadow: 0 3px 8px rgba(27,44,61,.16); }
.appcard__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.appcard__name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.appcard__meta { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appcard__sync { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--blue-500); margin-top: 2px; }
.appcard__sync .dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.68 0.15 155); box-shadow: 0 0 0 3px oklch(0.68 0.15 155 / .18); }

/* =========================================================
   3 — PROMO AD  (dark navy gradient marketing banner)
   ========================================================= */
.promo {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 70%);
  color: #fff;
  padding: 36px 40px;
  display: grid; grid-template-columns: minmax(320px, 0.85fr) 1fr; align-items: center; gap: 44px;
  box-shadow: var(--shadow-lift);
}
.promo::before { /* faint equalizer texture, matches shelf headers */
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 16px, transparent 16px 34px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
  opacity: .6; pointer-events: none;
}
.promo__copy { position: relative; z-index: 2; }
.promo__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-900); background: #fff; padding: 6px 12px; border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.promo__title { font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 12px; }
.promo__sub { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 0 0 24px; text-wrap: pretty; }
.promo__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.promo__note { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.55); }

/* icon cluster on the left — held in its own inset box */
.promo__apps {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 24px;
}
.promoapp { display: grid; place-items: center; text-decoration: none; }
.promoapp__icon { width: 100%; max-width: 84px; aspect-ratio: 1; height: auto; border-radius: 19px; object-fit: contain; box-shadow: 0 8px 20px rgba(0,0,0,.34); transition: .16s; }
.promoapp:hover .promoapp__icon { transform: translateY(-3px) scale(1.05); }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 980px) {
  .promo { grid-template-columns: 1fr; gap: 30px; }
  .promo__apps { grid-template-columns: repeat(6, 1fr); }
  .promo__title { font-size: 28px; }
}
@media (max-width: 620px) {
  .promo__apps { grid-template-columns: repeat(3, 1fr); }
}
