/* TradeX: the charting subscription. Loaded only when the server runs with TRADEX=1. */
body.tradex footer, body.tradex #ticket, body.tradex #qbar, body.tradex header .stats, body.tradex #status,
body.tradex #practiceBar, body.tradex #billBar, body.tradex #lockBadge, body.tradex #tkToggle, body.tradex #btToggle2,
body.tradex #mentorsBtn, body.tradex #chatBtn, body.tradex #ytBtn, body.tradex #liveBtn, body.tradex #dashBtn, body.tradex #wbBtn,
body.tradex #accId, body.tradex #promo, body.tradex #mnav [data-mv="trade"], body.tradex #mnav [data-mv="pos"],
body.tradex #lgForm, body.tradex .lg-more, body.tradex .lg-links, body.tradex #guideBtn,
body.tradex .market-filter, body.tradex #chartOnlyNotice { display: none !important; }

#txBadge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
#txBadge .tx-pill { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
#txBadge .tx-pill.trial { color: var(--accent); border-color: var(--accent); }
#txBadge .tx-pill.firm, #txBadge .tx-pill.paid { color: var(--green); border-color: var(--green); }
#txBadge button { padding: 4px 10px; font-size: 12px; }

.tx-login-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* the ad strip under the chart, trial users only */
#txAd { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--line); background: var(--panel); font-size: 12.5px; min-height: 40px; }
#txAd[hidden] { display: none; }
#txAd .tx-ad-tag { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; flex: none; }
#txAd .tx-ad-img { height: 26px; width: auto; border-radius: 4px; flex: none; }
#txAd .tx-ad-copy { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#txAd .tx-ad-copy b { color: var(--text); margin-right: 6px; }
#txAd .tx-ad-copy span { color: var(--muted); }
#txAd a.tx-ad-cta { flex: none; background: var(--accent); color: #000; font-weight: 600; text-decoration: none; padding: 5px 12px; border-radius: 6px; }
#txAd .tx-ad-x { flex: none; background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 0 4px; }

/* subscribe screen, daily offer card */
#txWall, #txCard { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .72); }
#txWall[hidden], #txCard[hidden] { display: none; }
.tx-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--text); }
.tx-box h2 { margin: 0 0 6px; font-size: 21px; }
.tx-box p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tx-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.tx-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
@media (max-width: 520px) { .tx-plans { grid-template-columns: 1fr; } }
.tx-plan { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.tx-plan.best { border-color: var(--accent); }
.tx-plan .tx-price { font-size: 26px; font-weight: 700; }
.tx-plan .tx-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.tx-plan .tx-save { font-size: 12px; color: var(--accent); min-height: 16px; }
.tx-plan button { margin-top: 6px; width: 100%; }
.tx-firm { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.tx-msg { min-height: 18px; font-size: 12.5px; color: var(--red); }
.tx-offer-firm { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tx-offer-img { width: 100%; border-radius: 10px; margin-bottom: 12px; }
.tx-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tx-row a, .tx-row button { flex: 1; text-align: center; text-decoration: none; }
