/* Fans254 V1204 combined static CSS; original order preserved. */

/* --- /assets/css/fans254-v1079-curved-pages.css --- */
/* Fans254 V1079 — CSS-only curved surfaces. Scoped to auth, onboarding and finance.
 * No image downloads, no media sizes, no JS, no payment or form changes.
 * Loaded after the legacy bundles to win their older mobile min-height overrides. */

/* The same softly layered, non-interactive blue curves across page families. */
.auth-layout--refresh,
.f823-ob.f977-onboard,
.social-shell .finance-screen.wallet-screen,
.social-shell .f758-monet,
.member-tier-page {
  --f1079-page:#fff;
  --f1079-curve-a:rgba(8,102,255,.12);
  --f1079-curve-b:rgba(8,102,255,.065);
  --f1079-curve-c:rgba(8,102,255,.045);
  --f1079-ink:#111d33;
}
html[data-theme="dark"] :is(.auth-layout--refresh,.f823-ob.f977-onboard,.social-shell .finance-screen.wallet-screen,.social-shell .f758-monet,.member-tier-page) {
  --f1079-page:#181a1f;
  --f1079-curve-a:rgba(56,139,255,.14);
  --f1079-curve-b:rgba(56,139,255,.09);
  --f1079-curve-c:rgba(56,139,255,.055);
  --f1079-ink:#f3f6fc;
}

/* Auth: the logo and all existing functional buttons remain in the DOM.
 * Position the CSS shapes BEHIND the content rather than painting on top of taps. */
.auth-layout--refresh {
  background-color:var(--f1079-page)!important;
}
.auth-layout--refresh .auth-content--refresh,
.auth-layout--refresh > .auth-visual--refresh {
  background-color:var(--f1079-page)!important;
  background-image:
    radial-gradient(ellipse 72% 33% at -14% -8%,var(--f1079-curve-a) 0 59%,transparent 60%),
    radial-gradient(ellipse 70% 31% at -10% -11%,var(--f1079-curve-b) 0 77%,transparent 78%),
    radial-gradient(ellipse 75% 41% at 110% 109%,var(--f1079-curve-a) 0 57%,transparent 58%),
    radial-gradient(ellipse 83% 39% at 110% 112%,var(--f1079-curve-c) 0 77%,transparent 78%)!important;
  background-repeat:no-repeat!important;
}
/* Transparent inner logo wrappers prevent a second set of curves from making
   rectangular blue stripes across the top of the mobile screen. */
.auth-layout--refresh .auth-mobile-visual,
.auth-layout--refresh .auth-mobile-visual .auth-visual--refresh,
.auth-layout--refresh .auth-visual-stage {
  background:transparent!important;
  background-image:none!important;
}
.auth-layout--refresh .auth-visual-topbar {z-index:5;}
.auth-layout--refresh :is(.auth-social-button,.auth-primary-link,.button-primary.auth-submit-button,.f1004-get-app) {
  border-radius:999px!important;
}
.auth-layout--refresh .auth-social-button {
  border:1px solid #d6e0ee!important;
  background:#fff!important;
  color:#152238!important;
  box-shadow:0 2px 10px rgba(17,45,92,.025)!important;
}
.auth-layout--refresh .auth-social-button:is(:hover,:focus-visible) {
  border-color:#1877f2!important;
  box-shadow:0 5px 17px rgba(24,119,242,.12)!important;
}
.auth-layout--refresh .button-primary.auth-submit-button {
  background:#0866ff!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(8,102,255,.14)!important;
}
html[data-theme="dark"] .auth-layout--refresh .auth-social-button {
  background:#24272e!important;color:#f3f5fa!important;
  border-color:#404955!important;box-shadow:none!important;
}
html[data-theme="dark"] .auth-layout--refresh .auth-social-button:is(:hover,:focus-visible) {
  border-color:#5a9dff!important;
  box-shadow:0 4px 16px rgba(23,94,190,.18)!important;
}
html[data-theme="dark"] .auth-layout--refresh .auth-content--refresh,
html[data-theme="dark"] .auth-layout--refresh > .auth-visual--refresh {
  background-color:var(--f1079-page)!important;
  background-image:
    radial-gradient(ellipse 72% 33% at -14% -8%,var(--f1079-curve-a) 0 59%,transparent 60%),
    radial-gradient(ellipse 70% 31% at -10% -11%,var(--f1079-curve-b) 0 77%,transparent 78%),
    radial-gradient(ellipse 75% 41% at 110% 109%,var(--f1079-curve-a) 0 57%,transparent 58%),
    radial-gradient(ellipse 83% 39% at 110% 112%,var(--f1079-curve-c) 0 77%,transparent 78%)!important;
}
html[data-theme="dark"] .auth-layout--refresh .auth-mobile-visual,
html[data-theme="dark"] .auth-layout--refresh .auth-mobile-visual .auth-visual--refresh,
html[data-theme="dark"] .auth-layout--refresh .auth-visual-stage {
  background:transparent!important;
  background-image:none!important;
}
html[data-theme="dark"] .auth-layout--refresh .auth-title span,
html[data-theme="dark"] .auth-layout--refresh .auth-switch-line a,
html[data-theme="dark"] .auth-layout--refresh .auth-terms a {color:#69adff!important;}
/* Mobile: the original separate 100dvh auth-content PLUS the logo made the
 * layout taller than the device and left a large empty gap. Use ONE viewport. */
@media(max-width:699px) {
  .auth-layout--refresh {
    min-height:100vh!important;min-height:100dvh!important;
    display:flex!important;flex-direction:column!important;
  }
  .auth-layout--refresh .auth-content--refresh {
    flex:1 0 auto!important;
    min-height:0!important;height:auto!important;
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    gap:0!important;
    padding:clamp(14px,3dvh,26px) 16px calc(15px + env(safe-area-inset-bottom))!important;
  }
  .auth-layout--refresh .auth-mobile-visual,
  .auth-layout--refresh.auth-layout--welcome .auth-mobile-visual,
  .auth-layout--refresh.auth-layout--login .auth-mobile-visual,
  .auth-layout--refresh.auth-layout--register .auth-mobile-visual,
  .auth-layout--refresh.auth-layout--recover .auth-mobile-visual {
    height:clamp(74px,12dvh,104px)!important;
    min-height:74px!important;max-height:104px!important;
    flex:0 0 auto!important;width:100%!important;
  }
  .auth-layout--refresh .auth-mobile-visual .auth-visual-topbar {
    left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
    width:clamp(64px,9dvh,84px)!important;height:clamp(64px,9dvh,84px)!important;
  }
  .auth-layout--refresh .auth-mobile-visual .auth-visual-topbar .brand-logo {
    width:100%!important;height:100%!important;
  }
  .auth-layout--refresh .auth-form-area--refresh,
  .auth-layout--refresh.auth-layout--register .auth-form-area--refresh,
  .auth-layout--refresh.auth-layout--login:has(.is-email) .auth-form-area--refresh {
    flex:0 0 auto!important;
    width:100%!important;min-height:0!important;
    margin:12px 0 0!important;padding:0!important;
    justify-content:center!important;align-items:center!important;
  }
  .auth-layout--refresh .auth-card--refresh,
  .auth-layout--refresh .auth-form-wrap {
    width:min(100%,440px)!important;max-width:440px!important;
  }
  .auth-layout--refresh .auth-footer {
    flex:0 0 auto!important;margin:clamp(15px,3dvh,30px) auto 0!important;
    padding:0 6px!important;font-size:11px!important;
    text-align:center!important;
  }
  .auth-layout--refresh .auth-title {margin-bottom:11px!important;}
  .auth-layout--refresh .auth-copy {margin-bottom:20px!important;}
  .auth-layout--refresh .auth-terms {margin-top:14px!important;}
  .auth-layout--refresh .auth-switch-line {margin-top:16px!important;}
}
/* No huge space on short Android landscape screens; long forms may scroll. */
@media(max-width:699px) and (max-height:620px) {
  .auth-layout--refresh .auth-content--refresh {justify-content:flex-start!important;}
  .auth-layout--refresh .auth-mobile-visual,
  .auth-layout--refresh.auth-layout--login .auth-mobile-visual,
  .auth-layout--refresh.auth-layout--welcome .auth-mobile-visual {height:70px!important;min-height:70px!important;max-height:70px!important;}
}
/* Tablets keep the familiar two-column auth layout but have a smaller logo rail. */
@media(min-width:700px) and (max-width:1050px) {
  .auth-layout--refresh {grid-template-columns:minmax(180px,.68fr) minmax(0,1.32fr)!important;}
  .auth-layout--refresh .auth-content--refresh {padding:24px clamp(19px,3vw,35px)!important;}
}

/* Onboarding: About Me / Interests / People / account email verification. */
.f823-ob.f977-onboard {
  background-color:var(--f977-ground,var(--f1079-page))!important;
  background-image:
    radial-gradient(ellipse 50% 27% at -3% -4%,var(--f1079-curve-a) 0 67%,transparent 68%),
    radial-gradient(ellipse 54% 30% at -5% -6%,var(--f1079-curve-c) 0 87%,transparent 88%),
    radial-gradient(ellipse 61% 32% at 102% 102%,var(--f1079-curve-a) 0 60%,transparent 61%)!important;
  background-repeat:no-repeat!important;
}
.f823-ob.f977-onboard .f823-frame {
  background-color:var(--f977-card)!important;
  background-image:
    radial-gradient(ellipse 42% 190px at 0% 0%,var(--f1079-curve-b),transparent 93%),
    radial-gradient(ellipse 38% 180px at 100% 100%,var(--f1079-curve-c),transparent 93%)!important;
  background-repeat:no-repeat!important;
}
/* The preexisting dark onboarding background shorthand was more specific
   than the light-only selector; explicitly restore the curves in dark mode. */
html[data-theme="dark"] .f823-ob.f977-onboard {
  background-color:var(--f977-ground)!important;
  background-image:
    radial-gradient(ellipse 50% 27% at -3% -4%,var(--f1079-curve-a) 0 67%,transparent 68%),
    radial-gradient(ellipse 54% 30% at -5% -6%,var(--f1079-curve-c) 0 87%,transparent 88%),
    radial-gradient(ellipse 61% 32% at 102% 102%,var(--f1079-curve-a) 0 60%,transparent 61%)!important;
}
/* No new positioned ancestor near fixed mobile onboarding action bars. */

/* Wallet and creator finance share one design language, not a media background. */
.social-shell .finance-screen.wallet-screen,
.social-shell .f758-monet {
  background-color:var(--f1079-page)!important;
  background-image:
    radial-gradient(ellipse 61% 210px at -8% -35px,var(--f1079-curve-a) 0 57%,transparent 58%),
    radial-gradient(ellipse 70% 290px at -11% -45px,var(--f1079-curve-c) 0 73%,transparent 74%),
    radial-gradient(ellipse 64% 245px at 109% 100%,var(--f1079-curve-b) 0 60%,transparent 61%)!important;
  background-repeat:no-repeat!important;
}
/* Add a very gentle edge behind the finance headings, but keep all figures legible. */
.social-shell .finance-screen.wallet-screen .finance-page-heading,
.social-shell .f758-monet :is(.f758-heading,.f758-settings-top) {
  background-image:radial-gradient(ellipse 50% 88% at 100% 0%,var(--f1079-curve-c),transparent 100%);
  background-repeat:no-repeat;
}

/* Premium membership has a fixed full-screen outer layer plus its own solid
 * inner shell. Both need the curve, or the shell would conceal the decoration. */
.member-tier-page,
.member-tier-page .member-tier-shell {
  background-color:var(--tier-bg,var(--f1079-page))!important;
  background-image:
    radial-gradient(ellipse 75% 28% at -10% -8%,var(--f1079-curve-a) 0 58%,transparent 59%),
    radial-gradient(ellipse 80% 34% at -10% -10%,var(--f1079-curve-c) 0 77%,transparent 78%),
    radial-gradient(ellipse 78% 33% at 108% 108%,var(--f1079-curve-a) 0 57%,transparent 58%),
    radial-gradient(ellipse 80% 38% at 108% 110%,var(--f1079-curve-c) 0 75%,transparent 76%)!important;
  background-repeat:no-repeat!important;
}
@media(prefers-reduced-motion:reduce){
  .auth-layout--refresh .auth-social-button,
  .auth-layout--refresh .button-primary.auth-submit-button {transition:none!important;}
}


/* --- /assets/css/fans254-v1081-feed-continuity.css --- */
/* Fans254 V1081 -- mobile timeline continuity and unobstructed actions.
   No changes to actual post/media height, black canvas, authorization or HLS. */
/* The long home timeline must remain paintable when returning upward: the
   former "contain:layout style" can isolate a rapidly repainted feed on
   mobile Chrome. Keep native scroll anchoring instead. */
.social-shell .social-home-feed { contain:none!important; overflow-anchor:auto; }
/* Prevent Android pull-to-refresh from blanking a deep feed while the reader
   is scrolling back toward the top. Normal vertical scrolling is unchanged. */
html:has(.social-shell #social-feed),
body:has(.social-shell #social-feed) { overscroll-behavior-y:contain; }
/* Reserved media boxes retain their black/themed background and dimensions,
   but don't show an empty decorative stroke before the image has loaded.
   Network/decode failures still appear via the existing retry/error control. */
.social-shell .social-post-media.f1081-media-pending,
.social-shell .f254-feed-gallery.f1081-media-pending {
 border-color:transparent!important;
 outline-color:transparent!important;
}
@media(max-width:760px){
  /* The fixed bottom bar must not cover Like/Comment/Repost/Tip/Share/Save
     for the very last Home/Profile/Following/Trending/Discover/search card.
     This is scrollable space AFTER the feed, not a post or player height. */
  .social-shell:has(#social-feed) > .social-layout {
    padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important;
  }
  .social-shell:has(#social-feed) > .social-layout > .social-column {
    overflow:visible;
  }
  .social-shell #social-feed > .social-post:last-child .social-post-actions {
    scroll-margin-bottom:calc(90px + env(safe-area-inset-bottom,0px));
  }
  .social-shell .social-infinite-loader[data-feed-more] [data-feed-more-retry]:not([hidden]) {
    position:relative;
    z-index:1;
  }
}


/* --- /assets/css/fans254-v1083-photo-reserve.css --- */
/* V1083 — prevent zero-height photo frames before image dimensions arrive.
 * Reuses the existing provisional natural-ratio system. No changes to admin
 * image/video max-height, object-fit, source route or live player sizing. */
  /* Legacy posts and imported photos often lack media_width/media_height.
     Never let a 0px lazy <img> collapse the entire feed card into a line. */
  .social-shell .social-post:not(.social-reel-post) .social-post-media[data-f1057-provisional]:not(.social-post-video-player):not([data-f1069-measured]):has(>img),
  .social-shell .social-post:not(.social-reel-post) .social-post-media:not(.social-post-video-player):not([data-f1069-measured]):has(>img),
  .social-shell .social-post:not(.social-reel-post) .f254-feed-gallery:not([data-f1069-measured]):has(.f254-feed-slide > img){
    aspect-ratio:var(--f1055-reserved-ratio,4 / 5)!important;
    height:auto!important;
    min-height:0!important;
    max-height:var(--f254-feed-image-max,660px)!important;
    overflow:hidden;
  }
  /* A direct quote image has no outer stage: reserve its aspect until decoded.
     `auto` selects the true natural ratio once dimensions become available. */
  .social-shell .social-post:not(.social-reel-post) img.f254-quote-source-media,
  .social-shell .social-post:not(.social-reel-post) .f254-quote-own-content > img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:auto 4 / 5;
  }
/* Keep the canvas and border geometry, but suppress the lonely 1px loading
   outline. On successful decode the normal feed border is restored; on failure
   the preexisting retry UI remains visible. */
.social-shell .social-post:not(.social-reel-post) .social-post-media:not(.social-post-video-player):has(>img):not([data-f1083-image-loaded]):not([data-f1083-image-error]),
.social-shell .social-post:not(.social-reel-post) .f254-feed-gallery:has(.f254-feed-slide > img):not([data-f1083-image-loaded]):not([data-f1083-image-error]){
  border-color:transparent!important;
}


/* --- /assets/css/fans254-v1084-profile-cover.css --- */
/* V1084: cover placeholder is always present, even before an image is uploaded.
   Same column and dimensions as an existing cover; color follows light/dark profile surface.
   The image itself is still guarded by ProfileContentSafety. */
.social-shell .social-column > .social-profile-cover.no-image{
  display:block!important;
  height:clamp(170px,19vw,230px);
  background:var(--social-muted-bg,#edf2fa)!important;
  background-image:none!important;
  background-size:cover;
  background-position:center 42%;
}
@media(max-width:650px){
  .social-shell .social-column > .social-profile-cover.no-image{height:175px!important}
}
@media(min-width:651px) and (max-width:1023px){
  .social-shell .social-column > .social-profile-cover.no-image{height:195px!important}
}
html[data-theme="dark"] .social-shell .social-column > .social-profile-cover.no-image{
  background-color:var(--social-muted-bg,#292d35)!important;
}

