/* Gaystud Models design polish layer. Loaded after app.css.
   Keeps the existing identity (coral light / purple-magenta dark, Plus Jakarta Sans)
   and tightens type scale, spacing, states, contrast, responsiveness and accessibility.
   Remove this file's <link> in layout.php to revert completely. */

:root {
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
  --shadow-sm: 0 1px 2px rgba(37, 24, 23, .05);
  --shadow-md: 0 2px 6px rgba(37, 24, 23, .05), 0 12px 28px rgba(37, 24, 23, .08);
  --placeholder: #8f7f74;
}
[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .4);
  --placeholder: #7a88a3;
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: color-mix(in srgb, var(--primary) 24%, transparent); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; box-shadow: var(--ring); }
[data-theme="dark"] :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .65rem 1rem; border-radius: var(--radius-md);
  background: var(--primary); color: #fff; font-weight: 700; text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ---------- Header ---------- */
.approved-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.approved-nav { min-height: 66px; }
.approved-nav .brand { font-size: 1.5rem; letter-spacing: -.045em; }
.approved-nav-links { gap: .15rem; }
.approved-nav-links a {
  padding: .5rem .7rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.approved-nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.approved-login { font-size: .9rem; font-weight: 600; padding: .5rem .6rem; border-radius: var(--radius-sm); }
.approved-search {
  width: min(290px, 24vw);
  height: 42px; padding: 0 .85rem; border-radius: var(--radius-md);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.approved-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.approved-search input { font-size: .9rem; }
.approved-search input::placeholder { color: var(--placeholder); }
.approved-search input:focus-visible { outline: 0; box-shadow: none; }
.approved-theme-toggle { min-height: 42px; padding: .4rem .75rem; border-radius: var(--radius-md); font-size: .85rem; font-weight: 600; transition: background-color .15s var(--ease); }
.approved-theme-toggle:hover { background: var(--accent-soft); }
.approved-signup {
  min-height: 42px; display: inline-flex; align-items: center;
  padding: .55rem 1.05rem; border-radius: var(--radius-md); font-size: .9rem;
  transition: background-color .15s var(--ease), transform .08s var(--ease);
}
.approved-signup:active { transform: translateY(1px); }

/* ---------- Buttons ---------- */
.btn, .approved-btn {
  border-radius: var(--radius-md);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .08s var(--ease);
}
.btn:active, .approved-btn:active { transform: translateY(1px); }
.approved-btn { min-height: 48px; padding: .75rem 1.3rem; font-size: .95rem; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px color-mix(in srgb, var(--primary) 24%, transparent); }
.approved-btn:hover { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 22px color-mix(in srgb, var(--primary) 30%, transparent); }
.approved-btn-light { box-shadow: var(--shadow-sm); }
.approved-btn-light:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.btn[disabled], .approved-btn[aria-disabled="true"] { opacity: .5; box-shadow: none; }

/* ---------- Forms ---------- */
.field {
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field::placeholder { color: var(--placeholder); }
.field:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.field:focus { border-color: var(--primary); outline: 0; box-shadow: var(--ring); }
label { font-weight: 600; }
label.check { font-weight: 500; }

/* ---------- Surfaces ---------- */
.panel { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
a.panel { transition: border-color .15s var(--ease), transform .15s var(--ease); }
a.panel:hover { transform: translateY(-2px); }
.pill { font-size: .8rem; padding: .2rem .65rem; }
.flash {
  display: flex; gap: .6rem; align-items: flex-start;
  border: 1px solid transparent; border-left-width: 4px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.flash-ok { border-color: color-mix(in srgb, var(--ok-ink) 25%, transparent); border-left-color: var(--ok-ink); }
.flash-err { border-color: color-mix(in srgb, var(--err-ink) 25%, transparent); border-left-color: var(--err-ink); }
th { font-size: .78rem; }

/* ---------- Home: hero ---------- */
.approved-hero { min-height: 540px; padding: 3.2rem 0 4rem; gap: clamp(2rem, 5vw, 5.5rem); }
.approved-hero-copy { max-width: 600px; }
.approved-eyebrow { font-size: .78rem; padding: .35rem .8rem; border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.approved-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; margin: 1.3rem 0 1rem; }
.approved-hero h1 span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.approved-hero-copy > p { max-width: 520px; font-size: 1.1rem; line-height: 1.7; }
.approved-actions { gap: .8rem; margin-top: 1.7rem; }
.approved-social-proof { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); gap: 1rem; }
.approved-proof-icons img { width: 36px; height: 36px; margin-left: -9px; }
.approved-social-proof b { font-size: .9rem; }
.approved-social-proof small { font-size: .82rem; margin-top: .1rem; }
.approved-hero-visual { min-height: 460px; }
.approved-hero-photo { width: min(80%, 420px); height: 440px; border-radius: 30px; box-shadow: var(--shadow-md), 0 30px 60px rgba(113, 48, 30, .16); }
.approved-float { padding: .8rem .95rem; border-radius: 16px; gap: .7rem; box-shadow: var(--shadow-md); }
.approved-float-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; font-size: 1.05rem; }
.approved-float b { font-size: .86rem; }
.approved-float small { font-size: .76rem; }

[data-theme="dark"] .approved-hero-photo { border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); }

/* ---------- Home: sections ---------- */
.approved-section { padding: 3.6rem 0 1.8rem; }
.approved-section-head { gap: 1.5rem; margin-bottom: 1.6rem; }
.approved-kicker { font-size: .78rem; letter-spacing: .08em; margin-bottom: .55rem; }
.approved-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; margin-bottom: .45rem; }
.approved-section-head p { font-size: 1rem; max-width: 52ch; }
.approved-section-head > a {
  font-size: .9rem; font-weight: 700; padding: .45rem .75rem; margin-right: -.75rem; border-radius: var(--radius-sm);
  transition: background-color .15s var(--ease);
}
.approved-section-head > a:hover { background: var(--accent-soft); }

.approved-category-grid { gap: 1.1rem; }
.approved-category {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.approved-category:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-md); }
.approved-category img { height: clamp(150px, 18vw, 230px); }
.approved-category-info { padding: .95rem 1.05rem 1.1rem; }
.approved-category-info b { font-size: 1rem; }
.approved-category-info small { font-size: .84rem; margin-top: .3rem; }

.approved-creator-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; }
.approved-creator-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.approved-creator-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.approved-creator-image { margin: .55rem .55rem 0; height: clamp(160px, 18vw, 210px); border-radius: 13px; }
.approved-creator-meta { display: flex; flex-direction: column; flex: 1; padding: .85rem .95rem 1rem; }
.approved-creator-meta h3 { font-size: 1rem; }
.approved-creator-meta p { font-size: .84rem; margin: .2rem 0 .6rem; }
.approved-creator-price { font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: .8rem; }
.approved-creator-price small { font-weight: 500; font-size: .78rem; }
.approved-subscribe {
  margin-top: auto; padding: .65rem .5rem; border-radius: var(--radius-sm); font-size: .88rem;
  transition: filter .15s var(--ease), transform .08s var(--ease);
}
.approved-subscribe:active { transform: translateY(1px); }

.approved-cta { margin: 4rem 0 0; min-height: 280px; border-radius: 24px; }
.approved-cta-copy { padding: clamp(1.75rem, 4.5vw, 3.2rem); }
.approved-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.04em; }
.approved-cta p { font-size: 1rem; color: #6f5a4f; }
[data-theme="dark"] .approved-cta p { color: #c3cbe0; }

/* ---------- Footer ---------- */
.approved-footer .container { width: min(1240px, calc(100% - 2.2rem)); }
.approved-main { padding-bottom: 4rem; }
.approved-footer { margin-top: 1rem; background: var(--bg-soft); }
.approved-footer-top { min-height: 80px; padding-block: 1.1rem; gap: 1.5rem; flex-wrap: wrap; }
.approved-footer-top nav { gap: .35rem 1.25rem; }
.approved-footer-top nav a {
  font-size: .9rem; font-weight: 500; padding: .3rem 0;
  transition: color .15s var(--ease);
}
.approved-footer-top nav a:hover { color: var(--primary); }
.approved-footer-bottom { font-size: .8rem; min-height: 52px; gap: 1rem; flex-wrap: wrap; }

/* ---------- Creator profile / dashboard shared bits ---------- */
.fan-profile-container .btn-brand { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px color-mix(in srgb, var(--primary) 22%, transparent); }
.fan-profile-container .profile-header-card,
.fan-profile-container .tier-card,
.fan-profile-container .service-card,
.fan-profile-container .product-card,
.fan-profile-container .post-teaser-card { border-radius: var(--radius-lg); }
.fan-profile-container .tier-card,
.fan-profile-container .service-card,
.fan-profile-container .product-card,
.fan-profile-container .post-teaser-card { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.fan-profile-container .tier-card:hover,
.fan-profile-container .service-card:hover,
.fan-profile-container .product-card:hover,
.fan-profile-container .post-teaser-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.dash-stats-grid > * { transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.dash-stats-grid > *:hover { box-shadow: var(--shadow-md); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .approved-theme-toggle [data-theme-label] { display: none; }
  .approved-theme-toggle { padding-inline: .7rem; }
}
@media (max-width: 900px) {
  .approved-hero { min-height: 0; padding: 2.2rem 0 2.8rem; }
  .approved-hero-visual { min-height: 380px; }
  .approved-hero-photo { height: 370px; }
  .approved-nav-links { padding-bottom: .35rem; }
  .approved-nav-links a { padding: .45rem .6rem; }
}
@media (max-width: 760px) {
  .approved-hero { grid-template-columns: 1fr; }
  .approved-hero-copy { max-width: none; }
  .approved-hero-visual { min-height: 340px; }
  .approved-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approved-cta { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .approved-cta-copy { width: 100%; }
  .approved-cta-image { position: relative; width: 100%; height: 180px; }
  .approved-cta-image:before { background: linear-gradient(0deg, #ffede3 0%, transparent 60%); }
  [data-theme="dark"] .approved-cta-image:before { background: linear-gradient(0deg, #0B1226 0%, transparent 60%); }
}
@media (max-width: 520px) {
  .approved-hero h1 { font-size: clamp(2.2rem, 10.5vw, 2.6rem); }
  .approved-creator-meta h3, .approved-creator-meta p { white-space: normal; }
  .approved-nav-actions .approved-login { display: none; }
  .approved-section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .approved-section-head > a { margin-left: -.75rem; }
  .approved-creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .approved-creator-image { height: 150px; }
  .approved-actions .approved-btn { flex: 1 1 100%; }
  .approved-footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .approved-category:hover, .approved-creator-card:hover, a.panel:hover,
  .fan-profile-container .tier-card:hover, .fan-profile-container .service-card:hover,
  .fan-profile-container .product-card:hover, .fan-profile-container .post-teaser-card:hover { transform: none; }
}


/* ================= Creator profile v2 (.pv) — app/views/feed.php =================
   Uses the existing theme tokens, so it follows light/dark automatically.
   Remove this block (and restore feed.php) to revert. */
.pv { --pv-gap: 1rem; }
.pv .btn-brand { background: var(--btn-grad); color: #fff; }
.pv .btn-brand:hover { color: #fff; filter: brightness(.97); }
.pv .pill-success { background: var(--ok-bg); color: var(--ok-ink); }
.pv .pill-brand { background: var(--accent-soft); color: var(--accent-ink); }
.pv .tier-checkout .pay { margin-top: .4rem; }
.pv .tier-checkout .pay > label { display: block; margin-bottom: .35rem; }
.pv .pv-item .pay { margin-top: .6rem; }

.pv-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.pv-cover { height: 190px; background: var(--grad); position: relative; }
.pv-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 20%, rgba(255,255,255,.28), transparent 55%), linear-gradient(0deg, rgba(0,0,0,.22), transparent 60%); }
.pv-head { display: flex; align-items: flex-end; gap: 1.2rem; padding: 0 1.4rem 1.3rem; margin-top: -56px; position: relative; flex-wrap: wrap; }
.pv-avatar { flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 2.8rem; font-weight: 800; color: #fff; background: var(--grad); border: 4px solid var(--surface); box-shadow: var(--shadow-md); }
.pv-id { flex: 1 1 280px; min-width: 0; padding-top: 3.2rem; }
.pv-name { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.15; }
.pv-handle { color: var(--muted); margin: .15rem 0 .5rem; }
.pv-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.pv-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin: .9rem 0 0; padding: 0; }
.pv-stats div { display: flex; flex-direction: column-reverse; }
.pv-stats dt { color: var(--muted); font-size: .8rem; }
.pv-stats dd { margin: 0; font-weight: 800; font-size: 1.2rem; }
.pv-actions { display: flex; gap: .6rem; align-items: center; margin-left: auto; padding-top: 3.2rem; }

.pv-tabs { display: flex; gap: .25rem; overflow-x: auto; position: sticky; top: 66px; z-index: 5; margin: 1rem 0; padding: 0 .4rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pv-tabs a { padding: .85rem 1rem; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s var(--ease); }
.pv-tabs a:hover { color: var(--text); }
.pv-tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
[data-theme="dark"] .pv-tabs a.on { color: var(--accent-ink); border-bottom-color: var(--accent); }

.pv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.25rem; align-items: start; }
.pv-main, .pv-rail { display: grid; gap: 1.1rem; min-width: 0; }
.pv-rail { position: sticky; top: 130px; }
.pv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.pv-hd { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pv-hd > div { flex: 1 1 auto; min-width: 0; }
.pv-hd h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.pv-hd p { color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.pv-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); font-size: 1.1rem; }
.pv-tier { max-width: 520px; }
.pv-grid { display: grid; gap: var(--pv-gap); }
.pv-grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pv-grid-3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pv-item { display: flex; flex-direction: column; gap: .35rem; padding: .9rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-elevated, var(--bg-soft)); }
.pv-item h3 { font-size: .98rem; }
.pv-item .btn { margin-top: auto; align-self: flex-start; }
.pv-thumb { display: grid; place-items: center; height: 84px; border-radius: 10px; background: var(--accent-soft); font-size: 1.8rem; margin-bottom: .25rem; }
.pv-price { font-weight: 800; color: var(--primary); }
[data-theme="dark"] .pv-price { color: var(--accent-ink); }
.pv-bio { margin-bottom: 1rem; color: var(--text); overflow-wrap: anywhere; }
.pv-fact { display: flex; gap: .7rem; align-items: center; }
.pv-cta h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.pv-cta-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.pv-cta-btns .btn { flex: 1 1 130px; }
.pv-statlist { list-style: none; margin: 0; padding: 0; }
.pv-statlist li { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.pv-statlist li:last-child { border-bottom: 0; }
.pv-statlist b { color: var(--primary); }
[data-theme="dark"] .pv-statlist b { color: var(--accent-ink); }
.pv-share { display: flex; gap: .5rem; }
.pv-share .field { min-width: 0; font-size: .85rem; }
.pv-report summary { cursor: pointer; font-weight: 700; display: flex; flex-direction: column; gap: .1rem; }
.pv-report[open] summary { margin-bottom: .9rem; }

@media (max-width: 980px) {
  .pv-cols { grid-template-columns: 1fr; }
  .pv-rail { position: static; }
  .pv-actions { margin-left: 0; padding-top: 0; width: 100%; }
}
@media (max-width: 560px) {
  .pv-cover { height: 140px; }
  .pv-head { margin-top: -44px; padding: 0 1rem 1.1rem; }
  .pv-avatar { width: 88px; height: 88px; font-size: 2.2rem; }
  .pv-id { padding-top: 0; flex-basis: 100%; }
  .pv-tabs { top: 56px; }
}


/* ================= Theme switch + card enhancements (profile v2) ================= */
.approved-theme-toggle { gap: .55rem; padding: .25rem .8rem .25rem .25rem; border-radius: 999px; }
.pv-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; flex: none; width: 58px; height: 30px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--border); font-size: .85rem; line-height: 1; text-align: center; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.pv-switch .sw-sun, .pv-switch .sw-moon { position: relative; z-index: 1; color: var(--muted); transition: color .2s var(--ease); }
.pv-switch .sw-thumb { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--btn-grad); box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 12px color-mix(in srgb, var(--primary) 45%, transparent); transition: transform .28s var(--ease); }
.pv-switch .sw-sun { color: #fff; }
[data-theme="dark"] .pv-switch .sw-thumb { transform: translateX(28px); }
[data-theme="dark"] .pv-switch .sw-sun { color: var(--muted); }
[data-theme="dark"] .pv-switch .sw-moon { color: #fff; }
.approved-theme-toggle:hover .sw-thumb { box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 0 16px color-mix(in srgb, var(--primary) 65%, transparent); }
@media (max-width: 1000px) { .approved-theme-toggle { padding: .25rem; } }

/* Cards */
.pv-card { position: relative; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease); }
.pv-card:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); box-shadow: var(--shadow-md); }
.pv-ic { background: var(--grad); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 28%, transparent); }
.pv-hd h2 { font-size: 1.15rem; }

.pv-item { position: relative; overflow: hidden; gap: .4rem; background: var(--surface); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pv-item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s var(--ease); }
.pv-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-md); }
.pv-item:hover::before { opacity: 1; }
.pv-thumb { height: 96px; font-size: 2rem; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, var(--surface)), color-mix(in srgb, var(--accent) 22%, var(--surface))); border: 1px solid var(--border); }
.pv-item .pv-price { align-self: flex-start; padding: .1rem .6rem; border-radius: 999px; background: var(--accent-soft); font-size: .88rem; }
.pv-item p.pv-price { margin: .1rem 0 .3rem; }
.pv-item .btn { width: 100%; }

/* Membership card: gradient edge and glow */
.pv-tier { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.pv-tier::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--grad); opacity: .1; pointer-events: none; }
[data-theme="dark"] .pv-tier { box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent), 0 0 32px color-mix(in srgb, var(--primary) 28%, transparent); }
.pv-tier .tier-perks { margin-block: .9rem 1.1rem; }

/* Post teasers */
.pv .post-teaser-card { overflow: hidden; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pv .post-teaser-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-md); }

/* Side cards */
.pv-cta { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.pv-statlist li { transition: background-color .15s var(--ease); }
.pv-statlist li:hover { background: var(--accent-soft); }
.pv-statlist li { padding-inline: .5rem; margin-inline: -.5rem; border-radius: 8px; }
.pv-report summary::marker { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .pv-item:hover, .pv .post-teaser-card:hover { transform: none; }
  .pv-switch .sw-thumb, .pv-card, .pv-item { transition: none; }
}
/* Phase 4 messaging and live-room layouts */
.message-list{display:flex;flex-direction:column;gap:.75rem;max-height:65vh;overflow:auto;padding:.25rem;scroll-behavior:smooth}.message-item{border:1px solid var(--border,#e5e7eb);border-radius:14px;padding:.75rem;max-width:min(90%,48rem);background:var(--surface,#fff);overflow-wrap:anywhere}.message-item.mine{align-self:flex-end;background:var(--surface-soft,#f5f3ff)}.message-item p{margin:.35rem 0;white-space:pre-wrap}.live-player{position:relative;width:100%;aspect-ratio:16/9;background:#111;border-radius:16px;overflow:hidden}.live-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.grid.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}.message-item details{margin-top:.5rem}.message-item details form{margin-top:.5rem}

/* ---------- Master release polish: shared forms, tables and operational screens ---------- */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  max-width: 100%;
  border-radius: var(--radius-md, 12px);
  border-color: var(--border);
  background-color: var(--surface);
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea)::placeholder { color: var(--placeholder); opacity: 1; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea):focus { border-color: var(--primary); box-shadow: var(--ring); }
:where(button, .btn, .approved-btn) { -webkit-tap-highlight-color: transparent; }
:where(button, .btn, .approved-btn):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
:where(table) { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
:where(th) { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
:where(th, td) { padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
:where(tbody tr) { transition: background-color .12s var(--ease); }
:where(tbody tr:hover) { background: color-mix(in srgb, var(--accent-soft) 52%, transparent); }
:where(pre, code) { overflow-wrap: anywhere; }
:where(pre) { max-width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; background: var(--surface-soft, var(--surface)); }
:where(.flash, .notice, .alert) { border-radius: var(--radius-md); }
:where(.panel, .card, .stat-card, .metric-card) { border-radius: var(--radius-lg); }
:where(.panel, .card, .stat-card, .metric-card) :where(h2, h3) { letter-spacing: -.025em; }
:where(.empty-state) { border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2.5rem); text-align: center; color: var(--muted); }
:where(.site-header) { z-index: 30; }
.approved-nav-links { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.approved-nav-links a { white-space: nowrap; }
:where(img, video, iframe) { max-width: 100%; }
:where(.message-list, .table-wrap, .overflow-auto) { overscroll-behavior: contain; }
@media (max-width: 760px) {
  .approved-nav { align-items: flex-start; }
  .approved-nav-links { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  :where(th, td) { padding: .65rem .6rem; }
  :where(table) { font-size: .9rem; }
  .approved-search { width: min(100%, calc(100vw - 2rem)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Gaystud Models logo sizing */
.approved-nav .brand, .approved-footer .brand { display:flex; align-items:center; gap:10px; }
.brand-logo { display:inline-block; width:42px; height:42px; object-fit:contain; background:#fff; border-radius:9px; padding:2px; flex:0 0 auto; }
.approved-footer .brand-logo { width:36px; height:36px; }
@media (max-width: 560px) { .approved-nav .brand { gap:7px; font-size:1.05rem; } .approved-nav .brand-logo { width:34px; height:34px; } }
