/* ===== Base ===== */
:root{
  --bg: #f6f7fb;
  --bg-accent: #ecf0ff;
  --panel: #ffffff;
  --panel-2: #f0f3fb;
  --text: #1d2536;
  --muted: #5e6779;
  --muted-2: #788095;
  --border: #d8deec;
  --brand: #5266d4;
  --brand-2: #3348bd;
  --shadow: 0 10px 32px rgba(15, 26, 65, 0.09);
  --radius: 14px;
}

body[data-theme="dark"]{
  --bg: #0f1320;
  --bg-accent: #1b2338;
  --panel: #182034;
  --panel-2: #202a42;
  --text: #f0f3fb;
  --muted: #b2bccf;
  --muted-2: #96a2bc;
  --border: #33405f;
  --brand: #90a2ff;
  --brand-2: #6f82eb;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }
body{
  margin:0;
  background:
    radial-gradient(900px 600px at 8% 2%, rgba(82,102,212,.12), transparent 40%),
    radial-gradient(1000px 600px at 95% 0%, rgba(82,102,212,.09), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
body.has-site-header{
  padding-top: 92px;
}
body.has-mobile-app-nav{
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

a { color: inherit; text-decoration: none; }
img, video { display:block; max-width:100%; }
button { font-family: inherit; }

input::placeholder,
textarea::placeholder{
  color: var(--muted);
  opacity: 1;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder{
  color: var(--muted, #b2bccf) !important;
  opacity: 1;
  -webkit-text-fill-color: var(--muted, #b2bccf);
}

/* ===== Header ===== */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg), transparent 10%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display:flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}
.brand__logo{
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--brand);
  font-size: 1.25rem;
}
.brand__tagline{
  color: var(--muted-2);
  font-size: .9rem;
}

.header-actions{
  display:flex;
  align-items:flex-end;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.nav-controls{
  display:flex;
  gap: 8px;
  align-items: center;
}

.search{
  width: min(540px, 100%);
  display:flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.search__label{
  font-size: .75rem;
  color: var(--muted-2);
}
#searchInput{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
}
#searchInput:focus{
  border-color: color-mix(in oklab, var(--brand), white 25%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand), transparent 83%);
}
.search-autocomplete{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 120;
  padding: .3rem;
  max-height: 260px;
  overflow: auto;
}
.search-autocomplete__item{
  display: flex;
  align-items: center;
  gap: .4rem;
  border-radius: 8px;
}
.search-autocomplete__pick{
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: .46rem .52rem;
  border-radius: 8px;
  cursor: pointer;
}
.search-autocomplete__pick:hover{
  background: color-mix(in oklab, var(--panel-2), white 10%);
}
.search-autocomplete__remove{
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  line-height: 1;
  margin-right: .25rem;
}
.search-autocomplete__remove:hover{
  color: var(--text);
}

.mention-link{
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.mention-link:hover,
.mention-link:focus-visible{
  text-decoration: underline;
}
.mention-autocomplete{
  position: fixed;
  z-index: 10000;
  width: min(var(--mention-width, 320px), calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(260px, calc(100vh - 32px));
  overflow: auto;
  padding: .3rem;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.mention-autocomplete[hidden]{
  display: none;
}
.mention-autocomplete__item{
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: .48rem .55rem;
  border-radius: 8px;
  cursor: pointer;
}
.mention-autocomplete__item:hover,
.mention-autocomplete__item.is-active{
  background: color-mix(in oklab, var(--panel-2), white 10%);
}
.mention-autocomplete__user{
  font-weight: 700;
  color: var(--brand);
}
.mention-autocomplete__name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .84rem;
}

/* ===== Layout ===== */
.container{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.intro-card{
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg-accent), white 42%), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}

.intro-card h1{
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.intro-card p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}
.hint{
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: .9rem;
}

.pill-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feed-control-panel{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:14px;
}
.profile-feed-controls{
  margin-bottom:.75rem;
}
.full-set-card-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.55rem;
  flex-wrap:wrap;
}
.full-set-preview-link{
  border:1px solid color-mix(in oklab, var(--brand), white 12%);
  background:color-mix(in oklab, var(--brand), transparent 84%);
  color:var(--text);
  border-radius:999px;
  padding:.42rem .7rem;
  font-weight:800;
  cursor:pointer;
  line-height:1.1;
}
.full-set-preview-link:hover{
  background:color-mix(in oklab, var(--brand), transparent 72%);
}
.profile-full-set-card{
  display:grid;
  grid-template-columns:minmax(150px, 190px) minmax(0, 1fr);
  gap:1rem;
  align-items:start;
}
.profile-full-set-cover{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--panel-2);
}
.profile-full-set-cover > img,
.profile-full-set-cover__button,
.profile-full-set-cover__button img{
  display:block;
  width:100%;
  height:100%;
}
.profile-full-set-cover > img,
.profile-full-set-cover__button img{
  object-fit:cover;
}
.profile-full-set-cover__button{
  appearance:none;
  border:0;
  padding:0;
  background:transparent;
  cursor:zoom-in;
}
.profile-full-set-cover__button:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:-3px;
}
.profile-full-set-cover.is-locked > img{
  filter:blur(18px) saturate(.55) brightness(.5);
  transform:scale(1.18);
}
.profile-full-set-cover__lock{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  padding:.32rem .62rem;
  border:1px solid rgba(226,232,240,.48);
  border-radius:999px;
  background:rgba(10,14,22,.74);
  color:#f0f3fb;
  font-size:.76rem;
  font-weight:800;
  pointer-events:none;
}
.profile-full-set-body{
  min-width:0;
}
.profile-full-set-body > small{
  display:block;
  margin-top:.3rem;
  color:var(--muted-2);
}
.full-set-purchase-button{
  margin-top:.45rem;
  border:1px solid color-mix(in oklab, var(--brand), white 10%);
  border-radius:8px;
  background:var(--brand);
  color:#fff;
  padding:.52rem .72rem;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.full-set-purchase-button:hover,
.full-set-purchase-button:focus-visible{
  background:var(--brand-2);
  outline:none;
}
.profile-full-set-more{
  display:flex;
  justify-content:flex-end;
  margin-top:.85rem;
}
.profile-full-set-more a{
  color:var(--brand);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}
.full-set-media-picker{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
  gap:.45rem;
  max-height:260px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:8px;
  padding:.5rem;
  background:var(--panel);
}
.full-set-media-picker--compact{
  margin-top:.25rem;
  max-height:330px;
}
.full-set-media-option{
  display:grid;
  grid-template-columns:auto 54px minmax(0, 1fr);
  align-items:center;
  gap:.45rem;
  min-width:0;
  border:1px solid color-mix(in oklab, var(--border), transparent 20%);
  border-radius:8px;
  padding:.35rem;
  background:color-mix(in oklab, var(--panel-2), transparent 34%);
}
.full-set-media-option__check{
  width:18px;
  height:18px;
  margin:0;
}
.full-set-media-option__thumb{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:54px;
  aspect-ratio:1;
  border-radius:7px;
  overflow:hidden;
  background:#111827;
  border:1px solid rgba(255,255,255,.14);
  color:#eef2ff;
  text-decoration:none;
  font-size:.68rem;
  font-weight:800;
}
.full-set-media-option__thumb img,
.full-set-media-option__thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.full-set-media-option__badge{
  position:absolute;
  left:4px;
  bottom:4px;
  border-radius:999px;
  padding:.08rem .28rem;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:.58rem;
  line-height:1.2;
}
.full-set-media-option__icon{
  padding:.2rem;
  text-align:center;
}
.full-set-media-option__copy{
  display:grid;
  gap:.1rem;
  min-width:0;
  cursor:pointer;
}
.full-set-media-option__copy span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.84rem;
  font-weight:700;
}
.full-set-media-option__copy small{
  color:var(--muted);
  font-size:.72rem;
}
.full-set-upload-progress{
  display:grid;
  gap:.28rem;
  margin-top:.15rem;
}
.full-set-upload-progress__track{
  width:100%;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:color-mix(in oklab, var(--panel), black 8%);
  border:1px solid var(--border);
}
.full-set-upload-progress__track span{
  display:block;
  width:0%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, #e83f6f, #ffb000);
  transition:width .16s ease;
}
.full-set-upload-error{
  color:#dc2626;
  font-weight:800;
}
.feed-control-group{
  display:grid;
  gap:6px;
  min-width:0;
}
.feed-control-label{
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.directory-sort{
  min-height:40px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--panel-2);
  color:var(--text);
  padding:.45rem 2rem .45rem .65rem;
  font:inherit;
  font-weight:700;
}
.artist-directory-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.artist-directory-card{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.artist-directory-card__cover{
  display:block;
  aspect-ratio:16 / 7;
  overflow:hidden;
  background:var(--panel-2);
}
.artist-directory-card__cover img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.artist-directory-card__body{
  position:relative;
  display:grid;
  align-content:start;
  gap:.65rem;
  padding:.8rem;
}
.artist-directory-card__identity{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:.6rem;
  color:var(--text);
  text-decoration:none;
}
.artist-directory-card__identity img{
  width:48px;
  height:48px;
  display:block;
  object-fit:cover;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--panel-2);
}
.artist-directory-card__identity span{
  min-width:0;
  display:grid;
}
.artist-directory-card__identity strong,
.artist-directory-card__identity small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.artist-directory-card__identity small,
.artist-directory-card__body p{
  color:var(--muted);
}
.artist-directory-card__body p{
  min-height:2.7em;
  margin:0;
  line-height:1.35;
}
.artist-directory-card__verified{
  position:absolute;
  top:.8rem;
  right:.8rem;
  border:1px solid #4f9f75;
  border-radius:999px;
  background:#e7f7ee;
  color:#17623b;
  padding:.16rem .4rem;
  font-size:.7rem;
  font-weight:800;
}
body[data-theme="dark"] .artist-directory-card__verified{
  background:#153425;
  color:#83ddb0;
}
.artist-directory-card__stats{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}
.artist-directory-card__stats span{
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--panel-2);
  color:var(--muted);
  padding:.2rem .4rem;
  font-size:.72rem;
}
@media (max-width:900px){
  .artist-directory-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:560px){
  .artist-directory-grid{
    grid-template-columns:1fr;
  }
  .artist-directory-card__body p{
    min-height:0;
  }
}
.pill-row[data-feed-tabs],
#mainFeedTabs,
#mainFeedSort,
#mainFeedMediaFilter,
#profileFeedSort,
#profileFeedMediaFilter,
#profileFeedTabs{
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--panel-2), transparent 20%);
  width: fit-content;
  max-width:100%;
}
.pill{
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.pill:hover{
  border-color: color-mix(in oklab, var(--brand), white 20%);
  transform: translateY(-1px);
}
.pill.is-active{
  border-color: color-mix(in oklab, var(--brand), black 8%);
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), transparent 84%), inset 0 -1px 0 rgba(255,255,255,.15);
}

@media (max-width: 640px){
  .feed-control-panel{
    align-items:stretch;
    gap:10px;
  }
  .feed-control-group{
    flex:1 1 min(100%, 180px);
  }
  #mainFeedTabs,
  #mainFeedSort,
  #mainFeedMediaFilter,
  #profileFeedTabs,
  #profileFeedSort,
  #profileFeedMediaFilter{
    width:100%;
  }
  .feed-control-panel .pill{
    flex:1 1 0;
    min-width:0;
    padding:8px 9px;
    font-size:.82rem;
    line-height:1.1;
    text-align:center;
  }
  .full-set-media-picker{
    grid-template-columns:repeat(auto-fill, minmax(145px, 1fr));
    max-height:300px;
  }
  .full-set-media-option{
    grid-template-columns:auto 48px minmax(0, 1fr);
    gap:.35rem;
  }
  .full-set-media-option__thumb{
    width:48px;
  }
}

@media (max-width: 380px){
  .feed-control-panel{
    gap:8px;
  }
  .feed-control-panel .pill{
    padding:7px 6px;
    font-size:.76rem;
  }
  .feed-control-label{
    font-size:.7rem;
  }
  .full-set-media-picker{
    grid-template-columns:1fr;
  }
  .full-set-preview-link{
    width:100%;
  }
}

/* ===== Catalog Grid ===== */
.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card{
  grid-column: span 6;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  min-height: 100%;
}

.card__media{
  display:block;
  aspect-ratio: 16 / 10;
  overflow:hidden;
  background: var(--panel-2);
}
.card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .25s ease;
}
.card:hover .card__media img{
  transform: scale(1.07);
}
.card__media video{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.card__media{
  cursor: pointer;
}

.card__body{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.card--feed .card__body{
  padding: 9px 12px 10px;
  gap: 6px;
}

.card__top{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.card__headline{
  min-width: 0;
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap: 5px;
}
.card__chip-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 6px;
}
.card__title{
  margin:0;
  font-size: 1.1rem;
}
.card__title a{
  color: inherit;
  text-decoration: none;
}
.card__title a:hover{
  text-decoration: underline;
}
.badge{
  font-size: .75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand), transparent 90%);
  border: 1px solid color-mix(in oklab, var(--brand), transparent 65%);
  color: var(--brand-2);
}

.card__desc{
  margin:0;
  color: var(--muted);
  line-height: 1.35;
}
.feed-user-avatar-link{
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.feed-user-avatar{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-user-stack{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 4px;
  flex-shrink: 0;
  margin-left:auto;
}
.feed-user-badge{
  max-width: 132px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  font-size: .75rem;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--panel-2);
}

.card__actions{
  margin-top: 2px;
  display:flex;
  gap: 10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .35rem;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--border), var(--brand) 16%);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--panel), var(--brand) 2%) 0%,
    color-mix(in oklab, var(--panel-2), var(--brand) 5%) 100%
  );
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .016em;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 1px 3px rgba(15,26,65,.10),
    0 3px 12px color-mix(in oklab, var(--brand), transparent 90%),
    inset 0 1px 0 rgba(255,255,255,.72);
  transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--border), var(--brand) 30%);
  box-shadow:
    0 2px 6px rgba(15,26,65,.11),
    0 7px 22px color-mix(in oklab, var(--brand), transparent 83%),
    inset 0 1px 0 rgba(255,255,255,.72);
}
.btn:active{
  transform: translateY(1px);
  box-shadow:
    0 1px 2px rgba(15,26,65,.09),
    0 2px 5px color-mix(in oklab, var(--brand), transparent 92%),
    inset 0 1px 0 rgba(255,255,255,.72);
}
button[data-add-to-cart]{
  min-height:42px;
  padding:9px 14px !important;
  border:1px solid color-mix(in oklab, var(--brand-2), black 20%) !important;
  border-radius:8px !important;
  background:linear-gradient(
    180deg,
    color-mix(in oklab, var(--brand), white 18%) 0%,
    var(--brand) 52%,
    var(--brand-2) 100%
  ) !important;
  color:#fff !important;
  font:inherit;
  font-weight:800 !important;
  line-height:1.2;
  text-align:center;
  white-space:normal;
  cursor:pointer;
  transform:translateY(-2px);
  box-shadow:
    0 5px 0 color-mix(in oklab, var(--brand-2), black 38%),
    0 9px 16px rgba(8,12,24,.28),
    inset 0 1px 0 rgba(255,255,255,.38) !important;
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
button[data-add-to-cart]:hover,
button[data-add-to-cart]:focus-visible{
  filter:brightness(1.08);
  outline:none;
  transform:translateY(-3px);
  box-shadow:
    0 6px 0 color-mix(in oklab, var(--brand-2), black 38%),
    0 11px 20px rgba(8,12,24,.32),
    inset 0 1px 0 rgba(255,255,255,.42) !important;
}
button[data-add-to-cart]:active{
  transform:translateY(3px);
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--brand-2), black 38%),
    0 3px 7px rgba(8,12,24,.26),
    inset 0 1px 0 rgba(255,255,255,.25) !important;
}
button[data-add-to-cart]:disabled{
  cursor:default;
  filter:saturate(.65);
  opacity:.82;
  transform:translateY(2px);
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--brand-2), black 38%),
    0 3px 7px rgba(8,12,24,.2),
    inset 0 1px 0 rgba(255,255,255,.2) !important;
}

/* ===== Global Nav ===== */
.global-site-header{
  z-index: 140;
}
.nav-menu-toggle{
  display: none;
}
.nav-links{
  display: flex;
  gap: 8px;
  align-items: center;
}
.notification-bell{
  position: relative;
  display: inline-flex;
}
.global-cart-link{
  position:relative;
  width:38px;
  min-width:38px;
  height:38px;
  padding:0;
  align-items:center;
  justify-content:center;
}
.global-cart-link[hidden]{
  display:none !important;
}
.global-cart-link__icon{
  font-size:1rem;
  line-height:1;
}
.global-cart-link__count{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#e05252;
  color:#fff;
  font-size:.68rem;
  line-height:18px;
  font-weight:800;
}
.notification-bell__button{
  position: relative;
  width: 38px;
  padding: 9px 0;
}
.global-site-header .nav-links .btn,
.global-site-header .nav-menu-toggle,
.global-site-header .notification-bell__button,
.global-site-header .global-cart-link{
  position:relative;
  isolation:isolate;
  min-height:38px;
  border:1px solid color-mix(in oklab, var(--border), var(--brand) 30%);
  border-radius:8px;
  background:linear-gradient(
    180deg,
    color-mix(in oklab, var(--panel), white 9%) 0%,
    color-mix(in oklab, var(--panel-2), var(--brand) 7%) 58%,
    color-mix(in oklab, var(--panel-2), black 5%) 100%
  );
  color:var(--text);
  font-weight:800;
  text-shadow:0 1px 0 rgba(0,0,0,.24);
  transform:translateY(-1px);
  box-shadow:
    0 3px 0 color-mix(in oklab, var(--border), black 28%),
    0 7px 14px rgba(8,12,24,.2),
    inset 0 1px 0 rgba(255,255,255,.24);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, filter .12s ease;
}
.global-site-header .nav-links .btn::before,
.global-site-header .nav-menu-toggle::before,
.global-site-header .notification-bell__button::before,
.global-site-header .global-cart-link::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:2px;
  left:3px;
  right:3px;
  height:42%;
  border-radius:5px;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events:none;
}
.global-site-header .nav-links .btn:hover,
.global-site-header .nav-links .btn:focus-visible,
.global-site-header .nav-menu-toggle:hover,
.global-site-header .nav-menu-toggle:focus-visible,
.global-site-header .notification-bell__button:hover,
.global-site-header .notification-bell__button:focus-visible,
.global-site-header .global-cart-link:hover,
.global-site-header .global-cart-link:focus-visible{
  border-color:color-mix(in oklab, var(--brand), white 14%);
  filter:brightness(1.08) saturate(1.08);
  outline:none;
  transform:translateY(-2px);
  box-shadow:
    0 4px 0 color-mix(in oklab, var(--brand-2), black 35%),
    0 10px 20px color-mix(in oklab, var(--brand), transparent 76%),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.global-site-header .nav-links .btn:active,
.global-site-header .nav-menu-toggle:active,
.global-site-header .notification-bell__button:active,
.global-site-header .global-cart-link:active{
  transform:translateY(2px);
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--brand-2), black 38%),
    0 3px 7px rgba(8,12,24,.2),
    inset 0 1px 0 rgba(255,255,255,.15);
}
.global-site-header .nav-links [data-global-link="signin"]{
  border-color:color-mix(in oklab, var(--brand-2), black 18%);
  background:linear-gradient(
    180deg,
    color-mix(in oklab, var(--brand), white 19%) 0%,
    var(--brand) 55%,
    var(--brand-2) 100%
  );
  color:#fff;
  box-shadow:
    0 3px 0 color-mix(in oklab, var(--brand-2), black 42%),
    0 8px 16px color-mix(in oklab, var(--brand), transparent 72%),
    inset 0 1px 0 rgba(255,255,255,.34);
}
.notification-bell__count{
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e05252;
  color: #fff;
  font-size: .68rem;
  line-height: 18px;
  font-weight: 800;
}
.notification-bell__panel{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 220;
  width: min(340px, 92vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.notification-bell__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  padding:.65rem .75rem;
  border-bottom:1px solid var(--border);
}
.notification-bell__head button{
  border:0;
  background:none;
  color:var(--brand-2);
  font-weight:700;
  cursor:pointer;
}
.notification-bell__tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.35rem;
  padding:.55rem .75rem .2rem;
}
.notification-bell__tab{
  border:1px solid var(--border);
  background:var(--panel-2);
  color:var(--text);
  border-radius:8px;
  padding:.4rem .45rem;
  font-weight:700;
  cursor:pointer;
}
.notification-bell__tab.is-active{
  border-color:var(--brand);
  background:rgba(224,82,82,.14);
}
.notification-bell__tab-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  margin-left:.25rem;
  padding:0 5px;
  border-radius:999px;
  background:#e05252;
  color:#fff;
  font-size:.68rem;
  line-height:1;
}
.notification-bell__tab-count[hidden]{
  display:none;
}
.notification-bell__list{
  display:grid;
  max-height: 320px;
  overflow:auto;
}
.feed-load-sentinel{
  min-height:1px;
}
.anonymous-feed-gate{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:.55rem 1rem;
  margin:1.2rem 0 .4rem;
  padding:1rem;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  color:var(--text);
  text-align:center;
}
.anonymous-feed-gate > span{
  color:var(--muted);
}
.anonymous-feed-gate > div{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.5rem;
}
.notification-bell__list .muted{
  margin:0;
  padding:.75rem;
}
.notification-bell__item{
  display:grid;
  gap:.2rem;
  padding:.65rem .75rem;
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid var(--border);
}
.notification-bell__item:hover{
  background:var(--panel-2);
}
.notification-bell__item.is-unread{
  border-left:3px solid var(--brand);
}
.notification-bell__item span,
.notification-bell__item small{
  color:var(--muted);
  font-size:.8rem;
}
.notification-bell__settings{
  display:block;
  padding:.65rem .75rem;
  color:var(--brand-2);
  text-decoration:none;
  font-weight:700;
}
.notification-preferences-form{
  display:grid;
  gap:.55rem;
}
.notification-preferences-form label{
  display:flex;
  align-items:center;
  gap:.45rem;
}
.notification-list{
  display:grid;
  gap:.6rem;
  margin-top:.8rem;
}
.notification-list-item{
  display:grid;
  gap:.3rem;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:10px;
  padding:.75rem;
}
.notification-list-item.is-unread{
  border-left:4px solid var(--brand);
}
.notification-list-item p{
  margin:0;
  color:var(--muted);
}
.notification-list-item small{
  color:var(--muted);
}

/* ===== Cart ===== */
.cart-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

/* ===== Loading States ===== */
.skeleton{
  position: relative;
  overflow: hidden;
  background: color-mix(in oklab, var(--panel-2), var(--border) 30%);
  border-radius: 10px;
}
.skeleton::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, white, transparent 55%), transparent);
  animation: skeleton-shimmer 1.25s infinite;
}
.skeleton-line{
  height: 12px;
  margin-bottom: 8px;
}
.skeleton-line.short{
  width: 62%;
}
.skeleton-media{
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
.media-item .skeleton-media{
  aspect-ratio: 4 / 5;
}
@keyframes skeleton-shimmer{
  100%{
    transform: translateX(100%);
  }
}
.loading-spinner{
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in oklab, var(--border), transparent 10%);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin{
  to { transform: rotate(360deg); }
}
.loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: color-mix(in oklab, var(--bg), transparent 8%);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-overlay__card{
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: .55rem .8rem;
  color: var(--muted);
  font-size: .9rem;
}

/* ===== Cookie Consent ===== */
.cookie-consent{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(760px, calc(100vw - 24px));
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 10200;
}
.cookie-consent__title{
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-consent__text{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}
.cookie-consent__actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body.has-mobile-app-nav .cookie-consent{
  bottom: calc(76px + env(safe-area-inset-bottom));
}

@media (max-width: 900px){
  body.has-site-header{
    padding-top: 108px;
  }
  .site-header{
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .brand{
    min-width: 0;
  }
  .brand__tagline{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions{
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .search{
    width: clamp(104px, 31vw, 148px);
    flex: 0 1 148px;
  }
  .search__label{
    display: none;
  }
  #searchInput{
    padding: 9px 10px;
    font-size: .9rem;
  }
  .nav-menu-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: 40px;
    padding-left: 0;
    padding-right: 0;
  }
  .nav-controls{
    position: relative;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }
  .nav-controls > .notification-bell{
    flex: 0 0 auto;
    order: 0;
  }
  .nav-controls > .global-cart-link{
    display:inline-flex;
    flex:0 0 40px;
    order:0;
    width:40px;
    min-width:40px;
  }
  .nav-controls > .notification-bell .notification-bell__button{
    width: 40px;
    min-width: 40px;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }
  .nav-controls > .notification-bell .notification-bell__panel{
    right: -46px;
  }
  .nav-controls > .nav-menu-toggle{
    order: 1;
  }
  .nav-links{
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
  }
  .nav-controls.is-open .nav-links{
    display: flex;
  }
  .nav-links .btn{
    width: 100%;
    justify-content: flex-start;
  }
  .cookie-consent{
    width: calc(100% - 14px);
    bottom: 10px;
  }
  .footer-inner{
    align-items: center;
  }
  .footer-links{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px){
  .profile-full-set-card{
    grid-template-columns:1fr;
  }
  .profile-full-set-cover{
    max-width:none;
  }
}
.btn--primary{
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: color-mix(in oklab, var(--brand-2), black 20%);
  font-weight: 700;
}
.btn--primary:hover{
  filter: brightness(1.03);
}
.media-like-btn,
.media-comment-btn{
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  padding: .32rem .55rem;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}
.media-like-btn.is-liked{
  border-color: #ef7a95;
  background: linear-gradient(180deg, #ff8dac, #ef6f90);
  color: #fff;
}
.media-comments-overlay{
  position: fixed;
  inset: 0;
  background: rgba(8,12,20,.84);
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.media-comments-overlay.is-open{ display: flex; }
.media-comments-dialog{
  width: min(620px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .9rem;
}
.media-comments-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.media-comments-close{
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  padding: .3rem .52rem;
}
.media-comments-list{ display: grid; gap: .55rem; }
.comment-item{
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  padding: .52rem .6rem;
}
.comment-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.comment-item p{ margin: .35rem 0; color: var(--text); }
.comment-reactions{ display: flex; gap: .4rem; flex-wrap: wrap; }
.comment-vote-btn{
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  padding: .2rem .45rem;
  display: inline-flex;
  gap: .22rem;
  align-items: center;
}
.comment-vote-btn.is-active{
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand), transparent 88%);
}
.comment-delete-btn{
  border: 1px solid #b94a4a;
  color: #c25a5a;
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  padding: .2rem .35rem;
}
.media-comments-form{
  margin-top: .6rem;
  display: flex;
  gap: .45rem;
}
.media-comments-form input{
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: .45rem .5rem;
}
.media-comments-form button{
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  padding: .42rem .6rem;
}

/* ===== Notice ===== */
.notice{
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.notice h3{
  margin:0 0 8px;
  font-size: 1rem;
}
.notice p{
  margin:0;
  color: var(--muted);
  line-height: 1.45;
}

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 18px 16px;
  background: color-mix(in oklab, var(--panel-2), transparent 12%);
  overflow-x: hidden;
}
.mobile-app-nav{
  display: none;
}
.footer-inner{
  width: min(1100px, 100%);
  margin: 0 auto;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted-2);
}
.footer-contact{
  font-size: .84rem;
  line-height: 1.45;
  max-width: 100%;
}
.footer-contact a{
  color: var(--muted-2);
}
.footer-contact a:hover{
  color: var(--text);
}
.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a{
  color: var(--muted-2);
}
.footer-links a:hover{
  color: var(--text);
}

/* ===== Gallery Page ===== */
.gallery-wrap{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.gallery-head{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 10px;
}
.gallery-title{
  margin: 0;
  font-size: 1.4rem;
}
.gallery-subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 720px;
}

.back-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.media-panel{
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.media-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.media-cell{
  grid-column: span 4;
  border-radius: 12px;
  overflow:hidden;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.media-cell img,
.media-cell video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.media-cell video{
  background: #000;
}

.unlock-row{
  margin-top: 14px;
  display:flex;
  justify-content: center;
}
.unlock-btn{
  width: min(420px, 100%);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--brand), black 10%);
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 100;
  background: rgba(3, 7, 18, .72);
  padding: 18px;
}
.modal.is-open{
  display:block;
}
.modal-card{
  width: min(560px, 100%);
  margin: 8vh auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal-top{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.modal-title{
  margin: 0;
  font-size: 1rem;
}
.modal-close{
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
}
.modal-body{
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.modal-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-btn{
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--brand), black 10%);
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.cancel-btn{
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .card{ grid-column: span 12; }
  .media-cell{ grid-column: span 6; }
}
@media (max-width: 560px){
  .media-cell{ grid-column: span 12; }
}

@media (max-width: 380px){
  .search{
    width: clamp(92px, 28vw, 118px);
    flex-basis: 118px;
  }
  #searchInput{
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 1024px) and (pointer: coarse), (max-width: 1024px) and (hover: none){
  .nav-link--desktop-dms{
    display: none;
  }
  .mobile-app-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 180;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: color-mix(in oklab, var(--panel), transparent 4%);
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 100vw;
  }
  .mobile-app-nav.is-subber{
    grid-template-columns: repeat(4, 1fr);
  }
  .mobile-app-nav__item{
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    font-size: .72rem;
    padding: .22rem .15rem;
    border-radius: 10px;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
  }
  .mobile-app-nav__item.is-active{
    color: var(--brand);
    background: color-mix(in oklab, var(--brand), transparent 88%);
  }
  .mobile-app-nav__item.is-active .mobile-app-nav__icon{
    transform: translateY(-1px);
  }
  .mobile-app-nav__icon{
    font-size: 1.15rem;
    line-height: 1;
    transition: transform .16s ease, color .16s ease;
  }
  .mobile-app-nav__item--plus .mobile-app-nav__icon{
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    color: #fff;
  }
  .mobile-app-nav__item--plus.is-active{
    background: transparent;
    color: color-mix(in oklab, var(--brand), white 10%);
  }
  .mobile-app-nav__item--plus.is-active .mobile-app-nav__icon{
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), transparent 80%);
  }
}

.global-upload-overlay{
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, .84);
  z-index: 10080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.global-upload-overlay.is-open{
  display: flex;
}
.global-upload-dialog{
  width: min(560px, 96vw);
  max-width: 96vw;
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .95rem;
}
.global-upload-dialog input,
.global-upload-dialog select,
.global-upload-dialog textarea{
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.global-upload-dialog textarea{
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  resize: vertical;
}
.global-upload-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
}
.global-upload-close{
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: .3rem .52rem;
  cursor: pointer;
}
.global-upload-form{
  display: grid;
  gap: .55rem;
}
.global-upload-form label{
  display: grid;
  gap: .3rem;
  color: var(--muted-2);
  font-size: .92rem;
}
.global-upload-form input[type="text"],
.global-upload-form input[type="number"],
.global-upload-form input[type="file"],
.global-upload-form textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .48rem .56rem;
  background: var(--panel-2);
  color: var(--text);
}
.global-upload-field-label{
  display: block;
  margin-bottom: .3rem;
  color: var(--muted-2);
  font-size: .92rem;
}
.global-upload-options{
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.global-upload-options label{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.global-upload-options input[type="number"]{
  width: 100px;
}
.pricing-toggle{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.18rem;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--panel-2);
  width:max-content;
  max-width:100%;
}
.pricing-toggle label{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:.32rem .62rem;
  border-radius:999px;
  cursor:pointer;
  color:var(--muted);
  font-weight:700;
  font-size:.84rem;
}
.pricing-toggle input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.pricing-toggle label:has(input:checked){
  background:var(--brand);
  color:#fff;
}
.pricing-toggle label:has(input:disabled){
  opacity:.55;
  cursor:not-allowed;
}
.media-price-amount-field{
  display:grid;
  gap:.3rem;
}
.media-price-amount-field [hidden]{
  display:none !important;
}
.global-upload-actions{
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

.upload-toast{
  position: fixed;
  right: 12px;
  bottom: 14px;
  z-index: 10120;
  width: min(360px, calc(100vw - 24px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .6rem .68rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .56rem;
  align-items: start;
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}
.upload-toast.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}
.upload-toast.is-error{
  border-left-color: #c25a5a;
}
.upload-toast__icon{
  font-size: 1.1rem;
  line-height: 1;
  margin-top: .1rem;
  animation: upload-toast-clink .9s ease-out 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.upload-toast__body{
  display: grid;
  gap: .18rem;
}
.upload-toast__body strong{
  font-size: .9rem;
}
.upload-toast__body span{
  font-size: .84rem;
  color: var(--muted);
}
.upload-toast__close{
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  padding: .12rem .38rem;
  line-height: 1.1;
}
@keyframes upload-toast-clink{
  0%{ transform: rotate(-8deg) translateY(-1px); opacity: .2; }
  45%{ transform: rotate(6deg) translateY(0); opacity: 1; }
  100%{ transform: rotate(0deg) translateY(0); opacity: 1; }
}
body.has-mobile-app-nav .upload-toast{
  bottom: calc(104px + env(safe-area-inset-bottom));
}

/* Global checkbox-to-slider styling */
label:has(> input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
}
input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(90, 103, 146, .38);
  background: linear-gradient(180deg, rgba(110,120,148,.25), rgba(78,86,112,.2));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.18);
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
  vertical-align: middle;
}
input[type="checkbox"]::after{
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dce3ff);
  box-shadow: 0 2px 5px rgba(13, 18, 34, .35);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
input[type="checkbox"]:checked{
  background: linear-gradient(180deg, #4f63cf, #637de4);
  border-color: rgba(99,125,228,.88);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.24), 0 0 0 3px rgba(99,125,228,.18);
}
input[type="checkbox"]:checked::after{
  transform: translateX(18px);
  background: linear-gradient(180deg, #ffffff, #f0f4ff);
}
input[type="checkbox"]:disabled{
  opacity: .52;
  cursor: not-allowed;
}

/* Media type chip on home feed cards */
.media-type-chip{
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.media-type-chip--photo{
  background: #fce8f0;
  border: 1px solid #d4789f;
  color: #8b1a4a;
}
.media-type-chip--video{
  background: #f3e8fc;
  border: 1px solid #b07acc;
  color: #6a1a8f;
}
body[data-theme="dark"] .btn{
  box-shadow:
    0 1px 3px rgba(0,0,0,.35),
    0 3px 12px color-mix(in oklab, var(--brand), transparent 87%),
    inset 0 1px 0 rgba(255,255,255,.07);
}
body[data-theme="dark"] .btn:hover{
  box-shadow:
    0 2px 6px rgba(0,0,0,.42),
    0 7px 22px color-mix(in oklab, var(--brand), transparent 80%),
    inset 0 1px 0 rgba(255,255,255,.07);
}
body[data-theme="dark"] .btn:active{
  box-shadow:
    0 1px 2px rgba(0,0,0,.30),
    0 2px 5px color-mix(in oklab, var(--brand), transparent 88%),
    inset 0 1px 0 rgba(255,255,255,.07);
}
body[data-theme="dark"] .media-type-chip--photo{
  background: rgba(220,100,145,.16);
  border-color: rgba(220,100,145,.55);
  color: #f0a0c0;
}
body[data-theme="dark"] .media-type-chip--video{
  background: rgba(160,100,210,.16);
  border-color: rgba(160,100,210,.55);
  color: #d4a0f0;
}
.media-type-chip--physical{
  background: #e6f8f2;
  border: 1px solid #5dbfa4;
  color: #156649;
}
body[data-theme="dark"] .media-type-chip--physical{
  background: rgba(75,185,145,.15);
  border-color: rgba(75,185,145,.50);
  color: #7dd9b8;
}

/* Home feed lightbox */
.feed-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(3,5,11,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.feed-lightbox.is-open{
  display: flex;
}
.feed-lightbox__content{
  max-width: min(1200px,96vw);
  max-height: 92vh;
}
.feed-lightbox__content img,
.feed-lightbox__content video{
  max-width: 100%;
  max-height: 92vh;
  display: block;
  border-radius: 10px;
}
.feed-lightbox__close{
  position: fixed;
  top: 14px;
  right: 16px;
  background: #202838;
  color: #fff;
  border: 1px solid #48526a;
  border-radius: 8px;
  padding: .5rem .75rem;
  cursor: pointer;
  z-index: 10030;
}
.feed-lightbox__progress{
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 10030;
  color: #dbe5ff;
  background: rgba(20,30,48,.62);
  border: 1px solid rgba(108,130,170,.45);
  border-radius: 999px;
  padding: .32rem .62rem;
  font-size: .8rem;
}
.feed-lightbox__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10030;
  border: 1px solid rgba(170,183,214,.5);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  background: rgba(20,30,48,.5);
  color: #e8efff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.feed-lightbox__prev{ left: 8px; }
.feed-lightbox__next{ right: 8px; }
.feed-lightbox__next.is-load-more{
  width: auto;
  min-width: 104px;
  border-radius: 8px;
  padding: 0 .85rem;
  font-size: .85rem;
  font-weight: 700;
}
.feed-lightbox__next:disabled{
  opacity: .62;
  cursor: wait;
}
.feed-lightbox__audio{
  min-width: min(560px, 86vw);
  padding: 1rem;
  border: 1px solid rgba(170,183,214,.28);
  border-radius: 10px;
  background: rgba(20,30,48,.62);
}
.feed-lightbox__audio audio{
  width: 100%;
  display: block;
}
.lightbox-engagement-toggle{
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 10025;
  transform: translateX(-50%);
  border: 1px solid rgba(220,229,247,.46);
  border-radius: 999px;
  background: rgba(20,30,48,.72);
  color: #f4f7ff;
  padding: .4rem .7rem;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.lightbox-engagement-toggle[hidden]{
  display: none;
}
.lightbox-engagement-panel{
  position: fixed;
  top: 62px;
  right: 16px;
  bottom: 62px;
  z-index: 10020;
  width: min(370px, calc(100vw - 32px));
  display: none;
  grid-template-rows: auto auto minmax(0,1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(220,229,247,.34);
  border-radius: 10px;
  background: color-mix(in oklab, var(--panel) 90%, transparent);
  color: var(--text);
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
}
.lightbox-engagement-panel.is-open{
  display: grid;
}
.lightbox-engagement-panel__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .7rem;
  border-bottom: 1px solid var(--border);
}
.lightbox-engagement-panel__like,
.lightbox-engagement-panel__close{
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.lightbox-engagement-panel__like{
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 999px;
  padding: .32rem .55rem;
  font-weight: 700;
}
.lightbox-engagement-panel__like.is-liked{
  border-color: #ef7a95;
  background: #ef6f90;
  color: #fff;
}
.lightbox-engagement-panel__close{
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 1rem;
}
.lightbox-engagement-panel__status{
  padding: .5rem .7rem 0;
  color: var(--muted);
  font-size: .82rem;
}
.lightbox-engagement-panel__comments{
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: .5rem;
  padding: .7rem;
}
.lightbox-engagement-panel__form{
  display: flex;
  gap: .4rem;
  padding: .65rem .7rem;
  border-top: 1px solid var(--border);
}
.lightbox-engagement-panel__form input{
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  padding: .45rem .5rem;
}
.lightbox-engagement-panel__form button{
  width: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.lightbox-engagement-panel .comment-report-btn{
  margin-left: .25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .75rem;
  cursor: pointer;
  opacity: .7;
}
@media (max-width: 700px){
  .lightbox-engagement-panel{
    top: auto;
    right: 8px;
    bottom: 58px;
    left: 8px;
    width: auto;
    max-height: min(56svh, 470px);
  }
  .lightbox-engagement-toggle{
    bottom: 10px;
  }
}

/* Legal page close-tab button */
.legal-close-btn{
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.legal-close-btn:hover{
  background: var(--bg-accent);
}

/* ── Price inputs: always-visible $ prefix ── */
.price-field { position: relative; display: inline-block; max-width: 100%; }
.price-field input { width: 100%; padding-left: 1.35rem !important; }
.price-field::before {
  content: "$";
  position: absolute;
  left: .55rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .85em;
  pointer-events: none;
}
