/* FANSFLEX v11.1 — reference-fidelity details on real pages only.
 * Approved Dark dashboard, approved ice/silver Light and photographic Feed.
 * Reuses shipped raster imagery; never draws replacement portraits or fake data.
 * This stylesheet is placed AFTER older route themes and is intentionally scoped.
 */

/* Feed: real three-slide feature rotator; the Academy slide is useful without JS. */
body.fansflex-app.ff-route-feed .ff111-featured-hero {
  position:relative!important;display:block!important;isolation:isolate;
  min-height:288px!important;padding:0!important;
  border:1px solid rgba(178,208,229,.52)!important;
  border-radius:16px!important;overflow:hidden!important;
  background:#071a2c!important;
  box-shadow:0 2px 2px rgba(255,255,255,.10),0 12px 28px rgba(9,37,65,.19)!important;
}
body.fansflex-app.ff-route-feed .ff111-featured-hero > .ff111-hero-viewport {
  position:absolute!important;inset:0!important;z-index:0!important;
  width:100%!important;height:100%!important;overflow:hidden!important;
}
body.fansflex-app.ff-route-feed .ff111-hero-slide {
  position:absolute;inset:0;display:flex;align-items:center;min-width:0;
  background:linear-gradient(118deg,#081a2a,#122c44 80%);
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translate3d(12px,0,0);
  transition:opacity .46s ease,visibility .46s ease,transform .46s ease;
}
body.fansflex-app.ff-route-feed .ff111-hero-slide.is-active {
  opacity:1;visibility:visible;pointer-events:auto;transform:translateZ(0);
}
body.fansflex-app.ff-route-feed .ff111-hero-slide:before {
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,#071929 0%,rgba(8,24,40,.99) 31%,rgba(9,27,45,.91) 47%,rgba(8,27,46,.38) 72%,rgba(9,24,39,.08) 100%);
}
body.fansflex-app.ff-route-feed .ff111-hero-image {
  position:absolute!important;inset-block:0!important;inset-inline-end:0!important;
  width:68%!important;height:100%!important;max-width:none!important;
  display:block;object-fit:contain;object-position:right center;
  filter:saturate(.95) contrast(1.045);
}
body.fansflex-app.ff-route-feed .ff111-hero-image-academy {object-position:right center}
body.fansflex-app.ff-route-feed .ff111-hero-image-dashboard {object-fit:cover;object-position:70% 44%}
body.fansflex-app.ff-route-feed .ff111-hero-image-growth {object-fit:cover;object-position:75% 43%}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-copy {
  position:relative!important;z-index:2!important;width:65%;min-width:0;max-width:540px;
  padding:30px 8px 43px 33px!important;margin:0!important;
  color:#f3f8fd;
}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-title {
  color:#f7fbff!important;font-size:clamp(25px,2.75vw,37px)!important;
  line-height:1.1!important;font-weight:800!important;letter-spacing:-.035em!important;
  margin:11px 0 13px!important;overflow-wrap:break-word;
  text-wrap:balance;
}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-subtitle {
  color:#e1ecf6!important;font-size:clamp(12px,1vw,14px)!important;
  max-width:345px!important;line-height:1.55!important;margin:0 0 15px!important;
}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-kicker {
  color:#edf5fa!important;letter-spacing:.025em!important;font-size:12px!important;font-weight:750!important;
}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-actions {display:flex!important;flex-wrap:wrap;gap:9px!important}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-actions .ff-action {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:39px!important;max-width:100%;padding:9px 14px!important;
  font-size:12px!important;border-radius:9px!important;
  background:linear-gradient(145deg,#203e57,#0b2235)!important;
  border:1px solid #8faac1!important;color:#f3f9ff!important;
  box-shadow:inset 0 1px rgba(255,255,255,.15),0 5px 10px rgba(0,8,20,.22);
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-actions .ff-action-gold {
  background:linear-gradient(150deg,#fff 0%,#e1ebf7 50%,#c6d8e9 100%)!important;
  border-color:#fff!important;color:#112c48!important;
  box-shadow:inset 0 1px rgba(255,255,255,.95),0 5px 12px rgba(0,8,20,.28);
}
body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-actions .ff-action:is(:hover,:focus-visible) {transform:translateY(-2px);box-shadow:0 9px 15px rgba(0,9,20,.32)}
body.fansflex-app.ff-route-feed .ff111-hero-controls {
  position:absolute!important;inset-inline:0;bottom:12px;z-index:5!important;
  display:flex;align-items:center;justify-content:center;gap:10px;
  min-height:31px;pointer-events:none;
}
body.fansflex-app.ff-route-feed .ff111-hero-controls[hidden] {display:none!important}
body.fansflex-app.ff-route-feed .ff111-hero-controls button {pointer-events:auto}
body.fansflex-app.ff-route-feed .ff111-hero-controls :is(.ff111-hero-prev,.ff111-hero-next,.ff111-hero-pause) {
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;padding:0;border-radius:50%;
  background:linear-gradient(145deg,rgba(215,229,242,.24),rgba(13,35,55,.73));
  border:1px solid rgba(222,240,255,.58);color:#fff;font-size:19px;
  box-shadow:0 3px 9px rgba(0,5,16,.36);
  transition:background .16s,transform .16s;
}
body.fansflex-app.ff-route-feed .ff111-hero-controls :is(.ff111-hero-prev,.ff111-hero-next,.ff111-hero-pause):hover {background:#315f82;transform:translateY(-1px)}
body.fansflex-app.ff-route-feed .ff111-hero-dots {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:79px}
body.fansflex-app.ff-route-feed .ff111-hero-dots button {
  width:11px;height:11px;padding:0;border-radius:50%;
  border:1px solid rgba(236,248,255,.65);background:rgba(216,230,244,.34);
  transition:width .2s ease,background .2s ease,border-color .2s ease;
}
body.fansflex-app.ff-route-feed .ff111-hero-dots button.is-active {
  width:28px;border-radius:8px;background:linear-gradient(110deg,#fff,#b8d6ec);border-color:#f4fbff;
}
body.fansflex-app.ff-route-feed .ff111-featured-hero :is(a,button):focus-visible {
  outline:3px solid #f8d990!important;outline-offset:3px!important;
}
html[dir="rtl"] body.ff-route-feed .ff111-hero-slide:before {background:linear-gradient(270deg,#071929 0%,rgba(8,24,40,.99) 31%,rgba(9,27,45,.91) 47%,rgba(8,27,46,.38) 72%,rgba(9,24,39,.08) 100%)}
@media(max-width:900px) {
  body.fansflex-app.ff-route-feed .ff111-featured-hero {min-height:282px!important}
  body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-copy {width:75%;padding:28px 12px 47px 24px!important}
}
@media(max-width:520px) {
  body.fansflex-app.ff-route-feed .ff111-featured-hero {min-height:312px!important;border-radius:13px!important}
  body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-copy {width:94%;padding:26px 14px 50px 17px!important}
  body.fansflex-app.ff-route-feed .ff111-hero-slide:before {background:linear-gradient(90deg,rgba(7,22,37,.98),rgba(7,22,37,.94) 45%,rgba(8,22,40,.61) 100%)}
  html[dir="rtl"] body.ff-route-feed .ff111-hero-slide:before {background:linear-gradient(270deg,rgba(7,22,37,.98),rgba(7,22,37,.94) 45%,rgba(8,22,40,.61) 100%)}
  body.fansflex-app.ff-route-feed .ff111-hero-image {width:100%!important;opacity:.53}
  body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-title {font-size:clamp(22px,6vw,28px)!important;max-width:315px}
  body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-subtitle {font-size:12px!important;line-height:1.43!important;max-width:270px!important}
  body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-actions .ff-action {padding:8px 10px!important;min-height:37px!important;font-size:11px!important}
  body.fansflex-app.ff-route-feed .ff111-hero-controls {bottom:8px;gap:9px}
  body.fansflex-app.ff-route-feed .ff111-hero-controls :is(.ff111-hero-prev,.ff111-hero-next,.ff111-hero-pause){height:29px;width:29px;font-size:17px}
}
@media(max-width:350px) {
  body.fansflex-app.ff-route-feed .ff111-featured-hero {min-height:329px!important}
  body.fansflex-app.ff-route-feed .ff111-hero-slide .ff-hero-copy {padding-inline:13px!important}
}

/* Dashboard: keep approved Dark depth and pearl Light without hiding actionable
 * links off-screen. These controls are real, navigable account destinations. */
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-links {
  position:relative!important;left:auto!important;top:auto!important;
  display:flex!important;align-items:center;flex-wrap:wrap;gap:12px;
  width:auto!important;height:auto!important;max-width:100%;overflow:visible!important;
  clip:auto!important;clip-path:none!important;opacity:1!important;
}
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-links a {
  display:inline-flex;align-items:center;gap:4px;padding:4px 0;
  text-underline-offset:4px;color:#f5d99c!important;min-height:24px;
}
html[data-bs-theme="light"] body.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-links a {color:#154c80!important}
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-chart-card .ff77-text-link {
  position:static!important;left:auto!important;top:auto!important;width:auto!important;height:auto!important;
  clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal;
}
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-filter-submit {
  position:static!important;width:auto!important;height:auto!important;overflow:visible!important;
  clip:auto!important;clip-path:none!important;white-space:nowrap!important;
  border:1px solid rgba(167,199,226,.46)!important;border-radius:6px!important;
  padding:5px 8px!important;min-height:29px;
}
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77 :is(a,button,select):focus-visible {
  outline:3px solid #f8d990!important;outline-offset:3px!important;
}
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-content-item {
  transition:transform .18s ease,box-shadow .18s ease;
}
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-content-item:is(:hover,:focus-visible) {
  transform:translateY(-2px);box-shadow:0 10px 20px rgba(0,7,20,.29);
}
/* Real user photo stays ahead of static fallback imagery, consistent with
 * profile ownership. Keep portrait undistorted during Theme changes. */
body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-photo .ff81-welcome-image {
  object-position:70% 39%;image-rendering:auto;
}
@media(max-width:620px) {
  body.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-links {gap:6px 12px}
  body.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-links a {font-size:11px!important}
  body.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-filter {flex-wrap:wrap}
}

/* Profile: approved metallic profile actions; long public names and URLs must
 * not force horizontal overflow, including RTL mobile layouts. */
body.fansflex-app.ff-route-profile :is(.profile-cover-bg,.profile-actions,.profile-content-tabs-nav){min-width:0;max-width:100%}
body.fansflex-app.ff-route-profile .profile-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
body.fansflex-app.ff-route-profile .profile-actions .p-pill {min-height:37px;min-width:37px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;transition:transform .18s ease,box-shadow .18s ease}
body.fansflex-app.ff-route-profile .profile-actions .p-pill:is(:hover,:focus-visible) {transform:translateY(-1px);box-shadow:0 4px 12px rgba(17,61,97,.18)}
body.fansflex-app.ff-route-profile :is(.profile-actions .p-pill,.profile-content-tabs-nav a,.profile-content-tabs-nav button):focus-visible {outline:3px solid #dbb66a!important;outline-offset:3px!important}
body.fansflex-app.ff-route-profile .profile-cover-bg img {object-fit:cover;object-position:center 40%}
@media(max-width:480px) {body.fansflex-app.ff-route-profile .profile-actions .p-pill {min-height:39px;min-width:39px}}

@media(prefers-reduced-motion:reduce) {
  body.fansflex-app.ff-route-feed .ff111-hero-slide,
  body.fansflex-app.ff-route-feed .ff111-featured-hero :is(a,button),
  body.fansflex-app.ff-route-dashboard .ff77-content-item,
  body.fansflex-app.ff-route-profile .profile-actions .p-pill {transition:none!important;transform:none!important;animation:none!important}
}

/* v11.3 dashboard control integrity. Keep the reference design; avoid the
   overlapping identity strip intercepting cover-dot taps. */
body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-cover-dots {
  bottom: 28px;
  gap: 2px;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-cover-dots button {
  width: 32px;
  height: 32px;
  position: relative;
  background: transparent;
  box-shadow: none;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-cover-dots button::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #ffffff88;
  pointer-events: none;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-cover-dots button.active {
  background: transparent;
  box-shadow: none;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-cover-dots button.active::after {
  background: #fff;
  box-shadow: 0 0 0 1px #0d355e;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-identity-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff113-share-feedback:not(:empty) {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.4;
  text-align: end;
  overflow-wrap: anywhere;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff113-share-feedback:empty {
  display: none;
}
body.ff-route-dashboard .ff77-quick {
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-identity-copy {
  min-width: 0;
  flex: 1 1 140px;
  overflow-wrap: anywhere;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-identity-copy strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-identity-actions {
  min-width: 0;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-avatar-wrap {
  flex-shrink: 0;
}
/* Native details must remain reachable and visible, not scroll a clipped card. */
body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-activity-panel,
body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-audience-panel {
  height: auto !important;
  min-height: 182px !important;
}
body#ff79-workspace-route.ff-route-dashboard-workspace .ff80-daily-light {
  margin: 8px 14px 12px;
}
