/* ---------- alertas de preço */
.tool-btn .bell { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#alert-btn { position: relative; }
#alert-btn.on { color: #fde68a; border-color: rgba(250,204,21,.45); box-shadow: 0 0 0 1px rgba(250,204,21,.18), 0 6px 18px rgba(250,204,21,.18); }
#alert-btn.on .bell { stroke: #facc15; filter: drop-shadow(0 0 6px rgba(250,204,21,.6)); }
.tbadge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; font-style: normal;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; color: #1a1400; background: #facc15; box-shadow: 0 0 10px rgba(250,204,21,.6); }

.alert-help { margin: 0 0 4px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.alert-help b { color: #fde68a; }
.alert-list { display: grid; gap: 8px; }
.al-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: rgba(6,9,19,.45);
  border: 1px solid rgba(250,204,21,.28); cursor: pointer; transition: transform .15s var(--spring, ease); }
.al-row:active { transform: scale(.985); }
.al-row.fired { border-color: var(--line); opacity: .72; }
.al-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 16px;
  background: rgba(250,204,21,.14); box-shadow: inset 0 0 0 1px rgba(250,204,21,.3); }
.al-row.fired .al-ico { background: rgba(0,227,154,.14); color: var(--gain); box-shadow: inset 0 0 0 1px rgba(0,227,154,.3); font-weight: 800; }
.al-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.al-main b { font-family: var(--display, Inter); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.al-main b span { font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; color: #fde68a; margin-left: 6px; text-transform: uppercase; letter-spacing: .4px; }
.al-row.fired .al-main b span { color: var(--muted); }
.al-main .mono { font-size: 14px; }
.al-main small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-del { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255,77,109,.3); background: rgba(255,77,109,.1); color: #ff8aa0; font-size: 13px; }

.toast.alert { border-color: rgba(250,204,21,.45); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 26px rgba(250,204,21,.18); }
.toast.alert .toast-ico { background: rgba(250,204,21,.18); box-shadow: 0 0 16px rgba(250,204,21,.45); animation: ring 1s ease-in-out 2; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }

@media (max-width: 820px), (max-height: 500px) {
  .place-banner { left: 8px; right: 8px; transform: none; max-width: none; white-space: nowrap; justify-content: space-between; font-size: 12.5px; padding: 7px 7px 7px 13px; }
  .place-banner #place-text { overflow: hidden; text-overflow: ellipsis; }
  .chart-toolbar { gap: 6px; }
  .chart-toolbar .tool-btn { padding: 7px 9px; }
  .tfs button { min-width: 30px; font-size: 11.5px; }
}

/* ---------- parciais por preço */
.part, .ps-acts button.part { color: #67e8f9 !important; }
.ps-acts button.part { background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.32); }
.pos-strip .ps-acts { grid-template-columns: repeat(6, 1fr) !important; }
.pc-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.ppill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 700;
  color: #67e8f9; background: rgba(34,211,238,.10); border: 1px solid rgba(34,211,238,.32); cursor: pointer; }
.ppill b { font-family: var(--mono); font-weight: 600; color: var(--text); }
.ppill i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(6,9,19,.5); color: #ff8aa0; font-size: 11px; }
.ppill.add { padding: 5px 10px; color: #a5b4fc; background: rgba(124,92,255,.10); border-style: dashed; border-color: rgba(124,92,255,.4); }
.pct-big { display: grid; justify-items: center; gap: 2px; padding: 6px 0; }
.pct-big b { font-family: var(--display, Inter); font-size: 44px; font-weight: 800; letter-spacing: -.05em;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 45%, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pct-big span { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.pct-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pct-presets button, .pct-step button { padding: 10px 0; border-radius: 12px; border: 1px solid var(--line2); background: rgba(6,9,19,.5); font-weight: 700; font-size: 13px; }
.pct-presets button.on { background: linear-gradient(135deg, #22d3ee, #6366f1); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(34,211,238,.3); }
.pct-step { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

/* ---------- conta: ações e lista de contas */
.acc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px; border-radius: 14px; font-weight: 700; font-size: 13.5px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(6,9,19,.35); color: var(--text); transition: transform .15s var(--spring, ease); }
.acc-act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-act:active { transform: scale(.97); }
.acc-act.danger { color: #ff8aa0; border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.10); }
.acc-act.add { grid-column: 1 / -1; color: #fff; border-color: transparent; background: var(--grad, linear-gradient(135deg,#8b5cf6,#22d3ee)); box-shadow: 0 10px 26px rgba(99,102,241,.35); }
.acc-list-wrap { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.08); }
.acc-list-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; padding-top: 8px; }
.acc-list { display: grid; gap: 6px; }
.acc-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(6,9,19,.35); position: relative; }
.acc-item.cur { border-color: rgba(0,227,154,.4); background: rgba(0,227,154,.08); }
.acc-dot { width: 9px; height: 9px; border-radius: 50%; background: #a5b4fc; flex: none; box-shadow: 0 0 8px rgba(165,180,252,.6); }
.acc-dot.real { background: var(--loss); box-shadow: 0 0 8px rgba(255,77,109,.6); }
.acc-item.cur .acc-dot { background: var(--gain); box-shadow: 0 0 8px rgba(0,227,154,.7); }
.acc-item-main { flex: 1; min-width: 0; display: grid; }
.acc-item-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-item-main small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.acc-item-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; color: #a5b4fc; background: rgba(124,92,255,.14); }
.acc-item.cur .acc-item-tag { color: var(--gain); background: rgba(0,227,154,.14); }
/* lista de contas: arrastar p/ esquerda mostra Renomear/Apagar; segurar abre o menu */
.acc-row { position: relative; border-radius: 14px; overflow: hidden; --rev: 0px; }
.acc-row .acc-item { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .26s var(--ease), filter .2s; will-change: transform; }
.acc-row.holding .acc-item { filter: brightness(1.25); }
.acc-swipe { position: absolute; top: 0; right: 0; bottom: 0; width: var(--rev); display: flex; justify-content: flex-end; overflow: hidden; border-radius: 0 14px 14px 0; }
.acc-sw { flex: none; width: 76px; border: 0; padding: 0; display: grid; place-content: center; justify-items: center; gap: 3px; color: #fff; font-size: 11px; font-weight: 800; }
.acc-sw svg, .acc-mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-sw.ren { background: linear-gradient(160deg, #8b5cf6, #6366f1); }
.acc-sw.del { background: linear-gradient(160deg, #ff7a93, #e0244d); }
.acc-more { display: none; font-style: normal; width: 26px; height: 24px; place-items: center; border-radius: 8px; color: var(--muted); font-weight: 900; letter-spacing: 1px; }
.acc-more:hover { color: #fff; background: rgba(255,255,255,.07); }
@media (hover: hover) and (pointer: fine) { .acc-more { display: grid; } }
.acc-hint { margin: 2px 2px 0; font-size: 11px; color: var(--muted); opacity: .8; }
.acc-menu { display: grid; gap: 8px; }
.acc-menu-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; margin-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.acc-menu-head div { display: grid; min-width: 0; }
.acc-menu-head b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-menu-head small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.acc-dot.on { background: var(--gain); box-shadow: 0 0 8px rgba(0,227,154,.7); }
.acc-mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 13px; text-align: left;
  border: 1px solid rgba(255,255,255,.08); background: rgba(6,9,19,.4); color: var(--text); font-weight: 700; font-size: 14.5px; }
.acc-mi:active { filter: brightness(1.2); }
.acc-mi span { display: grid; gap: 1px; }
.acc-mi small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.acc-mi svg { color: #a5b4fc; flex: none; }
.acc-mi.danger { color: #ff8aa0; border-color: rgba(255,77,109,.25); background: rgba(255,77,109,.07); }
.acc-mi.danger svg { color: #ff8aa0; }
.acc-menu .btn.block { margin-top: 4px; }
.acc-rm { font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #ff8aa0; background: rgba(255,77,109,.10); font-size: 11px; }
.acc-form { display: grid; gap: 12px; }
.acc-form .fld input[readonly] { opacity: .65; }
.busy { display: grid; justify-items: center; gap: 10px; padding: 18px 0 8px; text-align: center; }
.busy b { font-size: 15px; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(124,92,255,.2); border-top-color: #8b5cf6; border-right-color: #22d3ee; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* aviso com botão (ex.: ligar Algo Trading) */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.banner-btn { flex: none; border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 800; font-size: 12.5px; color: #1a1400;
  background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 6px 16px rgba(245,158,11,.35); }
.banner-btn:disabled { opacity: .7; }
.banner.info { justify-content: flex-start; background: rgba(56,189,248,.09); color: #bae6fd; border-bottom-color: rgba(56,189,248,.25); }
.banner.info .banner-ico { flex: none; fill: none; stroke: #38bdf8; stroke-width: 2; stroke-linecap: round; }
.banner.info .banner-txt { line-height: 1.35; }
