/* Site-wide appearance themes. Dark remains the default; .theme-light is
   applied to <body> by theme-toggle.js and intentionally comes last so it
   can restyle the member, admin and public shells without changing layout. */
:root { color-scheme: dark; }
body.theme-light { color-scheme: light; background: #f4f7fb !important; color: #17233d !important; }
body.theme-light .theme-toggle { background: #fff; color: #334155; border-color: #d7dfec; }
body.theme-light .theme-toggle:hover { background: #eef3fb; color: #245edb; }

/* Member portal */
body.theme-light.premium-portal-active,
body.theme-light.premium-portal-active .premium-affiliate-shell,
body.theme-light.premium-portal-active .premium-main,
body.theme-light.premium-portal-active .premium-content { background: #f4f7fb !important; color: #17233d !important; }
body.theme-light.premium-portal-active .premium-sidebar,
body.theme-light.premium-portal-active .premium-topbar { background: #fff !important; border-color: #e3e9f2 !important; color: #263650 !important; box-shadow: 0 4px 20px rgba(44, 66, 103, .06) !important; }
body.theme-light.premium-portal-active .premium-brand-copy strong,
body.theme-light.premium-portal-active .publisher-panel-label,
body.theme-light.premium-portal-active .premium-account-chip,
body.theme-light.premium-portal-active .premium-account-chip strong { color: #1d2941 !important; }
body.theme-light.premium-portal-active .premium-brand-copy small,
body.theme-light.premium-portal-active .premium-account-chip small,
body.theme-light.premium-portal-active .premium-nav-section > span,
body.theme-light.premium-portal-active .publisher-account-settings { color: #8190a7 !important; }
body.theme-light.premium-portal-active .premium-nav-link { color: #5b6a82 !important; }
body.theme-light.premium-portal-active .premium-nav-link:hover { background: #f1f5fb !important; color: #335fd1 !important; }
body.theme-light.premium-portal-active .premium-nav-link.is-active { background: #edf2ff !important; border-color: #d8e2fb !important; color: #315ecf !important; }
body.theme-light.premium-portal-active .premium-sidebar-account { background: #fff !important; border-color: #e3e9f2 !important; box-shadow: 0 6px 18px rgba(48, 68, 105, .05) !important; }
body.theme-light.premium-portal-active .premium-card,
body.theme-light.premium-portal-active .premium-panel,
body.theme-light.premium-portal-active .nixwall-member-dashboard .premium-card,
body.theme-light.premium-portal-active .premium-route-content > section,
body.theme-light.premium-portal-active .premium-route-content > article { background: #fff !important; border-color: #e2e8f1 !important; color: #23324d !important; box-shadow: 0 9px 24px rgba(51, 73, 114, .07) !important; }
body.theme-light.premium-portal-active .premium-card h1,
body.theme-light.premium-portal-active .premium-card h2,
body.theme-light.premium-portal-active .premium-card h3,
body.theme-light.premium-portal-active .premium-page-heading h1,
body.theme-light.premium-portal-active .legacy-route-heading h1 { color: #17233d !important; }
body.theme-light.premium-portal-active .premium-card p,
body.theme-light.premium-portal-active .premium-card small,
body.theme-light.premium-portal-active .premium-page-heading p,
body.theme-light.premium-portal-active .legacy-route-heading p,
body.theme-light.premium-portal-active .premium-muted { color: #8190a7 !important; }
body.theme-light.premium-portal-active .premium-icon-button,
body.theme-light.premium-portal-active .premium-offer-access { background: #fff !important; border-color: #dfe6f1 !important; color: #4c64a0 !important; }
body.theme-light.premium-portal-active input,
body.theme-light.premium-portal-active select,
body.theme-light.premium-portal-active textarea { background: #fff !important; border-color: #cbd7e8 !important; color: #17233d !important; }
body.theme-light.premium-portal-active .cp-offer-filters { border-color:#d6e1ef !important; background:linear-gradient(145deg,#ffffff,#f4f8fd) !important; box-shadow:0 8px 24px rgba(51,73,114,.06) !important; }
body.theme-light.premium-portal-active .cp-offer-filters label { color:#52637d !important; }
body.theme-light.premium-portal-active .cp-offer-filters input,
body.theme-light.premium-portal-active .cp-offer-filters select { background:#fff !important; border-color:#c4d1e2 !important; color:#17233d !important; }
body.theme-light.premium-portal-active .cp-offer-filters input::placeholder { color:#8795aa !important; }
body.theme-light.premium-portal-active .cp-offer-filters input:focus,
body.theme-light.premium-portal-active .cp-offer-filters select:focus { border-color:#3aa997 !important; background:#fff !important; box-shadow:0 0 0 3px rgba(58,169,151,.13) !important; }
body.theme-light.premium-portal-active .cp-offer-filters .cp-check { border-color:#c4d1e2 !important; background:#f7faff !important; color:#52637d !important; }
body.theme-light.premium-portal-active .premium-chart,
body.theme-light.premium-portal-active .premium-table-wrap,
body.theme-light.premium-portal-active .premium-feed,
body.theme-light.premium-portal-active .nixwall-live-list,
body.theme-light.premium-portal-active .nixwall-top-list { background: #fbfdff !important; color: #53647f !important; }
body.theme-light.premium-portal-active .nixwall-live-row,
body.theme-light.premium-portal-active .nixwall-top-offer-row { background: #f7faff !important; border-color: #dce7f5 !important; color: #243653 !important; }
body.theme-light.premium-portal-active .nixwall-live-row strong,
body.theme-light.premium-portal-active .nixwall-top-offer-main strong { color: #253653 !important; }
body.theme-light.premium-portal-active .nixwall-live-row em,
body.theme-light.premium-portal-active .nixwall-top-offer-main em { color: #8292aa !important; }
body.theme-light.premium-portal-active .cp-report-periods { background:#fff !important; border-color:#dce5f1 !important; }
body.theme-light.premium-portal-active .cp-report-period { color:#5b6d89 !important; }
body.theme-light.premium-portal-active .cp-report-period:hover { color:#315ecf !important; border-color:#b8cceb !important; }
body.theme-light.premium-portal-active .cp-report-search { color:#5e6e87 !important; }
body.theme-light.premium-portal-active .cp-report-search input { background:#fff !important; border-color:#cbd7e8 !important; color:#17233d !important; }

/* Admin and generic cPanel shells */
body.theme-light.cpanel-shell,
body.theme-light.cpanel-shell #app,
body.theme-light.cpanel-shell .cp-page,
body.theme-light.admin-control-active { background: #f4f7fb !important; color: #17233d !important; }
body.theme-light.cpanel-shell .topbar,
body.theme-light.cpanel-shell .admin-sidebar { background: #fff !important; border-color: #e1e8f2 !important; color: #263650 !important; box-shadow: 0 4px 20px rgba(44, 66, 103, .06) !important; }
body.theme-light.cpanel-shell .admin-sidebar-links a,
body.theme-light.cpanel-shell .admin-sidebar-foot a,
body.theme-light.cpanel-shell .cp-user { color: #5e6e87 !important; }
body.theme-light.cpanel-shell .admin-sidebar-links a:hover,
body.theme-light.cpanel-shell .admin-sidebar-links a.is-active { background: #edf2ff !important; border-color: #d7e1fb !important; color: #315ecf !important; }
body.theme-light.cpanel-shell .cp-heading h1,
body.theme-light.cpanel-shell .cp-heading h2,
body.theme-light.cpanel-shell .cp-panel h2,
body.theme-light.cpanel-shell .cp-page h1 { color: #17233d !important; }
body.theme-light.cpanel-shell .cp-heading > div > p:last-child,
body.theme-light.cpanel-shell .cp-panel-title p,
body.theme-light.cpanel-shell .cp-muted,
body.theme-light.cpanel-shell .cp-admin-row span,
body.theme-light.cpanel-shell .cp-admin-row small { color: #8190a7 !important; }
body.theme-light.cpanel-shell .cp-panel,
body.theme-light.cpanel-shell .cp-feature-grid article,
body.theme-light.cpanel-shell .cp-stat-grid article,
body.theme-light.cpanel-shell .cp-action,
body.theme-light.cpanel-shell .cp-offer,
body.theme-light.cpanel-shell .cp-admin-row,
body.theme-light.cpanel-shell .cp-auth-card { background: #fff !important; border-color: #dfe7f2 !important; color: #243653 !important; box-shadow: 0 10px 26px rgba(50, 73, 112, .07) !important; }
body.theme-light.cpanel-shell input,
body.theme-light.cpanel-shell select,
body.theme-light.cpanel-shell textarea { background: #fff !important; border-color: #cbd7e8 !important; color: #17233d !important; }
body.theme-light.cpanel-shell .cp-link-row,
body.theme-light.cpanel-shell .cp-history-row,
body.theme-light.cpanel-shell .cp-generated { background: #f7faff !important; border-color: #dce7f5 !important; color: #243653 !important; }
body.theme-light.cpanel-shell .cp-conversion-group { background: #f7faff !important; border-color: #d6e2f0 !important; }
body.theme-light.cpanel-shell .cp-conversion-group-head { background: linear-gradient(105deg,#eef5ff,#f8fbff) !important; border-color: #dce7f5 !important; }
body.theme-light.cpanel-shell .cp-conversion-offer b,
body.theme-light.cpanel-shell .cp-conversion-row-main b { color: #1d2d49 !important; }
body.theme-light.cpanel-shell .cp-conversion-offer small,
body.theme-light.cpanel-shell .cp-conversion-row-main span,
body.theme-light.cpanel-shell .cp-conversion-row-main small,
body.theme-light.cpanel-shell .cp-conversion-group-summary span { color: #6e7f99 !important; }
body.theme-light.cpanel-shell .cp-conversion-group-summary b { color: #304a73 !important; }
body.theme-light.cpanel-shell .cp-conversion-row { background: #fff !important; border-color: #dce7f5 !important; }
body.theme-light.cpanel-shell .cp-report-offer-icon { background: #eaf2ff !important; border-color: #cbdcf3 !important; }
body.theme-light.cpanel-shell .cp-withdrawal-metrics article { background:#fff !important; border-color:#dfe7f2 !important; box-shadow:0 8px 20px rgba(50,73,112,.05) !important; }
body.theme-light.cpanel-shell .cp-withdrawal-metrics article span { color:#70809a !important; }
body.theme-light.cpanel-shell .cp-withdrawal-metrics article strong { color:#1c2c48 !important; }
body.theme-light.cpanel-shell .cp-button.ghost { background: #fff !important; border-color: #cbd7e8 !important; color: #345487 !important; }
body.theme-light.cpanel-shell .cp-toast { background: #fff !important; border-color: #cbd7e8 !important; color: #243653 !important; box-shadow: 0 15px 45px rgba(25, 45, 81, .18) !important; }
body.theme-light.admin-control-active .topbar #nav { background: #fff !important; border-color: #e1e8f2 !important; box-shadow: 14px 0 40px rgba(44, 66, 103, .06) !important; }
body.theme-light.admin-control-active .admin-sidebar-brand { border-color: #e1e8f2 !important; }
body.theme-light.admin-control-active .admin-sidebar-brand-copy strong { color: #1d2941 !important; }
body.theme-light.admin-control-active .admin-sidebar-links a,
body.theme-light.admin-control-active .admin-sidebar-foot a { color: #5e6e87 !important; }
body.theme-light.admin-control-active .admin-sidebar-links a:hover,
body.theme-light.admin-control-active .admin-sidebar-links a.is-active,
body.theme-light.admin-control-active .admin-sidebar-foot a:hover { background: #edf2ff !important; border-color: #d7e1fb !important; color: #315ecf !important; }
body.theme-light.admin-control-active .admin-sidebar-toggle { background: #fff !important; border-color: #cbd7e8 !important; color: #53698d !important; }

/* Public home follows the same switch. Its original marketing skin is light,
   so these dark-mode rules are intentionally scoped to the default state. */
body.public-home-active:not(.theme-light) { background: #050713 !important; color: #e9efff !important; }
body.public-home-active:not(.theme-light) .topbar,
body.public-home-active:not(.theme-light) .site-footer { background: rgba(7, 13, 29, .96) !important; border-color: #1b2b4d !important; color: #b8c5df !important; }
body.public-home-active:not(.theme-light) .brand { color: #f1f5ff !important; }
body.public-home-active:not(.theme-light) #nav a { color: #b6c4df !important; }
body.public-home-active:not(.theme-light) #nav a:hover { color: #6ee8eb !important; }
body.public-home-active:not(.theme-light) .public-eyebrow { color: #65e2d1 !important; }
body.public-home-active:not(.theme-light) .public-hero h1,
body.public-home-active:not(.theme-light) .public-section-head h2,
body.public-home-active:not(.theme-light) .public-cta h2 { color: #f2f6ff !important; }
body.public-home-active:not(.theme-light) .public-hero h1 em { color: #67e4d5 !important; }
body.public-home-active:not(.theme-light) .public-hero-copy > p,
body.public-home-active:not(.theme-light) .public-section-head p,
body.public-home-active:not(.theme-light) .public-trust-row,
body.public-home-active:not(.theme-light) .public-cta p { color: #aab9d5 !important; }
body.public-home-active:not(.theme-light) .public-hero-visual { background: radial-gradient(circle at 85% 8%, rgba(71, 140, 255, .24), transparent 30%), linear-gradient(150deg, #0e1c3c, #0a142b 58%, #0b2d32) !important; border-color: #294a78 !important; box-shadow: 0 25px 55px rgba(0, 0, 0, .3) !important; }
body.public-home-active:not(.theme-light) .visual-kicker,
body.public-home-active:not(.theme-light) .visual-balance small,
body.public-home-active:not(.theme-light) .visual-bottom small { color: #91a4c8 !important; }
body.public-home-active:not(.theme-light) .visual-balance { background: rgba(9, 18, 39, .8) !important; border-color: #284b7b !important; }
body.public-home-active:not(.theme-light) .visual-balance strong { color: #f4f7ff !important; }
body.public-home-active:not(.theme-light) .visual-chart { border-color: #294b77 !important; background: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(123, 159, 212, .13) 28px 29px) !important; }
body.public-home-active:not(.theme-light) .visual-bottom div { background: rgba(14, 30, 59, .86) !important; border-color: #27496f !important; }
body.public-home-active:not(.theme-light) .visual-bottom b { color: #d8e3fa !important; }
body.public-home-active:not(.theme-light) .public-stat-strip { background: #203655 !important; border-color: #2a4770 !important; }
body.public-home-active:not(.theme-light) .public-stat-strip article,
body.public-home-active:not(.theme-light) .public-feature-card,
body.public-home-active:not(.theme-light) .public-step,
body.public-home-active:not(.theme-light) .public-faq-grid details,
body.public-home-active:not(.theme-light) .public-info-card { background: #0d1931 !important; border-color: #263f67 !important; color: #d9e5fb !important; box-shadow: 0 13px 32px rgba(0, 0, 0, .2) !important; }
body.public-home-active:not(.theme-light) .public-stat-strip span,
body.public-home-active:not(.theme-light) .public-feature-card p,
body.public-home-active:not(.theme-light) .public-step p,
body.public-home-active:not(.theme-light) .public-faq-grid details p,
body.public-home-active:not(.theme-light) .public-info-card p,
body.public-home-active:not(.theme-light) .public-info-card li { color: #9aaccb !important; }
body.public-home-active:not(.theme-light) .public-feature-card h3,
body.public-home-active:not(.theme-light) .public-step h3,
body.public-home-active:not(.theme-light) .public-faq-grid summary,
body.public-home-active:not(.theme-light) .public-info-card h3 { color: #e1eaff !important; }
body.public-home-active:not(.theme-light) .public-provider-band,
body.public-home-active:not(.theme-light) .public-cta { background: linear-gradient(120deg, #102642, #102d34) !important; border-color: #2b5277 !important; }
body.public-home-active:not(.theme-light) .public-provider-band h3 { color: #e2edff !important; }
body.public-home-active:not(.theme-light) .public-provider-band p { color: #9eb2d1 !important; }
body.public-home-active:not(.theme-light) .public-provider-pill { background: #10223e !important; border-color: #2d4f78 !important; color: #cbd9f1 !important; box-shadow: none !important; }
body.public-home-active:not(.theme-light) .public-step::after { background: #0f203c !important; border-color: #2d4f78 !important; color: #71dbe5 !important; }
body.public-home-active:not(.theme-light) .site-footer h2,
body.public-home-active:not(.theme-light) .site-footer-brand { color: #dce6fa !important; }
body.public-home-active:not(.theme-light) .site-footer a,
body.public-home-active:not(.theme-light) .site-footer p,
body.public-home-active:not(.theme-light) .site-footer small,
body.public-home-active:not(.theme-light) .footer-chat-button { color: #9aaccc !important; }

/* Existing dashboard-specific light skin must not force light mode when the
   user explicitly selected dark mode. */
body.dashboard-bucks-theme:not(.theme-light),
body.dashboard-bucks-theme:not(.theme-light) .premium-affiliate-shell,
body.dashboard-bucks-theme:not(.theme-light) .premium-content { background: #050713 !important; color: #f5f8ff !important; }
body.dashboard-bucks-theme:not(.theme-light) .premium-sidebar,
body.dashboard-bucks-theme:not(.theme-light) .premium-topbar { background: #090d1d !important; border-color: rgba(144,163,218,.17) !important; color: #f5f8ff !important; }
body.dashboard-bucks-theme:not(.theme-light) .nixwall-member-dashboard .premium-card { background: #0f142b !important; border-color: rgba(144,163,218,.17) !important; color: #f5f8ff !important; }
body.dashboard-bucks-theme:not(.theme-light) .nixwall-member-dashboard .premium-card-head h2,
body.dashboard-bucks-theme:not(.theme-light) .nixwall-member-dashboard .premium-card-head p,
body.dashboard-bucks-theme:not(.theme-light) .nixwall-member-dashboard .nixwall-feed,
body.dashboard-bucks-theme:not(.theme-light) .nixwall-member-dashboard .nixwall-feed span { color: #c6cfe5 !important; }

/* Account Settings has a legacy light skin with higher-specificity rules.
   Reapply the selected dark palette to that route as well. */
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid),
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .premium-affiliate-shell,
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .premium-main,
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .premium-content { background: #050713 !important; color: #edf3ff !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .premium-topbar { background: #090d1d !important; border-bottom-color: rgba(144,163,218,.17) !important; box-shadow: none !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .publisher-panel-label { color: #e6edff !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .legacy-route-heading h1 { color: #f2f6ff !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .legacy-route-heading p { color: #91a4c8 !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card { background: linear-gradient(145deg,#0d1a35,#0b142b) !important; border-color: #29456f !important; box-shadow: 0 15px 36px rgba(0,0,0,.26) !important; color: #e8efff !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card .cp-panel-title { border-bottom-color: #263f67 !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card .cp-panel-title h2 { color: #edf3ff !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card .cp-panel-title p { color: #91a4c8 !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card label { color: #cbd8ef !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card label small { color: #8195b8 !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card input { background: #081329 !important; border-color: #344d7b !important; color: #eff5ff !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card input:focus { background: #0b1934 !important; border-color: #62e5cf !important; box-shadow: 0 0 0 3px rgba(98,229,207,.13) !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card input[readonly] { background: #101f3a !important; color: #9fb1d4 !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-badge,
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-lock { border-color: #385b91 !important; background: #17284c !important; color: #a9baff !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-note { background: #101f3a !important; color: #9aaccb !important; }
body.premium-portal-active:not(.theme-light):has(.cp-profile-grid) .cp-profile-card .cp-auth-eye { color: #9fb1d4 !important; }

/* High-contrast light dashboard. These selectors outrank the compact
   dashboard skin so labels and chart/report text remain easy to read. */
body.theme-light.dashboard-bucks-theme,
body.theme-light.dashboard-bucks-theme .premium-affiliate-shell,
body.theme-light.dashboard-bucks-theme .premium-content { background: #f4f7fb !important; color: #17233d !important; }
body.theme-light.dashboard-bucks-theme .premium-sidebar,
body.theme-light.dashboard-bucks-theme .premium-topbar { background: #fff !important; border-color: #dce5f1 !important; color: #23324d !important; box-shadow: 8px 0 26px rgba(46,67,105,.06) !important; }
body.theme-light.dashboard-bucks-theme .premium-brand-copy strong,
body.theme-light.dashboard-bucks-theme .publisher-panel-label { color: #192640 !important; }
body.theme-light.dashboard-bucks-theme .premium-brand-copy small,
body.theme-light.dashboard-bucks-theme .premium-nav-section > span,
body.theme-light.dashboard-bucks-theme .publisher-account-settings { color: #71809a !important; }
body.theme-light.dashboard-bucks-theme .premium-nav-link { color: #51627c !important; }
body.theme-light.dashboard-bucks-theme .premium-nav-link:hover { background: #f1f5fb !important; color: #315ecf !important; }
body.theme-light.dashboard-bucks-theme .premium-nav-link.is-active { background: #edf2ff !important; border-color: #d5e0fb !important; color: #315ecf !important; }
body.theme-light.dashboard-bucks-theme .premium-nav-link.is-active i { color: #315ecf !important; }
body.theme-light.dashboard-bucks-theme .premium-sidebar-account { background: #fff !important; border-color: #e1e8f2 !important; }
body.theme-light.dashboard-bucks-theme .premium-sidebar-account strong { color: #263650 !important; }
body.theme-light.dashboard-bucks-theme .premium-sidebar-account small { color: #8190a7 !important; }
body.theme-light.dashboard-bucks-theme .premium-content .nixwall-page-heading h1 { color: #17233d !important; }
body.theme-light.dashboard-bucks-theme .premium-content .nixwall-page-heading p { color: #657792 !important; }
body.theme-light.dashboard-bucks-theme .dashboard-heading-meta span { background: #fff !important; border-color: #d8e3f0 !important; color: #52647f !important; box-shadow: 0 3px 9px rgba(50,70,110,.07) !important; }
body.theme-light.dashboard-bucks-theme .dashboard-heading-meta .dashboard-live-status { color: #087d67 !important; border-color: #a9dece !important; }
body.theme-light.dashboard-bucks-theme .dashboard-heading-meta .dashboard-today-pill { color: #31588f !important; border-color: #bfd1ee !important; background: #edf4ff !important; }
body.theme-light.dashboard-bucks-theme .dashboard-range-menu { background: #fff !important; border-color: #d7e2ef !important; box-shadow: 0 14px 32px rgba(45,65,104,.18) !important; }
body.theme-light.dashboard-bucks-theme .dashboard-range-menu button { color: #536681 !important; }
body.theme-light.dashboard-bucks-theme .dashboard-range-menu button:hover,
body.theme-light.dashboard-bucks-theme .dashboard-range-menu button.is-active { background: #edf3ff !important; color: #245fcb !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-card { background: #fff !important; border-color: #d9e3ef !important; color: #243653 !important; box-shadow: 0 10px 24px rgba(51,73,114,.08) !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-card-head h2 { color: #253653 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-card-head p { color: #657792 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-chart { background: linear-gradient(180deg,#fff,#f8fbff) !important; border-top-color: #e1e8f2 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-chart-svg .dashboard-chart-gridline { stroke: #cbd8e8 !important; stroke-dasharray: 4 6 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-chart-svg .dashboard-chart-badge { fill: #516681 !important; color: #516681 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .nixwall-chart-labels { color: #5f7490 !important; font-size: 10px !important; font-weight: 800 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-chart-tabs { background: #edf3fa !important; border-color: #d3deec !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-chart-tab { color: #536681 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-chart-tab.is-active { background: #3479e8 !important; color: #fff !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-columns,
body.theme-light.dashboard-bucks-theme .nixwall-top-columns { color: #526b8d !important; font-size: 9px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-row { background: #f7faff !important; border-color: #d4e1ef !important; color: #243653 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row small,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-count small,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-payout small { color: #587291 !important; font-size: 8px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row strong,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-main strong { color: #243653 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row em,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-main em { color: #6b809b !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-time { color: #536d8b !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-empty { color: #5a7392 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-empty strong { color: #243653 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-empty small { color: #6c819c !important; }
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-count strong { color: #078b64 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-payout strong { color: #315fbd !important; }

/* Shared toggle */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 38px; height: 34px; padding: 0 10px; border: 1px solid rgba(145, 163, 218, .3); border-radius: 10px; background: #111a32; color: #f5f8ff; font: 800 13px/1 inherit; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s; }
.theme-toggle:hover { transform: translateY(-1px); background: #1a2747; border-color: #58e6ed; }
.premium-topbar-actions .theme-toggle { flex: 0 0 auto; }
@media (max-width: 560px) { .theme-toggle { min-width: 34px; padding: 0 8px; } }

/* Balance chips stay legible against the pale light-mode header. */
body.theme-light.premium-portal-active .premium-balance { background: #e8fff4 !important; border-color: #79cdb1 !important; color: #0b6e53 !important; box-shadow: 0 3px 10px rgba(18,128,94,.12) !important; }
body.theme-light.premium-portal-active .premium-balance small { color: #327866 !important; font-weight: 800 !important; }
body.theme-light.premium-portal-active .premium-balance strong { color: #08734f !important; font-weight: 900 !important; text-shadow: none !important; }
body.theme-light.dashboard-bucks-theme .nixwall-metric-grid > article:nth-child(4) small,
body.theme-light.dashboard-bucks-theme .nixwall-metric-grid > article:nth-child(4) strong { color: #fff !important; text-shadow: 0 1px 1px rgba(0,68,74,.2); }
body.theme-light.dashboard-bucks-theme .nixwall-metric-grid > article:nth-child(4) small { font-size: 10px !important; font-weight: 850 !important; }

/* Readability pass for light-mode navigation and reporting feeds. */
body.theme-light.dashboard-bucks-theme .premium-nav-link { font-size: 12px !important; line-height: 1.25 !important; }
body.theme-light.dashboard-bucks-theme .premium-nav-section > span { font-size: 10px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-page-heading p { font-size: 12px !important; line-height: 1.45 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-card-head h2 { font-size: 16px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-card-head p { font-size: 11px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-columns,
body.theme-light.dashboard-bucks-theme .nixwall-top-columns { font-size: 10px !important; letter-spacing: .08em !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row small { font-size: 9px !important; margin-bottom: 5px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row strong,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-main strong { font-size: 12px !important; line-height: 1.3 !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row em,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-main em { font-size: 10px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-payout strong,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-count strong { font-size: 14px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-time { font-size: 11px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-count small,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-payout small { font-size: 8px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-payout strong { font-size: 13px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-empty strong { font-size: 12px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-empty small { font-size: 11px !important; }

/* Final light-mode type scale: keep the compact cards, but make every value
   readable at normal browser zoom. */
body.theme-light.dashboard-bucks-theme .premium-nav-link { font-size: 13px !important; }
body.theme-light.dashboard-bucks-theme .publisher-panel-label { font-size: 14px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-metric-grid small { font-size: 10px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-metric-grid strong { font-size: 18px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-columns,
body.theme-light.dashboard-bucks-theme .nixwall-top-columns { font-size: 10px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row small { font-size: 10px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row strong,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-main strong { font-size: 14px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-row em,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-main em { font-size: 11px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-payout strong,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-count strong { font-size: 15px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-live-time { font-size: 12px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-count small,
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-payout small { font-size: 9px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-top-offer-payout strong { font-size: 14px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-card-head h2 { font-size: 18px !important; }
body.theme-light.dashboard-bucks-theme .nixwall-member-dashboard .premium-card-head p { font-size: 12px !important; }

/* Offer detail modal: provider-style explanation cards stay readable in light mode. */
body.theme-light.premium-portal-active .cp-offer-info-card { background: linear-gradient(145deg,#f7faff,#eef5fc) !important; border-color: #d3dfed !important; color: #243653 !important; box-shadow: 0 7px 16px rgba(51,73,114,.06) !important; }
body.theme-light.premium-portal-active .cp-offer-info-heading { color: #315fbd !important; }
body.theme-light.premium-portal-active .cp-offer-info-heading > span { background: #e8f1ff !important; border-color: #bed2ed !important; color: #315fbd !important; }
body.theme-light.premium-portal-active .cp-offer-info-heading h3 { color: #315fbd !important; }
body.theme-light.premium-portal-active .cp-offer-info-card > p { color: #405977 !important; }
body.theme-light.premium-portal-active .cp-offer-instruction { border-top-color: #dbe5f0 !important; }
body.theme-light.premium-portal-active .cp-offer-instruction > span { background: #e8f1ff !important; border-color: #bed2ed !important; color: #315fbd !important; }
body.theme-light.premium-portal-active .cp-offer-instruction p { color: #405977 !important; }
body.theme-light.premium-portal-active .cp-offer-instruction small { color: #607690 !important; }
body.theme-light.premium-portal-active .cp-offer-instruction strong { color: #087d61 !important; }
body.theme-light.premium-portal-active .cp-offer-info-empty { color: #637792 !important; }
body.theme-light.premium-portal-active .cp-offer-detail-facts > div { background: #f7faff !important; border-color: #d3dfed !important; color: #243653 !important; }
body.theme-light.premium-portal-active .cp-offer-detail-facts small { color: #607690 !important; }
body.theme-light.premium-portal-active .cp-offer-detail-facts span { color: #243653 !important; }
body.theme-light.premium-portal-active .cp-country-badge { background: #eaf2ff !important; border-color: #c6d8ef !important; color: #29466f !important; }
body.theme-light.premium-portal-active .cp-country-more { background: #dceaff !important; color: #315fbd !important; }
body.theme-light.premium-portal-active .cp-country-scroll { scrollbar-color: #a8bfdc transparent; }
