/* Trading Mania - unified light palette + contrast + mobile/overflow fixes (v1, 19 Nov 2026) */
:root{--tm-text:#1a1f2e;--tm-muted:#475467;--tm-bdr:rgba(20,25,40,.14);--tm-gold:#b45309;--tm-green:#047857;--tm-blue:#1d4ed8;--tm-purple:#6d28d9;--tm-red:#b91c1c}
[style*="background:#1a1d2e"],[style*="background: #1a1d2e"],[style*="background:#0f1224"],[style*="background: #0f1224"],[style*="background:#0f1222"],[style*="background: #0f1222"],[style*="background:#0d0e1c"],[style*="background:#13152a"],[style*="background:#0d1020"],[style*="background:#12142a"]{background:#ffffff!important;border-color:rgba(20,25,40,.14)!important;color:var(--tm-text)!important}
[style*="background:#1b1f38"]{background:#eef1f8!important}
.rbadge.rb-purple{color:var(--tm-purple)!important}
.rbadge.rb-blue{color:var(--tm-blue)!important}
.rbadge.rb-green,.tag-popular{color:var(--tm-green)!important}
.rbadge.rb-gold{color:var(--tm-gold)!important}
.btn-ghost{color:var(--tm-text)!important;border-color:rgba(20,25,40,.3)!important}
.content ol,.content ul,.content li{color:#334155!important}
.tw td,.tw th{color:var(--tm-text)!important}
.callout,.callout strong,.callout p{color:var(--tm-text)!important}
.explore a{color:#334155!important}
.share a,.share button{color:var(--tm-text)!important}
.share-btn.share-tw{color:#fff!important}
[style*="color:#00ff88"],[style*="color:#00e87a"],[style*="color:#00d4a0"],[style*="color: #00d4a0"],[style*="color:#00f085"]{color:var(--tm-green)!important}
[style*="color:#ff3f5b"],[style*="color:#ff4444"],[style*="color:#ff9999"],[style*="color:#f87171"]{color:var(--tm-red)!important}
[style*="color:#3b9eff"],[style*="color:#4a9eff"]{color:var(--tm-blue)!important}
[style*="color:#a78bfa"],[style*="color:#b388ff"]{color:var(--tm-purple)!important}
nav a[href*="hot-deals"]{color:#c2410c!important}
nav a[href*="news"]{color:var(--tm-blue)!important}
nav .nav-logo>div:last-child>div:first-child{color:var(--tm-gold)!important}
@media (max-width:1180px) and (min-width:641px){nav{padding-left:12px!important;padding-right:12px!important;gap:8px!important}.nav-links{flex-wrap:nowrap;min-width:0}.nav-links a{padding-left:7px!important;padding-right:7px!important;font-size:11px!important;letter-spacing:0!important}.cta-full{display:none!important}.cta-short{display:inline!important}.nav-cta{padding:7px 12px!important;white-space:nowrap}.lang-btn{font-size:11px!important;padding:5px 8px!important}.nav-sub{display:none}}
@media (max-width:640px){table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.vs-card{max-width:100%;min-width:0}}
.mobile-menu{background:rgba(255,255,255,.99)!important;border-bottom:1px solid rgba(20,25,40,.14)!important;box-shadow:0 8px 24px rgba(20,25,40,.12)}
.mobile-menu a{color:var(--tm-text)!important;border-bottom-color:rgba(20,25,40,.1)!important}
.mobile-menu a:last-child{color:var(--tm-gold)!important}
.mobile-menu a[style*="color:#00ff88"]{color:var(--tm-green)!important}
.det-row,.pg,.product-card,.step,.info-badge,.dll-tg{background:#ffffff!important;border-color:rgba(20,25,40,.14)!important}
.ptabs,.dll-sw{background:#eef1f8!important}
.pg-pr{color:var(--tm-green)!important}
.pg-code{color:var(--tm-purple)!important}
.pbtn.pb-ghost{color:#128c4a!important}
.pbtn.pb-review{color:var(--tm-blue)!important}
.ptabs .ptab{color:#334155!important}

/* form fields: light */
input[type=text],input[type=search],input[type=email],input[type=number],input:not([type]),select,textarea{background-color:#ffffff!important;color:#1a1f2e!important;border-color:rgba(20,25,40,.25)!important}
input::placeholder,textarea::placeholder{color:#667085!important}

/* leftover grey / light text on white */
.toc a{color:#334155!important}
.pro li,.con li,.pc li,.card-features li,.product-card li{color:#334155!important}
[style*="#8b8fa8"],[style*="#9ba3c0"]{color:#475467!important}
.firm-cta,a.firm-cta{color:#ffffff!important}

/* v2: stop page being panned sideways on phones (wide tables scroll inside their own wrapper) */
@media (max-width:640px){html,body{overflow-x:hidden;max-width:100%}.table-wrap{max-width:100%;overflow-x:auto}}

/* v3 */
.trust-section{background:#eef1f8!important}
.timeline-text{color:#475467!important}
.timeline-date{color:var(--tm-red)!important}
.alt-name{color:var(--tm-green)!important}

/* v4 */
footer{background:#eef1f8!important}
.modal{background:#ffffff!important}
.modal div:not([class]){background:transparent!important}
[style*="#ffb800"],[style*="#FFB800"]{color:var(--tm-gold)!important}
.warning-title{color:var(--tm-red)!important}
.warning-text{color:#475467!important}
.alt-detail{color:var(--tm-gold)!important}
