/* ============================================================================
   PORTRAIT CARD — deployed page styles (photo-led hero + content sheet).
   KEEP IN PARITY with the pt- skin in src/pages/NewEditor/NewEditor.css.
   Architecture: the PAGE scrolls naturally (no internal scroll container);
   the stage (.pt-page-bg) is fixed behind the shell. One accent colour
   (--pt-accent, set inline from data.accentColor; default #c9473e).
   ========================================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: #090a0b;
  overflow-x: hidden;
}

.pt-root {
  --pt-stage: #111214;
  --pt-sheet: #ffffff;
  --pt-ink: #151619;
  --pt-muted: #5f636b;
  --pt-faint: #71757d;
  --pt-line: #e7e8eb;
  --pt-soft: #f5f5f6;
  --pt-accent-tint: color-mix(in srgb, var(--pt-accent, #c9473e) 28%, #ffffff);
  --pt-ease: cubic-bezier(0.2, 0, 0, 1);
  /* contact blocks (shared/bouncy-collect.css) inherit the Portrait look;
     editor twin: src/pages/NewEditor/collectSkins/portrait-card.css */
  --bc-ink: var(--pt-ink);
  --bc-muted: var(--pt-muted);
  --bc-bg: var(--pt-soft);
  --bc-bg-strong: #ffffff;
  --bc-border: var(--pt-line);
  --bc-accent: var(--pt-accent, #c9473e);
  --bc-accent-ink: #ffffff;
  --bc-radius: 15px;
  --bc-field-radius: 12px;
  --bc-display: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bc-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bc-pill-bg: transparent;
  --bc-pill-ink: var(--pt-ink);
  --bc-pill-radius: 0;
  --bc-pill-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bc-pill-shadow: inset 0 -1px 0 var(--pt-line);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 16px;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--pt-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pt-accent, #c9473e) 70%, #ffffff); outline-offset: 3px; border-radius: 9px; }

/* ---- The stage behind the shell (fixed so it holds while the page scrolls) */
.pt-page-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pt-page-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-page-bg.is-blur .pt-page-bg-media {
  filter: blur(26px) saturate(0.85) brightness(0.6);
  transform: scale(1.12);
}
.pt-page-veil { position: absolute; inset: 0; background: rgba(6, 7, 9, 0.42); }
.pt-page-veil.is-soft { background: rgba(6, 7, 9, 0.3); }

/* ---- The shell ---- */
.pt-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
  background: var(--pt-stage);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 80px -45px #000000;
}

/* ---- Hero ---- */
.pt-hero {
  position: relative;
  /* Fixed height on desktop so the shell keeps the editor's proportions
     (vh-based heights balloon the hero on tall monitors). The mobile media
     query below makes it immersive full-height on phones. */
  height: 500px;
  flex-shrink: 0;
  overflow: hidden;
  background: #28292c;
  color: #ffffff;
}
.pt-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.98);
  animation: pt-photo-in 480ms var(--pt-ease) both;
}
div.pt-hero-media { filter: none; animation: none; }
.pt-hero-empty { background: linear-gradient(180deg, #2e2f33 0%, #1a1b1e 55%, #111214 100%); }
.pt-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.12) 10%, rgba(5, 6, 7, 0.02) 42%, rgba(5, 6, 7, 0.92) 100%);
}

/* ---- Identity (overlaid on the scrim) ---- */
.pt-identity {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 32px;
  animation: pt-rise 330ms var(--pt-ease) 80ms both;
}
.pt-kicker {
  margin: 0 0 8px;
  color: var(--pt-accent-tint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pt-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.pt-handle { margin-top: 7px; font-weight: 600; }
.pt-bio { max-width: 360px; margin-top: 12px; line-height: 1.55; white-space: pre-wrap; }

/* ---- Socials: bare icons by default; 'badge' = frosted bordered circles ---- */
.pt-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pt-social {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: background 0.12s ease, transform 0.12s var(--pt-ease);
}
.pt-social:hover { transform: translateY(-2px); }
.pt-social:active { transform: scale(0.96); }
.pt-social.is-disabled { opacity: 0.5; cursor: default; }
.pt-social.is-disabled:hover { transform: none; }
.pt-social img { width: 22px; height: 22px; object-fit: contain; filter: saturate(0.9); }
.pt-social span { color: #ffffff; font-size: 11px; font-weight: 700; }
.pt-socials.is-badge .pt-social {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}
.pt-socials.is-badge .pt-social:hover { background: rgba(255, 255, 255, 0.18); }
.pt-socials.is-badge .pt-social img { width: 19px; height: 19px; }
/* follower pill on the scrim: frosted */
.pt-identity {
  --fp-bg: rgba(255, 255, 255, 0.1); --fp-border: 1px solid rgba(255, 255, 255, 0.26);
  --fp-border-hover: rgba(255, 255, 255, 0.55); --fp-text: #ffffff;
  --fp-muted: rgba(255, 255, 255, 0.72); --fp-radius: 999px; --fp-margin: 12px 0 0;
}

/* ---- The content sheet ---- */
.pt-sheet {
  position: relative;
  z-index: 4;
  flex: 1;
  margin-top: -20px;
  padding: 25px 22px 14px;
  border-radius: 24px 24px 0 0;
  background: var(--pt-sheet-bg, var(--pt-sheet));
  display: flex;
  flex-direction: column;
  animation: pt-sheet-in 340ms var(--pt-ease) 120ms both;
}
.pt-sheet.no-hero { margin-top: 0; border-radius: 0; padding-top: 30px; animation: none; }
.pt-sheet .pt-identity.on-sheet { position: static; margin-bottom: 18px; animation: none; }
.pt-sheet .pt-identity.on-sheet .pt-name { color: var(--pt-ink); }
.pt-sheet .pt-identity.on-sheet .pt-handle,
.pt-sheet .pt-identity.on-sheet .pt-bio { color: var(--pt-muted); }
.pt-links { display: flex; flex-direction: column; }
.pt-link-wrap { position: relative; }
.pt-link-anchor { display: block; position: relative; border-radius: 12px; }

/* ---- Primary CTA (featured w/o image) ---- */
.pt-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 9px 18px;
  border-radius: 15px;
  border: 1px solid var(--pt-primary-custom-border, transparent);
  background: var(--pt-primary-custom-bg, var(--pt-accent, #c9473e));
  color: var(--pt-primary-custom-text, #ffffff);
  font-size: 14px;
  font-weight: 700;
  margin: 2px 0 6px;
  box-shadow: 0 14px 25px -19px var(--pt-primary-custom-shadow, color-mix(in srgb, var(--pt-primary-custom-bg, var(--pt-accent, #c9473e)) 88%, #000000));
  transition: filter 0.12s ease, transform 0.12s var(--pt-ease);
}
.pt-link-anchor:hover .pt-primary { filter: brightness(0.95); transform: translateY(-1px); }
.pt-link-anchor:active .pt-primary { transform: translateY(1px); }
.pt-primary-icon { display: grid; place-items: center; flex: none; }
.pt-primary-icon img { width: 18px; height: 18px; object-fit: contain; }
.pt-primary-copy { min-width: 0; flex: 1; }
.pt-primary-title { display: block; }
.pt-primary-subtitle { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; opacity: 0.85; }
.pt-primary .pt-arrow { color: currentColor; flex: none; }

/* ---- Featured work card (featured w/ image) ---- */
.pt-feature {
  position: relative;
  display: block;
  min-height: 186px;
  overflow: hidden;
  border-radius: 17px;
  background: #242629;
  margin: 4px 0 10px;
}
.pt-feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74);
  transition: transform 0.42s var(--pt-ease);
}
.pt-link-anchor:hover .pt-feature-image { transform: scale(1.018); }
.pt-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 26%, rgba(10, 11, 12, 0.86));
}
.pt-feature-copy { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 15px; color: #ffffff; }
.pt-feature-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--pt-feature-custom-eyebrow, var(--pt-accent-tint));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pt-feature-title {
  display: block;
  max-width: 300px;
  color: var(--pt-feature-custom-title, #ffffff);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
}

/* ---- Image card: tall tappable photo, title + subtitle bottom-left ---- */
.pt-image-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 17px;
  background: #242629;
  margin: 4px 0 10px;
}
.pt-image-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 0.42s var(--pt-ease);
}
.pt-link-anchor:hover .pt-image-card-media { transform: scale(1.018); }
.pt-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(10, 11, 12, 0.88));
}
.pt-image-card-empty { position: absolute; inset: 0; background: linear-gradient(160deg, #33343a 0%, #1c1d21 70%); }
.pt-image-card-icon {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}
.pt-image-card-icon img { width: 22px; height: 22px; object-fit: contain; }
.pt-image-card-copy { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }
.pt-image-card-title {
  display: block;
  color: var(--pt-imgcard-custom-title, #ffffff);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pt-image-card-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--pt-imgcard-custom-subtitle, rgba(255, 255, 255, 0.82));
  font-size: 12px;
  font-weight: 500;
}

/* ---- Section label (header block) ---- */
.pt-label {
  margin: 22px 0 6px;
  color: var(--pt-faint);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.pt-link-wrap:first-child .pt-label { margin-top: 2px; }

/* ---- Compact rows (simple) ---- */
.pt-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--pt-row-custom-border, var(--pt-line));
  background: var(--pt-row-custom-bg, transparent);
  color: var(--pt-row-custom-text, var(--pt-ink));
}
.pt-row.no-lead { grid-template-columns: minmax(0, 1fr) 22px; }
.pt-thumb {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  object-fit: cover;
  filter: saturate(0.8);
}
.pt-row-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #555a63;
}
.pt-row-icon img { width: 24px; height: 24px; object-fit: contain; }
.pt-row-icon span { font-size: 13px; font-weight: 700; }
.pt-row-copy { min-width: 0; }
.pt-row-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.28; }
.pt-row-subtitle { display: block; margin-top: 3px; color: var(--pt-row-custom-text, var(--pt-muted)); opacity: 0.85; font-size: 11.5px; font-weight: 500; }
.pt-arrow { color: var(--pt-faint); transition: color 0.12s ease, transform 0.12s var(--pt-ease); display: grid; place-items: center; }
.pt-link-anchor:hover .pt-row .pt-arrow { color: var(--pt-row-custom-hover, var(--pt-accent, #c9473e)); transform: translateX(3px); }

/* ---- Gallery ---- */
.pt-gallery { margin: 8px 0 10px; }
.pt-gallery-title { margin: 0 0 9px; color: var(--pt-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.pt-gallery-grid { display: grid; grid-template-columns: repeat(var(--pt-gallery-columns, 2), 1fr); gap: 9px; }
.pt-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  overflow: hidden;
  background: var(--pt-soft);
  border: none;
  padding: 0;
  font: inherit;
}
.pt-gallery-tile.is-clickable { cursor: zoom-in; }
.pt-gallery-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82); }
.pt-gallery-empty { position: absolute; inset: 0; background: linear-gradient(135deg, #f2f2f3, #e7e8eb); }
.pt-gallery-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(17, 20, 24, 0.66);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  width: fit-content;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Media ---- */
.pt-media { margin: 8px 0 10px; border-radius: 15px; overflow: hidden; border: 1px solid var(--pt-line); background: #ffffff; }
.pt-media-frame { display: block; width: 100%; border: 0; height: var(--pt-media-frame-height, 220px); }
.pt-media-placeholder { display: grid; place-items: center; height: 150px; color: var(--pt-muted); font-weight: 700; font-size: 13px; background: var(--pt-soft); }
.pt-media-copy { padding: 11px 14px 12px; }
.pt-media-title { font-size: 13px; font-weight: 700; color: var(--pt-ink); }
.pt-media-caption { margin-top: 3px; font-size: 11.5px; color: var(--pt-muted); }

/* ---- Text + divider ---- */
.pt-note { padding: 4px 2px 10px; color: var(--pt-muted); line-height: 1.6; white-space: pre-wrap; }
.pt-divider { display: flex; align-items: center; padding: 12px 0; color: var(--pt-divider-color, var(--pt-line)); }
.pt-divider > span { display: block; width: 100%; border-top: var(--pt-divider-thickness, 1px) solid var(--pt-divider-color, var(--pt-line)); }
.pt-divider-chars > span { width: auto; border-top: 0; letter-spacing: 0.35em; }

/* ---- Link animations (only when picked) ---- */
.pt-link-anim-bounce { animation: pt-bounce 2.4s var(--pt-ease) infinite; }
.pt-link-anim-pulse { animation: pt-pulse 2.2s ease-in-out infinite; }
.pt-link-anim-glow { animation: pt-glow 2.6s ease-in-out infinite; }
.pt-link-anim-shine { position: relative; overflow: hidden; }
.pt-link-anim-shine::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: pt-shine 2.8s ease-in-out infinite;
}
@keyframes pt-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pt-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes pt-glow {
  0%, 100% { box-shadow: 0 14px 25px -19px color-mix(in srgb, var(--pt-accent, #c9473e) 88%, #000000); }
  50% { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--pt-accent, #c9473e) 70%, transparent); }
}
@keyframes pt-shine { 0% { left: -60%; } 55%, 100% { left: 120%; } }
@keyframes pt-photo-in { from { opacity: 0.72; transform: scale(1.035); } to { opacity: 1; transform: none; } }
@keyframes pt-sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pt-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Empty prompt + footer ---- */
.pt-empty-prompt {
  padding: 44px 18px;
  text-align: center;
  border: 1.5px dashed var(--pt-line);
  border-radius: 16px;
}
.pt-empty-title { font-size: 15px; font-weight: 700; color: var(--pt-ink); }
.pt-empty-sub { margin-top: 6px; font-size: 12px; color: var(--pt-muted); }
.pt-footer {
  margin-top: auto;
  padding: 24px 0 10px;
  color: var(--pt-faint);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}
.pt-footer-brand { margin-left: 4px; color: var(--pt-ink); font-weight: 700; }
.pt-footer-brand:hover { color: var(--pt-accent, #c9473e); }

/* ---- Dark sheet: flip the ink (sheet backgrounds are user-editable) ---- */
.pt-root.is-sheet-dark {
  --pt-ink: #f4f4f6;
  --pt-muted: rgba(244, 244, 246, 0.68);
  --pt-faint: rgba(244, 244, 246, 0.52);
  --pt-line: rgba(244, 244, 246, 0.16);
  --pt-soft: rgba(244, 244, 246, 0.08);
}
.pt-root.is-sheet-dark .pt-row-icon { color: rgba(244, 244, 246, 0.75); }
.pt-root.is-sheet-dark .pt-media { background: rgba(244, 244, 246, 0.04); border-color: var(--pt-line); }
.pt-root.is-sheet-dark .pt-media-placeholder { background: rgba(244, 244, 246, 0.06); }
.pt-root.is-sheet-dark .pt-gallery-empty { background: linear-gradient(135deg, rgba(244,244,246,0.1), rgba(244,244,246,0.04)); }

/* ---- Contact blocks (collect / gated-link): the --bc-* vars live on .pt-root
   above; these rules place and dress the shared block ---- */
/* dark sheet (user-editable sheet colour): the white field wells go translucent */
.pt-root.is-sheet-dark { --bc-bg-strong: rgba(244, 244, 246, 0.12); }
/* the block sits full width in the sheet, spaced like the media / gallery cards */
.pt-contact { width: 100%; padding: 8px 0 10px; }
/* the accent buttons take the primary CTA's soft coral shadow */
.pt-root .bncy-c-btn, .pt-root .bncy-g-btn { box-shadow: 0 14px 25px -19px color-mix(in srgb, var(--bc-accent) 88%, #000000); }
/* the gated pills read as one of the compact rows: left aligned, the row's
   height and type, the unlocked arrow trailing on the right like .pt-arrow */
.pt-root .bncy-g-trigger, .pt-root .bncy-g-open { justify-content: flex-start; min-height: 72px; padding: 10px 2px; font-size: 14px; font-weight: 700; }
.pt-root .bncy-g-open svg { order: 1; margin-left: auto; color: var(--pt-faint); }

/* ---- Inline 18+ confirmation (covers the clicked block) ---- */
.pt-link-anchor { display: block; }
.pt-link-anchor.has-adult-warning { position: relative; overflow: hidden; z-index: 9; }
.pt-adult-inline {
  position: absolute; inset: 0; z-index: 8;
  display: flex; align-items: center; justify-content: center;
  min-height: 100%; padding: 10px;
  background: rgba(17, 18, 20, 0.96);
  color: #ffffff; text-align: center; border-radius: inherit;
}
.pt-adult-inline-inner { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; max-width: 300px; }
.pt-adult-inline-title { display: block; color: #ffffff; font-size: 12px; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.04em; }
.pt-adult-inline-body { display: block; color: rgba(255, 255, 255, 0.8); font-size: 11px; font-weight: 500; line-height: 1.28; }
.pt-adult-actions { display: flex; justify-content: center; gap: 8px; width: 100%; }
.pt-adult-btn {
  min-height: 28px; border: none; border-radius: 999px;
  padding: 4px 12px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700;
}
.pt-adult-btn.secondary { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.85); }
.pt-adult-btn.primary { background: #ffffff; color: var(--pt-accent, #c9473e); }
.pt-link-anchor-simple .pt-adult-inline { padding: 7px 10px; }
.pt-link-anchor-simple .pt-adult-inline-title { display: none; }
.pt-link-anchor-simple .pt-adult-inline-body { margin-bottom: 7px; color: #ffffff; white-space: nowrap; }
.pt-link-anchor-simple .pt-adult-btn { min-height: 21px; padding: 4px 10px; font-size: 10px; }
/* Compact variant as a class on the overlay itself: added by the client when
   the full warning does not fit its host (works on ANY host, not just rows). */
.pt-adult-inline.is-compact { padding: 7px 10px; }
.pt-adult-inline.is-compact .pt-adult-inline-title { display: none; }
.pt-adult-inline.is-compact .pt-adult-inline-body { margin-bottom: 7px; color: #ffffff; white-space: normal; }
.pt-adult-inline.is-compact .pt-adult-btn { min-height: 21px; padding: 4px 10px; font-size: 10px; }
.pt-adult-inline.is-compact .pt-adult-actions { flex-wrap: wrap; }

/* FB iOS press-and-hold 18+ confirm: the primary confirm is a real anchor
   (long-press opens the native "Open in external browser" menu); tap is
   suppressed and pulses the hint line under the buttons. */
.pt-adult-btn.is-holdlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  -webkit-touch-callout: default;
}
.pt-adult-holdhint {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.pt-adult-holdhint.is-pulsing { animation: bncy-holdpulse 0.6s ease; }
@keyframes bncy-holdpulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-adult-holdhint.is-pulsing { animation: none; }
}

/* ---- Gallery image modal ---- */
.pt-image-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(9, 10, 11, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pt-image-panel { position: relative; width: min(760px, 100%); max-height: min(82vh, 760px); display: grid; gap: 10px; }
.pt-image-preview {
  width: 100%; max-height: min(76vh, 700px); display: block;
  border-radius: 18px; object-fit: contain; background: #141518;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  user-select: none; -webkit-user-drag: none;
}
.pt-image-close {
  justify-self: end; min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.1); color: #ffffff;
  cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
}
.pt-image-caption {
  justify-self: center; max-width: min(560px, 100%);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #151619;
  font-size: 12px; font-weight: 600; text-align: center;
}

/* ============================================================================
   Combined follower counter — themed pill (.ne-fpill, via --fp-*) + an ALWAYS
   DARK breakdown sheet (.ne-fsheet-*). KEEP IN PARITY with NewEditor.css.
   ============================================================================ */
.ne-fpill { display: flex; align-items: baseline; justify-content: center; gap: 6px; width: fit-content; margin: var(--fp-margin, 14px auto 0); padding: var(--fp-pad, 8px 16px); background: var(--fp-bg, rgba(0,0,0,0.05)); border: var(--fp-border, 1px solid rgba(0,0,0,0.12)); border-radius: var(--fp-radius, 999px); color: var(--fp-text, inherit); font-family: inherit; line-height: 1; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.ne-fpill:hover { border-color: var(--fp-border-hover, rgba(0,0,0,0.28)); }
.ne-fpill:active { transform: scale(0.97); }
.ne-fpill-num { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ne-fpill-label { font-size: 12.5px; color: var(--fp-muted, currentColor); opacity: .72; }
.ne-fsheet-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ne-fsheet { width: 100%; max-width: 520px; margin: 0 auto; max-height: 80%; overflow-y: auto; background: #161618; color: #f4f4f6; border-radius: 20px 20px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 44px rgba(0,0,0,0.5); animation: ne-fsheet-up .3s cubic-bezier(.22,.61,.36,1); }
@keyframes ne-fsheet-up { from { transform: translateY(100%); } to { transform: none; } }
.ne-fsheet-grab { width: 38px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.22); margin: 2px auto 14px; }
.ne-fsheet-total { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.ne-fsheet-sub { text-align: center; font-size: 12.5px; opacity: .6; margin-top: 2px; }
.ne-fsheet-list { display: flex; flex-direction: column; margin-top: 14px; }
.ne-fsheet-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid rgba(255,255,255,0.08); }
.ne-fsheet-row:first-child { border-top: none; }
.ne-fsheet-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; opacity: .85; }
.ne-fsheet-ic img { width: 24px; height: 24px; object-fit: contain; }
.ne-fsheet-name { flex: 1; min-width: 0; font-size: 14.5px; }
.ne-fsheet-count { font-size: 14.5px; font-weight: 700; }
.ne-fsheet-empty { opacity: .6; font-size: 13px; text-align: center; padding: 14px; }
.ne-fsheet-done { width: 100%; margin-top: 16px; min-height: 46px; border: none; border-radius: 12px; background: #ffffff; color: #111111; font-weight: 700; font-size: 14.5px; cursor: pointer; }

/* ---- MOBILE: the shell IS the screen ---- */
@media (max-width: 520px) {
  /* No visible scrollbar: the page still scrolls, but the bar never renders
     (real phones overlay it anyway; this also covers webviews + iframes). */
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .pt-root { padding: 0; }
  .pt-shell {
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  /* Same 4:5 as the editor preview and the crop tool (crop = what you see). */
  .pt-hero { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
}

/* ---- DESKTOP: scale the shell up with the viewport ---- */
@media (min-width: 900px) {
  .pt-root { padding: 36px 20px; }
}
@media (min-width: 1440px) {
  .pt-shell { zoom: 1.12; }
}
@media (min-width: 1900px) {
  .pt-shell { zoom: 1.24; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .pt-link-anchor:hover .pt-primary,
  .pt-link-anchor:hover .pt-feature-image,
  .pt-link-anchor:hover .pt-image-card-media,
  .pt-social:hover { transform: none; }
}


/* ============================================================================
   Social icon 18+ gate — CENTERED popup over the whole page (owner-approved
   mockups, template-prototypes/social-18-gate). Markup is shared across all
   template clients (.bncy-sgate-*); this block skins it for THIS design.
   ========================================================================== */
.bncy-sgate-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(9, 10, 11, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bncy-sgate {
  width: 300px; max-width: 94vw;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  animation: bncy-sgate-in 0.18s ease;
  background: rgba(17, 18, 20, 0.96); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55); padding: 22px 20px 18px; text-align: center; max-width: 300px;
}
.bncy-sgate-title { color: #ffffff; font-size: 13px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; font-family: 'DM Sans', system-ui, sans-serif; }
.bncy-sgate-body { margin-top: 8px; color: rgba(255, 255, 255, 0.8); font-size: 11.5px; font-weight: 500; line-height: 1.4; margin-top: 7px; }
.bncy-sgate-btns { display: flex; gap: 9px; justify-content: center; margin-top: 15px; }
.bncy-sgate-btns button { flex: 1 1 0; }
.bncy-sgate-no { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.85); border: none; border-radius: 999px; min-height: 32px; padding: 6px 16px; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.bncy-sgate-yes { background: #ffffff; color: #c9473e; border: none; border-radius: 999px; min-height: 32px; padding: 6px 16px; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: filter 0.12s ease, transform 0.12s cubic-bezier(0.2, 0, 0, 1); }
@keyframes bncy-sgate-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bncy-sgate { animation: none; } }
/* FB iOS press-and-hold: the Yes control renders as a real anchor + hint. */
a.bncy-sgate-yes { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; text-align: center; -webkit-touch-callout: default; }
.bncy-sgate-holdhint { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.8); font-size: 11px; font-weight: 500; line-height: 1.35; text-align: center; }
.bncy-sgate-holdhint.is-pulsing { animation: bncy-holdpulse 0.6s ease; }
@media (prefers-reduced-motion: reduce) { .bncy-sgate-holdhint.is-pulsing { animation: none; } }
