/* FansFlex v8.9 — Reference-locked metallic surface system.
   Applies the approved silver/blue Light and brushed steel/navy Night language
   to existing Laravel pages. It does not replace page markup, media or actions. */

body.fansflex-app,
body.fansflex-generic {
  --ff89-ink:#173a59;
  --ff89-muted:#607e98;
  --ff89-canvas:#eaf2fb;
  --ff89-panel:#f6faff;
  --ff89-panel-raised:#ffffff;
  --ff89-panel-soft:#eaf3fc;
  --ff89-control:#f4f8fd;
  --ff89-edge:rgba(94,139,181,.38);
  --ff89-edge-strong:rgba(65,119,168,.58);
  --ff89-edge-highlight:rgba(255,255,255,.98);
  --ff89-blue:#145b98;
  --ff89-blue-strong:#0b3d70;
  --ff89-gold:#c89a4d;
  --ff89-gold-light:#f6dda2;
  --ff89-metal:linear-gradient(138deg,#ffffff 0%,#edf5fd 24%,#d7e7f6 46%,#fbfdff 63%,#e1edf9 100%);
  --ff89-metal-soft:linear-gradient(145deg,#fbfdff 0%,#e9f2fb 52%,#f8fbff 100%);
  --ff89-shadow:0 2px 4px rgba(20,57,94,.08),0 10px 25px rgba(29,77,128,.12),inset 0 1px 0 rgba(255,255,255,.98);
  --ff89-shadow-raised:0 5px 12px rgba(18,55,95,.10),0 18px 42px rgba(26,73,123,.14),inset 0 1px 0 rgba(255,255,255,.98);
  --ff89-shadow-focus:0 0 0 3px rgba(39,129,204,.22);
  --ff89-radius:15px;
}

html[data-bs-theme="dark"] body.fansflex-app,
html[data-bs-theme="dark"] body.fansflex-generic,
html[data-theme="dark"] body.fansflex-app,
html[data-theme="dark"] body.fansflex-generic {
  --ff89-ink:#edf6ff;
  --ff89-muted:#a8c1d6;
  --ff89-canvas:#071725;
  --ff89-panel:#102a40;
  --ff89-panel-raised:#15334c;
  --ff89-panel-soft:#0c2236;
  --ff89-control:#0b2033;
  --ff89-edge:rgba(137,183,218,.42);
  --ff89-edge-strong:rgba(143,207,250,.66);
  --ff89-edge-highlight:rgba(228,245,255,.18);
  --ff89-blue:#79c4f4;
  --ff89-blue-strong:#b8e1ff;
  --ff89-metal:linear-gradient(137deg,#29475f 0%,#10283d 25%,#1b3b55 47%,#0d2337 70%,#18364e 100%);
  --ff89-metal-soft:linear-gradient(145deg,#18364e 0%,#0d2438 54%,#17354d 100%);
  --ff89-shadow:0 2px 5px rgba(0,6,16,.42),0 12px 30px rgba(0,7,18,.32),inset 0 1px 0 rgba(232,247,255,.13);
  --ff89-shadow-raised:0 6px 15px rgba(0,5,15,.38),0 22px 46px rgba(0,5,16,.36),inset 0 1px 0 rgba(233,247,255,.17);
  --ff89-shadow-focus:0 0 0 3px rgba(68,171,241,.3);
}

/* Main inner-page canvas. The two approved dashboard macro layouts stay isolated. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .content-wrapper,
body.fansflex-generic .content-wrapper {
  background-color:var(--ff89-canvas)!important;
  background-image:radial-gradient(ellipse 72% 430px at 108% -4%,rgba(66,143,208,.12),transparent 72%),linear-gradient(180deg,rgba(255,255,255,.18),transparent 58%)!important;
  color:var(--ff89-ink);
}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .content-wrapper,
html[data-bs-theme="dark"] body.fansflex-generic .content-wrapper,
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .content-wrapper,
html[data-theme="dark"] body.fansflex-generic .content-wrapper {
  background-image:radial-gradient(ellipse 76% 470px at 108% -5%,rgba(40,129,196,.22),transparent 70%),linear-gradient(145deg,#071827,#0b2236 58%,#071725)!important;
  color:var(--ff89-ink);
}

/* Reference-like metal finish for existing page panels and information cards. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-panel,.ff19-stat,.ff-widget,.ff-surface,.ff-quick,.ff-feed-post,
  .ff79-feed-earnings,.ff69-inbox-widget,.ff68-recent-media-widget,
  .vault-card,.vault-grid .vault-item,.ff68-media-item,.ff79-activity-card,
  .ff79-profile-stat,.ff79-wallet-card,.ff21-settings-content>form,
  .ff21-settings-content>.account-email-panel,.ff21-settings-content>.account-danger-panel,
  .ff21-settings-content>.settings-data-page,.ff21-settings-content>.onboarding-page,
  .settings-content .card,.account-settings-content .card,.settings-data-page,
  .settings-payments-page,.messenger-shell,.messenger-sidebar,.message-templates-panel,
  .ff20-create-post,.ff59-live-studio,.ff59-live-chat-panel,.reels-empty-state
),
body.fansflex-generic :is(.card,.alert,.contact-form,.public-page-content,.account-suspension-card) {
  border-color:var(--ff89-edge)!important;
  box-shadow:var(--ff89-shadow)!important;
  background-color:var(--ff89-panel)!important;
  color:var(--ff89-ink);
  min-width:0;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-panel,.ff19-stat,.ff-widget,.ff-surface,.ff-quick,.ff79-feed-earnings,
  .ff69-inbox-widget,.ff68-recent-media-widget,.vault-card,.ff79-activity-card,
  .ff79-profile-stat,.ff79-wallet-card,.settings-content .card,
  .account-settings-content .card,.ff21-settings-content>form,
  .ff21-settings-content>.account-email-panel,.ff21-settings-content>.account-danger-panel,
  .ff21-settings-content>.settings-data-page,.ff21-settings-content>.onboarding-page,
  .messenger-sidebar,.message-templates-panel,.ff59-live-studio,.ff59-live-chat-panel
) {
  border-radius:var(--ff89-radius);
  background-image:linear-gradient(135deg,rgba(255,255,255,.10),transparent 58%),linear-gradient(180deg,var(--ff89-edge-highlight),transparent 2px);
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-panel,.ff19-stat,.ff-widget,.ff-surface,.ff-quick,.ff79-feed-earnings,
  .ff69-inbox-widget,.ff68-recent-media-widget,.vault-card,.ff79-activity-card,
  .ff79-profile-stat,.ff79-wallet-card,.settings-content .card,
  .account-settings-content .card,.ff21-settings-content>form,
  .ff21-settings-content>.account-email-panel,.ff21-settings-content>.account-danger-panel,
  .ff21-settings-content>.settings-data-page,.ff21-settings-content>.onboarding-page,
  .messenger-sidebar,.message-templates-panel,.ff59-live-studio,.ff59-live-chat-panel
):is(:hover,:focus-within) {
  border-color:var(--ff89-edge-strong)!important;
  box-shadow:var(--ff89-shadow-raised)!important;
}

/* Shared route heroes: bright satin silver in Light, brushed steel in Night. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-hero,.ff20-hero,.ff20-create-hero,.ff20-lists-hero,.ff21-settings-hero,.ff17-settings-hero,.ff17-payments-hero,.ff17-subscriptions-hero),
body.fansflex-app.ff-route-my-vault-index #media-vault-page .vault-page-header {
  border:1px solid var(--ff89-edge-strong)!important;
  border-radius:17px!important;
  box-shadow:var(--ff89-shadow-raised)!important;
  background:var(--ff89-metal)!important;
  color:var(--ff89-ink)!important;
  overflow:hidden;
}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-hero,.ff20-hero,.ff20-create-hero,.ff20-lists-hero,.ff21-settings-hero,.ff17-settings-hero,.ff17-payments-hero,.ff17-subscriptions-hero),
html[data-bs-theme="dark"] body.fansflex-app.ff-route-my-vault-index #media-vault-page .vault-page-header,
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-hero,.ff20-hero,.ff20-create-hero,.ff20-lists-hero,.ff21-settings-hero,.ff17-settings-hero,.ff17-payments-hero,.ff17-subscriptions-hero),
html[data-theme="dark"] body.fansflex-app.ff-route-my-vault-index #media-vault-page .vault-page-header {
  background:linear-gradient(122deg,#071b2c 0%,#163a55 36%,#0b2236 72%,#1c3b54 100%)!important;
  border-color:rgba(145,195,230,.48)!important;
  box-shadow:0 16px 36px rgba(0,5,16,.38),inset 0 1px rgba(236,248,255,.18)!important;
}
html[data-bs-theme="light"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-hero,.ff20-hero,.ff20-create-hero,.ff20-lists-hero,.ff21-settings-hero,.ff17-settings-hero,.ff17-payments-hero,.ff17-subscriptions-hero),
html[data-bs-theme="light"] body.fansflex-app.ff-route-my-vault-index #media-vault-page .vault-page-header,
html[data-theme="light"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-hero,.ff20-hero,.ff20-create-hero,.ff20-lists-hero,.ff21-settings-hero,.ff17-settings-hero,.ff17-payments-hero,.ff17-subscriptions-hero),
html[data-theme="light"] body.fansflex-app.ff-route-my-vault-index #media-vault-page .vault-page-header {
  background:linear-gradient(128deg,#ffffff 0%,#e6f0fa 40%,#fbfdff 72%,#dceaf8 100%)!important;
  border-color:#a9c6e0!important;
}

/* Headings, secondary text and labels stay readable in both modes. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-hero h1,.ff19-panel h2,.ff19-panel-head h2,.ff20-hero h1,
  .ff20-create-hero h1,.ff20-lists-hero h1,.ff21-settings-title,
  .ff87-vault-title h1,.settings-content h5,.settings-content h4,
  .vault-page-header h1,.vault-page-header h2,.messenger-shell h2
) {color:var(--ff89-ink)!important;letter-spacing:-.025em;}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-panel-head p,.ff19-hero p,.ff20-hero p,.ff20-kicker + p,
  .ff21-settings-subtitle,.ff87-vault-description,.settings-content .text-muted,
  .vault-page-header .text-muted,.form-text
) {color:var(--ff89-muted)!important;}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-hero h1,.ff19-panel h2,.ff19-panel-head h2,.ff20-hero h1,
  .ff20-create-hero h1,.ff20-lists-hero h1,.ff21-settings-title,
  .ff87-vault-title h1,.settings-content h5,.settings-content h4,
  .vault-page-header h1,.vault-page-header h2,.messenger-shell h2
),
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-hero h1,.ff19-panel h2,.ff19-panel-head h2,.ff20-hero h1,
  .ff20-create-hero h1,.ff20-lists-hero h1,.ff21-settings-title,
  .ff87-vault-title h1,.settings-content h5,.settings-content h4,
  .vault-page-header h1,.vault-page-header h2,.messenger-shell h2
) {color:#f1f8ff!important;}

/* Settings: navigation, panels, preference rows and destructive/account panels. */
body.fansflex-app.ff-route-my-settings .settings-menu-wrapper {
  border:1px solid var(--ff89-edge)!important;border-radius:16px!important;
  background:var(--ff89-metal)!important;box-shadow:var(--ff89-shadow)!important;
  padding:12px!important;
}
body.fansflex-app.ff-route-my-settings .settings-menu :is(a,button,.nav-link) {
  min-height:42px;border-radius:11px!important;border:1px solid transparent;
  color:var(--ff89-ink)!important;transition:background .16s,border-color .16s,box-shadow .16s;
}
body.fansflex-app.ff-route-my-settings .settings-menu :is(a,button,.nav-link):is(:hover,:focus-visible) {
  border-color:var(--ff89-edge)!important;background:var(--ff89-panel-soft)!important;
  box-shadow:inset 0 1px var(--ff89-edge-highlight),0 4px 12px rgba(20,67,112,.09);
}
body.fansflex-app.ff-route-my-settings .settings-menu :is(.active,[aria-current="page"]) {
  color:#fff!important;border-color:#2d78b4!important;
  background:linear-gradient(135deg,#1b6097,#0c3158)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.22),0 5px 14px rgba(8,43,78,.23)!important;
}
body.fansflex-app.ff-route-my-settings .settings-content {color:var(--ff89-ink)!important;}
body.fansflex-app.ff-route-my-settings .settings-content :is(label,.form-label) {color:var(--ff89-ink)!important;font-weight:650;}
body.fansflex-app.ff-route-my-settings .settings-content :is(.form-text,.text-muted,small.text-muted) {color:var(--ff89-muted)!important;}
body.fansflex-app.ff-route-my-settings .ff21-settings-content>form,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.account-email-panel,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.account-danger-panel,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.onboarding-page,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.settings-data-page,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.settings-notifications-form,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.privacy-settings,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.account-settings,
body.fansflex-app.ff-route-my-settings .ff21-settings-content>.creator-onboarding {
  border:1px solid var(--ff89-edge)!important;border-radius:15px!important;
  background:var(--ff89-metal-soft)!important;box-shadow:var(--ff89-shadow)!important;
  color:var(--ff89-ink)!important;
}
body.fansflex-app.ff-route-my-settings .settings-content :is(.settings-data-row,.settings-payments-row,.settings-subscriptions-row,.onboarding-row) {
  border-color:var(--ff89-edge)!important;
}
body.fansflex-app.ff-route-my-settings .settings-content :is(.settings-data-stat-card,.settings-payments-stat-card,.settings-data-summary,.settings-payments-summary) {
  border:1px solid var(--ff89-edge)!important;border-radius:12px!important;
  background:var(--ff89-metal)!important;box-shadow:var(--ff89-shadow)!important;
}
body.fansflex-app.ff-route-my-settings .settings-content :is(.settings-data-table-head,.settings-payments-table-head) {
  background:var(--ff89-panel-soft)!important;border-color:var(--ff89-edge)!important;color:var(--ff89-muted)!important;
}
body.fansflex-app.ff-route-my-settings .settings-content :is(.settings-data-row,.settings-payments-row,.settings-subscriptions-row):hover {
  background:rgba(65,139,198,.08)!important;
}

/* Controls: satin-metal fields with strong focus and readable validation. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .form-control,.form-select,.selectize-input,.input-group-text,
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select
) {
  color:var(--ff89-ink)!important;background-color:var(--ff89-control)!important;
  border-color:var(--ff89-edge)!important;
  box-shadow:inset 0 1px 0 var(--ff89-edge-highlight),0 2px 5px rgba(24,65,105,.045);
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .form-control,textarea,input:not([type="checkbox"]):not([type="radio"])
)::placeholder {color:var(--ff89-muted)!important;opacity:.82;}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .form-control,.form-select,.selectize-input,textarea,select
):focus-visible {
  border-color:var(--ff89-blue)!important;outline:0!important;box-shadow:var(--ff89-shadow-focus),inset 0 1px 0 var(--ff89-edge-highlight)!important;
}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .form-control,.form-select,.selectize-input,.input-group-text,
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select
),
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .form-control,.form-select,.selectize-input,.input-group-text,
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select
) {background-color:#0b2135!important;color:#edf6ff!important;border-color:rgba(135,184,220,.43)!important;}
body.fansflex-app :is(input[type="checkbox"],input[type="radio"],.form-check-input) {accent-color:#267fc0;}
body.fansflex-app :is(.form-switch .form-check-input,.form-check-input) {border-color:var(--ff89-edge-strong);}
body.fansflex-app input[type="file"]::file-selector-button {
  border:0;border-right:1px solid var(--ff89-edge);padding:9px 13px;margin:-.375rem .75rem -.375rem -.75rem;
  color:var(--ff89-ink);background:var(--ff89-metal);font-weight:700;
}

/* Buttons: blue steel for normal actions, gold metal only for primary business actions. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.btn-primary,.ff20-primary-action,.ff20-hero-action,.ff19-top-action) {
  color:#fff!important;background:linear-gradient(180deg,#2778b6 0%,#145184 52%,#0b3c68 100%)!important;
  border:1px solid #3c8bc2!important;box-shadow:inset 0 1px rgba(255,255,255,.32),0 5px 13px rgba(8,49,86,.22)!important;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.btn-warning,.ff87-vault-upload,.ff86-save-prices) {
  color:#202b38!important;background:linear-gradient(180deg,#fff0bd 0%,#e9c477 47%,#b77f32 100%)!important;
  border:1px solid #d4aa62!important;box-shadow:inset 0 1px rgba(255,255,255,.78),0 5px 14px rgba(154,105,39,.20)!important;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.btn-outline-primary,.btn-outline-secondary,.ff19-btn-outline) {
  color:var(--ff89-blue)!important;background:var(--ff89-metal-soft)!important;border:1px solid var(--ff89-edge-strong)!important;
  box-shadow:inset 0 1px var(--ff89-edge-highlight),0 3px 9px rgba(20,67,112,.07)!important;
}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.btn-outline-primary,.btn-outline-secondary,.ff19-btn-outline),
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.btn-outline-primary,.btn-outline-secondary,.ff19-btn-outline) {color:#c8e6ff!important;background:linear-gradient(145deg,#1c3b54,#0d263b)!important;border-color:#5a829f!important;}
body.fansflex-app :is(.btn,.ff19-btn,.ff87-vault-compose,.ff86-quick-link):not(:disabled) {transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,filter .16s ease;}
@media(hover:hover) and (pointer:fine){body.fansflex-app :is(.btn,.ff19-btn,.ff87-vault-compose,.ff86-quick-link):not(:disabled):hover{transform:translateY(-1px);filter:brightness(1.035);}}

/* Tabs, filters, tables, pagination and status chips. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.nav-tabs,.ff19-tabs,.ff65-filter-tabs,.bookmarks-nav,.profile-content-tabs-nav) {
  border-bottom:1px solid var(--ff89-edge)!important;gap:5px;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.nav-tabs .nav-link,.ff19-tabs a,.ff19-tabs span,.ff65-filter-tab,.bookmarks-nav .nav-link,.profile-content-tabs-nav .nav-link) {
  color:var(--ff89-muted)!important;border-radius:10px 10px 0 0!important;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.nav-tabs .nav-link.active,.ff19-tabs .active,.ff65-filter-tab.active,.bookmarks-nav .active,.profile-content-tabs-nav .active) {
  color:var(--ff89-ink)!important;background:var(--ff89-metal)!important;border:1px solid var(--ff89-edge)!important;
  border-bottom-color:var(--ff89-panel)!important;box-shadow:inset 0 1px var(--ff89-edge-highlight),0 -2px 8px rgba(40,100,150,.07)!important;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-table,.settings-data-table,.settings-payments-table,.settings-subscriptions-table) {
  border-color:var(--ff89-edge)!important;color:var(--ff89-ink)!important;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-table,.settings-data-table,.settings-payments-table,.settings-subscriptions-table) :is(th,.settings-data-table-head,.settings-payments-table-head) {
  color:var(--ff89-muted)!important;background:var(--ff89-metal-soft)!important;border-color:var(--ff89-edge)!important;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-table,.settings-data-table,.settings-payments-table,.settings-subscriptions-table) td {color:var(--ff89-ink);border-color:var(--ff89-edge)!important;}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(.ff19-table,.settings-data-table,.settings-payments-table,.settings-subscriptions-table) tbody tr:hover {background:rgba(66,140,198,.075)!important;}
body.fansflex-app :is(.pagination .page-link,.settings-data-pagination a,.settings-payments-pagination a) {border-color:var(--ff89-edge)!important;color:var(--ff89-blue)!important;background:var(--ff89-metal-soft)!important;}
body.fansflex-app :is(.pagination .page-item.active .page-link,.settings-data-pagination .active a,.settings-payments-pagination .active a) {color:#fff!important;background:linear-gradient(145deg,#236ca8,#0c3d6b)!important;border-color:#347db4!important;}
body.fansflex-app :is(.badge,.ff19-pill,.ff20-create-badge,.ff59-live-badge) {box-shadow:inset 0 1px rgba(255,255,255,.22),0 2px 6px rgba(0,15,30,.08);}

/* Route-specific details: feed, vault, creator studio, messages and live room. */
body.fansflex-app.ff-route-feed :is(.ff-feed-filter-bar,.ff65-feed-controls,.ff65-filter-bar,.ff65-view-switch) {
  border:1px solid var(--ff89-edge)!important;border-radius:14px!important;background:var(--ff89-metal)!important;box-shadow:var(--ff89-shadow)!important;
}
body.fansflex-app.ff-route-feed :is(.ff-feed-post,.ff-widget,.ff-surface,.ff-quick,.ff79-feed-earnings,.ff69-inbox-widget,.ff68-recent-media-widget) {
  border:1px solid var(--ff89-edge)!important;border-radius:15px!important;background-color:var(--ff89-panel)!important;box-shadow:var(--ff89-shadow)!important;
}
body.fansflex-app.ff-route-my-vault-index #media-vault-page :is(.vault-toolbar,.vault-upload-zone,.vault-filter-field,.vault-search) {
  border-color:var(--ff89-edge)!important;background:var(--ff89-metal-soft)!important;color:var(--ff89-ink)!important;box-shadow:var(--ff89-shadow)!important;
}
body.fansflex-app.ff-route-my-vault-index #media-vault-page .vault-card {
  border:1px solid var(--ff89-edge)!important;border-radius:14px!important;background:var(--ff89-panel)!important;box-shadow:var(--ff89-shadow)!important;
}
body.fansflex-app.ff-route-my-vault-index #media-vault-page .vault-card:hover {border-color:var(--ff89-edge-strong)!important;box-shadow:var(--ff89-shadow-raised)!important;}
body.fansflex-app.ff-route-my-vault-index #media-vault-page .ff87-vault-title h1 {color:var(--ff89-ink)!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-my-vault-index #media-vault-page .ff87-vault-title h1,
html[data-theme="dark"] body.fansflex-app.ff-route-my-vault-index #media-vault-page .ff87-vault-title h1 {color:#f1f8ff!important;}
body.fansflex-app.ff-route-my-settings .ff86-quick-link:not(.is-active) {background:var(--ff89-metal)!important;border-color:var(--ff89-edge)!important;color:var(--ff89-ink)!important;box-shadow:var(--ff89-shadow)!important;}
body.fansflex-app.ff-route-my-settings .ff86-rate-preview {border-color:rgba(210,174,106,.68)!important;box-shadow:var(--ff89-shadow-raised)!important;}
body.fansflex-app.ff-route-my-settings .settings-content :is(.account-email-panel,.account-danger-panel,.settings-collapse-panel) {border:1px solid var(--ff89-edge)!important;border-radius:14px!important;box-shadow:var(--ff89-shadow)!important;}
body.fansflex-app.ff-route-my-settings .settings-content :is(.account-email-panel-header,.account-danger-panel-header,.settings-collapse-panel-header) {border-color:var(--ff89-edge)!important;}
body.fansflex-app.ff-route-my-settings .settings-content :is(.account-email-panel-body,.account-danger-panel-body,.settings-collapse-panel-body) {background:var(--ff89-panel)!important;color:var(--ff89-ink)!important;}
body.fansflex-app.ff-route-broadcast :is(.ff59-preview-stage,.ff59-live-chat-panel,.ff59-broadcast-toolbar,.ff59-live-header) {border:1px solid var(--ff89-edge)!important;border-radius:14px!important;box-shadow:var(--ff89-shadow)!important;}
body.fansflex-app.ff-route-posts-create :is(.ff60-creator-page,.ff20-create-post) {border:1px solid var(--ff89-edge)!important;border-radius:16px!important;box-shadow:var(--ff89-shadow)!important;}
body.fansflex-app.ff-route-my-messenger-get :is(.messenger-shell,.messenger-sidebar,.message-templates-panel) {border-color:var(--ff89-edge)!important;box-shadow:var(--ff89-shadow)!important;}

/* Modal, dropdown, offcanvas and popover surfaces match the current theme. */
body.fansflex-app :is(.modal-content,.offcanvas,.dropdown-menu,.popover,.toast,.alert) {
  border-color:var(--ff89-edge)!important;box-shadow:var(--ff89-shadow-raised)!important;
}
html[data-bs-theme="light"] body.fansflex-app :is(.modal-content,.offcanvas,.dropdown-menu,.popover,.toast),
html[data-theme="light"] body.fansflex-app :is(.modal-content,.offcanvas,.dropdown-menu,.popover,.toast) {background:var(--ff89-metal)!important;color:var(--ff89-ink)!important;}
html[data-bs-theme="dark"] body.fansflex-app :is(.modal-content,.offcanvas,.dropdown-menu,.popover,.toast),
html[data-theme="dark"] body.fansflex-app :is(.modal-content,.offcanvas,.dropdown-menu,.popover,.toast) {background:linear-gradient(145deg,#193850,#0b2134)!important;color:#edf6ff!important;}
body.fansflex-app :is(.modal-header,.modal-footer,.offcanvas-header,.dropdown-divider) {border-color:var(--ff89-edge)!important;}
body.fansflex-app .dropdown-item {color:var(--ff89-ink)!important;border-radius:9px;}
body.fansflex-app .dropdown-item:hover {background:rgba(55,132,194,.12)!important;color:var(--ff89-ink)!important;}

/* Desktop generic shell and global theme switch. Marketing landing is a separate layout. */
body.fansflex-generic .navbar:not(.app-navbar-home) {
  background:linear-gradient(112deg,#071827 0%,#12344e 54%,#071827 100%)!important;
  border-bottom:1px solid rgba(153,195,225,.30)!important;
  box-shadow:0 5px 22px rgba(0,12,28,.20),inset 0 1px rgba(255,255,255,.09)!important;
}
body.fansflex-generic .navbar:not(.app-navbar-home) :is(.nav-link,.navbar-brand,.navbar-toggler) {color:#edf6ff!important;}
body.fansflex-generic .navbar:not(.app-navbar-home) .navbar-user-menu {background:var(--ff89-metal)!important;color:var(--ff89-ink)!important;}
body.fansflex-generic .ff89-generic-theme {margin-left:12px;}
body.fansflex-generic .ff89-generic-mobile-theme {padding:9px 12px 5px;border-top:1px solid var(--ff89-edge);}
body.fansflex-generic .ff89-generic-mobile-theme .ff88-theme-toggle {width:100%;justify-content:flex-start;}
body.fansflex-generic .ff88-theme-toggle,
body.fansflex-app .ff88-theme-toggle {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;min-width:40px;
  padding:7px 10px;border:1px solid var(--ff89-edge-strong)!important;border-radius:11px;
  color:var(--ff89-ink)!important;background:var(--ff89-metal)!important;box-shadow:var(--ff89-shadow)!important;
  font:700 11px/1.2 Inter,"Open Sans",sans-serif;white-space:nowrap;cursor:pointer;
}
body.fansflex-app .ff89-mobile-theme {padding:8px 12px 4px;border-top:1px solid var(--ff89-edge);}
body.fansflex-app .ff89-mobile-theme .ff88-theme-toggle {width:100%;justify-content:flex-start;}
body.fansflex-generic .ff89-theme-caption,
body.fansflex-app .ff89-theme-caption {display:block;margin:0 0 6px;color:var(--ff89-muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;}
body.fansflex-generic .ff88-theme-toggle svg,
body.fansflex-app .ff88-theme-toggle svg {width:17px;height:17px;flex:none;stroke:currentColor;}
html[data-bs-theme="dark"] .ff88-theme-toggle .ff88-icon-moon,
html[data-bs-theme="light"] .ff88-theme-toggle .ff88-icon-sun,
html[data-theme="dark"] .ff88-theme-toggle .ff88-icon-moon,
html[data-theme="light"] .ff88-theme-toggle .ff88-icon-sun {display:none;}
html[data-bs-theme="light"] .ff88-theme-toggle .ff88-icon-moon,
html[data-bs-theme="dark"] .ff88-theme-toggle .ff88-icon-sun,
html[data-theme="light"] .ff88-theme-toggle .ff88-icon-moon,
html[data-theme="dark"] .ff88-theme-toggle .ff88-icon-sun {display:block;}
body.fansflex-app .ff88-theme-toggle:is(:hover,:focus-visible),
body.fansflex-generic .ff88-theme-toggle:is(:hover,:focus-visible) {
  border-color:var(--ff89-blue)!important;box-shadow:var(--ff89-shadow-raised),var(--ff89-shadow-focus)!important;
}

/* Mobile controls remain reachable without widening the bottom navigation. */
@media(max-width:520px){
  body.fansflex-generic .ff89-generic-mobile-theme .ff88-theme-toggle,
  body.fansflex-app .ff89-mobile-theme .ff88-theme-toggle {min-height:40px;padding:8px 11px;}
  body.fansflex-generic .ff89-generic-theme {margin:0 0 0 7px;}
  body.fansflex-generic .ff89-generic-theme .ff88-theme-toggle {min-width:34px;min-height:34px;padding:6px;}
  body.fansflex-app .ff89-mobile-theme .ff88-theme-toggle [data-ff88-theme-label],
  body.fansflex-generic .ff89-generic-mobile-theme .ff88-theme-toggle [data-ff88-theme-label] {display:inline;}
}
@media(max-width:767px){
  body.fansflex-app.ff-route-my-settings .settings-menu-wrapper {padding:8px!important;}
  body.fansflex-app.ff-route-my-settings .settings-content :is(.settings-data-page,.settings-payments-page) {max-width:100%;}
  body.fansflex-app.ff-route-my-settings .settings-content :is(.settings-data-table,.settings-payments-table,.settings-subscriptions-table) {max-width:100%;}
  body.fansflex-app.ff-route-my-settings .ff21-settings-hero {box-shadow:var(--ff89-shadow)!important;}
}
@media(prefers-reduced-motion:reduce){
  body.fansflex-app :is(.btn,.ff19-btn,.ff87-vault-compose,.ff86-quick-link),
  body.fansflex-generic .ff88-theme-toggle {transition:none!important;}
}

/* Generic shell canvas and mobile bottom navigation use the same blue-metal identity. */
body.fansflex-generic {background:var(--ff89-canvas)!important;color:var(--ff89-ink)!important;}
body.fansflex-generic .navbar-user-menu {border:1px solid var(--ff89-edge)!important;box-shadow:var(--ff89-shadow-raised)!important;}
body.fansflex-app .ff-mobile-nav-shell .mobile-bottom-nav {
  background:linear-gradient(145deg,#071b30 0%,#123b60 58%,#071a2d 100%)!important;
  border-top:1px solid rgba(147,194,229,.44)!important;
  box-shadow:0 -8px 25px rgba(0,13,30,.24),inset 0 1px rgba(255,255,255,.13)!important;
}
body.fansflex-app .ff-mobile-nav-shell .mobile-bottom-nav .nav-link {color:#d8e9f8!important;border:1px solid transparent!important;border-radius:11px!important;}
body.fansflex-app .ff-mobile-nav-shell .mobile-bottom-nav .nav-link:is(:hover,:focus-visible) {border-color:rgba(148,203,244,.34)!important;background:rgba(100,168,218,.13)!important;}
body.fansflex-app .ff-mobile-nav-shell .mobile-bottom-nav .nav-link.active {
  color:#fff!important;border-color:#4a9ddd!important;
  background:linear-gradient(145deg,#1c75bb,#0b3d70)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.24),0 0 14px rgba(42,150,232,.24)!important;
}
body.fansflex-app .ff-mobile-nav-shell .mobile-bottom-nav .icon-wrapper {color:inherit!important;}
body.fansflex-app .ff89-mobile-theme .ff88-theme-toggle {color:var(--ff89-ink)!important;}
body.fansflex-generic .ff89-generic-mobile-theme .ff88-theme-toggle {color:var(--ff89-ink)!important;}

/* Generic forms/errors remain polished even when the authenticated shell is absent. */
body.fansflex-generic :is(.card,.alert,.form-control,.form-select,.input-group-text) {border-color:var(--ff89-edge)!important;}
body.fansflex-generic :is(.card,.alert) {box-shadow:var(--ff89-shadow)!important;border-radius:15px!important;}
body.fansflex-generic :is(.form-control,.form-select) {background:var(--ff89-control)!important;color:var(--ff89-ink)!important;}
html[data-bs-theme="dark"] body.fansflex-generic :is(.form-control,.form-select),
html[data-theme="dark"] body.fansflex-generic :is(.form-control,.form-select) {background:#0b2135!important;color:#edf6ff!important;}

/* Keyboard focus is visible against both the silver and navy surfaces. */
body.fansflex-app :is(a,button,[role="button"],input,select,textarea):focus-visible,
body.fansflex-generic :is(a,button,[role="button"],input,select,textarea):focus-visible {
  outline:2px solid #59a9e6!important;outline-offset:3px;
}

/* Legacy feed uses .post-box rather than the newer .ff-feed-post hook.
   Theme the real article shell while leaving its photographs untouched. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box {
  color:var(--ff89-ink)!important;background-color:var(--ff89-panel-raised)!important;
  border:1px solid var(--ff89-edge)!important;border-radius:15px!important;box-shadow:var(--ff89-shadow)!important;
}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box :is(.post-content,.post-header,.post-footer,.post-details) {color:var(--ff89-ink)!important;}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box .text-muted {color:var(--ff89-muted)!important;}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box .post-footer {border-top:1px solid var(--ff89-edge)!important;}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box,
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box {
  background:linear-gradient(145deg,#18364e 0%,#0d263a 58%,#17344b 100%)!important;
  border-color:rgba(139,188,222,.43)!important;color:#edf6ff!important;
  box-shadow:0 3px 7px rgba(0,5,14,.36),0 14px 30px rgba(0,7,18,.28),inset 0 1px rgba(231,247,255,.13)!important;
}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box :is(.post-content,.post-header,.post-footer,.post-details),
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box :is(.post-content,.post-header,.post-footer,.post-details) {color:#edf6ff!important;}
html[data-bs-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box .text-muted,
html[data-theme="dark"] body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) .post-box .text-muted {color:#aac4d9!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed :is(.ff-plan-row,.ff79-qa-person),
html[data-theme="dark"] body.fansflex-app.ff-route-feed :is(.ff-plan-row,.ff79-qa-person) {color:#e8f3fc!important;border-color:rgba(143,190,221,.25)!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff-plan-row :is(span,strong),
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff-plan-row :is(span,strong) {color:#e8f3fc!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff79-qa-person small,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff79-qa-person small {color:#a9c2d6!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff79-qa-rate,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff79-qa-rate {background:linear-gradient(145deg,#1b3b55,#0d263a)!important;color:#c6e5ff!important;border-color:#557f9f!important;}
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace),
body.fansflex-generic {background-color:var(--ff89-canvas)!important;color:var(--ff89-ink);}

/* Explicit dark treatment for legacy feed controls that ship their own white gradients. */
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed :is(.ff-widget,.ff-surface,.ff-quick,.ff79-feed-earnings,.ff69-inbox-widget,.ff68-recent-media-widget,.ff-feed-filter-bar,.ff65-feed-controls),
html[data-theme="dark"] body.fansflex-app.ff-route-feed :is(.ff-widget,.ff-surface,.ff-quick,.ff79-feed-earnings,.ff69-inbox-widget,.ff68-recent-media-widget,.ff-feed-filter-bar,.ff65-feed-controls) {
  color:#edf6ff!important;background:linear-gradient(145deg,#1a3a54 0%,#0c2438 58%,#17364f 100%)!important;
  border-color:rgba(139,188,222,.43)!important;
  box-shadow:0 3px 7px rgba(0,5,14,.36),0 14px 30px rgba(0,7,18,.28),inset 0 1px rgba(231,247,255,.13)!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed :is(.ff-widget,.ff-surface,.ff79-feed-earnings,.ff69-inbox-widget,.ff68-recent-media-widget) :is(h2,h3,h4,p,span,small,strong,b,dt,dd),
html[data-theme="dark"] body.fansflex-app.ff-route-feed :is(.ff-widget,.ff-surface,.ff79-feed-earnings,.ff69-inbox-widget,.ff68-recent-media-widget) :is(h2,h3,h4,p,span,small,strong,b,dt,dd) {color:#eaf4fc!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff-quick,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff-quick {text-decoration:none!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-footer,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-footer {
  background:linear-gradient(145deg,#102b41,#0b2032)!important;color:#eaf4fc!important;border-color:rgba(139,188,222,.35)!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-footer :is(a,button,ion-icon),
html[data-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-footer :is(a,button,ion-icon) {color:#dceeff!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff79-feed-earnings :is(.ff79-feed-amount,.ff79-feed-trend,.ff79-feed-earnings-bottom),
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff79-feed-earnings :is(.ff79-feed-amount,.ff79-feed-trend,.ff79-feed-earnings-bottom) {color:#f0f7ff!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff79-feed-earnings-cta,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff79-feed-earnings-cta {background:linear-gradient(145deg,#e9f3fb,#c8dff0)!important;color:#153b5b!important;border-color:#9dbbd2!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff79-feed-wallet-link,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff79-feed-wallet-link {color:#c3e3fc!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff-quick :is(span,strong,ion-icon,svg),
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff-quick :is(span,strong,ion-icon,svg) {color:#eaf4fc!important;stroke:currentColor;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .ff-quick span:first-child,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .ff-quick span:first-child {color:#e6c27d!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-header a,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-header a {color:#eaf4fc!important;}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-header .text-muted,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-header a.text-muted,
html[data-theme="dark"] body.fansflex-app.ff-route-feed .post-box .post-header .text-muted {color:#a9c4d8!important;}
/* The approved feed reference intentionally keeps the earnings insight card navy in Light mode too. */
body.fansflex-app.ff-route-feed .ff79-feed-earnings {
  color:#edf6ff!important;background:linear-gradient(145deg,#173c59 0%,#0a2237 60%,#153750 100%)!important;
  border-color:rgba(112,169,211,.46)!important;
  box-shadow:0 7px 19px rgba(9,37,67,.19),inset 0 1px rgba(236,248,255,.16)!important;
}
body.fansflex-app.ff-route-feed .ff79-feed-earnings :is(h2,h3,h4,p,span,small,strong,b,dt,dd) {color:#edf6ff!important;}
body.fansflex-app.ff-route-feed .ff79-feed-earnings :is(.ff79-feed-amount,.ff79-feed-earnings-bottom strong) {color:#fff!important;}
body.fansflex-app.ff-route-feed .ff79-feed-earnings .ff79-feed-earnings-cta {color:#153b5b!important;background:linear-gradient(145deg,#f7fbff,#dcecf8)!important;border-color:#a7c6dc!important;}
body.fansflex-app.ff-route-feed .ff79-feed-earnings .ff79-feed-wallet-link {color:#c9e7fb!important;}
/* Higher-specificity rule preserves the reference's always-navy earnings insight card in both modes. */
body.fansflex-app.ff-route-feed .ff-widget.ff-surface.ff79-feed-earnings {
  background-color:#0a2237!important;
  background-image:linear-gradient(145deg,#173c59 0%,#0a2237 60%,#153750 100%)!important;
  color:#edf6ff!important;border-color:rgba(112,169,211,.46)!important;
}
body.fansflex-app.ff-route-feed .ff-widget.ff-surface.ff79-feed-earnings :is(h2,h3,h4,p,span,small,strong,b,dt,dd) {color:#edf6ff!important;}
