/* FXGG_ARENA — CHART / TRADING TERMINAL (mesma linguagem visual do Hub: azul-marinho/preto, dourado, verde/vermelho, cards compactos) */
.stage.fxt-stage { height: max(600px, calc(100vh - 170px)); }
.fxt { position: absolute; inset: 0; display: flex; flex-direction: column; background: #050a16; color: var(--text); font-size: 12.5px; }
.fxt:fullscreen { background: #050a16; }
.fxt-tabs { display: flex; align-items: center; gap: 2px; padding: 4px 6px 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0d1830, #081022); overflow-x: auto; flex: none; }
.fxt-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 12px; font: 800 11px "Segoe UI", system-ui; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.fxt-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.fxt-brand { margin-left: auto; padding: 0 8px; font: 800 10.5px "Segoe UI"; letter-spacing: .14em; color: var(--muted); white-space: nowrap; } .fxt-brand b { color: var(--gold); }
.fxt-pane { flex: 1; min-height: 0; min-width: 0; overflow: auto; padding: 10px 12px; }
.fxt-box { overflow-x: auto; }
.fxt-chartpane { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.fxt-bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: #070e1d; flex: none; }
.fxt-bar button, .fxt-bar select { padding: 4px 8px; font: 700 11px "Segoe UI"; border-radius: 6px; background: #0b1426; width: auto; }
.fxt-bar button.on, .fxt-menu button.on { color: var(--gold); border-color: var(--gold); }
.fxt-gold { color: #1b1300 !important; background: linear-gradient(180deg, #ffdf86, #c8961e) !important; border: 0 !important; font-weight: 900 !important; }
.fxt-tfq { display: flex; gap: 3px; } .fxt-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; } .fxt-grow { flex: 1; }
.fxt-dd { position: relative; }
.fxt-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 220px; max-height: 70vh; overflow: auto; padding: 8px; background: #0b1426; border: 1px solid var(--gold2); border-radius: 10px; box-shadow: var(--shadow); display: grid; gap: 3px; }
.fxt-menu > button { text-align: left; }
.fxt-mg h5 { margin: 4px 0; font: 800 10px "Segoe UI"; letter-spacing: .1em; color: var(--muted); } .fxt-mg { display: flex; flex-wrap: wrap; gap: 3px; } .fxt-mg h5 { width: 100%; }
.fxt-legend { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 8px; min-height: 0; flex: none; }
.fxt-legend:empty { display: none; }
.fxt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: #0b1426; font-size: 11px; }
.fxt-chip i { color: var(--muted); font-style: normal; } .fxt-chip.off { opacity: .5; }
.fxt-chip button { padding: 0 4px; border: 0; background: none; font-size: 11px; }
.fxt-chart { position: relative; flex: 1; min-height: 240px; }
.fxc canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } .fxc-top { cursor: crosshair; touch-action: none; }
.fxt-status { flex: none; padding: 3px 10px; font: 10px Consolas, monospace; color: var(--muted); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxt-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(2, 4, 10, .72); }
.fxt-mbox { width: min(720px, 94%); max-height: 88%; overflow: auto; padding: 14px 16px; background: #0b1426; border: 1px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); }
.fxt-mbox h3 { margin: 0 0 10px; color: var(--gold); letter-spacing: .1em; font-size: 14px; }
.fxt-ilist { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; }
.fxt-ilist h5 { grid-column: 1 / -1; margin: 8px 0 2px; font: 800 10.5px "Segoe UI"; letter-spacing: .12em; color: var(--gold); }
.fxt-ilist button { text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; } .fxt-ilist small { color: var(--muted); font-size: 10px; }
.fxt-row { display: flex; gap: 6px; margin-top: 12px; } .fxt-row button { flex: 1; }
.fxt-form td { padding: 4px 6px; } .fxt-form input, .fxt-form select { width: 160px; padding: 5px 7px; } .fxt-form input[type=color] { padding: 0; height: 28px; }
.fxt-note { color: var(--muted); font-size: 11px; }
.fxt-ins { color: var(--warn); font: 800 11px "Segoe UI"; letter-spacing: .06em; }
.fxt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fxt-head h3 { margin: 0; color: var(--gold); letter-spacing: .12em; font-size: 14px; } .fxt-head h3 button { padding: 2px 8px; }
.fxt h4 { margin: 12px 0 6px; font: 800 11px "Segoe UI"; letter-spacing: .12em; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.fxt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.fxt-card { padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fxt-card span { font: 700 9.5px "Segoe UI"; letter-spacing: .08em; color: var(--muted); } .fxt-card b { font: 800 15px Consolas, monospace; } .fxt-card small { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxt .up { color: var(--buy); } .fxt .dn { color: var(--sell); } .fxt .gold { color: var(--gold); }
.fxt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fxt-box { margin-top: 8px; padding: 8px 12px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.fxt-box h4 { margin-top: 2px; }
.fxt-mini { padding: 2px 8px; font: 800 9.5px "Segoe UI"; margin-left: auto; }
.fxt-gauge { display: flex; flex-direction: column; gap: 6px; }
.fxt-seg { position: relative; display: grid; grid-template-columns: 30fr 50fr 20fr; gap: 3px; height: 14px; margin-top: 4px; }
.fxt-seg i { border-radius: 4px; } .fxt-seg i:nth-child(1) { background: linear-gradient(90deg, #ff4d6a, #c23350); } .fxt-seg i:nth-child(2) { background: linear-gradient(90deg, #b8902f, #e8c25a); } .fxt-seg i:nth-child(3) { background: linear-gradient(90deg, #12a46d, #19d18b); }
.fxt-seg em { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px #fff; }
.fxt-gauge > b { font: 900 26px Consolas, monospace; }
.fxt-scale { display: flex; justify-content: space-between; font: 10px Consolas; color: var(--muted); }
.fxt-obj { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.fxt-obj span { font: 800 10.5px "Segoe UI"; letter-spacing: .06em; } .fxt-obj small { grid-column: 1; color: var(--muted); } .fxt-obj b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 800 12px Consolas; }
.fxt-prog { grid-column: 1; height: 6px; background: rgba(255, 255, 255, .07); border-radius: 4px; overflow: hidden; } .fxt-prog i { display: block; height: 100%; }
.fxt-prog i.up { background: var(--buy); } .fxt-prog i.dn { background: var(--sell); } .fxt-prog i.gold { background: var(--gold); }
.fxt-daynav { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .fxt-daynav b { font: 800 13px Consolas; color: var(--gold); } .fxt-daynav button { padding: 2px 10px; }
.fxt-t { width: 100%; border-collapse: collapse; font-size: 11.5px; } .fxt-t th { position: sticky; top: 0; background: #0b1426; color: var(--muted); font: 800 10px "Segoe UI"; letter-spacing: .06em; text-align: right; padding: 5px 6px; }
.fxt-t td { padding: 4px 6px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .05); font-family: Consolas, monospace; white-space: nowrap; } .fxt-t td:first-child, .fxt-t th:first-child { text-align: left; }
.fxt-tw { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.fxt-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; } .fxt-filters select, .fxt-filters input { width: auto; padding: 5px 8px; font-size: 11.5px; } .fxt-filters label { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.fxt-filters button { padding: 5px 10px; font-size: 11px; }
.fxt-more { margin-top: 6px; width: 100%; }
.fxt-seg2 { display: inline-flex; flex-wrap: wrap; gap: 3px; } .fxt-seg2 button { padding: 4px 9px; font: 700 10.5px "Segoe UI"; } .fxt-seg2 button.on { color: var(--gold); border-color: var(--gold); }
.fxt-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 8px; }
.fxt-mini-cv { width: 100%; height: 170px; display: block; }
.fxt-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.fxt-wd { text-align: center; font: 800 10px "Segoe UI"; letter-spacing: .1em; color: var(--muted); padding: 4px 0; }
.fxt-day { min-height: 64px; padding: 5px 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 9px; background: #0b1426; text-align: left; }
.fxt-day i { font-style: normal; color: var(--muted); font-size: 11px; } .fxt-day b { font: 800 12px Consolas; } .fxt-day small { color: var(--muted); font-size: 10px; }
.fxt-day.pos { border-color: rgba(25, 209, 139, .55); background: rgba(25, 209, 139, .08); } .fxt-day.pos b { color: var(--buy); }
.fxt-day.neg { border-color: rgba(255, 77, 106, .55); background: rgba(255, 77, 106, .08); } .fxt-day.neg b { color: var(--sell); }
.fxt-day.none { opacity: .55; cursor: default; } .fxt-day.empty { background: none; border: 0; } .fxt-day.sel { outline: 2px solid var(--gold); }
.fxt-pending pre { background: #050a16; border: 1px solid var(--line); border-radius: 8px; padding: 8px; white-space: pre-wrap; font-size: 11px; }
.fxt .imp-HIGH { color: var(--sell); font-weight: 800; } .fxt .imp-MEDIUM { color: var(--warn); } .fxt .imp-LOW { color: var(--muted); }
@media (max-width: 900px) { .fxt-two { grid-template-columns: 1fr; } .fxt-grid2 { grid-template-columns: 1fr; } .fxt-brand { display: none; } }
@media (max-width: 700px) { .stage.fxt-stage { height: max(560px, calc(100vh - 120px)); } .fxt-bar .fxt-sep { display: none; } .fxt-day { min-height: 48px; } .fxt-day b { font-size: 10px; } .fxt-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* 2 GRÁFICOS SIMULTÂNEOS (cada painel com estado próprio; o GRÁFICO ATIVO recebe as ordens da lateral) */
.fxt-panels { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 4px; }
.fxt-panels.dual { grid-template-columns: 1fr 1fr; }
.fxt-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.fxt-panel.on { border-color: rgba(232, 194, 90, .75); box-shadow: 0 0 0 1px rgba(232, 194, 90, .25) inset; }
.fxt-phead { display: flex; align-items: center; gap: 8px; padding: 3px 8px; background: #070e1d; border-bottom: 1px solid var(--line); flex: none; font-size: 11px; }
.fxt-psym { padding: 3px 8px; font: 800 11.5px "Segoe UI"; border-radius: 6px; background: #0b1426; width: auto; }
.fxt-ptf { color: var(--gold); font: 800 11px Consolas, monospace; } .fxt-ppx { font: 700 11.5px Consolas, monospace; color: var(--text); }
.fxt-pact { margin-left: auto; font: 800 9.5px "Segoe UI"; letter-spacing: .08em; color: var(--gold); visibility: hidden; } .fxt-panel.on .fxt-pact { visibility: visible; }
.fxt-panel .fxt-chart { min-height: 200px; }
.fxt-actlbl { font: 800 10.5px "Segoe UI"; letter-spacing: .06em; color: var(--gold); margin-right: 4px; }
.fxt-symmenu { min-width: 260px; } .fxt-symq { width: 100%; padding: 5px 8px; font-size: 11.5px; } .fxt-symlist { display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.fxt-symlist button { text-align: left; padding: 4px 8px; font-size: 11.5px; } .fxt-symlist small { color: var(--muted); }
@media (max-width: 1100px) { .fxt-panels.dual { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }

/* AUTO ENTRADA */
#fxtAuto { border-color: rgba(232, 194, 90, .5); color: var(--gold); }
#fxtAuto.fxt-auto-on { background: linear-gradient(180deg, #ff5f73, #c8243b) !important; color: #fff !important; border: 0 !important; animation: fxtAutoPulse 1.6s ease-in-out infinite; }
@keyframes fxtAutoPulse { 50% { box-shadow: 0 0 14px rgba(255, 77, 106, .7); } }
.fxt-autost { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 10.5px Consolas, monospace; color: var(--muted); cursor: help; }
.fxt-autost.ok { color: var(--buy); } .fxt-autost.err { color: var(--sell); } .fxt-autost.warn { color: var(--warn); }

/* DESENHAR (10/10/2026) */
.fxt-drawbar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: #091428; flex: none; }
.fxt-drawbar button { padding: 4px 8px; font: 700 11px "Segoe UI"; border-radius: 6px; background: #0b1426; width: auto; }
.fxt-drawbar button.on { color: var(--gold); border-color: var(--gold); }
.fxt-drawbar .fxt-dw { display: inline-flex; align-items: center; gap: 5px; } .fxt-drawbar .fxt-dw i { display: inline-block; width: 16px; background: currentColor; border-radius: 3px; }
.fxt-drawbar .fxt-dc { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.fxt-drawbar .fxt-dc.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
