/*
Theme Name: Fanzdex
Theme URI: https://fanzdex.com/
Author: Fanzdex
Description: Social-app theme for Fanzdex, the index of OnlyFans creators: left nav, swipe feed, right rail. Works with the Fanzdex Core plugin.
Version: 3.5.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: fanzdex
*/

/* Fanzdex look: soft lavender canvas, white cards, violet actions, Fanzy-orange
   and coral accents, gold for $FANZ. Feels like an app, reads like a site. */
:root {
  --bg: #f6f5fb;
  --card: #ffffff;
  --ink: #15131c;
  --ink-2: #3a3646;
  --muted: #6b6779;
  --faint: #8a8697;
  --line: #ece9f4;
  --line-2: #e1ddec;
  --violet: #6d3bff;
  --violet-dk: #5424e6;
  --violet-50: #f1edff;
  --violet-100: #e2d9ff;
  --lilac: #a78bfa;
  --coral: #ff4d6d;
  --fox: #ff8a3d;
  --gold: #ffd36b;
  --gold-dk: #f5b83d;
  --mint: #16a34a;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(21, 19, 28, .05), 0 6px 20px rgba(21, 19, 28, .05);
  --shadow-lg: 0 24px 60px rgba(21, 19, 28, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-dk); }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.12rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ic { flex: none; }
.wrap { width: 100%; max-width: 1080px; }

/* ---------- app shell ---------- */
.app { display: flex; align-items: flex-start; max-width: 1440px; margin: 0 auto; }
.side { position: sticky; top: 0; flex: none; width: 248px; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 22px 22px; }
.app-main { flex: 1; min-width: 0; padding: 22px 28px 0 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.brand-word { font-weight: 800; font-size: 24px; letter-spacing: -.035em; color: var(--ink); }
.side .brand { padding: 4px 8px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.side-nav a .ic { color: var(--faint); }
.side-nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.side-nav a[aria-current="page"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.side-nav a[aria-current="page"] .ic, .side-nav a:hover .ic { color: var(--violet); }
.side-cta { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(109, 59, 255, .22); transition: transform .15s, background .15s; }
.side-cta .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--violet); color: #fff; }
.side-cta b { display: block; font-size: .98rem; }
.side-cta small { display: block; color: #b9b5c7; font-size: .78rem; font-weight: 600; }
.side-cta:hover, .side-cta[aria-current="page"] { color: #fff; background: #241f33; transform: translateY(-1px); }
.topbar { display: none; }
.tabbar { display: none; }

/* ---------- buttons, pills ---------- */
.btn, .op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; font: 700 15px var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:active, .op-btn:active { transform: scale(.98); }
.btn-violet, .op-btn-violet, .op-btn-lime { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(109, 59, 255, .28); }
.btn-violet:hover, .op-btn-violet:hover, .op-btn-lime:hover { background: var(--violet-dk); color: #fff; }
.btn-ink, .op-btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover, .op-btn-ink:hover { background: #2b2638; color: #fff; }
.btn-ghost, .op-btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover, .op-btn-ghost:hover { background: var(--violet-50); color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn-gold { background: var(--gold); color: #3b2a06; }
.btn-gold:hover { background: #ffc94a; color: #3b2a06; }
.op-btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.op-btn-ghost-light:hover { background: #fff; color: var(--ink); }
.op-btn[disabled] { opacity: .6; cursor: wait; }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; line-height: 1.2; }
.pill-light { background: rgba(255, 255, 255, .94); color: var(--ink); }
.pill-dark { background: rgba(21, 19, 28, .58); color: #fff; font-weight: 700; backdrop-filter: blur(6px); }
.pill-gold { background: var(--gold); color: #3b2a06; font-size: 11px; padding: 4px 9px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--violet-50); color: var(--violet-dk); font-weight: 700; font-size: 13px; text-decoration: none; flex: none; }
.chip:hover { background: var(--violet-100); color: var(--violet-dk); }

/* ---------- home layout ---------- */
.home-grid { display: flex; align-items: flex-start; gap: 28px; }
.home-feed { flex: 1; min-width: 0; max-width: 680px; }
.rail { position: sticky; top: 22px; flex: 0 0 320px; display: flex; flex-direction: column; gap: 16px; }

/* intro */
.op-hero { padding: 6px 0 4px; }
.op-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--violet-50); color: var(--violet-dk); font-weight: 700; font-size: .82rem; }
.op-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 77, 109, .2); }
.op-hero-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 10px; }
.op-hero-sub { color: var(--muted); max-width: 600px; margin: 0 0 18px; }
.op-search { display: flex; align-items: center; gap: 6px; max-width: 680px; padding: 6px 6px 6px 18px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow); }
.op-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 59, 255, .14); }
.op-search input { flex: 1; min-width: 0; border: 0; min-height: 46px; font: 500 1rem var(--font); color: var(--ink); background: transparent; }
.op-search input:focus { outline: none; }
.op-search button { min-height: 46px; padding: 0 22px; }
.op-hero-quick { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.op-hero-quick a { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .88rem; }
.op-hero-quick a:hover { border-color: var(--violet); color: var(--violet-dk); }

/* stories */
.stories { display: flex; gap: 14px; overflow-x: auto; margin: 24px -4px 0; padding: 4px 4px 8px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; color: var(--ink); text-decoration: none; }
.story-ring { display: block; width: 70px; height: 70px; padding: 3px; border-radius: 50%; background: var(--line-2); transition: transform .15s; }
.story.is-hot .story-ring { background: conic-gradient(from 200deg, var(--violet), var(--coral), var(--fox), var(--violet)); }
.story-img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); overflow: hidden; background: linear-gradient(135deg, var(--violet-100), #ffd9e1); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
.story:hover .story-ring { transform: scale(1.05); }

/* swipe feed */
.feed { margin-top: 18px; }
.feed-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.feed-tab { height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.feed-tab:hover { border-color: var(--violet); }
.feed-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.feed-card { position: relative; aspect-ratio: 4 / 5; max-height: 78vh; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #8b6fd6, #d66f9a); box-shadow: var(--shadow-lg); transition: transform .2s ease, opacity .2s ease; touch-action: pan-y; user-select: none; }
.feed-card.out-left { transform: translateX(-60px) rotate(-5deg); opacity: 0; }
.feed-card.out-right { transform: translateX(60px) rotate(5deg); opacity: 0; }
.feed-card.in { animation: fz-in .26s ease; }
@keyframes fz-in { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
.feed-photo { position: absolute; inset: 0; display: block; cursor: grab; }
.feed-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.feed-badges { position: absolute; left: 18px; top: 18px; display: flex; gap: 8px; pointer-events: none; }
.feed-rail { position: absolute; right: 16px; bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail-btn { width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .15s, color .15s; }
.rail-btn:hover { transform: scale(1.08); }
.rail-btn[data-act="like"] { color: var(--coral); }
.rail-btn[aria-pressed="true"] svg { fill: currentColor; }
.rail-btn.done { color: var(--mint); }
.rail-num { margin-top: -8px; color: #fff; font-weight: 800; font-size: 12px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.feed-card.liked .rail-btn[data-act="like"] { animation: fz-pop .38s ease; }
@keyframes fz-pop { 50% { transform: scale(1.35); } }
.feed-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 22px 22px; background: linear-gradient(to top, rgba(10, 8, 16, .9), rgba(10, 8, 16, 0)); color: #fff; pointer-events: none; }
.feed-cap a, .feed-cap button { pointer-events: auto; }
.feed-name { margin: 0; font-weight: 800; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
.feed-name small { font-size: 15px; font-weight: 600; color: #d6d3e0; }
.feed-loc { margin: 4px 0 14px; color: #e5e3ee; font-size: 15px; min-height: 1.2em; }
.feed-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.feed-hint { margin: 12px 0 0; text-align: center; color: var(--faint); font-size: 13px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-keys { display: none; } }

/* photo rows */
.row-sec { margin-top: 36px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 1.35rem; }
.sec-head a { font-weight: 700; text-decoration: none; }
.row-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tile { position: relative; flex: none; width: 152px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--violet-100), #ffd9e1); color: #fff; text-decoration: none; scroll-snap-align: start; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.05); }
.tile .pill { position: absolute; left: 8px; top: 8px; font-size: 11px; padding: 4px 9px; }
.tile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* right rail */
.rail-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); color: var(--faint); }
.rail-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 59, 255, .14); }
.rail-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font); color: var(--ink); }
.rail-card { padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rail-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.top-rank { width: 18px; text-align: center; font-weight: 800; color: #b3afc0; }
.top-list li:first-child .top-rank { color: var(--violet); }
.top-list img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--violet-50); flex: none; }
.top-who { flex: 1; min-width: 0; line-height: 1.25; }
.top-who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-who small { color: var(--faint); font-size: 12.5px; font-weight: 600; }
.rail-more { display: block; margin-top: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
.rail-coin { padding: 18px; border-radius: 22px; background: var(--ink); color: #fff; background-image: radial-gradient(circle at 100% 0, rgba(255, 211, 107, .22), transparent 55%); }
.coin-head { display: flex; align-items: center; gap: 10px; }
.coin-head img { width: 40px; height: 40px; }
.coin-head b { font-size: 18px; font-weight: 800; flex: 1; }
.rail-coin p { margin: 10px 0 14px; color: #c9c5d6; font-size: 14px; }
.rail-coin .btn { width: 100%; }
.rail-creator { padding: 18px; border-radius: 22px; background: var(--violet-50); border: 1px solid var(--violet-100); }
.rail-k { margin: 0 0 4px; color: var(--violet-dk); font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.rail-creator h2 { font-size: 1.1rem; margin: 0 0 4px; }
.rail-creator p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.rail-creator .btn { width: 100%; }
.rail-note { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.5; }

/* ---------- sections from page content ---------- */
.op-band { margin: 44px 0; }
.op-band > h2:first-child { margin-bottom: 16px; }
.op-band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.op-band-head h2 { margin: 0; }
.op-link-arrow { font-weight: 700; text-decoration: none; }
.op-link-arrow::after { content: " →"; }
.op-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.op-stat { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.op-stat-num { display: block; font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.03em; line-height: 1.15; color: var(--violet); }
.op-stat:nth-child(2) .op-stat-num { color: var(--mint); }
.op-stat:nth-child(3) .op-stat-num { color: var(--fox); }
.op-stat:nth-child(4) .op-stat-num { color: var(--coral); }
.op-stat-label { display: block; margin-top: 2px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.op-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; }
.op-steps li { counter-increment: s; position: relative; padding: 64px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); font-size: .95rem; }
.op-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--violet-50); color: var(--violet-dk); font-weight: 800; }
.op-steps strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }

/* creator cards (grids) */
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.op-card { position: relative; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.op-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(21, 19, 28, .14); }
.op-card-link { display: block; color: var(--ink); text-decoration: none; }
.op-card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--violet-100), #ffd9e1); }
.op-card:nth-child(3n+2) .op-card-img { background: linear-gradient(160deg, #ffe2cc, #ffd9e1); }
.op-card:nth-child(3n+3) .op-card-img { background: linear-gradient(160deg, #dbe6ff, var(--violet-100)); }
.op-card-img::before { content: ""; position: absolute; inset: 0; background: url("assets/fanzy-mark.svg") center / 38% no-repeat; opacity: .22; }
.op-card-img img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.op-card:hover .op-card-img img { transform: scale(1.04); }
.op-badge { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .74rem; line-height: 1.4; }
.op-badge.is-free { background: var(--violet); color: #fff; }
.op-badge.is-paid { background: rgba(255, 255, 255, .94); color: var(--ink); }
.op-card-body { display: block; padding: 10px 12px 12px; }
.op-card-name { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-card-user { display: block; color: var(--faint); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-card-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.op-meta-likes { display: inline-flex; align-items: center; gap: 4px; color: var(--coral); }
.op-meta-loc { color: var(--faint); font-weight: 500; }
.op-more { display: flex; justify-content: center; margin-top: 22px; }
.op-more .op-btn { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.op-more .op-btn:hover { background: var(--violet-50); }
.op-empty { padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }

/* tiles (categories, cities, guides) */
.op-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.op-tiles li { display: flex; }
.op-tiles li > .op-tile { flex: 1; }
.op-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.op-tile::after { content: ""; position: absolute; left: 18px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.op-tiles li:nth-child(4n+2) .op-tile::after { background: var(--coral); }
.op-tiles li:nth-child(4n+3) .op-tile::after { background: var(--fox); }
.op-tiles li:nth-child(4n+4) .op-tile::after { background: var(--mint); }
.op-tile:hover { transform: translateY(-2px); border-color: var(--violet-100); color: var(--ink); }
.op-tile-title { margin-top: 16px; font-weight: 800; font-size: 1.02rem; line-height: 1.2; letter-spacing: -.01em; }
.op-tile-sub { margin-top: 4px; font-weight: 600; font-size: .84rem; color: var(--faint); }
.op-tile-arrow { position: absolute; right: 16px; top: 14px; font-weight: 700; color: var(--faint); }
.op-tile:hover .op-tile-arrow { color: var(--violet); }
.op-tiles-guides { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.op-tiles-guides .op-tile { min-height: 120px; }

/* filters (browse) */
.op-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.op-field label { display: block; font-weight: 700; font-size: .8rem; color: var(--muted); margin-bottom: 5px; }
.op-field input, .op-field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font: 500 .95rem var(--font); color: var(--ink); }
.op-field input:focus, .op-field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 59, 255, .14); }
.op-field-go .op-btn { min-height: 46px; }
.op-results-count { margin: 0 0 14px; color: var(--muted); }
.op-results-count strong { color: var(--ink); }

/* FAQ */
.op-faq { display: grid; gap: 10px; max-width: 820px; }
.op-faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.op-faq-item summary { list-style: none; cursor: pointer; padding: 15px 52px 15px 18px; font-weight: 700; position: relative; }
.op-faq-item summary::-webkit-details-marker { display: none; }
.op-faq-item summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--violet-50); color: var(--violet-dk); font-weight: 800; }
.op-faq-item[open] summary::after { content: "−"; }
.op-faq-a { padding: 0 18px 16px; color: var(--muted); }
.op-faq-a p { margin: 0; }

/* home bands */
.op-creators-band { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: clamp(22px, 4vw, 34px); border-radius: var(--r-lg); color: #fff; background: var(--violet); background-image: radial-gradient(circle at 100% 0, rgba(255, 77, 109, .55), transparent 50%), radial-gradient(circle at 0 100%, rgba(255, 138, 61, .35), transparent 45%); box-shadow: 0 20px 44px rgba(109, 59, 255, .3); }
.op-creators-band > div { flex: 1 1 360px; min-width: 0; }
.op-creators-band h2 { color: #fff; margin-bottom: 8px; }
.op-creators-band p { color: #ece6ff; margin: 0 0 18px; }
.op-creators-band .op-kicker { color: var(--gold); font-weight: 800; font-size: .78rem; letter-spacing: .08em; margin: 0 0 6px; }
.op-creators-band .op-btn { background: #fff; color: var(--violet-dk); box-shadow: none; }
.op-creators-band .op-btn:hover { background: var(--gold); color: #3b2a06; }
.op-coin-band { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; background-image: radial-gradient(circle at 100% 0, rgba(255, 211, 107, .22), transparent 50%); }
.op-coin-band img { width: 76px; height: 76px; flex: none; }
.op-coin-band > div { flex: 1 1 300px; min-width: 0; }
.op-coin-band h2 { color: #fff; font-size: 1.3rem; margin: 0 0 2px; }
.op-coin-band p { margin: 0; color: #c9c5d6; }
.op-coin-band .op-btn { background: var(--gold); color: #3b2a06; }

/* ---------- inner pages ---------- */
.page-main { padding: 6px 0 60px; }
.crumbs { font-size: .86rem; color: var(--faint); margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #c4c0d0; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--violet); }
.page-head { margin-bottom: 6px; }
.page-updated { font-size: .86rem; color: var(--faint); margin: -4px 0 16px; }
.op-lede { font-size: 1.08rem; color: var(--muted); max-width: 740px; margin: 0 0 22px; }
.op-prose { max-width: 740px; }
.op-prose p, .op-prose li { color: var(--ink-2); }
.op-prose ul { padding-left: 1.2em; }
.op-prose h2 { margin-top: 1.4em; }

/* creators landing */
.cr-hero-wrap { margin-top: 4px; border-radius: 30px; overflow: hidden; color: #fff; background: var(--ink); background-image: radial-gradient(circle at 90% 10%, rgba(109, 59, 255, .75), transparent 45%), radial-gradient(circle at 10% 100%, rgba(255, 77, 109, .45), transparent 45%); }
.cr-hero-wrap .wrap { padding: 0 clamp(22px, 4vw, 44px); }
.op-cr-hero { padding: clamp(36px, 6vw, 64px) 0; max-width: 760px; }
.op-cr-hero .op-eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.op-cr-title { font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; margin: 0 0 14px; }
.op-cr-sub { color: #d9d5e6; font-size: 1.08rem; margin: 0 0 26px; max-width: 640px; }
.op-cr-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.op-cr-hero .op-btn-lime { background: #fff; color: var(--violet-dk); box-shadow: none; }
.op-cr-hero .op-btn-lime:hover { background: var(--gold); color: #3b2a06; }
.op-cr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.op-cr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.op-cr-card h3 { margin: 12px 0 4px; }
.op-cr-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.op-cr-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--violet-50); color: var(--violet-dk); font-weight: 800; font-size: .9rem; }
.op-cr-grid .op-cr-card:nth-child(2) .op-cr-num { background: #ffe4ea; color: #c81e44; }
.op-cr-grid .op-cr-card:nth-child(3) .op-cr-num { background: #ffeadb; color: #c2410c; }
.op-cr-grid .op-cr-card:nth-child(4) .op-cr-num { background: #dcfce7; color: #15803d; }
.op-cr-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; max-width: 760px; }
.op-cr-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 66px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.op-cr-steps li strong { color: var(--ink); }
.op-cr-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 11px; background: var(--violet); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* $FANZ page */
.fz-coin-hero { margin-top: 4px; border-radius: 30px; overflow: hidden; color: #fff; background: var(--ink); background-image: radial-gradient(circle at 80% 30%, rgba(255, 211, 107, .32), transparent 45%), radial-gradient(circle at 0 100%, rgba(109, 59, 255, .55), transparent 50%); }
.fz-coin-hero .wrap { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; padding: clamp(32px, 5vw, 56px) clamp(22px, 4vw, 44px); max-width: none; }
.fz-coin-hero h1 { color: var(--gold); font-size: clamp(3rem, 8vw, 5.6rem); line-height: .95; letter-spacing: -.04em; margin: 0 0 10px; }
.fz-coin-line { font-weight: 800; font-size: 1.2rem; color: #fff; }
.fz-coin-hero p { color: #d9d5e6; }
.fz-coin-copy { flex: 1 1 420px; min-width: 0; }
.fz-coin-art { flex: 1 1 260px; display: flex; justify-content: center; }
.fz-coin-art img { width: 280px; max-width: 100%; filter: drop-shadow(0 24px 40px rgba(245, 184, 61, .35)); animation: fz-float 5s ease-in-out infinite; }
@keyframes fz-float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.fz-ca { display: flex; align-items: center; gap: 10px; max-width: 600px; padding: 10px 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; }
.fz-ca span { font-weight: 800; color: var(--gold); font-size: .85rem; }
.fz-ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font: 500 .92rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.fz-coin-hero .op-btn-lime { background: var(--gold); color: #3b2a06; box-shadow: none; }
.fz-coin-hero .op-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.fz-risk { margin-top: 30px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); font-size: .92rem; background: #fff; }

/* ---------- footer ---------- */
.site-foot { margin: 60px 0 0; padding: 40px 0 30px; border-top: 1px solid var(--line-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.foot-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.foot-brand .brand-word { font-size: 20px; }
.site-foot p { color: var(--muted); font-size: .92rem; }
.site-foot h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 6px 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot ul a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.site-foot ul a:hover { color: var(--violet); }
.foot-note { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint) !important; }

/* ---------- age notice ---------- */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(21, 19, 28, .55); backdrop-filter: blur(10px); }
.age-gate[hidden] { display: none; }
.age-box { width: 100%; max-width: 400px; padding: 30px; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); text-align: center; }
.age-box .brand-mark { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; }
.age-box h2 { margin: 0 0 6px; }
.age-box p { margin: 0 0 22px; color: var(--muted); }
.age-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .home-grid { flex-direction: column; }
  .home-feed { width: 100%; max-width: 720px; }
  .rail { position: static; flex: none; width: 100%; max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; }
  .rail-search, .rail-card, .rail-note { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .side { width: 84px; padding: 22px 10px; align-items: center; }
  .side .brand-word, .side-nav a { font-size: 0; }
  .side .brand { padding: 4px 0 18px; }
  .side-nav a { justify-content: center; padding: 12px; gap: 0; }
  .side-nav a .ic { width: 22px; height: 22px; }
  .side-cta { padding: 10px; justify-content: center; }
  .side-cta span { display: none; }
  .op-cr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-filters { grid-template-columns: 1fr 1fr; }
  .op-field-q { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .side { display: none; }
  .app-main { padding: 0 16px; }
  .topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; margin: 0 -16px 14px; padding: 10px 16px; background: rgba(246, 245, 251, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .topbar .brand-word { font-size: 21px; }
  .top-creators { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
  .top-search { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; padding: 4px; color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 700; }
  .tabbar a[aria-current="page"] { color: var(--violet); }
  .rail { grid-template-columns: 1fr; }
  .feed-card { border-radius: 24px; max-height: none; }
  .feed-rail { right: 12px; bottom: 160px; }
  .rail-btn { width: 48px; height: 48px; }
  .feed-ctas .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .op-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-steps { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .op-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-tiles-guides { grid-template-columns: 1fr; }
  .op-filters { grid-template-columns: 1fr; }
  .op-field-go .op-btn { width: 100%; }
  .op-cr-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .cr-hero-wrap, .fz-coin-hero { border-radius: 24px; }
}
/* short phones (iPhone SE and similar): drop the story circles so the card fits */
@media (max-width: 720px) and (max-height: 620px) {
  .home .stories { display: none; }
}
/* ---------- phones: feed first, TikTok-style card ---------- */
@media (max-width: 720px) {
  .topbar { margin-bottom: 8px; }
  .top-search { display: none; }
  /* intro: just the search bar (headline stays in the page for search engines) */
  .home .op-hero { padding: 0; }
  .home .op-hero .op-eyebrow, .home .op-hero .op-hero-sub, .home .op-hero .op-hero-quick { display: none; }
  .home .op-hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .op-search { padding: 4px 4px 4px 14px; box-shadow: none; }
  .op-search input { min-height: 40px; font-size: 16px; }
  .op-search button { min-height: 40px; padding: 0 16px; font-size: 14px; }
  /* stories */
  .stories { margin: 12px -16px 0; padding: 2px 16px 6px; gap: 10px; }
  .story { width: 56px; gap: 3px; }
  .story-ring { width: 54px; height: 54px; padding: 2px; }
  .story-label { font-size: 11px; }
  /* tabs */
  .feed { margin-top: 6px; }
  .feed-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px; scrollbar-width: none; }
  .feed-tabs::-webkit-scrollbar { display: none; }
  .feed-tab { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
  /* the card fills the rest of the screen, edge to edge */
  .feed-card { aspect-ratio: auto; height: calc(100svh - 350px - env(safe-area-inset-bottom)); min-height: 300px; max-height: none; margin: 0 -16px; border-radius: 0; box-shadow: none; }
  .feed-badges { left: 14px; top: 14px; }
  .feed-rail { right: 10px; bottom: 112px; gap: 10px; }
  .rail-btn { width: 46px; height: 46px; }
  .rail-btn .ic { width: 21px; height: 21px; }
  .feed-cap { padding: 80px 72px 16px 16px; }
  .feed-name { font-size: 22px; }
  .feed-name small { display: block; font-size: 13px; margin-top: 2px; }
  .feed-loc { margin: 2px 0 12px; font-size: 13px; }
  .feed-ctas { flex-wrap: nowrap; gap: 8px; }
  .feed-ctas .btn { min-height: 42px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .feed-hint { margin: 8px 0 0; font-size: 12px; }
  .feed-hint { display: none; }
  /* below the feed: only the creator and $FANZ banners */
  .home-feed > section:not(.op-hero):not(.feed) { display: none; }
  .home-feed > section.op-band:has(.op-creators-band), .home-feed > section.op-band:has(.op-coin-band) { display: block; margin: 18px 0; }
  .home .rail { display: none; }
  .op-creators-band { padding: 20px; gap: 14px; border-radius: 22px; }
  .op-creators-band h2 { font-size: 1.3rem; }
  .op-creators-band p { margin-bottom: 14px; font-size: .95rem; }
  .op-coin-band { padding: 16px; gap: 12px; border-radius: 22px; }
  .op-coin-band img { width: 56px; height: 56px; }
  .op-coin-band h2 { font-size: 1.1rem; }
  .op-coin-band .op-btn { width: 100%; }
  /* shorter footer */
  .site-foot { margin-top: 28px; padding-top: 24px; }
  .foot-grid > div:not(.foot-brand):not(:last-child) { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 12px; }
  .site-foot ul { grid-template-columns: 1fr 1fr; }
  /* tab bar badge */
  .tabbar a { position: relative; }
}
.tab-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; }
.tab-badge[hidden] { display: none; }
/* verified check */
.vbadge { display: inline-block; flex: none; vertical-align: -2px; }
.feed-name .vbadge { width: 20px; height: 20px; vertical-align: -3px; }
.tile-name .vbadge { width: 13px; height: 13px; }
/* saved page */
.saved-grid .op-card { position: relative; }
.saved-remove { position: absolute; right: 8px; top: 8px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(21, 19, 28, .6); color: #fff; font-size: 13px; cursor: pointer; }
.saved-remove:hover { background: var(--coral); }
.saved-empty { padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); max-width: 560px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Promoted (paid boost) labels */
.op-promo, .tile-promo { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(21, 19, 28, .72); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .01em; }
.tile { position: relative; }
