/* SlugLift signed-in appearance switch. The light theme remains the existing UI. */
.nf-theme-toggle{
    position:relative;
    display:inline-flex;
    flex:0 0 58px;
    align-items:center;
    justify-content:space-between;
    width:58px;
    height:32px;
    min-height:32px;
    margin:0 10px 0 0;
    padding:0 8px;
    overflow:hidden;
    border:1px solid #cbd5e1;
    border-radius:999px;
    color:#344054;
    background:#e9eef6;
    box-shadow:inset 0 1px 2px rgba(15,23,42,.08);
    cursor:pointer;
}
.nf-theme-toggle-sun,.nf-theme-toggle-moon{
    position:relative;
    z-index:2;
    display:grid;
    width:16px;
    height:16px;
    place-items:center;
    font-size:12px;
    line-height:1;
    pointer-events:none;
}
.nf-theme-toggle-moon{color:#52647e}
.nf-theme-toggle-thumb{
    position:absolute;
    top:3px;
    left:3px;
    z-index:1;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 2px 7px rgba(15,23,42,.22);
    transition:transform .2s ease,background-color .2s ease;
    pointer-events:none;
}
.nf-theme-toggle[aria-pressed="true"]{
    border-color:#3c4654;
    color:#8492a6;
    background:#20262f;
}
.nf-theme-toggle[aria-pressed="true"] .nf-theme-toggle-moon{color:#fff}
.nf-theme-toggle[aria-pressed="true"] .nf-theme-toggle-thumb{
    transform:translateX(26px);
    background:#1661ea;
}
.nf-theme-toggle:hover{border-color:#1661ea}
.nf-theme-toggle:focus-visible{
    outline:3px solid rgba(239,159,11,.45)!important;
    outline-offset:3px;
}

/* Features-page toggle uses the SlugLift blue, navy and gold palette. */
body.nf-features-surface .nf-theme-toggle{
    width:58px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 8px!important;
    border-color:#b7c9ed!important;
    border-radius:999px!important;
    color:#1661ea!important;
    background:#edf4ff!important;
    box-shadow:inset 0 1px 2px rgba(22,97,234,.12)!important;
}
body.nf-features-surface .nf-theme-toggle-sun{color:#8a5200!important}
body.nf-features-surface .nf-theme-toggle-moon{color:#1661ea!important}
body.nf-features-surface .nf-theme-toggle-thumb{background:#fff!important}
body.nf-features-surface .nf-theme-toggle:hover{
    border-color:#1661ea!important;
    background:#e3edff!important;
}
body.nf-theme-dark.nf-features-surface .nf-theme-toggle{
    border-color:#465363!important;
    color:#cbd5e1!important;
    background:#182231!important;
    box-shadow:inset 0 1px 3px rgba(0,0,0,.35)!important;
}
body.nf-theme-dark.nf-features-surface .nf-theme-toggle-sun{color:#ef9f0b!important}
body.nf-theme-dark.nf-features-surface .nf-theme-toggle-moon{color:#9fc0ff!important}
body.nf-theme-dark.nf-features-surface .nf-theme-toggle-thumb{background:#1661ea!important}
body.nf-theme-dark.nf-features-surface .nf-theme-toggle:hover{
    border-color:#5f98ff!important;
    background:#202d40!important;
}

body.nf-theme-dark{
    --nf-app-bg:#0e1116;
    --nf-app-bg-soft:#12161c;
    --nf-app-surface:#181d24;
    --nf-app-surface-2:#202630;
    --nf-app-surface-3:#272e39;
    --nf-app-border:#343d49;
    --nf-app-border-soft:#29313b;
    --nf-app-text:#f5f7fb;
    --nf-app-muted:#a7b1c0;
    --nf-app-subtle:#8f9aaa;
    --nf-app-blue:#5f98ff;
    --nf-app-blue-strong:#1661ea;
    --nf-app-gold:#ef9f0b;
    --nf-app-success:#45d49a;
    --nf-app-warning:#ffd27a;
    --nf-app-danger:#ff8799;
    --nf-app-info:#8db6ff;
    color-scheme:dark;
    color:var(--nf-app-text);
    background:var(--nf-app-bg);
}

/* Global signed-in frame. */
body.nf-theme-dark .nf-navbar{
    border-bottom-color:var(--nf-app-border)!important;
    background:rgba(14,17,22,.96)!important;
    box-shadow:0 8px 28px rgba(0,0,0,.26)!important;
}
body.nf-theme-dark .nf-logo-text,
body.nf-theme-dark .nf-nav-links a{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-nav-links a:hover{
    color:#fff!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-mobile-menu-toggle{border-color:var(--nf-app-border)!important;background:var(--nf-app-surface)!important}
body.nf-theme-dark .nf-mobile-menu-toggle span{background:var(--nf-app-text)!important}
body.nf-theme-dark .nf-account-dropdown-toggle,
body.nf-theme-dark .nf-navbar .nf-account-main-link{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface)!important;
}
body.nf-theme-dark .nf-account-dropdown-menu{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface)!important;
    box-shadow:0 22px 55px rgba(0,0,0,.42)!important;
}
body.nf-theme-dark .nf-account-dropdown-user{border-bottom-color:var(--nf-app-border-soft)!important}
body.nf-theme-dark .nf-account-dropdown-user strong,
body.nf-theme-dark .nf-account-dropdown-user span,
body.nf-theme-dark .nf-account-dropdown-menu>a{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-account-dropdown-menu>a:hover{
    color:#fff!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-account-dropdown-menu>a.nf-account-dropdown-logout{color:#f87171!important}

body.nf-theme-dark .nf-account-page{
    color:var(--nf-app-text)!important;
    background:
        radial-gradient(circle at 92% 2%,rgba(22,97,234,.18),transparent 26%),
        radial-gradient(circle at 5% 96%,rgba(239,159,11,.08),transparent 28%),
        var(--nf-app-bg)!important;
}
body.nf-theme-dark .nf-account-shell{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface)!important;
    box-shadow:0 24px 70px rgba(0,0,0,.34)!important;
}
body.nf-theme-dark .nf-account-sidebar{
    border-color:var(--nf-app-border)!important;
    background:#12161c!important;
}
body.nf-theme-dark .nf-account-main{background:var(--nf-app-surface)!important}
body.nf-theme-dark .nf-account-user{border-bottom-color:var(--nf-app-border-soft)!important}
body.nf-theme-dark .nf-account-user strong,
body.nf-theme-dark .nf-account-hero h1,
body.nf-theme-dark .nf-account-section-heading h1,
body.nf-theme-dark .nf-account-workspace-heading h2,
body.nf-theme-dark .nf-account-panel h2,
body.nf-theme-dark .nf-account-form-heading h2,
body.nf-theme-dark .nf-saved-card h2,
body.nf-theme-dark .nf-account-plan-grid h2,
body.nf-theme-dark .nf-billing-grid strong{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-account-user span,
body.nf-theme-dark .nf-account-hero p,
body.nf-theme-dark .nf-account-section-heading p,
body.nf-theme-dark .nf-account-workspace-heading p,
body.nf-theme-dark .nf-account-panel p,
body.nf-theme-dark .nf-account-form-heading p,
body.nf-theme-dark .nf-account-history-empty,
body.nf-theme-dark .nf-account-details dt,
body.nf-theme-dark .nf-account-details dd,
body.nf-theme-dark .nf-billing-grid p,
body.nf-theme-dark .nf-saved-card-meta span{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-account-eyebrow{color:var(--nf-app-gold)!important}
body.nf-theme-dark .nf-account-avatar{
    background:linear-gradient(135deg,var(--nf-app-blue-strong),#0b3e9e)!important;
    box-shadow:0 8px 20px rgba(22,97,234,.28)!important;
}
body.nf-theme-dark .nf-account-menu>a{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-account-menu>a>span{color:var(--nf-app-subtle)!important}
body.nf-theme-dark .nf-account-menu>a:hover,
body.nf-theme-dark .nf-account-menu>a.is-active{
    color:#fff!important;
    background:linear-gradient(90deg,rgba(22,97,234,.34),rgba(22,97,234,.12))!important;
}
body.nf-theme-dark .nf-account-menu>a.is-active{box-shadow:inset 3px 0 0 var(--nf-app-gold)}
body.nf-theme-dark .nf-account-logout{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-account-logout:hover{color:#f87171!important}
body.nf-theme-dark .nf-account-plan{
    border-color:rgba(95,152,255,.45)!important;
    color:#c9dcff!important;
    background:rgba(22,97,234,.18)!important;
}
body.nf-theme-dark .nf-account-workspace,
body.nf-theme-dark .nf-account-tools{border-top-color:var(--nf-app-border-soft)!important}

/* Account cards, forms, tables, and history. */
body.nf-theme-dark :is(
    .nf-account-stats article,
    .nf-account-panel,
    .nf-account-form-card,
    .nf-saved-card,
    .nf-billing-grid article,
    .nf-billing-management-card,
    .nf-account-plan-grid article,
    .nf-credit-usage-card,
    .nf-credit-ledger-card,
    .nf-account-empty-state,
    .nf-account-empty-row
){
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface-2)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-account-start{
    background:linear-gradient(140deg,rgba(22,97,234,.13),rgba(239,159,11,.05))!important;
}
body.nf-theme-dark .nf-account-stats span,
body.nf-theme-dark .nf-account-stats small,
body.nf-theme-dark .nf-account-plan-grid li,
body.nf-theme-dark .nf-credit-ledger small{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-account-stats strong,
body.nf-theme-dark .nf-account-details dd,
body.nf-theme-dark .nf-saved-card-meta strong,
body.nf-theme-dark .nf-credit-ledger strong{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-account-details>div,
body.nf-theme-dark .nf-billing-history-row,
body.nf-theme-dark .nf-credit-ledger>div+div{border-color:var(--nf-app-border-soft)!important}
body.nf-theme-dark .nf-account-history a{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-2)!important;
}
body.nf-theme-dark .nf-account-history a:hover{
    border-color:var(--nf-app-blue)!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark :is(input,select,textarea){
    border-color:#46515f!important;
    color:var(--nf-app-text)!important;
    background:#131820!important;
}
body.nf-theme-dark :is(input,textarea)::placeholder{color:#7e8998!important}
body.nf-theme-dark option{color:var(--nf-app-text);background:#131820}
body.nf-theme-dark .nf-account-secondary,
body.nf-theme-dark .nf-live-result-save,
body.nf-theme-dark .nf-saved-card-actions button{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-3)!important;
}

/* Guided discovery and its results. */
body.nf-theme-dark .nf-discovery-intro p,
body.nf-theme-dark .nf-discovery-divider,
body.nf-theme-dark .nf-discovery-summary>p,
body.nf-theme-dark .nf-discovery-summary>small,
body.nf-theme-dark .nf-discovery-summary dt,
body.nf-theme-dark .nf-discovery-option small,
body.nf-theme-dark .nf-discovery-loading,
body.nf-theme-dark .nf-discovery-empty{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-discovery-plan-pill{
    border-color:rgba(95,152,255,.38)!important;
    background:rgba(22,97,234,.15)!important;
}
body.nf-theme-dark .nf-discovery-plan-pill strong{color:#8db6ff!important}
body.nf-theme-dark .nf-discovery-plan-pill span{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-discovery-divider:before,
body.nf-theme-dark .nf-discovery-divider:after{background:var(--nf-app-border)!important}
body.nf-theme-dark .nf-discovery-browser,
body.nf-theme-dark .nf-discovery-summary{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface-2)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-discovery .nf-discovery-collections button,
body.nf-theme-dark .nf-discovery button.nf-discovery-option{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-2)!important;
}
body.nf-theme-dark .nf-discovery .nf-discovery-collections button strong,
body.nf-theme-dark .nf-discovery button.nf-discovery-option strong,
body.nf-theme-dark .nf-discovery-stage-head h4,
body.nf-theme-dark .nf-discovery-summary h4,
body.nf-theme-dark .nf-discovery-summary dd{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-discovery .nf-discovery-collections button small{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-discovery .nf-discovery-collections button:hover,
body.nf-theme-dark .nf-discovery .nf-discovery-collections button:focus-visible,
body.nf-theme-dark .nf-discovery button.nf-discovery-option:hover,
body.nf-theme-dark .nf-discovery button.nf-discovery-option:focus-visible{
    border-color:var(--nf-app-blue)!important;
    color:#fff!important;
    background:var(--nf-app-surface-3)!important;
    outline-color:rgba(95,152,255,.2)!important;
}
body.nf-theme-dark .nf-discovery .nf-discovery-collections button.is-selected,
body.nf-theme-dark .nf-discovery button.nf-discovery-option.is-selected{
    border-color:var(--nf-app-blue)!important;
    color:#fff!important;
    background:linear-gradient(135deg,rgba(22,97,234,.28),rgba(239,159,11,.08))!important;
    outline-color:rgba(95,152,255,.18)!important;
}
body.nf-theme-dark .nf-discovery .nf-discovery-breadcrumbs button,
body.nf-theme-dark .nf-discovery .nf-discovery-stage-head button{
    border-color:var(--nf-app-border)!important;
    color:#bcd3ff!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-discovery .nf-discovery-breadcrumbs button:disabled{
    border-color:var(--nf-app-border-soft)!important;
    color:#8793a3!important;
    background:#171c23!important;
}
body.nf-theme-dark .nf-discovery-summary dl div{border-bottom-color:var(--nf-app-border-soft)!important}
body.nf-theme-dark .nf-free-ad-slot{
    border-color:#4a5563!important;
    color:#7f8a9a!important;
    background:#151a21!important;
}
body.nf-theme-dark .nf-search-results-section{background:transparent!important}
body.nf-theme-dark .nf-search-message,
body.nf-theme-dark .nf-results-plan-message{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-2)!important;
}
body.nf-theme-dark .nf-results-plan-message p,
body.nf-theme-dark .nf-results-plan-message small{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-results-plan-message span{color:var(--nf-app-gold)!important}
body.nf-theme-dark .nf-live-result-card{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface-2)!important;
    box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
}
body.nf-theme-dark .nf-live-result-card h3,
body.nf-theme-dark .nf-live-result-meta strong{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-live-result-meta div{
    border-color:var(--nf-app-border-soft)!important;
    background:#171c23!important;
}
body.nf-theme-dark .nf-live-result-meta span{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-live-result-category{
    color:#bcd3ff!important;
    background:rgba(22,97,234,.18)!important;
}
body.nf-theme-dark .nf-live-result-score{
    color:#ffd78a!important;
    background:rgba(239,159,11,.12)!important;
}

/* Reports use the same preference so the application feels continuous. */
body.nf-theme-dark .nf-report-page,
body.nf-theme-dark .nf-premium-report{color:var(--nf-app-text)!important;background:var(--nf-app-bg)!important}
body.nf-theme-dark :is(
    .nf-report-hero,.nf-report-stat,.nf-report-overview,.nf-report-library,
    .nf-premium-preview-section,.nf-premium-preview-card,.nf-premium-section,
    .nf-data-snapshot-card,.nf-quick-verdict-section,.nf-score-explanation,
    .nf-content-ideas-section,.nf-related-niches-section,.nf-related-niche-card
){
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-report-page :is(h1,h2,h3,h4,strong),
body.nf-theme-dark .nf-premium-report :is(h1,h2,h3,h4,strong){color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-report-page :is(p,small,li,dt,dd),
body.nf-theme-dark .nf-premium-report :is(p,small,li,dt,dd){color:var(--nf-app-muted)!important}
body.nf-theme-dark :is(.nf-premium-table th,.nf-premium-table td){border-color:var(--nf-app-border)!important;color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-premium-table th{background:var(--nf-app-surface-3)!important}
body.nf-theme-dark .nf-premium-table td{background:var(--nf-app-surface-2)!important}

/* Keep the support panel readable while the application is dark. */
body.nf-theme-dark .nf-support-panel{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface)!important;
    box-shadow:0 24px 65px rgba(0,0,0,.45)!important;
}
body.nf-theme-dark .nf-support-conversation,
body.nf-theme-dark .nf-support-ticket-form{background:var(--nf-app-bg-soft)!important}
body.nf-theme-dark .nf-support-message.is-bot{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-2)!important;
}
body.nf-theme-dark .nf-support-quick-actions button{
    border-color:var(--nf-app-border)!important;
    color:#c9dcff!important;
    background:var(--nf-app-surface-2)!important;
}

/*
 * Complete contrast pass. Every nested application surface receives its own
 * dark background before light text is applied. This prevents inherited white
 * headings or muted copy from disappearing on legacy white component cards.
 */
body.nf-theme-dark .nf-account-main :is(h1,h2,h3,h4,h5,h6,strong),
body.nf-theme-dark .nf-report-page :is(h1,h2,h3,h4,h5,h6,strong),
body.nf-theme-dark .nf-premium-report :is(h1,h2,h3,h4,h5,h6,strong){
    color:var(--nf-app-text)!important;
}
body.nf-theme-dark .nf-account-main :is(p,small,dt,dd,li,label),
body.nf-theme-dark .nf-report-page :is(p,small,dt,dd,li),
body.nf-theme-dark .nf-premium-report :is(p,small,dt,dd,li){
    color:var(--nf-app-muted)!important;
}

/* Account overview, settings, saved, reports, plans, and billing. */
body.nf-theme-dark :is(
    .nf-plan-usage-card>div,
    .nf-report-library article,
    .nf-account-billing-link,
    .nf-credit-ledger>div,
    .nf-billing-history,
    .nf-billing-history-row,
    .nf-account-section-summary
){
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface-2)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-account-plan-grid article.is-current{
    border-color:var(--nf-app-blue)!important;
    box-shadow:0 0 0 2px rgba(95,152,255,.12)!important;
}
body.nf-theme-dark .nf-account-usage-bar{
    background:#303844!important;
}
body.nf-theme-dark .nf-account-usage-bar span{
    background:linear-gradient(90deg,var(--nf-app-blue-strong),var(--nf-app-blue))!important;
}
body.nf-theme-dark .nf-account-panel-icon,
body.nf-theme-dark .nf-account-empty-state>span{
    color:#bcd3ff!important;
    background:rgba(22,97,234,.22)!important;
}
body.nf-theme-dark .nf-account-notice{
    border-color:rgba(69,212,154,.38)!important;
    color:#91eabf!important;
    background:rgba(24,115,66,.22)!important;
}
body.nf-theme-dark .nf-auth-alert-error{
    border-color:rgba(255,135,153,.38)!important;
    color:#ffc0ca!important;
    background:rgba(180,35,63,.19)!important;
}
body.nf-theme-dark .nf-auth-alert-error p{color:#ffc0ca!important}
body.nf-theme-dark .nf-account-section-summary{
    border-color:rgba(95,152,255,.4)!important;
    background:rgba(22,97,234,.15)!important;
}
body.nf-theme-dark .nf-account-section-summary strong{color:#8db6ff!important}
body.nf-theme-dark .nf-account-section-summary span{color:var(--nf-app-muted)!important}
body.nf-theme-dark :is(
    .nf-account-inline-link,
    .nf-account-start a,
    .nf-account-billing-link a,
    .nf-billing-history-row a,
    .nf-report-library>article>div:first-child>span,
    .nf-saved-card>span
){color:var(--nf-app-info)!important}
body.nf-theme-dark :is(.nf-account-inline-link,.nf-account-start a,.nf-account-billing-link a,.nf-billing-history-row a):hover{
    color:#c9dcff!important;
}
body.nf-theme-dark .nf-subscription-inline-actions>a,
body.nf-theme-dark .nf-billing-management-card>a{color:var(--nf-app-info)!important}
body.nf-theme-dark .nf-account-secure{
    color:#91eabf!important;
    background:rgba(24,115,66,.22)!important;
}
body.nf-theme-dark .nf-account-menu small{
    color:var(--nf-app-muted)!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-account-plan-grid article>span{
    color:#bcd3ff!important;
    background:rgba(22,97,234,.2)!important;
}
body.nf-theme-dark .nf-account-plan-grid article>strong{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-account-plan-grid article>strong small{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-account-plan-grid li::before{color:var(--nf-app-success)!important}
body.nf-theme-dark .nf-account-plan-grid article>button,
body.nf-theme-dark .nf-account-plan-grid article>form>button:disabled,
body.nf-theme-dark .nf-account-page button.nf-account-subscription-button:disabled{
    border:1px solid var(--nf-app-border)!important;
    color:#9aa6b6!important;
    -webkit-text-fill-color:#9aa6b6!important;
    background:var(--nf-app-surface-3)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-report-library-actions a:not(:first-child),
body.nf-theme-dark .nf-saved-card-actions button,
body.nf-theme-dark .nf-report-account-actions :is(a,button){
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark :is(.nf-saved-card-actions button.is-saved,.nf-live-result-save.is-saved,.nf-report-action-save.is-saved){
    border-color:rgba(69,212,154,.38)!important;
    color:#91eabf!important;
    background:rgba(24,115,66,.22)!important;
}
body.nf-theme-dark .nf-billing-history-row{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-billing-history-row.is-heading{
    color:var(--nf-app-muted)!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-billing-status{
    color:#c6cfdb!important;
    background:#303844!important;
}
body.nf-theme-dark .nf-billing-status.is-completed{
    color:#91eabf!important;
    background:rgba(24,115,66,.24)!important;
}
body.nf-theme-dark .nf-credit-ledger{border-color:var(--nf-app-border)!important}
body.nf-theme-dark .nf-credit-ledger .is-credit{color:var(--nf-app-success)!important}
body.nf-theme-dark .nf-credit-ledger .is-debit{color:var(--nf-app-danger)!important}
body.nf-theme-dark .nf-credit-ledger :is(.is-credit,.is-debit) small{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-credit-notice{
    border-color:rgba(95,152,255,.4)!important;
    color:var(--nf-app-text)!important;
    background:rgba(22,97,234,.15)!important;
}
body.nf-theme-dark .nf-credit-notice.is-low{
    border-color:rgba(239,159,11,.42)!important;
    color:#ffe0a3!important;
    background:rgba(239,159,11,.11)!important;
}
body.nf-theme-dark .nf-credit-notice a{color:var(--nf-app-info)!important}
body.nf-theme-dark .nf-auth-field>span,
body.nf-theme-dark .nf-discovery-filters label>span,
body.nf-theme-dark .nf-support-ticket-form label>span{
    color:#c6cfdb!important;
}
body.nf-theme-dark :is(input,select,textarea):focus{
    border-color:var(--nf-app-blue)!important;
    outline:3px solid rgba(95,152,255,.17)!important;
}
body.nf-theme-dark input[type="checkbox"]{accent-color:var(--nf-app-blue-strong)}

/* Discovery, loading, empty, success, error, and filter states. */
body.nf-theme-dark .nf-discovery-stage-head>div>span,
body.nf-theme-dark .nf-discovery-option b{color:var(--nf-app-info)!important}
body.nf-theme-dark .nf-discovery-breadcrumbs>span{color:var(--nf-app-subtle)!important}
body.nf-theme-dark .nf-discovery-summary>button:disabled{
    color:#9aa6b6!important;
    background:#303844!important;
}
body.nf-theme-dark .nf-results-toolbar{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface-2)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-results-summary{
    border-bottom-color:var(--nf-app-border-soft)!important;
    color:var(--nf-app-text)!important;
}
body.nf-theme-dark .nf-results-summary::before{
    color:#bcd3ff!important;
    background:rgba(22,97,234,.2)!important;
}
body.nf-theme-dark .nf-results-summary strong,
body.nf-theme-dark .nf-search-results-heading strong{color:var(--nf-app-info)!important}
body.nf-theme-dark .nf-result-filters::before{color:var(--nf-app-muted)!important}
body.nf-theme-dark #nf-clear-filters{
    border-color:var(--nf-app-border)!important;
    color:#c9dcff!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark #nf-clear-filters:hover{
    border-color:var(--nf-app-blue)!important;
    color:#fff!important;
    background:var(--nf-app-blue-strong)!important;
}
body.nf-theme-dark .nf-search-message-error{
    border-color:rgba(255,135,153,.42)!important;
    color:#ffc0ca!important;
    background:rgba(180,35,63,.18)!important;
}
body.nf-theme-dark .nf-search-message-loading{color:#bcd3ff!important}
body.nf-theme-dark .nf-search-message-empty,
body.nf-theme-dark .nf-search-message-empty span{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-search-message-empty strong{color:var(--nf-app-text)!important}

/* Free report, upgrade prompt, and nested report cards. */
body.nf-theme-dark .nf-report-back,
body.nf-theme-dark .nf-report-path a,
body.nf-theme-dark .nf-related-niche-link,
body.nf-theme-dark .nf-premium-preview-lock{color:var(--nf-app-info)!important}
body.nf-theme-dark .nf-report-path,
body.nf-theme-dark .nf-report-path>span{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-report-stat>span,
body.nf-theme-dark .nf-data-snapshot-details span,
body.nf-theme-dark .nf-report-ad>span{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-report-overview-points span{color:var(--nf-app-text)!important}
body.nf-theme-dark :is(
    .nf-report-overview-points>div,
    .nf-data-snapshot-section,
    .nf-data-snapshot-card,
    .nf-content-idea-card,
    .nf-related-niche-card,
    .nf-premium-preview-card,
    .nf-data-snapshot-details>div,
    .nf-free-verdict-callout,
    .nf-free-trend-insight,
    .nf-contextual-upgrade,
    .nf-report-ad
){
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface-2)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-data-snapshot-section{background:var(--nf-app-surface)!important}
body.nf-theme-dark .nf-report-category,
body.nf-theme-dark :is(.nf-content-idea-number,.nf-related-niche-category){
    color:#bcd3ff!important;
    background:rgba(22,97,234,.2)!important;
}
body.nf-theme-dark :is(
    .nf-report-overview-label,
    .nf-related-niches-heading>span,
    .nf-content-ideas-heading>span,
    .nf-premium-preview-heading>span,
    .nf-data-snapshot-heading>span,
    .nf-data-snapshot-label,
    .nf-report-section-heading>span,
    .nf-free-verdict-callout>div>span,
    .nf-free-trend-insight>span,
    .nf-contextual-upgrade span,
    .nf-premium-preview-prompt
){color:var(--nf-app-gold)!important}
body.nf-theme-dark .nf-related-niche-card:hover{
    border-color:var(--nf-app-blue)!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-related-niche-footer{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-free-verdict-callout p,
body.nf-theme-dark .nf-free-trend-insight p,
body.nf-theme-dark .nf-contextual-upgrade strong,
body.nf-theme-dark .nf-data-snapshot-card small{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-report-ad>span{color:var(--nf-app-subtle)!important}
body.nf-theme-dark .nf-upgrade-modal-backdrop{background:rgba(3,6,10,.78)!important}
body.nf-theme-dark .nf-upgrade-modal-box{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface)!important;
    box-shadow:0 30px 80px rgba(0,0,0,.58)!important;
}
body.nf-theme-dark .nf-upgrade-modal-label{color:var(--nf-app-gold)!important}
body.nf-theme-dark .nf-upgrade-modal-box h2{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-upgrade-modal-box :is(p,small){color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-upgrade-modal-close{
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-upgrade-modal-close:hover{background:var(--nf-app-blue-strong)!important}

/* Detailed score dashboard and explanation. */
body.nf-theme-dark .nf-version-c-metrics,
body.nf-theme-dark .nf-score-explanation{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface)!important;
    box-shadow:none!important;
}
body.nf-theme-dark .nf-version-c-score{
    border-right-color:var(--nf-app-border)!important;
    background:linear-gradient(145deg,#171d26,var(--nf-app-surface-2))!important;
}
body.nf-theme-dark .nf-version-c-title,
body.nf-theme-dark .nf-version-c-score-value strong,
body.nf-theme-dark .nf-version-c-copy>span,
body.nf-theme-dark .nf-version-c-copy>strong,
body.nf-theme-dark .nf-score-explanation-heading>div>span,
body.nf-theme-dark .nf-score-signal-grid strong,
body.nf-theme-dark .nf-score-explanation-note strong{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-version-c-competition.is-low .nf-version-c-copy>strong{color:#61dfa0!important}
body.nf-theme-dark .nf-version-c-competition.is-medium .nf-version-c-copy>strong{color:#ffd27a!important}
body.nf-theme-dark .nf-version-c-competition.is-high .nf-version-c-copy>strong{color:#ff8799!important}
body.nf-theme-dark .nf-version-c-ring-track{stroke:#3a4452!important}
body.nf-theme-dark .nf-version-c-score-value>span,
body.nf-theme-dark .nf-version-c-score p,
body.nf-theme-dark .nf-version-c-copy>strong small,
body.nf-theme-dark .nf-version-c-sparkline>span,
body.nf-theme-dark .nf-version-c-insight,
body.nf-theme-dark .nf-version-c-scale span,
body.nf-theme-dark .nf-version-c-pending,
body.nf-theme-dark .nf-score-explanation-heading p,
body.nf-theme-dark .nf-score-signal-grid span,
body.nf-theme-dark .nf-score-explanation-note{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-version-c-score-label{
    border-color:rgba(95,152,255,.4)!important;
    color:#c9dcff!important;
    background:rgba(22,97,234,.16)!important;
}
body.nf-theme-dark .nf-version-c-row{border-bottom-color:var(--nf-app-border-soft)!important}
body.nf-theme-dark .nf-version-c-icon{
    color:#8db6ff!important;
    background:rgba(22,97,234,.16)!important;
}
body.nf-theme-dark .nf-version-c-competition .nf-version-c-icon{
    color:#ffd27a!important;
    background:rgba(239,159,11,.12)!important;
}
body.nf-theme-dark .nf-version-c-cpc .nf-version-c-icon{
    color:#c9bfff!important;
    background:rgba(104,69,255,.16)!important;
}
body.nf-theme-dark .nf-version-c-sparkline circle{fill:var(--nf-app-surface-2)!important}
body.nf-theme-dark .nf-version-c-insight{border-left-color:var(--nf-app-border)!important}
body.nf-theme-dark .nf-version-c-competition-dots i{background:#46515f!important}
body.nf-theme-dark .nf-version-c-cpc-track{background:#303844!important}
body.nf-theme-dark .nf-score-explanation-heading{
    border-bottom-color:var(--nf-app-border-soft)!important;
    background:linear-gradient(135deg,var(--nf-app-surface-2),var(--nf-app-surface))!important;
}
body.nf-theme-dark .nf-score-signal-grid>div{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface-2)!important;
}
body.nf-theme-dark .nf-score-explanation-heading>strong.is-low-opportunity,
body.nf-theme-dark .nf-score-signal-grid>div.is-negative strong{
    border-color:rgba(255,135,153,.42)!important;
    color:#ff9cab!important;
    background:rgba(180,35,63,.18)!important;
}
body.nf-theme-dark .nf-score-explanation-heading>strong.is-moderate-opportunity,
body.nf-theme-dark .nf-score-signal-grid>div.is-neutral strong{
    border-color:rgba(239,159,11,.42)!important;
    color:#ffd27a!important;
    background:rgba(239,159,11,.11)!important;
}
body.nf-theme-dark .nf-score-explanation-heading>strong.is-good-opportunity{
    border-color:rgba(95,152,255,.42)!important;
    color:#9dc2ff!important;
    background:rgba(22,97,234,.17)!important;
}
body.nf-theme-dark .nf-score-explanation-heading>strong.is-excellent-opportunity,
body.nf-theme-dark .nf-score-signal-grid>div.is-positive strong{
    border-color:rgba(69,212,154,.4)!important;
    color:#91eabf!important;
    background:rgba(24,115,66,.2)!important;
}
body.nf-theme-dark .nf-score-explanation-heading>strong.is-pending{
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-muted)!important;
    background:var(--nf-app-surface-3)!important;
}

/* Complete premium report chapters and their nested cards. */
body.nf-theme-dark .nf-premium-report-nav{
    border-color:var(--nf-app-border)!important;
    background:rgba(24,29,36,.96)!important;
    box-shadow:0 16px 36px rgba(0,0,0,.3)!important;
}
body.nf-theme-dark .nf-premium-report-nav a{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-premium-report-nav a:hover{
    color:#fff!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark :is(
    .nf-premium-metric-grid article,
    .nf-premium-signal-grid article,
    .nf-premium-cluster-grid>article,
    .nf-premium-strategy-grid>article,
    .nf-premium-two-column>article,
    .nf-premium-action-grid>article,
    .nf-premium-faq-grid article,
    .nf-premium-link-grid article,
    .nf-premium-revenue-grid article,
    .nf-premium-callout,
    .nf-premium-guidance,
    .nf-premium-inline-list
){
    border-color:var(--nf-app-border)!important;
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-2)!important;
    box-shadow:none!important;
}
body.nf-theme-dark :is(
    .nf-premium-section-heading>span,
    .nf-premium-metric-grid article>span,
    .nf-premium-signal-grid article>span,
    .nf-premium-strategy-grid article>span,
    .nf-premium-callout>span,
    .nf-premium-inline-list>strong,
    .nf-premium-subheading span
){color:var(--nf-app-gold)!important}
body.nf-theme-dark .nf-premium-research-note{
    border-color:rgba(239,159,11,.4)!important;
    color:#ffe0a3!important;
    background:rgba(239,159,11,.1)!important;
}
body.nf-theme-dark .nf-premium-inline-list>div span,
body.nf-theme-dark .nf-premium-tags span,
body.nf-theme-dark .nf-premium-status{
    color:#c9dcff!important;
    background:rgba(22,97,234,.18)!important;
}
body.nf-theme-dark .nf-premium-tags .is-research-required{
    color:#ffe0a3!important;
    background:rgba(239,159,11,.12)!important;
}
body.nf-theme-dark .nf-premium-table-wrap{border-color:var(--nf-app-border)!important}
body.nf-theme-dark .nf-premium-faq-grid article>span,
body.nf-theme-dark .nf-premium-revenue-grid span{
    color:#bcd3ff!important;
    background:rgba(22,97,234,.2)!important;
}
body.nf-theme-dark .nf-premium-subheading{border-top-color:var(--nf-app-border)!important}
body.nf-theme-dark .nf-premium-link-arrow{color:var(--nf-app-info)!important}
body.nf-theme-dark .nf-premium-export{
    border-color:transparent!important;
    background:linear-gradient(135deg,#25105f,#4f27da)!important;
}

/* Preserve high-contrast light copy on intentional blue/purple gradients. */
body.nf-theme-dark .nf-report-lock :is(h2,p,span),
body.nf-theme-dark .nf-premium-report-hero :is(h2,p,span,small,strong),
body.nf-theme-dark .nf-premium-cluster-total :is(span,strong),
body.nf-theme-dark .nf-premium-revenue-model :is(span,strong),
body.nf-theme-dark .nf-premium-link-plan .is-pillar :is(span,strong),
body.nf-theme-dark .nf-premium-export :is(h2,p,span,small),
body.nf-theme-dark .nf-premium-action-grid>article>span{
    color:#f7f9ff!important;
}

/* Support widget, ticket form, and all open-panel states. */
body.nf-theme-dark .nf-support-panel>header{
    border-bottom-color:var(--nf-app-border)!important;
    background:var(--nf-app-surface)!important;
}
body.nf-theme-dark .nf-support-panel>header strong{color:var(--nf-app-text)!important}
body.nf-theme-dark .nf-support-panel>header span{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-support-panel>header button{
    color:var(--nf-app-text)!important;
    background:var(--nf-app-surface-3)!important;
}
body.nf-theme-dark .nf-support-panel .nf-support-ticket-form{
    border-color:var(--nf-app-border)!important;
    background:var(--nf-app-bg-soft)!important;
}
body.nf-theme-dark .nf-support-ticket-toggle{
    border-color:var(--nf-app-border)!important;
    color:#c9dcff!important;
    background:var(--nf-app-surface-2)!important;
}
body.nf-theme-dark .nf-support-consent span,
body.nf-theme-dark .nf-support-form-status{color:var(--nf-app-muted)!important}
body.nf-theme-dark .nf-support-form-status.is-success{
    color:#91eabf!important;
    background:rgba(24,115,66,.22)!important;
}
body.nf-theme-dark .nf-support-form-status.is-error{
    color:#ffc0ca!important;
    background:rgba(180,35,63,.19)!important;
}

@media(max-width:800px){
    .nf-mobile-nav-panel .nf-theme-toggle{align-self:flex-end;margin:0 0 10px}
    body.nf-theme-dark .nf-mobile-nav-panel{border-color:var(--nf-app-border)!important;background:#12161c!important}
}
@media(max-width:620px){
    .nf-theme-toggle{margin-right:6px}
}
@media(prefers-reduced-motion:reduce){
    .nf-theme-toggle-thumb{transition:none}
}
