/* XCuties — OnlyFans-inspired lux theme (aligned with operator dashboard) */
:root {
  --bg: #0f0d12;
  --bg-2: #141119;
  --surface: #1a161f;
  --surface-2: #201b28;
  --border: #2c2636;
  --text: #ece9f1;
  --text-dim: #b7b0c4;
  --muted: #8d859c;
  --accent: #ec4899;
  --accent-600: #db2777;
  --accent-soft: rgba(236, 72, 153, 0.14);
  --purple: #a855f7;
  --green: #34d399;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --topbar-h: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- Content protection (deterrence; OS screenshots cannot be fully blocked) ---- */
.xc-protect img,
.xc-protect video,
.protect-img,
.protect-media {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
.protect-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-touch-callout: none;
}
.protect-media > .protect-img,
.protect-media > img,
.protect-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* clicks hit shield; videos re-enable below */
  -webkit-user-drag: none;
}
/* Videos need pointer events for native controls */
.protect-media.is-video > video,
.protect-media.is-video > .protect-img.xc-video {
  pointer-events: auto;
  height: auto;
  object-fit: contain;
}
.protect-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* transparent hit target — blocks right-click/save on the image underneath */
  background: transparent;
  cursor: inherit;
}
/* Don't cover video controls; only a thin top band for context-menu block is useless — leave shield off videos */
.protect-media.is-video > .protect-shield { display: none; }
/* Avatar uses circle crop */
.avatar-wrap.protect-media {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  margin-top: -52px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  overflow: hidden;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  /* Sit above banner + share topbar so hover never tucks avatar behind */
  position: relative;
  z-index: 5;
}
.avatar-wrap .protect-img.avatar-lg,
.avatar-wrap .avatar-lg {
  width: 100%;
  height: 100%;
  margin-top: 0;
  border: none;
  border-radius: 0;
  object-fit: cover;
}
.avatar-wrap.zoomable { cursor: zoom-in; }
.avatar-wrap.zoomable:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  z-index: 6;
}
.profile-banner.protect-media { position: relative; z-index: 0; }
.profile-banner .protect-shield { z-index: 1; cursor: zoom-in; }
/* Lightbox image fills canvas */
.lb-protect.protect-media {
  width: auto;
  height: auto;
  max-width: min(96vw, 1100px);
  max-height: calc(100vh - 110px);
}
.lb-protect .protect-img {
  width: auto;
  height: auto;
  max-width: min(96vw, 1100px);
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: 8px;
}
.lb-protect .protect-shield { cursor: grab; }
/* Chat thumbs stay compact */
.protect-media.chat-thumb-wrap {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 168px;
  vertical-align: top;
}
.protect-media.chat-thumb-wrap .protect-img.chat-thumb,
.protect-media.chat-thumb-wrap .chat-thumb {
  width: auto;
  height: auto;
  max-width: 168px;
  max-height: 168px;
  object-fit: cover;
  border-radius: 12px;
}
/* Single post image fill */
.post-media > .protect-media {
  position: absolute;
  inset: 0;
}
.post-media {
  position: relative;
}
.post-media-video > .protect-media,
.post-media.post-media-video {
  position: relative;
}
.post-media-video.protect-media {
  position: relative;
  inset: auto;
}
/* Subtle watermark lattice (harder casual screenshots, low visual impact) */
.protect-media:not(.is-video):not(.is-locked-media)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 46px,
      rgba(255, 255, 255, 0.55) 46px,
      rgba(255, 255, 255, 0.55) 47px
    );
  mix-blend-mode: soft-light;
}
/* Obscure media when tab hidden / printscreen flash */
body.protect-obscured img,
body.protect-obscured video,
body.protect-obscured .protect-media,
body.protect-obscured .profile-banner,
body.protect-obscured .lb-canvas {
  filter: blur(42px) brightness(0.55) !important;
  transition: filter 0.05s linear;
}
@media print {
  img, video, .protect-media, .post-media, .media-gallery, .lb-canvas, .profile-banner, .sc-stage {
    display: none !important;
    visibility: hidden !important;
  }
  body::before {
    content: 'XCuties content cannot be printed.';
    display: block;
    padding: 40px;
    font-size: 18px;
  }
}
/* Ambient pink/purple glows — fixed so they stay at the top while scrolling */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -10%;
  right: -5%;
  width: min(1000px, 90vw);
  height: min(500px, 55vh);
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.14), transparent 65%);
}
body::after {
  top: -5%;
  left: -8%;
  width: min(800px, 85vw);
  height: min(450px, 50vh);
  background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.12), transparent 65%);
}
/* Keep content above the fixed glows */
.age-gate, .app, .modal-root { position: relative; z-index: 1; }
.lightbox, .showcase { z-index: 100; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.err { color: #f87171; font-size: 13px; margin-top: 8px; }

/* Age gate */
.age-gate {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.age-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px 28px; max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.age-card .logo { font-weight: 800; letter-spacing: .04em; color: var(--accent); font-size: 22px; }
.age-card h1 { margin: 16px 0 8px; font-size: 24px; }
.age-card p { color: var(--text-dim); margin: 0 0 20px; }
.age-card .btn { width: 100%; margin-top: 8px; }

/* Shell */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: rgba(15,13,18,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  /* Keep sticky nav above page chrome but never steal avatar under profile hero */
  isolation: isolate;
}
.brand { font-weight: 800; font-size: 18px; color: var(--accent); letter-spacing: .03em; }
.nav { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--text-dim); }
.nav a:hover { color: var(--text); }
.main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.footer {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  padding: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: .15s ease;
}
.btn:hover { border-color: #3d3548; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  border-color: transparent; color: #fff;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Forms */
.form-card {
  max-width: 400px; margin: 24px auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.form-card h1 { margin: 0 0 6px; font-size: 22px; }
.form-card .sub { color: var(--muted); margin-bottom: 20px; }
label { display: block; font-size: 12px; color: var(--text-dim); margin: 12px 0 6px; }
input, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 13px; color: var(--text-dim); }
.check input { width: auto; margin-top: 3px; }

/* Creator grid (legacy / inbox) */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: #3d3548; }
.card .cover {
  aspect-ratio: 3/4; background: linear-gradient(145deg, #2a2035, #1a1220);
  background-size: cover; background-position: center;
}
.card .meta { padding: 10px 12px 12px; }
.card .name { font-weight: 700; }
.card .stat { font-size: 12px; color: var(--muted); }

/* ---- Explore page ---- */
.explore { max-width: 1100px; margin: 0 auto; }
.explore-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 18px;
}
.ex-search {
  flex: 1 1 200px; min-width: 160px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; color: var(--text); outline: none;
}
.ex-search:focus { border-color: var(--accent); }
.ex-filters {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  flex: 1 1 auto;
}
.ex-sort {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.ex-spotlight {
  margin-bottom: 20px;
}
.ex-spot-label {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ex-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  color: inherit; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ex-card:hover {
  transform: translateY(-3px);
  border-color: #4a4158;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.ex-card-lg {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 280px;
  border-color: rgba(236, 72, 153, 0.35);
  background:
    radial-gradient(500px 200px at 10% 0%, rgba(236,72,153,.14), transparent 55%),
    var(--surface);
}
@media (max-width: 720px) {
  .ex-card-lg { grid-template-columns: 1fr; }
}
.ex-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  min-height: 160px;
  background: #120f16;
}
.ex-mosaic .ex-tile:first-child {
  grid-row: 1 / span 2;
  grid-column: 1;
}
.ex-mosaic-lg {
  min-height: 280px;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.ex-tile {
  position: relative;
  background: linear-gradient(145deg, #2a2035, #1a1220);
  background-size: cover;
  background-position: center;
  min-height: 72px;
  overflow: hidden;
}
.ex-tile-empty {
  background: linear-gradient(145deg, #2a2035, #141018);
}
.ex-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.ex-tile-badge {
  position: absolute; right: 6px; bottom: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15,13,18,.7); color: #fff;
  font-size: 10px; display: grid; place-items: center;
}
.ex-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ex-card-lg .ex-body {
  padding: 20px 18px;
  justify-content: center;
}
.ex-head { display: flex; gap: 10px; align-items: center; }
.ex-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  background-size: cover; background-position: center;
  border: 2px solid var(--surface);
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.ex-card-lg .ex-avatar { width: 56px; height: 56px; font-size: 20px; }
.ex-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.ex-card-lg .ex-name { font-size: 22px; }
.ex-slug { font-size: 12px; color: var(--muted); }
.ex-bio {
  margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ex-card-lg .ex-bio { -webkit-line-clamp: 3; font-size: 14px; }
.ex-flair {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ex-chip {
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--text-dim);
  border: 1px solid rgba(255,255,255,.08);
}
.ex-chip-online { color: var(--green); border-color: rgba(52,211,153,.25); }
.ex-chip-nsfw { color: var(--accent); border-color: rgba(236,72,153,.3); background: rgba(236,72,153,.1); }
.ex-chip-spot {
  color: #fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.1);
}
.ex-metrics {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-size: 12px; color: var(--muted);
}
.ex-metrics b { color: var(--text); font-weight: 700; }
.ex-price { color: var(--accent); font-weight: 700; }
.ex-free-tag {
  color: var(--green); font-weight: 700;
}

/* ---- Landing page (/) ---- */
.landing { max-width: 1100px; margin: 0 auto; }
.land-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}
@media (max-width: 800px) {
  .land-hero { grid-template-columns: 1fr; }
}
.land-kicker {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.land-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900; line-height: 1.12;
  letter-spacing: -0.02em;
}
.land-lead {
  margin: 0 0 18px;
  font-size: 16px; line-height: 1.55; color: var(--text-dim);
  max-width: 36em;
}
.land-cta-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.land-bullets {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.land-bullets li {
  font-size: 13px; color: var(--text-dim); line-height: 1.4;
  padding-left: 0;
}
.land-bullets strong { color: var(--text); font-weight: 700; }
.land-hero-card {
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(236,72,153,.16), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.land-hero-card label {
  margin-top: 10px;
}
.land-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .land-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .land-features { grid-template-columns: 1fr; }
}
.land-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
}
.land-feat-icon { font-size: 22px; margin-bottom: 8px; }
.land-feat h3 {
  margin: 0 0 6px; font-size: 14px; font-weight: 800;
}
.land-feat p {
  margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45;
}
.land-section { margin-bottom: 40px; }
.land-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.land-section-head h2 {
  margin: 0; font-size: 22px; font-weight: 800;
}
.land-scatter {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 72px;
  gap: 8px;
}
@media (max-width: 800px) {
  .land-scatter { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .land-scatter { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 64px; }
}
.land-scatter-tile {
  display: block;
  border-radius: 12px;
  background: #1a1220 center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 64px;
}
.land-scatter-tile:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  z-index: 1;
}
.land-scatter-tile.size-sm { grid-row: span 1; grid-column: span 1; }
.land-scatter-tile.size-md { grid-row: span 2; grid-column: span 1; }
.land-scatter-tile.size-lg { grid-row: span 2; grid-column: span 2; }
@media (max-width: 480px) {
  .land-scatter-tile.size-lg { grid-column: span 1; }
}
.land-bottom-cta {
  text-align: center;
  padding: 32px 16px 8px;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}
.land-bottom-cta h2 {
  margin: 0 0 8px; font-size: 24px; font-weight: 800;
}

/* Profile — tall banner (recommended 1500×500 / 3:1) */
.profile-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 18px; align-items: start;
}
@media (max-width: 840px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { order: -1; }
}
.profile-hero {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); margin-bottom: 14px;
}
.profile-banner {
  height: 280px; /* matches BANNER.cssHeightPx — dashboard guide 1500×500 */
  background: linear-gradient(120deg, rgba(236,72,153,.35), rgba(168,85,247,.3));
  background-size: cover; background-position: center;
}
.profile-banner.zoomable {
  cursor: zoom-in;
  transition: filter .15s ease;
  /* filter creates a stacking context — keep banner below avatar */
  position: relative;
  z-index: 0;
}
.profile-banner.zoomable:hover {
  filter: brightness(1.06);
}
.profile-banner.zoomable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@media (max-width: 560px) {
  .profile-banner { height: 200px; }
}
/* Share controls only — don't span full width over the avatar */
.profile-topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 10px 12px 0;
  position: absolute; top: 0; right: 0; left: auto;
  z-index: 2;
  pointer-events: none; /* bar itself not a hit target */
}
.profile-topbar .icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(15,13,18,.55); color: #fff; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(8px); font-size: 15px;
  pointer-events: auto; /* only the button receives hover/click */
}
.profile-topbar .icon-btn:hover { background: rgba(15,13,18,.75); }
/* Avatar sits at the TOP of the body row (not bottom-aligned with actions) */
.profile-body {
  position: relative;
  z-index: 4;
  padding: 0 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: flex-start;
}
.avatar-lg {
  width: 104px; height: 104px; border-radius: 50%; margin-top: -52px;
  border: 3px solid var(--surface); object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  align-self: flex-start;
  position: relative;
  z-index: 5;
}
/* zoomable avatar styles live on .avatar-wrap when protected */
.profile-info {
  flex: 1; min-width: min(100%, 220px);
  display: flex; flex-direction: column;
  width: 100%;
}
.profile-info h1 {
  margin: 0; font-size: 24px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
/* Bio sits directly under the name — full width of the info column */
.profile-info .bio {
  color: var(--text-dim); margin: 6px 0 0; font-size: 14px; line-height: 1.55;
  white-space: pre-wrap;
  width: 100%;
  max-width: none;
}
/* Flair: hug text width only (not stretched) */
.profile-flair {
  display: flex; flex-wrap: wrap; gap: 8px;
  width: 100%;
  margin-top: 12px;
  box-sizing: border-box;
}
.profile-flair:empty { display: none; }
.flair {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  flex: 0 0 auto;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim);
  white-space: nowrap;
  line-height: 1.2;
}
.flair-chat {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}
.flair-call {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue);
}
.flair-online {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}
/* Single blinking green dot (no second circle) */
.flair-online .online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  animation: online-blink 1.35s ease-in-out infinite;
}
@keyframes online-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
.flair-custom {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.14);
  color: #c4b5fd;
}
.flair-nsfw {
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.16);
  color: #f9a8d4;
}
/* Fan count / price — extra space under flair */
.profile-meta {
  margin-top: 16px;
  font-size: 13px;
}
.profile-counts {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted);
}
.profile-counts b { color: var(--text); font-weight: 700; }
/* Subscribe / Message / Tip under counts (not beside the avatar) */
.profile-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding-top: 0;
}
.profile-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center;
}
.profile-filters .chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.profile-filters .chip.active {
  background: var(--accent-soft); color: var(--accent); border-color: transparent;
}
.profile-filters .chip-toggle {
  margin-left: auto;
}
.profile-sidebar .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; position: sticky; top: calc(var(--topbar-h) + 12px);
}
.profile-sidebar .price { font-size: 22px; font-weight: 800; margin: 4px 0 12px; }
.profile-sidebar .sub-note { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.post-footer {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 8px 14px 12px; border-top: 1px solid var(--border);
}
.post-footer .like-btn, .post-footer .cmt-toggle {
  background: transparent; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 4px 0;
}
.post-footer .like-btn.liked { color: var(--accent); }
.post-comments { padding: 0 14px 12px; }
.post-comments .cmt {
  font-size: 13px; padding: 6px 0; border-top: 1px solid var(--border-soft, var(--border));
}
.post-comments .cmt b { margin-right: 6px; }
.post-comments form { display: flex; gap: 8px; margin-top: 8px; }
.post-comments input { flex: 1; }

/* Posts */
.posts { display: flex; flex-direction: column; gap: 14px; }
.post {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.post .post-head { padding: 12px 14px; font-size: 13px; color: var(--text-dim); }
.post .post-media {
  position: relative; aspect-ratio: 1; background: #120f16;
  display: grid; place-items: center; overflow: hidden;
}
.post .post-media img, .post .post-media video {
  width: 100%; height: 100%; object-fit: cover;
}
/* Unlocked single videos: full frame; native controls overlay on the video */
.post .post-media-video {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  overflow: hidden; /* round corners — controls still draw on the video surface */
  background: #0a0810;
  display: block;
  place-items: unset;
  position: relative;
}
.post .post-media-video .xc-video {
  width: 100%;
  height: auto;
  max-height: min(80vh, 820px);
  object-fit: contain;
  background: #000;
  display: block;
  /* keep pointer events so browser control chrome is clickable */
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
/* Locked video preview still uses square crop (blurred teaser) */
.video-expand {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(15,13,18,.65); color: #fff;
  font-size: 14px; cursor: pointer; backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.video-expand:hover { background: rgba(15,13,18,.85); }
/* Native controls live on the <video>; expand is same-element fullscreen only */
.chat-video-wrap {
  position: relative; max-width: min(280px, 78vw); border-radius: 12px; overflow: hidden;
  background: #000; margin-bottom: 4px;
}
.chat-video-wrap .chat-video,
.chat-video-wrap .xc-video {
  display: block; width: 100%; height: auto;
  max-height: min(360px, 55vh);
  object-fit: contain; background: #000; border-radius: 12px;
}
.chat-video-wrap .video-expand {
  top: 6px; right: 6px; width: 28px; height: 28px; font-size: 12px;
}
/* PPV / sub lock: one compact unit, centered both axes */
.post .locked-overlay,
.media-gallery .locked-overlay.multi-lock {
  position: absolute; inset: 0; z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}
.post .locked-overlay.is-static {
  position: relative; inset: auto;
  min-height: 160px;
}
.locked-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 18px 22px;
  max-width: min(280px, 100%);
  width: max-content;
  border-radius: 16px;
  background: rgba(15, 13, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.locked-cta .lock {
  font-size: 28px;
  line-height: 1;
  margin: 0;
}
.locked-cta .locked-msg {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  max-width: 220px;
}
.locked-cta .locked-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}
.locked-cta .btn {
  margin: 4px 0 0 !important;
  flex-shrink: 0;
}
.post .post-body { padding: 12px 14px; }

/* ---- Multi-image layouts ---- */
.media-gallery { position: relative; background: #120f16; }
.media-gallery .mg-cell {
  position: relative; overflow: hidden; background: #0a0810;
  min-height: 120px;
}
.media-gallery .mg-cell img,
.media-gallery .mg-cell video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-gallery .mg-cell .mg-blur {
  filter: blur(18px); transform: scale(1.06);
}
/* Unlocked videos in multi layouts: show full frame, never crop */
.media-gallery .mg-video {
  aspect-ratio: auto !important;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.media-gallery .mg-video .xc-video {
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  object-fit: contain;
  background: #000;
  display: block;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.media-gallery .mg-audio {
  display: grid; place-items: center; padding: 16px; min-height: 80px;
}
/* “+X more” tile — fills last design slot, opens album view */
.mg-cell.mg-more {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: #0a0810;
  color: #fff;
  font: inherit;
  aspect-ratio: 1;
  overflow: hidden;
}
.mg-more-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) blur(1px);
  transform: scale(1.04);
  pointer-events: none;
}
.mg-more-veil {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,13,18,.35), rgba(236,72,153,.28));
  pointer-events: none;
}
.mg-more-label {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
  pointer-events: none;
}
.mg-more-plus {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mg-more-word {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.mg-cell.mg-more:hover .mg-more-veil {
  background: linear-gradient(160deg, rgba(15,13,18,.25), rgba(236,72,153,.4));
}
.mg-cell.mg-more:hover .mg-more-plus { color: var(--accent); }
.carousel-see-all {
  margin-left: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.carousel-see-all:hover { border-color: var(--accent); }

/* Full album view (all media in a post) */
.media-album {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(6, 4, 10, 0.97);
  display: flex; flex-direction: column;
  backdrop-filter: blur(12px);
}
.media-album.hidden { display: none !important; }
.ma-top {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ma-close {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(26,22,31,.8); color: #fff;
  font-size: 24px; cursor: pointer; line-height: 1;
}
.ma-title {
  font-size: 16px; font-weight: 800; flex: 1;
}
.ma-count {
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.ma-grid {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-content: start;
}
@media (min-width: 720px) {
  .ma-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 18px 20px 28px;
    gap: 10px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
  }
}
.ma-cell {
  position: relative;
  aspect-ratio: 1;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1a161f;
  cursor: zoom-in;
  display: block;
}
.ma-cell img,
.ma-cell video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.ma-cell.ma-audio {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: default; padding: 10px;
  font-size: 28px;
}
.ma-cell.ma-audio audio { width: 100%; max-width: 100%; }
.ma-badge {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(15,13,18,.75); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
}
/* multi-lock shares .locked-overlay + .locked-cta rules above */

/* Grid: 2-column equal tiles */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.layout-grid .mg-cell { aspect-ratio: 1; }
.layout-grid.count-3 .mg-cell:first-child {
  grid-column: 1 / -1; aspect-ratio: 16/10;
}
.layout-grid.count-1 { grid-template-columns: 1fr; }

/* Mosaic: large square + smaller mixed-size tiles around it */
.layout-mosaic {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(72px, 1fr);
}
.layout-mosaic .mg-cell {
  min-height: 72px;
  aspect-ratio: auto;
}
/* Hero tile — large square */
.layout-mosaic .mg-cell:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  aspect-ratio: 1;
  min-height: 0;
}
/* 2 images: hero left, tall tile right */
.layout-mosaic.count-2 {
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(140px, auto);
}
.layout-mosaic.count-2 .mg-cell:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.layout-mosaic.count-2 .mg-cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
  min-height: 100%;
}
/* 3 images: hero + two stacked on the right */
.layout-mosaic.count-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.layout-mosaic.count-3 .mg-cell:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.layout-mosaic.count-3 .mg-cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1;
}
.layout-mosaic.count-3 .mg-cell:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 1;
}
/* 4 images: hero 2×2 + two small top-right + one wide bottom */
.layout-mosaic.count-4 .mg-cell:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
  aspect-ratio: 1;
}
.layout-mosaic.count-4 .mg-cell:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
  aspect-ratio: 1;
}
.layout-mosaic.count-4 .mg-cell:nth-child(4) {
  grid-column: 3 / span 2;
  grid-row: 2;
  aspect-ratio: 2 / 1;
}
/* 5+: hero + mixed spans for smaller tiles */
.layout-mosaic.count-5 .mg-cell:nth-child(2),
.layout-mosaic.count-6 .mg-cell:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
  aspect-ratio: 1;
}
.layout-mosaic.count-5 .mg-cell:nth-child(3),
.layout-mosaic.count-6 .mg-cell:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
  aspect-ratio: 1;
}
.layout-mosaic.count-5 .mg-cell:nth-child(4),
.layout-mosaic.count-6 .mg-cell:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: 1;
}
.layout-mosaic.count-5 .mg-cell:nth-child(5) {
  grid-column: 4;
  grid-row: 2;
  aspect-ratio: 1;
}
.layout-mosaic.count-6 .mg-cell:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
  aspect-ratio: 4 / 3;
}
.layout-mosaic.count-6 .mg-cell:nth-child(6) {
  grid-column: 4;
  grid-row: 2 / span 2;
  aspect-ratio: auto;
  min-height: 100%;
}
@media (max-width: 520px) {
  .layout-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .layout-mosaic .mg-cell:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 1;
  }
  .layout-mosaic.count-2,
  .layout-mosaic.count-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .layout-mosaic.count-2 .mg-cell:first-child,
  .layout-mosaic.count-3 .mg-cell:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .layout-mosaic.count-2 .mg-cell:nth-child(2),
  .layout-mosaic.count-3 .mg-cell:nth-child(2),
  .layout-mosaic.count-3 .mg-cell:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Stack: full-width vertical (capped — last tile may be +more) */
.layout-stack {
  display: flex; flex-direction: column; gap: 3px;
}
.layout-stack .mg-cell { aspect-ratio: 4/5; max-height: 520px; }
.layout-stack .mg-cell img { object-fit: cover; }
.layout-stack .mg-cell.mg-more {
  aspect-ratio: 4/5;
  max-height: 520px;
  min-height: 180px;
}
.layout-stack .mg-cell.mg-video {
  aspect-ratio: auto !important;
  max-height: none;
  min-height: 220px;
}
.layout-stack .mg-cell.mg-video .xc-video {
  max-height: min(75vh, 780px);
  object-fit: contain;
}

/* Carousel */
.layout-carousel {
  overflow: hidden;
}
.layout-carousel .carousel-track {
  display: flex; transition: transform .28s ease;
  width: 100%;
  align-items: stretch;
}
.layout-carousel .carousel-track .mg-cell {
  flex: 0 0 100%;
  aspect-ratio: 1;
  min-width: 100%;
}
.layout-carousel .carousel-track .mg-cell.mg-video {
  aspect-ratio: auto !important;
  min-height: 240px;
  background: #000;
}
.layout-carousel .carousel-track .mg-cell.mg-video .xc-video {
  width: 100%;
  height: auto;
  max-height: min(75vh, 780px);
  object-fit: contain;
}
.layout-carousel .carousel-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 12px; background: var(--surface-2, #201b28);
  border-top: 1px solid var(--border);
}
.carousel-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 18px; cursor: pointer; line-height: 1;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.carousel-dots .dot {
  width: 7px; height: 7px; border-radius: 50%; border: none;
  background: var(--border); padding: 0; cursor: pointer;
}
.carousel-dots .dot.on { background: var(--accent); }

/* Chat */
.chat-shell {
  display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - 80px);
  min-height: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.chat-head img, .chat-head .ph {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid; place-items: center; font-weight: 700;
}
.chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.bubble {
  max-width: 78%; padding: 9px 12px; border-radius: 15px;
  overflow-wrap: anywhere;
}
.bubble.in {
  align-self: flex-end; background: var(--bg-2); border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}
.bubble.out {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(236,72,153,.92), rgba(219,39,119,.92));
  color: #fff; border-bottom-left-radius: 4px;
}
.bubble img, .bubble video { max-width: 100%; border-radius: 10px; display: block; margin-bottom: 4px; }
/* Chat media thumbs — compact; click opens lightbox */
.bubble .chat-thumb {
  max-width: 168px; max-height: 168px; width: auto; height: auto;
  border-radius: 12px; display: block; cursor: zoom-in;
  object-fit: cover; margin-bottom: 4px;
}
.bubble .chat-thumb-wrap { position: relative; display: inline-block; max-width: 168px; }
.bubble .chat-thumb-wrap.locked .chat-thumb {
  filter: blur(14px); transform: scale(1.05); cursor: pointer;
}
.bubble .chat-lock-cta {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: rgba(10,8,14,.45); border-radius: 12px; padding: 8px; text-align: center;
}
.bubble .chat-lock-cta button {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  border: none; background: #fff; color: var(--accent-600); font-weight: 700; cursor: pointer;
}
.bubble .t { font-size: 10px; opacity: .65; margin-top: 3px; }
.bubble .paybtn {
  display: block; margin-top: 8px; background: #fff; color: var(--accent-600);
  font-weight: 700; text-align: center; padding: 9px; border-radius: 10px;
  text-decoration: none; border: none; width: 100%; cursor: pointer; font-size: 13px;
}
.chat-status {
  align-self: flex-start; font-size: 12px; color: var(--muted);
  padding: 4px 10px; font-style: italic;
}
.chat-status .dots::after {
  content: '';
  animation: xcdots 1.2s steps(4, end) infinite;
}
@keyframes xcdots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}
.chat-compose {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.chat-compose input { flex: 1; border-radius: 12px; }

/* Fullscreen image lightbox + zoom / finder */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9);
  display: flex; flex-direction: column;
  padding: 0;
  cursor: default;
  /* override relative z-index from earlier rule */
  position: fixed;
  z-index: 100;
}
.lightbox.hidden { display: none !important; }
.lightbox .lb-close {
  position: absolute; top: 12px; right: 14px; z-index: 6;
  background: rgba(15,13,18,.55); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 24px; cursor: pointer; line-height: 1;
  width: 40px; height: 40px; border-radius: 12px;
  backdrop-filter: blur(8px);
}
.lightbox .lb-close:hover { background: rgba(15,13,18,.8); }

.lb-stage {
  flex: 1; min-height: 0; position: relative;
  overflow: hidden;
  cursor: default;
  touch-action: none;
  display: flex; align-items: center; justify-content: center;
}
.lightbox.is-zoomed .lb-stage { cursor: grab; }
.lb-stage.is-panning { cursor: grabbing; }
.lb-canvas {
  transform-origin: center center;
  will-change: transform;
  position: relative;
  user-select: none;
  max-width: 100%;
  max-height: 100%;
}
.lb-canvas img,
.lb-canvas video,
.lb-canvas .protect-img {
  display: block;
  max-width: min(96vw, 1100px);
  max-height: calc(100vh - 110px);
  width: auto; height: auto;
  border-radius: 8px;
  object-fit: contain;
  pointer-events: none; /* pan/zoom handled on stage */
}
.lb-canvas .protect-media {
  width: auto;
  height: auto;
  max-width: min(96vw, 1100px);
  max-height: calc(100vh - 110px);
}
.lb-canvas video {
  pointer-events: auto; /* keep native video controls clickable */
  max-height: calc(100vh - 110px);
}

.lb-toolbar {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  z-index: 5;
}
.lb-tool {
  min-width: 36px; height: 34px; padding: 0 10px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(26,22,31,.85); color: #fff;
  font-weight: 700; font-size: 16px; cursor: pointer;
}
.lb-tool:hover { border-color: var(--accent); color: var(--accent-300, #f9a8d4); }
.lb-zoom-slider {
  width: min(220px, 40vw);
  accent-color: var(--accent);
  cursor: pointer;
}
.lb-zoom-label {
  min-width: 48px; text-align: center;
  font-size: 12px; font-weight: 700; color: #e7e7ee;
  font-variant-numeric: tabular-nums;
}
.lb-hint {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 11px; color: rgba(255,255,255,.45);
  pointer-events: none; z-index: 4;
  white-space: nowrap;
}
.lightbox.is-video .lb-toolbar,
.lightbox.is-video .lb-finder,
.lightbox.is-video .lb-hint { display: none; }
.lightbox.is-video .lb-stage { cursor: default; }
.lightbox.is-video .lb-canvas video {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  pointer-events: auto;
}

/* Mini-map finder */
.lb-finder {
  position: absolute; left: 16px; bottom: 64px; z-index: 5;
  width: 140px; height: 100px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; overflow: hidden;
  background: rgba(15,13,18,.75);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  cursor: crosshair;
  display: none; /* shown when zoomed */
}
.lightbox.is-zoomed .lb-finder { display: block; }
.lb-finder img {
  width: 100%; height: 100%; object-fit: contain;
  display: block; opacity: .85; pointer-events: none;
  max-width: none; max-height: none; border-radius: 0;
}
.lb-finder-viewport {
  position: absolute;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5);
  background: rgba(236, 72, 153, 0.18);
  pointer-events: none;
  box-sizing: border-box;
  min-width: 8px; min-height: 8px;
}
@media (max-width: 560px) {
  .lb-finder { width: 110px; height: 80px; left: 10px; bottom: 58px; }
  .lb-hint { display: none; }
  .lb-zoom-slider { width: min(140px, 36vw); }
}

/* ---- Post Showcase (full-screen feed) ---- */
.showcase {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(6, 4, 10, 0.96);
  display: flex; flex-direction: column;
  backdrop-filter: blur(12px);
}
.showcase.hidden { display: none !important; }
.sc-close {
  position: absolute; top: 12px; right: 14px; z-index: 6;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(26,22,31,.8); color: #fff;
  font-size: 24px; cursor: pointer; line-height: 1;
}
.sc-nav {
  position: absolute; top: 50%; transform: translateY(-60%);
  z-index: 5; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(26,22,31,.75); color: #fff;
  font-size: 28px; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.sc-nav:hover { border-color: var(--accent); color: var(--accent); }
.sc-prev { left: 14px; }
.sc-next { right: 14px; }
.sc-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 64px 12px;
  overflow: auto;
}
.sc-stage .post {
  max-width: min(720px, 100%);
  width: 100%;
  margin: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.sc-stage .post { cursor: default; }
/* Showcase: give videos room — don't force square crop */
.sc-stage .post-media-video .xc-video {
  max-height: min(62vh, 680px);
}
.sc-stage .media-gallery .mg-video .xc-video {
  max-height: min(58vh, 640px);
}
.sc-meta {
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 8px 20px 6px;
  max-width: 900px; width: 100%; margin: 0 auto;
}
.sc-caption {
  color: var(--text-dim); font-size: 13px; line-height: 1.45;
  flex: 1; white-space: pre-wrap;
}
.sc-counter {
  color: var(--muted); font-size: 12px; font-weight: 700;
  white-space: nowrap; padding-top: 2px;
}
.sc-film-wrap {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(10,8,14,.92);
  padding: 10px 12px 14px;
  overflow: hidden;
}
.sc-film {
  display: flex; gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  /* hide scrollbar but keep scroll */
  scrollbar-width: thin;
  scrollbar-color: #3d3548 transparent;
}
.sc-film::-webkit-scrollbar { height: 6px; }
.sc-film::-webkit-scrollbar-thumb { background: #3d3548; border-radius: 4px; }
.sc-thumb {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1a161f;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.sc-thumb img, .sc-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.sc-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(236,72,153,.4);
}
.sc-thumb .sc-lock {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45);
  font-size: 16px;
}
.sc-thumb.audio-thumb {
  display: grid; place-items: center;
  color: var(--text-dim); font-size: 22px;
}
.sc-thumb .sc-empty {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--text-dim); font-size: 18px;
}
.sc-nav.hidden { display: none !important; }
.sc-hint {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 11px; color: rgba(255,255,255,.4);
  pointer-events: none; z-index: 4; white-space: nowrap;
}
@media (max-width: 640px) {
  .sc-stage { padding: 48px 12px 8px; }
  .sc-nav { width: 40px; height: 40px; font-size: 24px; }
  .sc-prev { left: 6px; }
  .sc-next { right: 6px; }
  .sc-thumb { width: 60px; height: 60px; }
  .sc-hint { display: none; }
}

/* ---- Themed modal (tips, etc.) ---- */
.modal-root {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 20px;
  background: rgba(8, 6, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-root.hidden { display: none !important; }
.modal-card {
  width: 100%; max-width: 400px;
  background:
    radial-gradient(400px 180px at 90% -20%, rgba(236, 72, 153, 0.18), transparent 55%),
    radial-gradient(320px 160px at -10% 0%, rgba(168, 85, 247, 0.14), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 22px 20px;
  position: relative;
}
.modal-card .modal-x {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.modal-card .modal-x:hover { color: var(--text); }
.modal-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.modal-card h2 {
  margin: 0 0 6px; font-size: 20px; font-weight: 800;
}
.modal-card .modal-sub {
  margin: 0 0 16px; color: var(--text-dim); font-size: 13px;
}
.tip-presets {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px;
}
.tip-preset {
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); border-radius: 12px; padding: 12px 6px;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.tip-preset:hover { border-color: #4a4158; }
.tip-preset.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  color: #fff;
}
.tip-custom-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.tip-custom-row .currency {
  color: var(--muted); font-weight: 700; font-size: 16px;
}
.tip-custom-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 16px;
  outline: none;
}
.tip-custom-row input:focus { border-color: var(--accent); }
.modal-actions {
  display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
}
.modal-actions .btn { width: 100%; }
.modal-note {
  text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px;
}

.page-title { margin: 0 0 16px; font-size: 22px; }
.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.badge.ok { background: rgba(52,211,153,.15); color: var(--green); }

@media (max-width: 560px) {
  .nav a#nav-msg, .nav a#nav-settings { display: none; }
  .profile-banner { height: 100px; }
}
