/* Tools4U theme + language preferences. Deliberately not applied inside founder/admin UI. */
.t4u-preferences{display:flex;align-items:center;justify-content:flex-end;gap:9px;max-width:1510px;margin:0 auto;padding:7px 24px;min-height:47px;background:transparent;color:inherit;position:relative;z-index:8}
.t4u-theme-switch,.t4u-language-picker{height:34px;border:1px solid #dfd4f7;border-radius:11px;background:#fff;color:#4725a2;font-size:12px;font-weight:750;box-shadow:0 2px 6px #24104a12}
.t4u-theme-switch{min-width:112px;padding:0 12px;cursor:pointer}.t4u-theme-switch:focus-visible,.t4u-language-picker:focus-visible{outline:3px solid #9b70f0;outline-offset:2px}
.t4u-language-picker{min-width:98px;padding:0 8px;cursor:pointer}.t4u-language-label{font-size:17px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.t4u-preferences .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:600px){.t4u-preferences{padding:7px 16px;justify-content:center;gap:8px}.t4u-theme-switch{flex:1;max-width:180px}.t4u-language-picker{flex:1;max-width:145px;min-width:95px}}
@media(min-width:1100px){.t4u-preferences{padding-top:5px;padding-bottom:5px;min-height:40px}}
html[data-t4u-theme="dark"]{background:#0e1220;color:#f4f1ff;--navy:#f4f1ff;--muted:#bac3df;color-scheme:dark}
html[data-t4u-theme="dark"] body{background:#0e1220!important;color:#f4f1ff}
html[data-t4u-theme="dark"] .top{background:#151a2b!important;border-color:#303858!important;color:#f5f1ff;box-shadow:0 8px 20px #0004}
html[data-t4u-theme="dark"] .top .logo small,html[data-t4u-theme="dark"] .footer{color:#bac2db}
html[data-t4u-theme="dark"] .top .nav a,html[data-t4u-theme="dark"] .top .right a:not(.pill){color:#f4f1ff}
html[data-t4u-theme="dark"] .top .nav a:hover,html[data-t4u-theme="dark"] .top .nav a.selected{background:#29224e;color:#d5c3ff}
html[data-t4u-theme="dark"] .t4u-preferences{color:#dfe1fb}
html[data-t4u-theme="dark"] .t4u-preferences button,html[data-t4u-theme="dark"] .t4u-preferences select{color:#e7ddff;background:#1e2540;border-color:#4b4274}
html[data-t4u-theme="dark"] .hero{background:radial-gradient(ellipse at 75% 20%,#33215b 0,transparent 54%),linear-gradient(125deg,#151b31,#111527)!important;border-color:#303858!important}
html[data-t4u-theme="dark"] .hero h1,html[data-t4u-theme="dark"] .hero p,html[data-t4u-theme="dark"] .page h1,html[data-t4u-theme="dark"] .section h2,html[data-t4u-theme="dark"] h2,html[data-t4u-theme="dark"] h3{color:#f4f1ff}
html[data-t4u-theme="dark"] .hero p,html[data-t4u-theme="dark"] .muted,html[data-t4u-theme="dark"] .sub{color:#bec2db}
html[data-t4u-theme="dark"] .searchbox,html[data-t4u-theme="dark"] .panel,html[data-t4u-theme="dark"] .stat,html[data-t4u-theme="dark"] .toolcard,html[data-t4u-theme="dark"] .cat,html[data-t4u-theme="dark"] .modal,html[data-t4u-theme="dark"] .banner,html[data-t4u-theme="dark"] .profile-dropdown,html[data-t4u-theme="dark"] .tag,html[data-t4u-theme="dark"] .feature,html[data-t4u-theme="dark"] .t4u-seo-card{background:#1a2136!important;border-color:#39415f!important;color:#f2efff;box-shadow:0 3px 8px #0002!important}
html[data-t4u-theme="dark"] .profile-dropdown-head{border-color:#3a4160}
html[data-t4u-theme="dark"] .profile-dropdown a,html[data-t4u-theme="dark"] .profile-dropdown button{color:#ece9ff}
html[data-t4u-theme="dark"] .toolcard p,html[data-t4u-theme="dark"] .cat small,html[data-t4u-theme="dark"] .banner p,html[data-t4u-theme="dark"] .feature small{color:#b8c1dc}
html[data-t4u-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-t4u-theme="dark"] textarea,html[data-t4u-theme="dark"] select{background:#131b2d!important;color:#f3edff!important;border-color:#464966!important}
html[data-t4u-theme="dark"] input::placeholder,html[data-t4u-theme="dark"] textarea::placeholder{color:#aeb3cc;opacity:1}
html[data-t4u-theme="dark"] .btn:not(.primary),html[data-t4u-theme="dark"] .all-categories,html[data-t4u-theme="dark"] .top-search{background:#242c46;color:#e5d8ff;border-color:#4c477b;box-shadow:none}
html[data-t4u-theme="dark"] .footer{background:#11172a;border-color:#303858}
html[data-t4u-theme="dark"] .notice:not(.error):not(.ok){color:#d8c6ff;background:#302650}
html[data-t4u-theme="dark"] body[data-th-page]{background:radial-gradient(circle at 0 5%,#211a39,transparent 30%),#101526!important}
html[data-t4u-theme="dark"] body[data-th-page] .stats>.stat,html[data-t4u-theme="dark"] body[data-th-page] #app>main.page>.panel,html[data-t4u-theme="dark"] body[data-th-page] #profile-workspace .panel,html[data-t4u-theme="dark"] body[data-th-page] #referral-user>.panel,html[data-t4u-theme="dark"] body[data-th-page] .referral-overview.panel,html[data-t4u-theme="dark"] body[data-th-page] .referral-overview .split>.panel,html[data-t4u-theme="dark"] body[data-th-page] .th-step{background:#1c2440!important;border-color:#3c4868!important;box-shadow:0 6px 10px #0002!important;color:#e9e6ff!important}
html[data-t4u-theme="dark"] body[data-th-page] .stat strong,html[data-t4u-theme="dark"] body[data-th-page] .th-step b{color:#fff}
html[data-t4u-theme="dark"] body[data-th-page] .stats>.stat{color:#bec6e4}
html[data-t4u-theme="dark"] body[data-th-page] #app>main.page>.th-page-hero,html[data-t4u-theme="dark"] body[data-th-page] .th-hero-heading,html[data-t4u-theme="dark"] body[data-th-page] .th-hero-description{color:#fff}
html[data-t4u-theme="dark"] body[data-th-page] .th-action-light{color:#4b24aa}
/* Avoid disturbing the dark-mode admin console's own design. */
html[data-t4u-theme="dark"] body:has(.admin) .admin,html[data-t4u-theme="dark"] body:has(.admin-portal-login) .admin-portal-login{color:#e9e8fa}
@media(prefers-reduced-motion:reduce){.t4u-theme-switch{transition:none}}
