:root {
  --bg: #050506;
  --bg-elevated: #0c0c0f;
  --bg-soft: #121218;
  --bg-hover: #18181f;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f3ec;
  --text-dim: #b8b1a7;
  --muted: #7f796f;
  --accent: #d44532;
  --accent-hot: #ff6a52;
  --accent-glow: rgba(212, 69, 50, 0.35);
  --ok: #41d18f;
  --warn: #ffb454;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --max: 1120px;
  --radius: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --mobile-nav-h: 64px;
  --mobile-nav-gap: 12px;
  --sv-top-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/*
 * WP `_admin_bar_bump_cb` injects `html { margin-top: 46px !important }` on mobile even when
 * the bar is hidden — and our SPA <html> has no .wp-toolbar class, so a class-scoped reset missed it.
 * Kill the bump on bare html/body from first paint (no scroll-dependent collapse).
 */
html,
html.wp-toolbar,
body,
body.admin-bar,
body.secrivo-app-body,
body.secrivo-app-body.admin-bar {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#wpadminbar {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}
[hidden] { display: none !important; }

body.secrivo-app-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 0 !important;
}
body.secrivo-app-body #wpadminbar { display: none !important; height: 0 !important; }
body.secrivo-app-body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.dim { color: var(--text-dim); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 5px rgba(65, 209, 143, 0.08); }
}
@keyframes ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled, .btn.is-busy {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(212, 69, 50, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-soft {
  background: rgba(212, 69, 50, 0.12);
  color: #ffb5a8;
  border: 1px solid rgba(212, 69, 50, 0.22);
}
.btn-soft:hover { background: rgba(212, 69, 50, 0.18); }
.btn-danger {
  background: rgba(212, 69, 50, 0.08);
  color: #ff8f7d;
  border: 1px solid rgba(212, 69, 50, 0.28);
}
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(65, 209, 143, 0.15);
  animation: pulse 2s ease infinite;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  flex-shrink: 0;
}
.avatar.lg { width: 112px; height: 112px; border-width: 4px; border-color: var(--bg); }
.avatar.fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text-dim);
  background: linear-gradient(145deg, #1a1a22, #121218);
}

/* Shell */
#secrivo-root { min-height: 100vh; min-height: 100dvh; animation: fadeIn 0.35s ease; }
.sv-boot {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  gap: 14px;
}
.sv-boot::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.sv-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Permanently compact: fixed min-height, no safe-area inflation (avoids double inset + admin-bar gap). */
  min-height: var(--sv-top-h);
  height: auto;
  max-height: none;
  padding: 8px clamp(12px, 3vw, 24px);
  padding-top: 8px;
  padding-bottom: 8px;
  box-sizing: border-box;
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
}
.brand span { color: var(--accent); }
.sv-nav {
  display: flex;
  gap: 2px;
  margin-right: auto;
}
.sv-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: 0.2s ease;
}
.sv-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.sv-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-actions .avatar-link { display: flex; }

.sv-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px clamp(14px, 2.5vw, 24px) calc(100px + var(--safe-b));
}
.sv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.sv-grid.one { grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; }
.sv-grid.two { grid-template-columns: 320px minmax(0, 1fr); }
.sv-grid.dash { grid-template-columns: 1.15fr 0.85fr; }

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel-title h2 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 550;
  letter-spacing: -0.02em;
}
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 6px;
}
.empty .btn { margin-top: 16px; }

.skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-hover) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skel-post { height: 420px; border-radius: 24px; }
.skel-card { height: 220px; }
.skel-row { height: 56px; margin-bottom: 8px; }

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}
.age-gate[hidden],
.age-gate[aria-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
body.secrivo-age-locked {
  overflow: hidden;
}
body:not(.secrivo-age-locked) #age-gate {
  display: none !important;
}
body.secrivo-age-locked #secrivo-root {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
.age-card {
  max-width: 380px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: rise 0.5s var(--ease);
}
.age-card .brand {
  font-size: 36px;
  margin-bottom: 12px;
}
.age-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 600;
}
.age-card p {
  color: var(--text-dim);
  margin: 0 0 20px;
}
.age-card .btn { margin: 6px; min-width: 120px; }
.age-legal {
  margin-top: 18px !important;
  font-size: 12px;
}
.age-legal a { color: var(--muted); text-decoration: underline; }

/* Landing */
.sv-hero-land {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}
.sv-hero-land .landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(22px, 6vw, 72px);
}
.sv-hero-land .bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 5, 6, 0.9) 18%, rgba(5, 5, 6, 0.35) 55%, rgba(5, 5, 6, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.12) 0%, rgba(5, 5, 6, 0.96) 92%),
    url("https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=2000&q=85") center 22% / cover;
  animation: ken 28s ease-in-out infinite alternate;
}
@media (min-width: 900px) {
  .sv-hero-land .bg {
    animation: none;
    transform: none;
    background:
      linear-gradient(105deg, rgba(5, 5, 6, 0.88) 16%, rgba(5, 5, 6, 0.32) 52%, rgba(5, 5, 6, 0.7) 100%),
      linear-gradient(180deg, rgba(5, 5, 6, 0.1) 0%, rgba(5, 5, 6, 0.96) 92%),
      url("https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=2400&q=85") center 38% / cover;
  }
}
.sv-hero-land .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 75% 35%, rgba(212, 69, 50, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(212, 69, 50, 0.08), transparent 60%);
}
.sv-hero-land .content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(22px, 6vw, 72px) 11vh;
  max-width: 720px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  color: #ffc2b6;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.sv-hero-land h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-line { display: block; overflow: hidden; }
.hero-line span {
  display: inline-block;
  animation: rise 0.9s var(--ease) both;
}
.hero-line:nth-child(2) span { animation-delay: 0.1s; }
.hero-line:nth-child(3) span { animation-delay: 0.2s; }
.sv-hero-land .lead {
  margin: 0 0 30px;
  max-width: 400px;
  color: var(--text-dim);
  font-size: 17px;
  font-weight: 500;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.age-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* Feed / posts */
.feed { display: grid; gap: 20px; }
.post {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease;
}
.post:hover { border-color: var(--line-strong); }
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.post-head .avatar { width: 40px; height: 40px; }
.post-head strong { display: block; font-size: 14px; font-weight: 750; }
.post-head span { color: var(--muted); font-size: 12px; text-transform: capitalize; }
/* Natural media height — no fixed 4:5 black void under landscape shots. */
.post-media-stack {
  display: grid;
  gap: 0;
}
.post-media {
  position: relative;
  background: #09090c;
  overflow: hidden;
  line-height: 0;
}
.post-media img,
.post-media video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  background: #09090c;
  transition: filter 0.5s var(--ease), transform 0.8s var(--ease);
}
.post-media.is-video {
  background: #000;
}
.post-media.is-video video {
  width: 100%;
  height: auto;
  max-height: min(80vh, 900px);
  object-fit: contain;
  background: #000;
}
/* Locked PPV/sub: keep a tall frame so the unlock overlay has room. */
.post-media.locked {
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 720px);
}
.post-media.locked img,
.post-media.locked .media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) brightness(0.45) saturate(0.65);
  transform: scale(1.12);
}
.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #111;
}
.lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.65));
}
.lock-card {
  width: min(200px, 78%);
  padding: 12px 14px;
  border-radius: 14px;
  text-align: center;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.lock-card .lock-ico {
  width: 16px;
  height: 16px;
  margin-bottom: 2px;
}
.lock-card .label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.lock-card .price {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 4px 0 10px;
  font-weight: 500;
  line-height: 1.1;
}
.lock-card .btn {
  padding: 7px 12px;
  font-size: 11.5px;
}
.post-caption {
  padding: 12px 16px 4px;
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.45;
}
.post-caption p {
  margin: 0;
}
.post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px 16px;
}

.side-stack { display: grid; gap: 14px; position: sticky; top: 78px; align-self: start; }
.side-list { display: grid; gap: 4px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 14px;
  transition: background 0.2s ease;
  text-align: left;
  width: 100%;
}
.side-item:hover, .side-item.active { background: rgba(255, 255, 255, 0.04); }
.side-item .avatar { width: 42px; height: 42px; }
.side-item strong { display: block; font-size: 13px; font-weight: 700; }
.side-item span { font-size: 12px; color: var(--muted); }
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(65, 209, 143, 0.15);
  flex-shrink: 0;
  margin-left: auto;
}

/* Profile */
.profile-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  background: var(--bg-elevated);
}
.profile-cover {
  height: clamp(200px, 32vw, 300px);
  background:
    linear-gradient(180deg, transparent 10%, rgba(5, 5, 6, 0.97) 95%),
    var(--bg-soft);
  background-size: cover;
  background-position: center;
}
.profile-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 0 24px 24px;
  margin-top: -64px;
  position: relative;
}
.profile-meta h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 550;
  letter-spacing: -0.02em;
}
.profile-stats {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.profile-stats div strong {
  display: block;
  font-size: 16px;
  font-weight: 750;
}
.profile-stats div span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.grid-posts a, .grid-posts button {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  padding: 0;
  display: block;
  width: 100%;
}
.grid-posts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s ease;
}
.grid-posts a:hover img, .grid-posts button:hover img { transform: scale(1.04); }
.grid-posts .locked img {
  filter: blur(8px) brightness(0.5);
  transform: scale(1.08);
}
.badge-lock {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}
.badge-video {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 750;
}

/* Discover */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: 0.2s ease;
}
.chip.active, .chip:hover {
  color: var(--text);
  border-color: rgba(212, 69, 50, 0.4);
  background: rgba(212, 69, 50, 0.12);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.person-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: var(--bg-soft);
  isolation: isolate;
}
.person-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.person-card:hover img { transform: scale(1.05); }
.person-card .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  display: flex;
  align-items: center;
  gap: 10px;
}
.person-card .info .avatar { width: 36px; height: 36px; }
.person-card .info strong { display: block; font-size: 15px; font-weight: 750; }
.person-card .info .meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-dim);
}
.person-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a1220, #0c0c0f);
}
.online-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(65, 209, 143, 0.35);
  color: var(--ok);
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}
.person-card .price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 750;
}

.lock-ico {
  font-size: 18px;
  margin-bottom: 4px;
  line-height: 1;
}

.vis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.vis-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: left;
  transition: 0.2s ease;
  width: 100%;
}
.vis-card strong { font-size: 13px; font-weight: 750; }
.vis-card span { font-size: 11px; color: var(--muted); line-height: 1.3; }
.vis-card.active, .vis-card:hover {
  border-color: rgba(212, 69, 50, 0.45);
  background: rgba(212, 69, 50, 0.1);
}
.upload-limits {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.studio-compose .upload-box { margin-bottom: 0; }
.upload-box.is-busy {
  opacity: 0.65;
  pointer-events: none;
}
.upload-preview {
  position: relative;
}
.upload-preview .clear-media {
  margin-top: 10px;
}
.ppv-box {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 69, 50, 0.28);
  background: rgba(212, 69, 50, 0.06);
}
.ppv-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ppv-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .vis-grid { grid-template-columns: 1fr; }
}

/* Messages */
.messages-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: inherit;
  min-width: 0;
}
.messages-layout > .panel {
  min-width: 0;
}
.chat {
  display: flex;
  flex-direction: column;
  height: min(740px, calc(100vh - 120px));
  min-height: 420px;
  min-width: 0;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.chat-head .chat-back {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.chat-head .chat-back svg {
  width: 18px;
  height: 18px;
}
.chat-thread {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.bubble {
  max-width: 78%;
  padding: 11px 13px;
  border-radius: 18px 18px 18px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  animation: rise 0.35s var(--ease);
  word-break: break-word;
}
.bubble.me {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: rgba(212, 69, 50, 0.16);
  border-color: rgba(212, 69, 50, 0.28);
}
.bubble.locked-media {
  padding: 0;
  overflow: hidden;
  width: 230px;
}
.bubble.locked-media .preview {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px 14px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 30% 30%, rgba(212, 69, 50, 0.35), transparent 60%),
    var(--bg-soft);
}
.bubble.locked-media .preview .credits {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 6px 0 12px;
}
.chat-compose {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 0 calc(8px + var(--safe-b));
  border-top: 1px solid var(--line);
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.chat-compose input[name="body"] {
  flex: 1 1 auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
  width: 0; /* allow flex shrink below intrinsic text width */
}
.chat-compose input[name="body"]:focus { border-color: rgba(212, 69, 50, 0.5); }
.chat-compose .btn-attach,
.chat-compose .btn-lock {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.chat-compose .btn-attach svg,
.chat-compose .btn-lock svg {
  width: 20px;
  height: 20px;
}
.chat-compose .btn-attach:hover,
.chat-compose .btn-attach.has-file,
.chat-compose .btn-lock:hover {
  border-color: rgba(212, 69, 50, 0.55);
  color: var(--accent);
  background: rgba(212, 69, 50, 0.12);
}
.chat-compose .btn-attach:disabled,
.chat-compose .btn-lock:disabled {
  opacity: 0.55;
  cursor: wait;
}
.chat-compose .btn-lock.is-active {
  border-color: rgba(212, 69, 50, 0.7);
  color: #fff;
  background: rgba(212, 69, 50, 0.28);
  box-shadow: 0 0 0 1px rgba(212, 69, 50, 0.35);
}
.chat-compose .btn-send {
  flex-shrink: 0;
}
.chat-compose .lock-label {
  display: none;
}
.paid-compose-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.paid-compose-row input[type="number"] {
  width: 72px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}
.paid-compose-row .chip {
  padding: 6px 10px;
  font-size: 12px;
}
.msg-paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffb5a8;
  background: rgba(212, 69, 50, 0.16);
  border: 1px solid rgba(212, 69, 50, 0.28);
}
.msg-paid-badge svg {
  width: 12px;
  height: 12px;
}
.chat-attach-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.chat-attach-preview img,
.chat-attach-preview video {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}
.chat-attach-preview .meta {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bubble .msg-media {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}
.bubble .msg-media img,
.bubble .msg-media video {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
  background: #000;
}
.bubble.me .msg-media {
  margin-left: auto;
}
/* Narrow phones: single-column messages + composer (full-bleed overrides at file end) */
@media (max-width: 720px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }
  .messages-layout.thread-open .panel-threads {
    display: none;
  }
  .messages-layout:not(.thread-open) .panel-chat {
    display: none;
  }
  .messages-layout.thread-open .panel-chat {
    display: flex;
  }
  .chat-head .chat-back {
    display: inline-flex;
  }
  .chat-compose {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .chat-compose input[name="body"] {
    flex: 1 1 auto;
    padding: 11px 12px;
    font-size: 16px; /* avoid iOS zoom */
  }
  .chat-compose .btn-attach,
  .chat-compose .btn-lock {
    width: 42px;
    height: 42px;
  }
  .chat-compose .btn-send {
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
  }
  .chat-compose .btn-lock .lock-label {
    display: none;
  }
}
@media (min-width: 721px) {
  .chat-compose .btn-lock {
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 999px;
  }
  .chat-compose .btn-lock .lock-label {
    display: inline;
    font-size: 13px;
    font-weight: 700;
  }
}

/* Studio / wallet / settings */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.stat::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.5;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 750;
  margin-bottom: 10px;
}
.stat strong {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 550;
}
.payout-box {
  margin-top: 4px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(212, 69, 50, 0.12), transparent 55%),
    var(--bg-soft);
}
.payout-box .field label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.table th {
  color: var(--muted);
  font-weight: 750;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  text-transform: capitalize;
}
.tag.subscribe, .tag.sub { color: #9ad7ff; }
.tag.ppv { color: #ffc28f; }
.tag.tip { color: #ffb0a4; }
.tag.msg_unlock, .tag.msg { color: #c6b4ff; }
.tag.credits, .tag.purchase { color: #b8f0c8; }

.upload-box {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-box.is-drag {
  border-color: rgba(212, 69, 50, 0.5);
  background: rgba(212, 69, 50, 0.06);
}
.upload-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(212, 69, 50, 0.12);
  border: 1px solid rgba(212, 69, 50, 0.25);
  color: #ffb5a8;
  font-size: 22px;
}
.upload-preview {
  margin: 12px auto 0;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.upload-preview img,
.upload-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview video {
  object-fit: contain;
  background: #000;
}
.toggle-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input,
.field textarea,
.field select,
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.field textarea, .form-card textarea { resize: vertical; min-height: 88px; }
.field input:focus,
.field textarea:focus,
.field select:focus,
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: rgba(212, 69, 50, 0.5);
}

.form-card {
  max-width: 440px;
  margin: 40px auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.form-card .brand {
  text-align: center;
  font-size: 32px;
  margin-bottom: 4px;
}
.form-card .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 8px;
}
.form-card label {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.role-switch label {
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-dim) !important;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}
.role-switch input { display: none; }
.role-switch input:checked + span,
.role-switch label:has(input:checked) {
  border-color: rgba(212, 69, 50, 0.45);
  background: rgba(212, 69, 50, 0.12);
  color: var(--text) !important;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.pack-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: left;
  transition: 0.2s ease;
  width: 100%;
}
.pack-card:hover {
  border-color: rgba(212, 69, 50, 0.4);
  background: rgba(212, 69, 50, 0.08);
  transform: translateY(-2px);
}
.pack-card strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 550;
}
.pack-card span { color: var(--muted); font-size: 13px; font-weight: 650; }
.pack-card em {
  font-style: normal;
  color: #ffb5a8;
  font-size: 12px;
  font-weight: 750;
  margin-top: 4px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.media-pick {
  display: flex;
  align-items: center;
  gap: 14px;
}
.media-pick .preview-sq {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.media-pick .preview-wide {
  width: 120px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.file-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.file-pick .file-name {
  font-size: 12px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal */
.sv-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
.sv-modal-card {
  width: min(400px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: rise 0.35s var(--ease);
}
.sv-modal-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 550;
}
.sv-modal-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  justify-content: flex-end;
}
.tip-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}

/* Toast */
.toast {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--safe-b));
  z-index: 180;
  min-width: 220px;
  max-width: min(340px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  background: #14141a;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.25s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(65, 209, 143, 0.35); }
.toast.err { border-color: rgba(212, 69, 50, 0.45); }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  vertical-align: middle;
}
.lang-btn {
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lang-btn.active {
  color: var(--text);
  background: rgba(212, 69, 50, 0.22);
}
/* i18n via data-i18n + ::before — Chrome auto-translate skips attr()/pseudo text */
.sv-i18n {
  display: inline;
}
.sv-i18n::before {
  content: attr(data-i18n);
  white-space: inherit;
}
.btn .sv-i18n,
.hdr-login .sv-i18n,
.hdr-join .sv-i18n {
  display: inline-block;
}
.landing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}
.sv-legal-foot .lang-switch { margin-left: 8px; }
.sv-top.sv-top-guest {
  flex-wrap: nowrap;
  gap: 10px;
}
.sv-top-guest .brand {
  flex-shrink: 0;
  min-width: 0;
}
.sv-top-guest .top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 1;
}
.sv-top-guest .hdr-login,
.sv-top-guest .hdr-join,
.landing-actions .hdr-login,
.landing-actions .hdr-join {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .sv-top.sv-top-guest {
    padding-left: 10px;
    padding-right: 10px;
    gap: 6px;
  }
  .sv-top-guest .brand {
    font-size: 20px;
  }
  .sv-top-guest .top-actions,
  .landing-actions {
    gap: 4px;
  }
  .sv-top-guest .btn-sm,
  .landing-actions .btn-sm {
    padding: 6px 9px;
    font-size: 11px;
  }
  .lang-switch .lang-btn {
    min-width: 28px;
    padding: 5px 7px;
    font-size: 10px;
  }
  .sv-hero-land .landing-nav {
    padding-left: 12px;
    padding-right: 12px;
  }
}
.mobile-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-b));
  z-index: 45;
  padding: 8px;
  border-radius: 18px;
  background: rgba(12, 12, 15, 0.92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  justify-content: space-around;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
body.sv-guest .mobile-nav { display: none !important; }
body.sv-guest .sv-main { padding-bottom: 24px; }
.sv-top-guest .sv-nav { display: none; }
.mobile-nav a {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 12px;
  min-width: 56px;
}
.mobile-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.mobile-nav svg { width: 18px; height: 18px; }

.pay-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(65, 209, 143, 0.1);
  border: 1px solid rgba(65, 209, 143, 0.25);
  color: #9eecc4;
  font-size: 13px;
  font-weight: 650;
}
.pay-banner.cancel {
  background: rgba(212, 69, 50, 0.1);
  border-color: rgba(212, 69, 50, 0.25);
  color: #ffb5a8;
}

@media (max-width: 960px) and (min-width: 721px) {
  .sv-grid,
  .sv-grid.two,
  .sv-grid.dash,
  .settings-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .profile-meta { grid-template-columns: auto 1fr; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chat { height: min(620px, calc(100vh - 160px)); }
  .messages-layout { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .sv-grid,
  .sv-grid.two,
  .sv-grid.dash,
  .settings-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .profile-meta { grid-template-columns: auto 1fr; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .sv-nav { display: none; }
  body.sv-authed .mobile-nav { display: flex; }
  body.sv-guest .mobile-nav { display: none !important; }
  .grid-posts { grid-template-columns: repeat(2, 1fr); }
  .sv-hero-land h1 { font-size: clamp(44px, 14vw, 64px); }
  top-actions .pill span:not(.dot) { display: none; }
  .form-card { margin: 24px auto; }
  .sv-top {
    gap: 8px;
    min-height: 48px;
    height: 48px;
    padding: 6px 12px;
    /* No env(safe-area-inset-top) — was stacking with WP html margin-top bump until scroll. */
  }
  .lock-card {
    width: min(176px, 74%);
    padding: 10px 12px;
    border-radius: 12px;
  }
  .lock-card .price {
    font-size: 20px;
    margin: 3px 0 8px;
  }
  .lock-card .label {
    font-size: 8.5px;
  }
  .lock-card .lock-ico {
    width: 14px;
    height: 14px;
  }
  .lock-card .btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .brand { font-size: 20px; }
  .top-actions { gap: 6px; }
  .top-actions .pill { padding: 5px 8px; }
  .top-actions .avatar { width: 30px; height: 30px; }

  /*
   * Messages — full-bleed mobile (OnlyFans / DateZone style).
   * Must win over earlier .panel / .sv-main / .chat rules.
   */
  body.sv-page-messages #secrivo-root {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.sv-page-messages .sv-top {
    flex-shrink: 0;
  }
  body.sv-page-messages .sv-main,
  body.sv-page-messages .sv-main-messages {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.sv-page-messages .messages-layout {
    flex: 1;
    min-height: 0;
    height: 100%;
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.sv-page-messages .messages-layout > .panel {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: var(--bg);
    padding: 0;
    min-height: 0;
  }
  body.sv-page-messages .panel-threads {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 14px calc(14px + var(--mobile-nav-gap) + var(--mobile-nav-h) + var(--safe-b));
    overflow: hidden;
  }
  body.sv-page-messages .panel-threads .panel-title {
    flex-shrink: 0;
    margin-bottom: 10px;
  }
  body.sv-page-messages .panel-threads .side-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.sv-page-messages .messages-layout.thread-open .panel-threads {
    display: none;
  }
  body.sv-page-messages .messages-layout:not(.thread-open) .panel-chat {
    display: none;
  }
  body.sv-page-messages .messages-layout.thread-open .panel-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0;
  }
  body.sv-page-messages .messages-layout.thread-open .chat,
  body.sv-page-messages .panel-chat.chat {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  body.sv-page-messages .chat-head {
    padding: 10px 12px;
    margin-bottom: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
  }
  body.sv-page-messages .chat-thread {
    flex: 1;
    min-height: 0;
    padding: 12px 14px;
  }
  body.sv-page-messages #attach-preview {
    flex-shrink: 0;
    padding: 0 12px;
  }
  body.sv-page-messages .chat-compose {
    margin-top: 0;
    flex-shrink: 0;
    gap: 6px;
    padding: 10px 12px calc(10px + var(--mobile-nav-gap) + var(--mobile-nav-h) + var(--safe-b));
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
  }
  body.sv-page-messages .chat-compose input[name="body"] {
    min-width: 0;
    width: 0;
  }
  body.sv-page-messages .sv-legal-foot {
    display: none;
  }
}

@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .pack-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sv-hero-land .bg { animation: none; }
}

.sv-legal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding: 28px 16px 96px;
  font-size: 12px;
  color: var(--muted);
}
.sv-legal-foot a {
  color: var(--muted);
  text-decoration: none;
}
.sv-legal-foot a:hover { color: var(--text); }

.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px);
}
.legal-doc-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 550;
  line-height: 1.15;
}
.legal-doc-body {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}
.legal-doc-body h2 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  font-weight: 550;
}
.legal-doc-body h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--text);
  font-weight: 750;
}
.legal-doc-body p { margin: 0 0 12px; }
.legal-doc-body ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.legal-doc-body li { margin: 0 0 6px; }
.legal-doc-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.legal-doc-body strong { color: var(--text); }

.admin-user-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.admin-user-row .meta {
  flex: 1;
  min-width: 140px;
}
.admin-user-row .meta strong { display: block; }
.admin-user-row .meta span { font-size: 12px; }
.admin-user-row .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
}
.consent-row input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.consent-row a { color: var(--accent, #e8b4a0); }
