/* Controlador X — avatar, interruptores, HUD hacker, terminal e I.A */

/* ---------- Home: perfil centralizado ---------- */
body.cx .cx-profile { text-align: center; padding-top: 22px; }
body.cx .cx-profile h2, body.cx .cx-profile > p { text-align: center; }
body.cx .cx-profile #nome { display: inline-block; margin-top: 4px; }
body.cx .cx-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
body.cx .cx-avatar__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from var(--cxa), #1f6bff, #5fd0ff, #a78bfa, #1f6bff);
  animation: cxRot 4s linear infinite;
  filter: drop-shadow(0 0 14px rgba(59, 149, 255, 0.75));
}
body.cx .cx-avatar__ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #050b1d;
}
body.cx .cx-avatar__face {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #2a6dff, #0a1c4d 75%);
  font-family: "Exo 2", Inter, sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 0 0 14px rgba(120, 190, 255, 0.9);
}
body.cx .cx-avatar__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.cx .cx-avatar__cam {
  position: absolute;
  z-index: 2;
  right: -2px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #1a5cff, #46b4ff);
  border: 2px solid #050b1d;
  box-shadow: 0 0 14px rgba(59, 149, 255, 0.8);
  transition: transform 0.2s;
}
body.cx .cx-avatar__cam:hover { transform: scale(1.1); }
body.cx .cx-avatar__cam svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.cx .cx-avatar.is-busy .cx-avatar__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(3, 7, 19, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%235fd0ff' stroke-width='4' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 44px no-repeat;
}
body.cx .cx-avatar__link {
  background: none;
  border: 0;
  color: var(--cy);
  font: 600 0.78rem Inter, sans-serif;
  cursor: pointer;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
body.cx .cx-avatar__msg { min-height: 1em; font-size: 0.75rem; color: #4ade80; margin: 0 0 4px; }
body.cx .cx-avatar__msg.is-err { color: #f87171; }
body.cx .cx-profile .sub-box p { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
body.cx .cx-profile .sub-box p span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cy); }
body.cx .cx-profile .sub-status { justify-content: center; }
body.cx .cx-profile .countdown { text-align: center; }

/* ---------- interruptores ---------- */
.cx-sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.cx-sw {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(5, 12, 30, 0.6);
  border: 1px solid rgba(90, 160, 255, 0.2);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.cx-sw input { position: absolute; opacity: 0; pointer-events: none; }
.cx-sw__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cx-sw__txt b { font: 800 0.72rem/1.15 "Exo 2", Inter, sans-serif; letter-spacing: 0.03em; color: #e6f0ff; text-transform: uppercase; }
.cx-sw__txt small { font-size: 0.62rem; line-height: 1.2; color: var(--muted); margin-top: 2px; }
@media (max-width: 400px) {
  .cx-sw { gap: 7px; padding-left: 8px; padding-right: 8px; }
  .cx-sw__txt b { font-size: 0.66rem; }
}
.cx-sw__ico { font-size: 1.05rem; filter: grayscale(1) opacity(0.6); transition: filter 0.25s; }
.cx-sw__knob {
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #1a2540;
  border: 1px solid rgba(90, 160, 255, 0.25);
  position: relative;
  transition: background 0.25s;
}
.cx-sw__knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7d8db0;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.cx-sw.is-on { border-color: rgba(34, 224, 122, 0.55); background: linear-gradient(135deg, rgba(10, 60, 40, 0.55), rgba(5, 12, 30, 0.6)); box-shadow: 0 0 16px rgba(34, 197, 94, 0.25), inset 0 0 18px rgba(34, 197, 94, 0.08); }
.cx-sw.is-on .cx-sw__ico { filter: none; }
.cx-sw.is-on .cx-sw__knob { background: linear-gradient(90deg, #12a150, #22e07a); }
.cx-sw.is-on .cx-sw__knob::after { transform: translateX(16px); background: #fff; box-shadow: 0 0 10px #22e07a; }
.cx-sw.is-on .cx-sw__txt small { color: #4ade80; }
.cx-sw.is-on::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 224, 122, 0.18), transparent);
  animation: cxGloss 2.8s ease-in-out infinite;
  pointer-events: none;
}
.cx-sw--big { padding: 12px; }
.cx-sw--big .cx-sw__txt b { font-size: 0.8rem; }

/* ---------- chips de status ---------- */
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 4px 8px; }
.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font: 700 0.6rem Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa3c7;
  background: rgba(14, 30, 68, 0.6);
  border: 1px solid rgba(90, 160, 255, 0.2);
}
.cx-chip i { width: 7px; height: 7px; border-radius: 50%; background: #5b6b8c; }
.cx-chip.is-on { color: #bbf7d0; border-color: rgba(34, 224, 122, 0.45); background: rgba(10, 60, 40, 0.45); }
.cx-chip.is-on i { background: #22e07a; box-shadow: 0 0 8px #22e07a; animation: cxBlink 1.2s steps(2) infinite; }
.cx-chip.is-warn { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); background: rgba(80, 50, 5, 0.4); }
.cx-chip.is-warn i { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
@keyframes cxBlink { 50% { opacity: 0.35; } }

/* ---------- HUD ---------- */
.cx-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 2px 0; }
.cx-hud__cell {
  position: relative;
  padding: 8px 8px 7px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 24, 56, 0.75), rgba(4, 10, 26, 0.85));
  border: 1px solid rgba(90, 160, 255, 0.2);
  overflow: hidden;
  min-width: 0;
}
.cx-hud__cell span { display: block; font: 700 0.55rem Inter, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #6f87b3; }
.cx-hud__cell b { display: block; margin-top: 3px; font: 800 0.8rem "JetBrains Mono", ui-monospace, Consolas, monospace; color: #e6f0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-hud__cell b.ok { color: #4ade80; text-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
.cx-hud__cell b.cy { color: var(--cy); text-shadow: 0 0 8px rgba(95, 208, 255, 0.6); }
.cx-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; margin-top: 3px; }
.cx-bars i { width: 4px; border-radius: 1px; background: #22e07a; box-shadow: 0 0 5px #22e07a; transition: height 0.4s, opacity 0.4s; }
.cx-spark { display: block; width: 100%; height: 16px; margin-top: 2px; }

/* ---------- terminal ---------- */
.cx-term {
  position: relative;
  margin-top: 10px;
  border-radius: 14px;
  background: #01050d;
  border: 1px solid rgba(34, 224, 122, 0.3);
  box-shadow: inset 0 0 24px rgba(34, 197, 94, 0.08), 0 0 18px rgba(34, 197, 94, 0.1);
  overflow: hidden;
}
.cx-term__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(34, 224, 122, 0.18);
  font: 700 0.6rem "JetBrains Mono", ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  color: #4ade80;
  text-transform: uppercase;
}
.cx-term__head i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.cx-term__head i:nth-child(2) { background: #fbbf24; }
.cx-term__head i:nth-child(3) { background: #22c55e; margin-right: 6px; }
.cx-term__head em { margin-left: auto; font-style: normal; color: #86efac; animation: cxBlink 1s steps(2) infinite; }
.cx-term__body {
  height: 132px;
  overflow: hidden;
  padding: 8px 10px;
  font: 500 0.66rem/1.5 "JetBrains Mono", ui-monospace, Consolas, monospace;
  color: #86efac;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  mask-image: linear-gradient(180deg, transparent, #000 30%);
}
.cx-term__body div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: cxType 0.35s steps(18) both; }
.cx-term__body .w { color: #fde68a; }
.cx-term__body .e { color: #fca5a5; }
.cx-term__body .c { color: #7dd3fc; }
.cx-term__body .g { color: #4ade80; font-weight: 700; }
.cx-term__body .m { color: #c4b5fd; }
@keyframes cxType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.cx-term::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

/* ---------- matrix no header ---------- */
.cx-matrix { position: absolute; inset: 0; z-index: 0; opacity: 0.22; pointer-events: none; }
body.cx .app-header > *:not(.cx-matrix) { position: relative; z-index: 1; }

/* esconde a marca d'água do gráfico */
#lwc-chart a[href*="tradingview"], #ia-chart a[href*="tradingview"], .tv-lightweight-charts a[href*="tradingview"] { display: none !important; }

/* ---------- seção de título ---------- */
.cx-sec { display: flex; align-items: center; gap: 8px; margin: 14px 2px 6px; font: 800 0.66rem Inter, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cy); }
.cx-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(95, 208, 255, 0.45), transparent); }

/* ---------- I.A ---------- */
body.cx.cx-ia .app-shell { padding: 2px 8px 120px; }
.ia-brain { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(167, 139, 250, 0.18); border: 1px solid rgba(167, 139, 250, 0.45); box-shadow: 0 0 14px rgba(167, 139, 250, 0.45); }
.ia-brain svg { width: 18px; height: 18px; stroke: #d8ccff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: cxIco 2.4s ease-in-out infinite; }
.ia-brokers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ia-broker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 2px 7px;
  border-radius: 14px;
  background: rgba(5, 12, 30, 0.6);
  border: 1px solid rgba(90, 160, 255, 0.18);
  color: #a9bde0;
  font: 700 0.6rem Inter, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.ia-broker img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: #08132e; box-shadow: 0 0 8px rgba(59, 149, 255, 0.3); }
.ia-broker.is-on { color: #fff; border-color: rgba(95, 208, 255, 0.7); background: linear-gradient(160deg, rgba(31, 107, 255, 0.35), rgba(5, 12, 30, 0.6)); box-shadow: 0 0 18px rgba(59, 149, 255, 0.45); }
.ia-broker.is-on::after { content: "✓"; position: absolute; top: 4px; right: 6px; font-size: 0.6rem; color: var(--cy); }
.ia-broker:disabled { opacity: 0.55; cursor: not-allowed; }
.ia-chart-wrap { position: relative; height: 170px; margin-top: 8px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(90, 160, 255, 0.28); background: linear-gradient(180deg, rgba(6, 14, 34, 0.92), rgba(3, 8, 20, 0.95)); }
.ia-chart-wrap #ia-chart { position: absolute; inset: 0; }
.ia-chart-wrap .ia-price { position: absolute; top: 8px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 6px; font: 800 0.72rem "JetBrains Mono", ui-monospace, monospace; color: #fff; background: linear-gradient(135deg, #1a5cff, #46b4ff); box-shadow: 0 0 12px rgba(59, 149, 255, 0.7); }
.ia-chart-wrap .ia-live { position: absolute; top: 8px; right: 10px; z-index: 2; font: 800 0.58rem Inter, sans-serif; letter-spacing: 0.14em; color: #fff; padding: 4px 9px 4px 20px; border-radius: 999px; background: rgba(26, 92, 255, 0.85); }
.ia-chart-wrap .ia-live::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #ff3b5c; animation: cxLive 1.4s infinite; }
.ia-scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.16), transparent); background-size: 40% 100%; background-repeat: no-repeat; opacity: 0; }
.ia-running .ia-scan { opacity: 1; animation: iaScan 1.8s linear infinite; }
@keyframes iaScan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.ia-card { margin-top: 10px; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, rgba(14, 30, 68, 0.66), rgba(5, 12, 30, 0.8)); border: 1px solid rgba(90, 160, 255, 0.22); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ia-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ia-f { display: flex; flex-direction: column; gap: 4px; }
.ia-f label { font: 700 0.58rem Inter, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #8fb4e8; }
.ia-money { position: relative; }
.ia-money em { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--cy); }
.ia-f input, .ia-f select {
  width: 100%;
  padding: 11px 10px 11px 34px;
  border-radius: 12px;
  border: 1px solid rgba(90, 160, 255, 0.28);
  background: rgba(3, 8, 22, 0.8);
  color: #fff;
  font: 800 0.92rem "Exo 2", Inter, sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ia-f select { padding-left: 10px; appearance: none; }
.ia-f input:focus, .ia-f select:focus { border-color: rgba(95, 208, 255, 0.7); box-shadow: 0 0 14px rgba(59, 149, 255, 0.35); }
.ia-f input:disabled, .ia-f select:disabled { opacity: 0.6; }
.ia-f--stop input { border-color: rgba(239, 68, 68, 0.35); }
.ia-f--meta input { border-color: rgba(34, 197, 94, 0.35); }
.ia-pct { margin-top: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(40, 20, 90, 0.5), rgba(6, 14, 34, 0.7)); border: 1px solid rgba(167, 139, 250, 0.35); }
.ia-pct__head { display: flex; justify-content: space-between; align-items: center; color: #d8ccff; font: 700 0.7rem Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.ia-pct__head strong { font: 900 1.25rem "Exo 2", Inter, sans-serif; color: #fff; text-shadow: 0 0 12px rgba(167, 139, 250, 0.9); letter-spacing: 0; }
.ia-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
.ia-range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #ef4444, #fbbf24 35%, #22c55e 70%, #a78bfa); box-shadow: 0 0 12px rgba(167, 139, 250, 0.5); }
.ia-range::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #ef4444, #fbbf24 35%, #22c55e 70%, #a78bfa); }
.ia-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d8ccff 45%, #7c3aed); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.25), 0 0 16px rgba(167, 139, 250, 0.9); }
.ia-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d8ccff 45%, #7c3aed); border: 2px solid #fff; }
.ia-range:disabled { opacity: 0.55; }
.ia-scale { display: flex; justify-content: space-between; font-size: 0.6rem; color: #8b7fb8; }
.ia-start {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 12px;
  padding: 17px;
  border: 0;
  border-radius: 16px;
  font: 900 1.05rem "Exo 2", Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #4f46e5 45%, #1f6bff);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: iaPulse 2.4s ease-in-out infinite;
}
.ia-start::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: rotate(20deg); animation: cxGloss 3.2s ease-in-out infinite; }
.ia-start.is-run { background: linear-gradient(135deg, #e11d38, #9f1026); box-shadow: 0 12px 32px rgba(239, 68, 68, 0.45); animation: none; }
@keyframes iaPulse { 50% { box-shadow: 0 12px 44px rgba(124, 58, 237, 0.8), 0 0 0 4px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3); } }
.ia-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ia-stat { padding: 9px 6px; border-radius: 12px; text-align: center; background: rgba(3, 8, 22, 0.7); border: 1px solid rgba(90, 160, 255, 0.18); }
.ia-stat span { display: block; font: 700 0.55rem Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #6f87b3; }
.ia-stat b { display: block; margin-top: 3px; font: 900 0.98rem "Exo 2", Inter, sans-serif; color: #fff; }
.ia-stat b.pos { color: #4ade80; text-shadow: 0 0 10px rgba(34, 197, 94, 0.6); }
.ia-stat b.neg { color: #f87171; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
.ia-prog { margin-top: 10px; }
.ia-prog__row { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--muted); margin: 6px 0 3px; }
.ia-prog__bar { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.ia-prog__bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ia-prog__bar--meta i { background: linear-gradient(90deg, #12a150, #22e07a); box-shadow: 0 0 10px #22e07a; }
.ia-prog__bar--stop i { background: linear-gradient(90deg, #9f1026, #ef4444); box-shadow: 0 0 10px #ef4444; }
.ia-phase { margin-top: 10px; padding: 10px 12px; border-radius: 14px; display: flex; align-items: center; gap: 10px; background: rgba(3, 8, 22, 0.75); border: 1px dashed rgba(167, 139, 250, 0.4); font: 600 0.75rem Inter, sans-serif; color: #d8ccff; }
.ia-phase__dot { width: 10px; height: 10px; border-radius: 50%; background: #5b6b8c; flex: none; }
.ia-running .ia-phase__dot { background: #a78bfa; box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.7); animation: cxDot 1.4s infinite; }
.ia-phase b { margin-left: auto; font: 900 0.95rem "JetBrains Mono", ui-monospace, monospace; color: #fff; }
.ia-ops { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3b95ff transparent; }
.ia-op { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: rgba(3, 8, 22, 0.7); border: 1px solid rgba(90, 160, 255, 0.16); animation: cxRise 0.4s ease-out both; }
.ia-op img { width: 28px; height: 28px; border-radius: 8px; background: #08132e; object-fit: contain; }
.ia-op__mid { min-width: 0; }
.ia-op__mid strong { display: block; font: 800 0.74rem Inter, sans-serif; color: #fff; }
.ia-op__mid small { display: block; font-size: 0.62rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-op__res { text-align: right; font: 900 0.8rem "Exo 2", Inter, sans-serif; }
.ia-op__res small { display: block; font: 700 0.55rem Inter, sans-serif; letter-spacing: 0.12em; }
.ia-op--win { border-color: rgba(34, 197, 94, 0.35); }
.ia-op--win .ia-op__res { color: #4ade80; }
.ia-op--loss { border-color: rgba(239, 68, 68, 0.35); }
.ia-op--loss .ia-op__res { color: #f87171; }
.ia-op--open { border-color: rgba(167, 139, 250, 0.5); box-shadow: 0 0 14px rgba(167, 139, 250, 0.25); }
.ia-op--open .ia-op__res { color: #d8ccff; }
.ia-up { color: #4ade80; }
.ia-dn { color: #f87171; }
.ia-empty { text-align: center; color: var(--muted); font-size: 0.75rem; padding: 14px 0; }
.ia-banner { position: fixed; left: 50%; top: 18px; z-index: 80; transform: translate(-50%, -140%); padding: 12px 18px; border-radius: 14px; font: 800 0.85rem "Exo 2", Inter, sans-serif; color: #fff; letter-spacing: 0.04em; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.2); white-space: nowrap; }
.ia-banner.is-show { transform: translate(-50%, 0); }
.ia-banner--ok { background: linear-gradient(135deg, #12a150, #22e07a); }
.ia-banner--bad { background: linear-gradient(135deg, #9f1026, #ef4444); }
.ia-banner--info { background: linear-gradient(135deg, #4f46e5, #1f6bff); }
