/* TradeLocker terminal v58: swipe pager (Trade / AI Bots / Signals), compact stats, markets panel, order bar, minimal positions, coloured history.
   Uses the same scoped colour tokens as tl-fx.css, so the light theme keeps working. */
.tx{position:relative;--g:#2dffb0;--r:#ff3d81;--cy:#f2b632}
.tx-hud{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px;font:700 11px Inter,system-ui,sans-serif;letter-spacing:.18em;color:#929292;text-transform:uppercase}
.tx-hud em{font-style:normal;color:#f2b632;margin:0 4px}
.tx-hud-r{display:flex;align-items:center;gap:8px;letter-spacing:.1em;font-size:11px;color:#afafaf}
.tx-ic{width:30px;height:30px;padding:0;border-radius:9px;border:1px solid rgba(242,182,50,.25);background:rgba(13,13,13,.6);color:#d1d1d1;display:grid;place-items:center;cursor:pointer;transition:.15s}
.tx-ic svg{width:16px;height:16px}.tx-ic:hover{border-color:#f2b632;color:#f2b632}.tx-ic[aria-pressed="false"]{opacity:.5}

/* ---- four compact stat tiles ---- */
.tx-stats{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:8px;margin-bottom:10px}
.tx-st{position:relative;min-width:0;padding:7px 12px 8px;border-radius:12px;background:linear-gradient(160deg,rgba(18,18,18,.78),rgba(11,11,11,.7));border:1px solid rgba(242,182,50,.14);box-shadow:0 8px 22px rgba(0,0,0,.3)}
.tx-st::after{content:"";position:absolute;left:12px;width:26px;top:0;height:2px;background:linear-gradient(90deg,#f2b632,transparent);border-radius:2px;box-shadow:0 0 10px #f2b632}
.tx-lab{display:flex;align-items:center;gap:6px;font:700 9.5px Inter,system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#858585;white-space:nowrap}
.tx-st b{display:block;margin-top:2px;font:800 15px Inter,system-ui,sans-serif;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-st b small{font-size:9.5px;font-weight:700;color:#929292;margin-left:4px;letter-spacing:.04em}
.tx-st b.pos{color:var(--g)}.tx-st b.neg{color:var(--r)}
.tx-st select{width:100%;margin-top:1px;padding:0;background:transparent;border:0;color:#fff;font:700 13px var(--body);text-overflow:ellipsis;cursor:pointer}
.tx-st select option{background:#0e0e0e;color:#fff}
.tx-chip{font-style:normal;padding:1px 7px;border-radius:999px;font:800 9px Inter,system-ui,sans-serif;letter-spacing:.1em}
.tx-chip.demo{color:var(--g);background:rgba(45,255,176,.12);border:1px solid rgba(45,255,176,.45)}
.tx-chip.live{color:#fff;background:var(--r);border:1px solid var(--r);box-shadow:0 0 14px rgba(255,61,129,.6);animation:tlblink 1.6s ease-in-out infinite}
.tx[data-mode="live"] .tx-acct{border-color:rgba(255,61,129,.6);box-shadow:0 0 22px rgba(255,61,129,.2)}

/* ---- page tabs ---- */
.tx-tabs{position:sticky;top:var(--tbh,64px);z-index:40;display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 12px;padding:4px;border-radius:14px;background:rgba(8,8,8,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(242,182,50,.2);box-shadow:0 10px 30px rgba(0,0,0,.35)}
.tx-tabs button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 6px;border:0;background:transparent;color:#a1a1a1;font:700 13px var(--body);cursor:pointer;border-radius:10px;white-space:nowrap;transition:color .15s}
.tx-tabs button.on{color:#fff}.tx-tabs svg{width:16px;height:16px;flex:none}
.tx-ind{position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/4);border-radius:10px;pointer-events:none;will-change:transform;background:linear-gradient(135deg,rgba(242,182,50,0.22),rgba(242,182,50,0.2));border:1px solid rgba(242,182,50,.55);box-shadow:0 0 18px rgba(242,182,50,.25)}
.tx-dot{width:8px;height:8px;border-radius:50%;background:#6b6b6b;flex:none}
.tx-dot[data-st="alert"]{background:#f2b632;box-shadow:0 0 10px #f2b632}.tx-dot[data-st="auto"]{background:#a78bfa;box-shadow:0 0 10px #a78bfa;animation:tlblink 1s infinite}
.tx-tsig{font-style:normal;font:800 10px Inter,system-ui,sans-serif;letter-spacing:.06em;padding:2px 6px;border-radius:6px;color:#a1a1a1;border:1px solid rgba(242,182,50,.25)}
.tx-tsig:empty{display:none}.tx-tsig.buy{color:var(--g);border-color:rgba(45,255,176,.55)}.tx-tsig.sell{color:#ff6fa0;border-color:rgba(255,61,129,.55)}

/* ---- pager ---- */
.tx-pager{display:flex;align-items:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.tx-pager::-webkit-scrollbar{display:none}
.tx-page{flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;padding:0 1px 6px}
.tx .tl-card{margin-bottom:0}

/* ---- trade page ---- */
.tx-trade{display:grid;gap:12px;grid-template-columns:minmax(0,1fr);padding-bottom:96px}
.tx-findrow{display:grid;gap:8px;min-width:0}
.tx-findrow .tl-find{margin:0}
.tx-cats{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:1px}
.tx-cats::-webkit-scrollbar{display:none}
.tx-cats button{flex:none;padding:8px 14px;border-radius:999px;border:1px solid rgba(242,182,50,.25);background:rgba(13,13,13,.5);color:#d1d1d1;font:700 12px var(--body);cursor:pointer;transition:.15s}
.tx-cats button.on{background:rgba(242,182,50,.16);border-color:#f2b632;color:#f2b632;box-shadow:0 0 14px rgba(242,182,50,.3)}
.tx-mk{padding:12px 10px 10px;min-width:0}
.tx-mkh{display:flex;justify-content:space-between;align-items:center;padding:0 6px 8px;font:700 11.5px Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#b1b1b1}
.tx-mkh span{display:flex;gap:14px;padding-right:34px}.tx-mkh small{font:700 9.5px Inter,system-ui,sans-serif;letter-spacing:.12em;color:#858585}
.tx-wl{display:flex;flex-direction:column;gap:2px;max-height:520px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(242,182,50,.3) transparent}
.tx-mrow{display:flex;align-items:center;border-radius:10px;border:1px solid transparent}
.tx-mrow.on{background:linear-gradient(90deg,rgba(242,182,50,.16),rgba(242,182,50,.04));border-color:rgba(242,182,50,.4)}
.tx-mpick{flex:1;min-width:0;display:flex;align-items:center;gap:9px;padding:8px 6px;border:0;background:transparent;color:#fff;cursor:pointer;text-align:left;font:inherit}
.tx-mn{flex:1;min-width:0;display:flex;flex-direction:column}.tx-mn b{font:800 13px Inter,system-ui,sans-serif;letter-spacing:.02em}.tx-mn small{font:600 10.5px var(--body);color:#929292;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx-mq{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.tx-mp{font:700 12.5px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#eeeeee}
.tx-mc{text-align:right;font:800 11px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#a1a1a1}
.tx-mc.pos{color:var(--g)}.tx-mc.neg{color:var(--r)}
.tx-mstar{flex:none;width:30px;height:34px;border:0;background:transparent;color:#858585;font-size:16px;cursor:pointer}.tx-mstar.on{color:#ffd24a}
.tx-add{width:100%;margin-top:8px;padding:9px;border-radius:10px;border:1px dashed rgba(242,182,50,.4);background:rgba(242,182,50,.06);color:#f2b632;font:700 12.5px var(--body);cursor:pointer}
.tx-bdg{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:800 10px Inter,system-ui,sans-serif;font-style:normal;color:#fff;background:#3a3a3a}
.tx-bdg-au{background:linear-gradient(135deg,#f7d26a,#f2b632);color:var(--on-gold)}.tx-bdg-ag{background:linear-gradient(135deg,#ebebeb,#939393);color:#1b1b1b}
.tx-bdg-btc{background:#f7931a}.tx-bdg-eth{background:#627eea}.tx-bdg-fx{background:linear-gradient(135deg,#f2b632,#f2b632)}.tx-bdg-ix{background:linear-gradient(135deg,#f2b632,#f2b632)}
.tx-center,.tx-side{display:flex;flex-direction:column;gap:12px;min-width:0}

/* chart card */
.tx-chart{padding:12px 14px}
.tx-chead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:6px}
.tx-symr{display:flex;align-items:center;gap:4px}
.tl-card .tx-symr h2#tl-name{margin:0;font:800 18px Inter,system-ui,sans-serif;letter-spacing:.04em;text-transform:none;color:#fff}
.tx-sym small{display:block;color:#a1a1a1;font:600 12px var(--body)}
.tx-quote{text-align:right}
.tx-big{font:800 clamp(24px,5vw,32px)/1 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#fff}
.tx-big .up{color:var(--g);text-shadow:0 0 20px rgba(45,255,176,.45)}.tx-big .dn{color:var(--r);text-shadow:0 0 20px rgba(255,61,129,.45)}
.tx-qs{margin-top:4px;font:600 11.5px var(--body);color:#a1a1a1}.tx-qs span{font-family:Inter,system-ui,sans-serif;color:#d1d1d1;font-variant-numeric:tabular-nums}
.tx .tx-chart canvas{height:420px}
.tx .tl-tf{margin:4px 0 8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.tx .tl-tf button{flex:none}

/* ---- order bar ---- */
.tx-ord{position:relative}
.tx-ord-in{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(0,1fr) 124px 124px;gap:8px;align-items:end;padding:10px;border-radius:14px;background:linear-gradient(160deg,rgba(18,18,18,.78),rgba(11,11,11,.7));border:1px solid rgba(242,182,50,.16);box-shadow:0 14px 40px rgba(0,0,0,.35)}
.tx[data-mode="live"] .tx-ord-in{border-color:rgba(255,61,129,.55)}
.tx-fld{display:flex;flex-direction:column;gap:4px;min-width:0}
.tx-fld>span{font:700 9.5px Inter,system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#858585}
.tx-fld .tl-in{padding:0 10px;height:42px;border-radius:10px;font-size:15px}
.tx-step{display:flex;align-items:center;height:42px;border-radius:10px;overflow:hidden;background:rgba(7,7,7,.7);border:1px solid rgba(242,182,50,.22)}
.tx-step button{flex:none;width:34px;height:100%;border:0;background:transparent;color:#d1d1d1;font-size:20px;cursor:pointer}.tx-step button:hover{color:#f2b632}
.tx-step input{flex:1;min-width:0;width:100%;text-align:center;border:0;background:transparent;color:#fff;font:700 15px Inter,system-ui,sans-serif;padding:0;-moz-appearance:textfield}
.tx-step input::-webkit-outer-spin-button,.tx-step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tx-step input:focus{outline:0}
.tx-ord .tl-btns{display:contents}
.tx-ord .tl-btns button{margin:0;height:50px;padding:4px 6px;border-radius:12px;font-size:13px}
.tx-ord .tl-btns button small{font-size:12px}
.tx-sltgl{display:none}
.tx-msg{margin:0;min-height:0}.tx-msg:empty{display:none}.tx-msg span{display:block;min-height:0;margin:0}.tx-msg span:empty{display:none}
.tx-msg .tl-err,.tx-msg .tl-ok{margin:0 2px}

/* ---- positions: symbol + floating profit only ---- */
.tx-pos{padding:14px}
.tx-plist{display:flex;flex-direction:column;gap:7px}
.tx-prow{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:13px 14px;border-radius:12px;background:rgba(7,7,7,.55);border:1px solid rgba(242,182,50,.14);border-left:3px solid #6b6b6b;color:#fff;cursor:pointer;text-align:left;font:inherit;transition:.15s}
.tx-prow:hover{border-color:rgba(242,182,50,.45)}
.tx-prow.pos{border-left-color:var(--g);background:linear-gradient(90deg,rgba(45,255,176,.1),rgba(7,7,7,.55) 70%)}
.tx-prow.neg{border-left-color:var(--r);background:linear-gradient(90deg,rgba(255,61,129,.12),rgba(7,7,7,.55) 70%)}
.tx-psym{font:800 15px Inter,system-ui,sans-serif;letter-spacing:.03em}
.tx-ppl{font:800 16px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#d1d1d1}
.tx-prow.pos .tx-ppl{color:var(--g)}.tx-prow.neg .tx-ppl{color:var(--r)}
.tx-orow{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:11px 14px;border-radius:12px;background:rgba(7,7,7,.55);border:1px solid rgba(242,182,50,.14)}
.tx-orow .tx-osub{grid-column:1;font:600 12px var(--body);color:#a1a1a1}.tx-orow .tl-sm{grid-row:1/3;grid-column:2}

/* ---- history: profit green, loss red ---- */
.tx-hsum{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:10px}
.tx-hsum>div{padding:8px 10px;border-radius:10px;background:rgba(7,7,7,.55);border:1px solid rgba(242,182,50,.14);min-width:0}
.tx-hsum small{display:block;font:700 9px Inter,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#858585}
.tx-hsum b{display:block;margin-top:2px;font:800 14px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-hsum b.pos{color:var(--g)}.tx-hsum b.neg{color:var(--r)}
.tx-hv{margin:0 0 10px}
.tx-hrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 14px;border-radius:12px;border:1px solid rgba(242,182,50,.14);border-left:3px solid #6b6b6b;background:rgba(7,7,7,.55)}
.tx-hrow.pos{border-left-color:var(--g);background:linear-gradient(90deg,rgba(45,255,176,.13),rgba(7,7,7,.55) 65%)}
.tx-hrow.neg{border-left-color:var(--r);background:linear-gradient(90deg,rgba(255,61,129,.15),rgba(7,7,7,.55) 65%)}
.tx-hl{display:flex;flex-direction:column;gap:2px;min-width:0}.tx-hl b{font:800 14px Inter,system-ui,sans-serif;color:#fff}
.tx-hl small{font:600 11.5px var(--body);color:#a1a1a1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-hl small.t{color:#858585;font-size:11px}
.tx-hl small .pos,.tx-osub .pos{color:var(--g)}.tx-hl small .neg,.tx-osub .neg{color:var(--r)}
.tx-hr{font:800 16px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;color:#a1a1a1}
.tx-hr.pos{color:var(--g);text-shadow:0 0 14px rgba(45,255,176,.4)}.tx-hr.neg{color:var(--r);text-shadow:0 0 14px rgba(255,61,129,.4)}
.tx-hs{font:700 11px Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#a1a1a1;white-space:nowrap}.tx-hs.bad{color:#ff8fb3}
.tx-dh{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.tx-dh h2{margin:0}.tx-dh b{font:800 17px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.tx-dh b.pos,.tl-mb .pos{color:var(--g)}.tx-dh b.neg,.tl-mb .neg{color:var(--r)}
.tx-dact{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;margin-top:10px}
.tx-dact button{padding:11px 6px;border-radius:12px;border:1px solid rgba(242,182,50,.28);background:rgba(13,13,13,.6);color:#d1d1d1;font:700 12.5px var(--body);cursor:pointer}
.tx-dact button:hover:not(:disabled){border-color:#f2b632;color:#f2b632}.tx-dact .danger{border-color:rgba(255,61,129,.55);color:#ff8fb3}.tx-dact .danger:hover:not(:disabled){border-color:var(--r);color:#fff;background:rgba(255,61,129,.25)}

/* ---- side column ---- */
.tx-promo{display:flex;gap:0;padding:0;overflow:hidden;align-items:stretch;background:linear-gradient(135deg,rgba(31,31,31,.8),rgba(11,11,11,.8))}
.tx-promo img{width:42%;max-width:150px;object-fit:cover;object-position:center top;-webkit-mask:linear-gradient(90deg,#000 55%,transparent);mask:linear-gradient(90deg,#000 55%,transparent)}
.tx-promo>div{flex:1;padding:14px 14px 14px 4px;display:flex;flex-direction:column;justify-content:center}
.tx-promo h3,.tx-hero h3{margin:0;font:800 17px/1.15 Inter,system-ui,sans-serif;letter-spacing:.03em;color:#fff}
.tx-promo h3 b,.tx-hero h3 b{display:block;font-size:26px;color:#f2b632;text-shadow:0 0 22px rgba(242,182,50,.5)}
.tx-promo p,.tx-hero p{margin:6px 0 10px;font:500 12.5px/1.35 var(--body);color:#c8c8c8}
.tx-go{align-self:flex-start;padding:9px 14px;border-radius:999px;border:1px solid #f2b632;background:rgba(242,182,50,.1);color:#f2b632;font:700 12.5px var(--body);cursor:pointer;box-shadow:0 0 16px rgba(242,182,50,.25)}
.tx-go:hover{background:rgba(242,182,50,.22)}
.tx-info,.tx-set{padding:14px}
.tx-range{margin-bottom:12px}
.tx-rbar{position:relative;height:6px;border-radius:6px;background:linear-gradient(90deg,var(--r),#ffd24a 50%,var(--g))}
.tx-rbar i{position:absolute;top:50%;left:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#fff;box-shadow:0 0 10px rgba(255,255,255,.24)}
.tx-rl{display:flex;justify-content:space-between;align-items:center;margin-top:6px;font:700 12px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#eeeeee}.tx-rl small{font:600 10px var(--body);color:#858585}
.tx-kv{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tx-kv small{display:block;font:600 10.5px var(--body);color:#858585}.tx-kv b{display:block;margin-top:2px;font:800 13px Inter,system-ui,sans-serif;color:#fff}
.tx-set .tl-h3{margin:12px 0 4px}.tx-set .tl-chips{margin:4px 0 8px}
.tx-risk{margin:0 4px}

/* ---- AI Bots page ---- */
.tx-ai{display:grid;gap:12px;min-width:0}
.tx-hero{position:relative;display:flex;align-items:stretch;overflow:hidden;border-radius:16px;border:1px solid rgba(242,182,50,.3);background:linear-gradient(135deg,rgba(31,31,31,.85),rgba(11,11,11,.85));box-shadow:0 14px 40px rgba(0,0,0,.35),0 0 40px rgba(242,182,50,.08)}
.tx-hero img{width:38%;max-width:190px;object-fit:cover;object-position:center top;-webkit-mask:linear-gradient(90deg,#000 55%,transparent);mask:linear-gradient(90deg,#000 55%,transparent)}
.tx-hero-t{flex:1;min-width:0;padding:16px 16px 16px 2px;display:flex;flex-direction:column;justify-content:center}
.tx-hstat{display:flex;align-items:center;gap:10px}.tx-hstat .tl-orb{width:30px;height:30px}
.tx-hstat b{display:block;font:700 12.5px var(--body);color:#eeeeee}.tx-hstat small{display:block;font:800 11px Inter,system-ui,sans-serif;letter-spacing:.06em;color:#a1a1a1}.tx-hstat small.buy{color:var(--g)}.tx-hstat small.sell{color:#ff8fb3}
.tx-aib{min-width:0}.tx-aib .tl-aih{display:none}
.tx-sigp{min-width:0}.tx-sigp .tlc{margin-bottom:0}

/* ---- desktop: three columns like the reference design ---- */
@media(min-width:1000px){
  .tx-trade{grid-template-columns:238px minmax(0,1fr) 312px;grid-template-areas:"find find find" "mk center side";align-items:start;padding-bottom:20px}
  .tx-findrow{grid-area:find;grid-template-columns:320px 1fr;align-items:center}
  .tx-mk{grid-area:mk}.tx-center{grid-area:center}.tx-side{grid-area:side}
  .tx-wl{max-height:none}
  .tx-tabs{max-width:700px;margin-left:auto;margin-right:auto}
  .tx-ai{grid-template-columns:340px minmax(0,1fr);align-items:start}
  .tx-hero{flex-direction:column;position:sticky;top:calc(var(--tbh,64px) + 74px)}
  .tx-hero img{width:100%;max-width:none;height:260px;-webkit-mask:linear-gradient(180deg,#000 55%,transparent);mask:linear-gradient(180deg,#000 55%,transparent)}
  .tx-hero-t{padding:0 18px 18px}
}
@media(min-width:1000px) and (max-width:1180px){.tx-trade{grid-template-columns:210px minmax(0,1fr) 280px}.tx-ord-in{grid-template-columns:140px minmax(0,1fr) minmax(0,1fr) 108px 108px}}

/* ---- tablet / phone ---- */
@media(max-width:999px){
  .tx-center,.tx-side{display:contents}
  .tx-findrow{order:1}.tx-mk{order:2}.tx-chart{order:3}.tx-msg{order:4}.tx-pos{order:5}.tx-set{order:6}.tx-dtq{order:5}.tx-info{order:7}.tx-risk{order:8}.tx-promo{display:none}
  .tx-mk{padding:8px 8px 8px}.tx-mkh,.tx-add{display:none}
  .tx-wl{flex-direction:row;gap:8px;max-height:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:2px}
  .tx-wl::-webkit-scrollbar{display:none}
  .tx-mrow{flex:none;border:1px solid rgba(242,182,50,.16);background:rgba(7,7,7,.5);padding-right:2px}
  .tx-mrow.on{border-color:#f2b632}
  .tx-wl .tl-empty{padding:6px 8px}
  .tx-mpick{padding:7px 4px 7px 8px;gap:8px}
  .tx-wl .tx-mq{margin-left:6px}
  .tx-mstar{width:26px}
  .tx .tx-chart canvas{height:300px}
  .tx-info .tx-kv{grid-template-columns:repeat(4,1fr)}
  .tl-toast{bottom:92px}
}
@media(max-width:820px){
  .tx-ord{position:fixed;left:0;right:0;bottom:0;z-index:55;padding:14px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(6,6,6,.95);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid rgba(242,182,50,.32);box-shadow:0 -12px 34px rgba(0,0,0,.5);transition:opacity .2s,transform .2s}
  .tx[data-mode="live"] .tx-ord{border-top-color:rgba(255,61,129,.7)}
  .tx[data-p="1"] .tx-ord,.tx[data-p="2"] .tx-ord,.tx[data-p="3"] .tx-ord{opacity:0;pointer-events:none;transform:translateY(100%)}
  .tx-ord-in{grid-template-columns:repeat(6,1fr);grid-template-areas:"lots lots sell sell buy buy";padding:0;background:none;border:0;box-shadow:none;align-items:stretch}
  .tx[data-mode="live"] .tx-ord-in{border:0}
  .tx-lots{grid-area:lots}.tx-sl{grid-area:sl;display:none}.tx-tp{grid-area:tp;display:none}
  .tx-ord .tl-btns .sell{grid-area:sell}.tx-ord .tl-btns .buy{grid-area:buy}
  .tx-lots>span{display:none}.tx-ord .tl-btns button,.tx-step{height:46px}.tx-ord .tl-btns button{align-self:end}.tx-lots{align-self:end}
  .tx-ord.open .tx-ord-in{grid-template-areas:"sl sl sl tp tp tp" "lots lots sell sell buy buy";row-gap:8px}
  .tx-ord.open .tx-sl,.tx-ord.open .tx-tp{display:flex}
  .tx-sltgl{display:block;position:absolute;right:12px;top:-13px;padding:4px 12px;border-radius:999px;border:1px solid rgba(242,182,50,.4);background:#111111;color:#f2b632;font:700 11px var(--body);cursor:pointer}
  .tx-sltgl i{font-style:normal;display:inline-block;transition:transform .2s}.tx-ord.open .tx-sltgl i{transform:rotate(180deg)}
  .tx-trade{padding-bottom:110px}
}
@media(max-width:640px){
  .tx-stats{grid-template-columns:repeat(3,1fr);gap:6px}
  .tx-acct{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px}
  .tx-acct select{width:auto;max-width:58%;margin:0;text-align:right;text-align-last:right}
  .tx-st{padding:6px 9px 7px}.tx-st b{font-size:13px}.tx-st b small{display:none}.tx-lab{font-size:8.5px;letter-spacing:.1em}
  .tx-hud{font-size:10px;letter-spacing:.12em}
  .tx-tabs button{padding:9px 4px;font-size:12.5px;gap:5px}
  .tx .tx-chart canvas{height:260px}
  .tx-chart{padding:10px 11px}
  .tx-hsum{grid-template-columns:1fr 1fr}
  .tx-hero img{width:40%}
  .tx-hero h3 b{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.tx-chip.live,.tx-dot{animation:none!important}.tx-pager{scroll-behavior:auto}}

/* ---- light theme ---- */
:root[data-theme="light"] .tx-st,:root[data-theme="light"] .tx-ord-in,:root[data-theme="light"] .tx-tabs{background:#fff;border-color:rgba(17,17,17,.14);box-shadow:0 6px 20px rgba(17,17,17,.08)}
:root[data-theme="light"] .tx-st b,:root[data-theme="light"] .tx-st select,:root[data-theme="light"] .tx-psym,:root[data-theme="light"] .tx-hl b,:root[data-theme="light"] .tx-hsum b,:root[data-theme="light"] .tx-kv b,:root[data-theme="light"] .tx-big,:root[data-theme="light"] .tx-mn b,:root[data-theme="light"] .tl-card .tx-symr h2#tl-name,:root[data-theme="light"] .tx-step input{color:#0d0d0d}
:root[data-theme="light"] .tx-st b.pos,:root[data-theme="light"] .tx-big .up,:root[data-theme="light"] .tx-mc.pos,:root[data-theme="light"] .tx-hsum b.pos,:root[data-theme="light"] .tx-hr.pos,:root[data-theme="light"] .tx-prow.pos .tx-ppl{color:#0b8a5f;text-shadow:none}
:root[data-theme="light"] .tx-st b.neg,:root[data-theme="light"] .tx-big .dn,:root[data-theme="light"] .tx-mc.neg,:root[data-theme="light"] .tx-hsum b.neg,:root[data-theme="light"] .tx-hr.neg,:root[data-theme="light"] .tx-prow.neg .tx-ppl{color:#d61f5c;text-shadow:none}
:root[data-theme="light"] .tx-tabs button{color:#626262}:root[data-theme="light"] .tx-tabs button.on{color:#a85f00}
:root[data-theme="light"] .tx-ind{background:rgba(168,95,0,.1);border-color:#a85f00;box-shadow:none}
:root[data-theme="light"] .tx-prow,:root[data-theme="light"] .tx-hrow,:root[data-theme="light"] .tx-orow,:root[data-theme="light"] .tx-hsum>div,:root[data-theme="light"] .tx-mrow{background:#f8f8f8;border-color:rgba(17,17,17,.12)}
:root[data-theme="light"] .tx-prow{color:#0d0d0d}
:root[data-theme="light"] .tx-prow.pos,:root[data-theme="light"] .tx-hrow.pos{background:linear-gradient(90deg,rgba(11,138,95,.14),#f8f8f8 70%)}
:root[data-theme="light"] .tx-prow.neg,:root[data-theme="light"] .tx-hrow.neg{background:linear-gradient(90deg,rgba(214,31,92,.12),#f8f8f8 70%)}
:root[data-theme="light"] .tx-mpick,:root[data-theme="light"] .tx-mp{color:#0d0d0d}
:root[data-theme="light"] .tx-cats button{background:#fff;color:#1c1c1c;border-color:rgba(17,17,17,.2)}:root[data-theme="light"] .tx-cats button.on{background:rgba(168,95,0,.1);color:#a85f00;border-color:#a85f00;box-shadow:none}
:root[data-theme="light"] .tx-step,:root[data-theme="light"] .tx-step button{background:#fff;color:#0d0d0d;border-color:rgba(17,17,17,.2)}
:root[data-theme="light"] .tx-ord{background:rgba(255,255,255,.96)}
:root[data-theme="light"] .tx-sltgl{background:#fff;color:#a85f00}
:root[data-theme="light"] .tx-promo,:root[data-theme="light"] .tx-hero{background:linear-gradient(135deg,#0f0f0f,#0a0a0a);border-color:rgba(168,95,0,.4)}
:root[data-theme="light"] .tx-hud,:root[data-theme="light"] .tx-hud-r{color:#626262}
:root[data-theme="light"] .tx-ic{background:#fff;color:#1c1c1c;border-color:rgba(17,17,17,.2)}
:root[data-theme="light"] .tx-dact button{background:#fff;color:#1c1c1c;border-color:rgba(17,17,17,.2)}
:root[data-theme="light"] .tx-mkh,:root[data-theme="light"] .tx-lab{color:#626262}
.tl-mb .tl-f2 label:first-child{grid-column:auto}

/* ---------- trade issue panel ---------- */
.tl-iss{position:fixed;right:16px;top:calc(var(--tbh,64px) + 12px);z-index:9000;width:min(380px,calc(100vw - 24px));display:none;font-family:Inter,system-ui,sans-serif}
.tl-iss.on{display:block}
.tl-iss-h{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:12px 12px 0 0;background:#111111;color:#ffd6e4;border:1px solid #ff3d81;font-size:13px}
.tl-iss.min .tl-iss-h{border-radius:12px}
.tl-iss-h em{font-style:normal;background:#ff3d81;color:#fff;border-radius:99px;padding:1px 8px;margin-left:6px;font-size:12px}
.tl-iss-h button{background:transparent;border:1px solid rgba(255,214,228,.4);color:inherit;border-radius:8px;padding:3px 9px;font-size:12px;margin-left:6px;cursor:pointer}
.tl-iss-l{max-height:min(60vh,460px);overflow:auto;border:1px solid #ff3d81;border-top:0;border-radius:0 0 12px 12px;background:#0d0d0d;box-shadow:0 14px 40px rgba(0,0,0,.5)}
.tl-iss-c{position:relative;padding:12px 38px 12px 14px;border-bottom:1px solid rgba(255,255,255,.08);color:#eeeeee}
.tl-iss-c:last-child{border-bottom:0}
.tl-iss-c small{display:block;color:#a2a2a2;font-size:11.5px;margin-bottom:3px}
.tl-iss-c h4{margin:0 0 4px;font-size:14.5px;color:#ff7aa5}
.tl-iss-c.warn h4{color:#ffc857}
.tl-iss-c p{margin:0 0 6px;font-size:13px;line-height:1.45;word-break:break-word}
.tl-iss-c ul{margin:0 0 6px;padding-left:18px;font-size:12.5px;line-height:1.45;color:#d4d4d4}
.tl-iss-c details{font-size:12px;color:#a2a2a2}
.tl-iss-c summary{cursor:pointer}
.tl-iss-c code{display:block;margin-top:4px;padding:6px 8px;background:#070707;border-radius:8px;font:11.5px/1.4 ui-monospace,Menlo,Consolas,monospace;color:#d5d5d5;word-break:break-word;white-space:pre-wrap}
.tl-iss-x{position:absolute;top:6px;right:8px;background:transparent;border:0;color:#a2a2a2;font-size:22px;line-height:1;cursor:pointer;padding:4px 8px}
:root[data-theme="light"] .tl-iss-l{background:#fff}
:root[data-theme="light"] .tl-iss-c{color:#0d0d0d}
:root[data-theme="light"] .tl-iss-c ul{color:#232323}
:root[data-theme="light"] .tl-iss-c code{background:#f2f2f2;color:#1e1e1e}
@media(max-width:820px){.tl-iss{left:12px;right:12px;width:auto;top:auto;bottom:84px}.tl-iss-l{max-height:46vh}}

/* ---------- real symbol icons ---------- */
.sym{display:inline-flex;align-items:center;flex:none;position:relative;width:28px;height:28px;vertical-align:middle}
.sym img{width:28px;height:28px;border-radius:50%;object-fit:cover;display:block;background:#0d0d0d;box-shadow:0 0 0 1px rgba(255,255,255,.04)}
.sym-pair{width:42px}
.sym-pair img{width:26px;height:26px;position:absolute;top:1px;box-shadow:0 0 0 2px #0d0d0d}
.sym-pair img:first-child{left:0;z-index:2}.sym-pair img:last-child{left:15px;z-index:1}
.sym-t{border-radius:50%;background:linear-gradient(135deg,#f2b632,#f2b632);justify-content:center;color:#fff}
.sym-t b{font:800 10px Inter,system-ui,sans-serif}
.sym-sm{width:22px;height:22px}.sym-sm img{width:22px;height:22px}
.sym-sm.sym-pair{width:34px}.sym-sm.sym-pair img{width:20px;height:20px}.sym-sm.sym-pair img:last-child{left:12px}
.tx-hico{display:inline-flex;margin-right:8px}
.tx-hico .sym{width:34px;height:34px}.tx-hico .sym img{width:34px;height:34px}
.tx-hico .sym-pair{width:50px}.tx-hico .sym-pair img{width:30px;height:30px}.tx-hico .sym-pair img:last-child{left:20px}
.tx-psym,.tx-hn{display:inline-flex;align-items:center;gap:8px}
.tx-hl b.tx-hn{display:flex}
.tx-sn{flex:1;text-align:left}
#tl-sres button,.tl-sres button{display:flex;align-items:center;gap:8px}
:root[data-theme="light"] .sym img{background:#fff;box-shadow:0 0 0 1px rgba(13,13,13,.14)}
:root[data-theme="light"] .sym-pair img{box-shadow:0 0 0 2px #fff}
/* bot panel market menu */
.ez-mkw{position:relative}
.ez-mkb{display:flex;align-items:center;gap:9px;text-align:left;cursor:pointer;width:100%}
.ez-mkb b{font-size:14px}.ez-mkb small{color:var(--muted);font-size:11.5px}.ez-mkb em{margin-left:auto;font-style:normal;color:var(--muted)}
.ez-mkl{position:absolute;left:0;right:0;top:100%;margin-top:6px;z-index:30;background:var(--panel,#0d0d0d);border:1px solid var(--line,#272727);border-radius:12px;padding:8px;box-shadow:0 18px 40px rgba(0,0,0,.45)}
.ez-mkl[hidden]{display:none}
.ez-rows{max-height:290px;overflow:auto;margin-top:8px;display:flex;flex-direction:column;gap:2px}
.ez-rows h5{margin:8px 4px 2px;font:700 11px Inter,system-ui,sans-serif;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.ez-row{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:9px;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left}
.ez-row:hover,.ez-row.on{background:rgba(242,182,50,.1)}
.ez-row b{font-size:13.5px}.ez-row small{margin-left:auto;color:var(--muted);font-size:11px}

/* ---------- in-page confirm dialog ---------- */
.tl-ask{position:fixed;inset:0;z-index:9500;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(4,4,4,.72);backdrop-filter:blur(4px)}
.tl-ask-b{width:min(420px,100%);background:#0d0d0d;color:#eeeeee;border:1px solid rgba(242,182,50,.35);border-radius:16px;padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.tl-ask-b.live{border-color:#ff3d81}
.tl-ask-b pre{margin:0 0 14px;white-space:pre-wrap;word-break:break-word;font:14px/1.5 Inter,system-ui,sans-serif}
.tl-ask-b input{width:100%;margin:0 0 14px;padding:10px 12px;border-radius:10px;border:1px solid rgba(242,182,50,.35);background:#070707;color:#fff;font:15px Inter,system-ui,sans-serif}
.tl-ask-r{display:flex;gap:10px;justify-content:flex-end}
.tl-ask-r button{min-height:44px;padding:0 18px;border-radius:12px;border:1px solid rgba(242,182,50,.35);background:transparent;color:inherit;font:700 14px Inter,system-ui,sans-serif;cursor:pointer}
.tl-ask-r .go{background:linear-gradient(135deg,#f2b632,#f2b632);border-color:transparent;color:var(--on-gold)}
.tl-ask-b.live .go{background:#ff3d81;color:#fff}
.tl-ask-r .go:disabled{opacity:.4;cursor:not-allowed}
:root[data-theme="light"] .tl-ask-b{background:#fff;color:#0d0d0d}
:root[data-theme="light"] .tl-ask-b input{background:#f5f5f5;color:#0d0d0d}
.tl-btns button.wait,.tx-btns button.wait{opacity:.6}

/* ---------- AI TRADING BOTS panels: the picked bot's image replaces the robot ---------- */
.tx-fig{position:relative;flex:none;width:42%;max-width:150px;min-height:150px;overflow:hidden}
.tx-hero .tx-fig{width:38%;max-width:190px;min-height:190px}
.tx-promo .tx-fig img,.tx-hero .tx-fig img{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center top}
.tx-fig .tx-robot[hidden],.tx-fig .tx-botpic[hidden],.tx-fig .tx-figtag[hidden]{display:none}
.tx-promo .tx-fig .tx-botpic,.tx-hero .tx-fig .tx-botpic{left:10px;top:10px;width:calc(100% - 20px);height:calc(100% - 20px);border-radius:14px;-webkit-mask:none;mask:none;object-position:center top;background:#0b0b0b}
.tx-fig.wide .tx-botpic{object-position:62% center}
.tx-fig[data-has="1"]:after{content:"";position:absolute;left:10px;top:10px;right:10px;bottom:10px;border-radius:14px;pointer-events:none;border:1px solid rgba(242,182,50,.6);box-shadow:0 0 22px rgba(242,182,50,.3),inset 0 0 18px rgba(242,182,50,.12)}
.tx-fig[data-has="1"][data-st="alert"]:after{border-color:#f2b632;box-shadow:0 0 26px rgba(242,182,50,.5),inset 0 0 18px rgba(242,182,50,.18)}
.tx-fig[data-has="1"][data-st="auto"]:after{border-color:#2dffb0;animation:txlive 1.8s ease-in-out infinite}
.tx-figtag{position:absolute;left:16px;right:16px;bottom:16px;padding:4px 8px;border-radius:8px;background:rgba(8,8,8,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(242,182,50,.35);color:#f2b632;font:800 10px/1.3 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:2}
.tx-scan{position:absolute;left:12px;right:12px;top:12px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#f2b632,transparent);opacity:0;pointer-events:none;z-index:2}
.tx-fig[data-has="1"] .tx-scan{animation:txscan 3s ease-in-out infinite}
.tx-fig.pop .tx-botpic{animation:txpop .55s cubic-bezier(.2,.9,.3,1.25)}
.tx-selbot{margin:0 0 8px}
.tx-selbot[hidden]{display:none}
.tx-selbot small{display:block;font:800 9.5px/1.2 Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#f2b632;opacity:.85}
.tx-selbot b{display:block;margin-top:2px;font:800 15px/1.2 Inter,system-ui,sans-serif;color:#fff;overflow-wrap:anywhere}
@keyframes txpop{0%{transform:scale(.82);opacity:0;filter:brightness(2) saturate(1.4)}60%{opacity:1}100%{transform:scale(1);opacity:1;filter:none}}
@keyframes txscan{0%{top:14px;opacity:0}12%{opacity:.9}88%{opacity:.9}100%{top:calc(100% - 16px);opacity:0}}
@keyframes txlive{0%,100%{box-shadow:0 0 14px rgba(45,255,176,.35),inset 0 0 14px rgba(45,255,176,.1)}50%{box-shadow:0 0 30px rgba(45,255,176,.7),inset 0 0 22px rgba(45,255,176,.22)}}
@media(min-width:1000px){.tx-hero .tx-fig{width:100%;max-width:none;height:290px}}
@media(max-width:999px){.tx-hero .tx-fig{width:40%}}
@media(prefers-reduced-motion:reduce){.tx-scan,.tx-fig.pop .tx-botpic,.tx-fig[data-st="auto"]:after{animation:none!important}}

/* ---- Day Trader Studio inside the terminal (4th page) ---- */
@media(max-width:480px){.tx-tabs button{gap:0;padding:9px 2px;font-size:12px}.tx-tabs button svg{display:none}}
.tx-dt{min-width:0}
.tx-dtq{display:flex;flex-direction:column;gap:10px;background:linear-gradient(135deg,rgba(242,182,50,.1),rgba(242,182,50,.08) 60%,rgba(246,196,83,.07));border-color:rgba(242,182,50,.35)}
.tx-dtq-h{display:flex;gap:11px;align-items:center}
.tx-dtq-ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(242,182,50,.14);border:1px solid rgba(242,182,50,.5);color:#f2b632;box-shadow:0 0 18px rgba(242,182,50,.25)}
.tx-dtq-ic svg{width:21px;height:21px}
.tx-dtq h3{margin:0;font:800 14px/1.15 Inter,system-ui,sans-serif;letter-spacing:.05em;color:#fff}.tx-dtq h3 b{color:#f2b632;text-shadow:0 0 18px rgba(242,182,50,.45)}
.tx-dtq p{margin:3px 0 0;font:500 12px/1.35 var(--body);color:#c8c8c8}
.tx-dtq-row{display:flex;gap:8px}.tx-dtq-row .tl-in{flex:1;min-width:0;text-transform:uppercase}.tx-dtq-row .tl-sm{flex:none;white-space:nowrap}.tx-dtq-row .tl-in::placeholder{text-transform:none}
.tx-dtq-btns{display:flex;gap:8px;flex-wrap:wrap}.tx-dtq-btns .tx-go{flex:1;align-self:stretch;padding:9px 10px;white-space:nowrap}
.tx-dtq-cur{width:100%;padding:10px 12px;border-radius:12px;border:1px dashed rgba(246,196,83,.7);background:rgba(246,196,83,.1);color:#f6c453;font:700 12.5px var(--body);cursor:pointer;text-align:center}
.tx-dtq-cur:hover{background:rgba(246,196,83,.2)}.tx-dtq-cur[hidden]{display:none}
.tx-dtchip{display:inline-flex;align-items:center;gap:5px;margin-left:6px;padding:4px 10px 4px 8px;border-radius:999px;border:1px solid rgba(246,196,83,.7);background:rgba(246,196,83,.12);color:#f6c453;font:700 11.5px var(--body);cursor:pointer;white-space:nowrap}
.tx-dtchip svg{width:14px;height:14px}.tx-dtchip:hover{background:rgba(246,196,83,.25)}.tx-dtchip[hidden]{display:none}
:root[data-theme="light"] .tx-dtq{background:linear-gradient(135deg,#0f0f0f,#0a0a0a);border-color:rgba(168,95,0,.4)}
