/* NLT Charts -- piel "ecosistema": la misma línea gráfica de index y ecosystem (fondo #080A0F, azul NLT, vidrio esmerilado,
   esquinas amplias, rótulos en mayúsculas espaciadas, movimiento suave). Solo cambia el aspecto: ninguna regla toca datos
   ni lógica. Se carga DESPUÉS del <style> de charts.html para ganar por orden. */
:root {
    --nlt-b: 67, 120, 255;           /* azul NLT */
    --nlt-bs: 143, 176, 255;         /* azul claro (texto sobre oscuro) */
    --nlt-ease: cubic-bezier(.16, 1, .3, 1);
    --nlt-glass: linear-gradient(180deg, rgba(20, 25, 34, .94) 0%, rgba(11, 14, 20, .97) 100%);
    --nlt-hair: rgba(255, 255, 255, .07);
    --nlt-shadow: 0 30px 70px -18px rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 255, 255, .05) inset;
}
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .nlt-display { font-family: 'Geist', 'Inter', system-ui, sans-serif; letter-spacing: -.02em; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); }
::selection { background: rgba(var(--nlt-b), .35); }

/* ───────── barra superior ───────── */
.ch-toolbar { gap: 8px; padding: 10px 16px; background: linear-gradient(180deg, rgba(13, 16, 22, .85), rgba(8, 10, 15, .6)); border-bottom: 1px solid var(--nlt-hair); }
.ch-select { height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nlt-hair); transition: border-color .25s var(--nlt-ease), background .25s var(--nlt-ease); }
.ch-select:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.ch-select:focus { box-shadow: 0 0 0 3px rgba(var(--nlt-b), .18); }
.ch-tfs { border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair); padding: 3px; }
.ch-tf { border-radius: 11px; transition: color .2s ease, background .25s var(--nlt-ease), box-shadow .25s var(--nlt-ease); }
.ch-tf.on { color: #dbe6ff; background: rgba(var(--nlt-b), .2); box-shadow: inset 0 0 0 1px rgba(var(--nlt-b), .5), 0 0 18px -4px rgba(var(--nlt-b), .65); }
.ch-btn { height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--nlt-hair); background: rgba(255, 255, 255, .035); color: #d6dbe4;
    transition: transform .25s var(--nlt-ease), background .25s var(--nlt-ease), border-color .25s var(--nlt-ease), color .2s ease, box-shadow .25s var(--nlt-ease); }
.ch-btn:hover { color: #fff; background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.ch-btn:active { transform: translateY(0) scale(.98); }
.ch-btn i { font-size: 18px; }
.ch-btn[aria-expanded="true"], .ch-btn.on { color: #dbe6ff; background: rgba(var(--nlt-b), .16); border-color: rgba(var(--nlt-b), .5); box-shadow: 0 0 22px -6px rgba(var(--nlt-b), .7); }
/* Las herramientas extra (Diseño, Comparar, Alertas, Simulador, Operar, Scripts, Screener, Análisis) van con icono para que la barra respire;
   el nombre aparece al pasar el cursor (title) y, en pantallas muy anchas, escrito. Indicadores, Watchlist, Replay… conservan su texto. */
.ch-herr { width: 38px; padding: 0; justify-content: center; }
.ch-herr .ch-btn-label { display: none !important; }
@media (min-width: 1700px) { .ch-herr { width: auto; padding: 0 12px; } .ch-herr .ch-btn-label { display: inline !important; } }
.ch-conn, .ch-demo { border-radius: 999px; }

/* ───────── ventanas flotantes (Diseño, Comparar, Alertas, Simulador, Operar, Análisis…) ───────── */
.mc-menu { background: var(--nlt-glass); border: 1px solid var(--nlt-hair); border-radius: 22px; padding: 16px 18px; box-shadow: var(--nlt-shadow);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: nltPop .34s var(--nlt-ease) both; transform-origin: top right; }
@keyframes nltPop { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.mc-tit { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--nlt-bs)); margin: 2px 0 12px; }
.mc-nota { color: #7d8797; line-height: 1.55; }
.mc-menu input:not([type=checkbox]):not([type=range]):not([type=color]), .mc-menu select, .mc-menu textarea, .mc-sel {
    height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nlt-hair); color: #fff; padding: 0 12px;
    transition: border-color .2s ease, box-shadow .25s var(--nlt-ease), background .2s ease; }
.mc-menu input::placeholder { color: #6f7a8b; }
.mc-menu input:focus, .mc-menu select:focus, .mc-sel:focus { outline: none; border-color: rgba(var(--nlt-b), .75); background: rgba(var(--nlt-b), .06); box-shadow: 0 0 0 3px rgba(var(--nlt-b), .18); }
.mc-d { border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nlt-hair); color: #cdd3dd; padding: 9px 10px; transition: background .25s var(--nlt-ease), border-color .25s var(--nlt-ease), color .2s ease, transform .2s var(--nlt-ease); }
.mc-d:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mc-d:active { transform: scale(.98); }
.mc-d.on { background: rgba(var(--nlt-b), .18); border-color: rgba(var(--nlt-b), .55); color: #dbe6ff; box-shadow: 0 0 18px -6px rgba(var(--nlt-b), .7); }
.pp-cuenta div { background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair); border-radius: 14px; padding: 10px 12px; }
.pp-cuenta small { letter-spacing: .12em; }
.pp-tabs { gap: 6px; } .pp-tabs button { border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; transition: all .25s var(--nlt-ease); }
.pp-tabs button.on { color: #dbe6ff; background: rgba(var(--nlt-b), .18); border-color: rgba(var(--nlt-b), .5); }
.pp-buy, .pp-sell { height: 42px; border-radius: 14px; border: 0; font-weight: 700; letter-spacing: .02em; transition: transform .2s var(--nlt-ease), filter .2s ease, box-shadow .25s var(--nlt-ease); }
.pp-buy { background: linear-gradient(180deg, #22c55e, #16a34a); box-shadow: 0 8px 22px -8px rgba(34, 197, 94, .6); }
.pp-sell { background: linear-gradient(180deg, #ef4444, #dc2626); box-shadow: 0 8px 22px -8px rgba(239, 68, 68, .6); }
.pp-buy:hover, .pp-sell:hover { transform: translateY(-1px); filter: brightness(1.08); } .pp-buy:active, .pp-sell:active { transform: scale(.98); }
.an-med-v { font-family: 'Geist', 'Inter', sans-serif; letter-spacing: -.02em; }
.an-barra { height: 6px; border-radius: 999px; }
.an-pop details { border-color: var(--nlt-hair); }
.tr-lock i { filter: drop-shadow(0 0 14px rgba(var(--nlt-b), .6)); }
.tr-conectar, .tr-conf { background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair); border-radius: 16px; }
.tr-modo { border-radius: 14px; }
.al-push { background: rgba(var(--nlt-b), .1); border-color: rgba(var(--nlt-b), .3); border-radius: 14px; }

/* botón principal de un formulario (Conectar, Confirmar…): píldora azul con brillo, como los CTA del ecosistema */
.mc-menu form button[type=submit].mc-d.on, .mc-menu [data-tr=confirmar], .mc-menu .tr-conf .mc-d.on { height: 42px; border-radius: 999px; border-color: transparent; color: #fff; font-weight: 700; letter-spacing: .01em;
    background: linear-gradient(180deg, #5b8bff, #3a68ee); box-shadow: 0 0 24px rgba(67, 120, 255, .4), 0 1px 0 rgba(255, 255, 255, .25) inset; }
.mc-menu form button[type=submit].mc-d.on:hover, .mc-menu [data-tr=confirmar]:hover { background: linear-gradient(180deg, #6b97ff, #4378ff); box-shadow: 0 0 32px rgba(67, 120, 255, .55), 0 1px 0 rgba(255, 255, 255, .3) inset; transform: translateY(-1px); }

/* ───────── NLT Script ───────── */
/* Sin desenfoque de fondo en la ventana grande: medido, cuesta ~45 ms por fotograma al escribir; un velo oscuro con degradado se ve igual de limpio y va fluido. */
.sc-modal { background: radial-gradient(90% 70% at 50% 0%, rgba(var(--nlt-b), .10), transparent 60%), rgba(4, 6, 10, .82); animation: nltFade .28s ease both; }
@keyframes nltFade { from { opacity: 0; } to { opacity: 1; } }
.sc-card { background: var(--nlt-glass); border: 1px solid var(--nlt-hair); border-radius: 26px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(var(--nlt-b), .05), 0 1px 0 rgba(255, 255, 255, .06) inset; animation: nltRise .5s var(--nlt-ease) both; position: relative; }
.sc-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none; border-radius: 26px 26px 0 0; background: radial-gradient(60% 100% at 50% 0%, rgba(var(--nlt-b), .14), transparent 70%); }
@keyframes nltRise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.sc-card header { position: relative; padding: 16px 22px; border-bottom: 1px solid var(--nlt-hair); }
.sc-card h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; gap: 10px; }
.sc-card h2 i { color: rgb(var(--nlt-bs)); font-size: 20px; filter: drop-shadow(0 0 10px rgba(var(--nlt-b), .7)); }
.sc-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .05); transition: background .25s var(--nlt-ease), color .2s ease, transform .25s var(--nlt-ease); }
.sc-x:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: rotate(90deg); }
.sc-card footer { padding: 10px 22px; color: #6f7a8b; border-top: 1px solid var(--nlt-hair); }
.sc-lista { padding: 16px; gap: 10px; border-right-color: var(--nlt-hair); background: rgba(255, 255, 255, .012); }
.sc-sub { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgb(var(--nlt-bs)); }
.sc-item { border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair); transition: background .25s var(--nlt-ease), border-color .25s var(--nlt-ease), transform .25s var(--nlt-ease); }
.sc-item:hover { background: rgba(255, 255, 255, .07); transform: translateX(2px); }
.sc-item.sel { background: rgba(var(--nlt-b), .16); border-color: rgba(var(--nlt-b), .55); color: #dbe6ff; box-shadow: 0 0 22px -8px rgba(var(--nlt-b), .7); }
.sc-item em { color: #4ade80; font-weight: 700; letter-spacing: .04em; }
.sc-ej, .sc-nombre, .sc-in input, .sc-in select, .sc-form input { height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nlt-hair); transition: border-color .2s ease, box-shadow .25s var(--nlt-ease), background .2s ease; }
.sc-ej:focus, .sc-nombre:focus, .sc-in input:focus, .sc-in select:focus, .sc-form input:focus, .sc-bq:focus { outline: none; border-color: rgba(var(--nlt-b), .75); background: rgba(var(--nlt-b), .06); box-shadow: 0 0 0 3px rgba(var(--nlt-b), .18); }
.sc-b { height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--nlt-hair); color: #d6dbe4; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .2s var(--nlt-ease), background .25s var(--nlt-ease), box-shadow .25s var(--nlt-ease), border-color .25s var(--nlt-ease), color .2s ease; }
.sc-b:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-1px); }
.sc-b:active:not(:disabled) { transform: scale(.97); }
.sc-b.on { color: #fff; border-color: transparent; background: linear-gradient(180deg, #5b8bff, #3a68ee); box-shadow: 0 0 24px rgba(67, 120, 255, .4), 0 1px 0 rgba(255, 255, 255, .25) inset; }
.sc-b.on:hover:not(:disabled) { background: linear-gradient(180deg, #6b97ff, #4378ff); box-shadow: 0 0 32px rgba(67, 120, 255, .55), 0 1px 0 rgba(255, 255, 255, .3) inset; }
.sc-b.mal { color: #fca5a5; background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .25); }
.sc-b.mal:hover:not(:disabled) { background: rgba(239, 68, 68, .16); color: #fecaca; }
.sc-b:disabled { opacity: .4; }
.sc-link { color: rgb(var(--nlt-bs)); text-decoration: none; font-size: inherit; transition: color .2s ease; } .sc-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sc-tienda .sc-link[data-a=reportar] { color: #6f7a8b; font-size: 11px; } .sc-tienda .sc-link[data-a=reportar]:hover { color: #fca5a5; }
.sc-lista > * { flex-shrink: 0; } .sc-lista .sc-link { font-size: 12px; } .sc-lista .sc-b { font-size: 12.5px; white-space: nowrap; }
.sc-peq code, .sc-ayuda code { background: rgba(var(--nlt-b), .12); color: rgb(var(--nlt-bs)); border-radius: 6px; padding: 1px 5px; }
.sc-cod { border-radius: 18px; background: #05070b; border: 1px solid var(--nlt-hair); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }
.sc-gut { background: rgba(255, 255, 255, .02); color: #475063; }
.sc-ta { caret-color: rgb(var(--nlt-bs)); } .sc-ta::selection { background: rgba(var(--nlt-b), .35); }
.sc-f { color: #8fb0ff; } .sc-k { color: #c4a1ff; } .sc-s { color: #f5c76b; } .sc-n { color: #ff9f6b; } .sc-v { color: #5eead4; }
.sc-estado { border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair); transition: border-color .25s ease; }
.sc-estado.mal { background: rgba(239, 68, 68, .06); border-color: rgba(239, 68, 68, .3); }
.sc-estado.ok span { color: #4ade80; } .sc-msg { color: rgb(var(--nlt-bs)); }
.sc-ficha, .sc-tienda { border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--nlt-hair); }
.sc-tienda { padding: 14px 16px; transition: border-color .3s var(--nlt-ease), transform .3s var(--nlt-ease), box-shadow .3s var(--nlt-ease); animation: nltRise .45s var(--nlt-ease) both; }
.sc-tienda:hover { border-color: rgba(var(--nlt-b), .35); transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(var(--nlt-b), .45); }
.sc-tienda b { font-family: 'Geist', 'Inter', sans-serif; font-size: 15px; letter-spacing: -.01em; }
.sc-lockbox { border-radius: 18px; border: 1px solid rgba(var(--nlt-b), .3); background: radial-gradient(120% 140% at 0% 0%, rgba(var(--nlt-b), .14), rgba(255, 255, 255, .02)); }
.sc-lockbox > i, .sc-vacio > i, .sc-lock > i { color: rgb(var(--nlt-bs)); filter: drop-shadow(0 0 14px rgba(var(--nlt-b), .6)); }
.sc-comp { border-top-color: var(--nlt-hair); }
.sc-acc { padding: 6px 0; }
/* cargando: esqueleto con brillo suave */
.sc-skel { height: 76px; border-radius: 18px; margin-bottom: 8px; background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 70%); background-size: 220% 100%; animation: nltShimmer 1.4s linear infinite; }
@keyframes nltShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ───────── cuentas / paneles laterales ───────── */
.wl-fila.on { background: rgba(var(--nlt-b), .1); border-left-color: rgb(var(--nlt-b)); }
.cs-modal, .lab { border-radius: 22px; }

/* ───────── móvil: las ventanas suben desde abajo como una hoja ───────── */
@media (max-width: 720px) {
    .ch-toolbar { padding: 8px 10px; }
    .mc-menu { left: 8px !important; right: 8px !important; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)) !important; width: auto !important; max-width: none !important;
        max-height: 78vh !important; overflow-y: auto; border-radius: 24px 24px 20px 20px; transform-origin: bottom center; animation: nltSheet .42s var(--nlt-ease) both; }
    @keyframes nltSheet { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    .sc-card { border-radius: 0; } .sc-card::before { border-radius: 0; }
    .sc-b { height: 42px; } .sc-ej, .sc-nombre, .sc-in input, .sc-in select, .sc-form input { height: 42px; font-size: 16px; }   /* 16px: iOS no hace zoom al enfocar */
    .mc-menu input:not([type=checkbox]):not([type=range]):not([type=color]), .mc-menu select { font-size: 16px; height: 42px; }
}
/* Equipos sin cursor o con poca potencia: sin desenfoque costoso */
@media (hover: none) { .mc-menu { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(20, 25, 34, .985), rgba(11, 14, 20, .995)); } }
@media (prefers-reduced-motion: reduce) {
    .mc-menu, .sc-card, .sc-modal, .sc-tienda { animation: none !important; }
    .ch-btn, .sc-b, .sc-item, .mc-d, .sc-x { transition: none !important; }
    .sc-skel { animation: none; }
}

/* ───────── listas desplegables propias (nselect.js) ───────── */
select, option { color-scheme: dark; }
option, optgroup { background: #0d1016; color: #e5e7eb; }   /* respaldo: si el script no carga, al menos la lista nativa va oscura */
.nsel-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; color: #fff; font: inherit; font-size: 13px; font-weight: 500; padding: 0 12px; min-width: 0; }
.nsel-btn .nsel-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsel-btn i { font-size: 13px; color: #8a94a6; transition: transform .3s var(--nlt-ease), color .2s ease; }
.nsel-btn[aria-expanded="true"] { border-color: rgba(var(--nlt-b), .75) !important; background: rgba(var(--nlt-b), .06) !important; box-shadow: 0 0 0 3px rgba(var(--nlt-b), .18); }
.nsel-btn[aria-expanded="true"] i { transform: rotate(180deg); color: rgb(var(--nlt-bs)); }
.nsel-btn:focus-visible { outline: none; border-color: rgba(var(--nlt-b), .75); box-shadow: 0 0 0 3px rgba(var(--nlt-b), .18); }
.nsel-list { position: fixed; z-index: 400; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--nlt-glass); border: 1px solid var(--nlt-hair);
    box-shadow: 0 24px 60px -14px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .05) inset; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    animation: nltPop .26s var(--nlt-ease) both; transform-origin: top center; overscroll-behavior: contain; }
.nsel-list.sube { transform-origin: bottom center; }
.nsel-it { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 11px; font-size: 13px; color: #cdd3dd; cursor: pointer; transition: background .15s ease, color .15s ease; }
.nsel-it span { flex: 1; min-width: 0; }
.nsel-it i { font-size: 13px; opacity: 0; color: rgb(var(--nlt-bs)); transform: scale(.6); transition: opacity .2s ease, transform .3s var(--nlt-ease); }
.nsel-it.act { background: rgba(255, 255, 255, .07); color: #fff; }
.nsel-it.sel { color: #dbe6ff; background: rgba(var(--nlt-b), .16); }
.nsel-it.sel.act { background: rgba(var(--nlt-b), .24); }
.nsel-it.sel i { opacity: 1; transform: none; }
.nsel-it.off { opacity: .4; cursor: default; }
.nsel-grp { padding: 10px 12px 4px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--nlt-bs)); }
@media (hover: none) { .nsel-list { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(20, 25, 34, .985), rgba(11, 14, 20, .995)); } }
@media (max-width: 720px) { .nsel-it { padding: 12px 14px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .nsel-list { animation: none; } .nsel-btn i, .nsel-it i { transition: none; } }

.sc-aviso { background: rgba(var(--nlt-b), .07); border-color: rgba(var(--nlt-b), .25); color: #b9c8ee; font-size: 12px; line-height: 1.5; }

/* aviso breve (toast) */
.nlt-toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 500; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 16px; font-size: 13px; line-height: 1.45; color: #e5e7eb; text-align: center;
    background: var(--nlt-glass); border: 1px solid var(--nlt-hair); box-shadow: var(--nlt-shadow); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .3s var(--nlt-ease), transform .45s var(--nlt-ease); }
.nlt-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.nlt-toast[data-tipo="ok"] { border-color: rgba(34, 197, 94, .45); color: #bbf7d0; }
.nlt-toast[data-tipo="error"] { border-color: rgba(239, 68, 68, .5); color: #fecaca; }
@media (prefers-reduced-motion: reduce) { .nlt-toast { transition: none; } }
/* botón BUY/SELL armado (segundo toque envía) */
.dw-btn.armado { background: linear-gradient(180deg, #5b8bff, #3a68ee) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 0 22px rgba(67, 120, 255, .55); animation: nltLate .9s ease-in-out infinite; }
@keyframes nltLate { 50% { box-shadow: 0 0 34px rgba(67, 120, 255, .85); } }
@media (prefers-reduced-motion: reduce) { .dw-btn.armado { animation: none; } }

/* tableros: más anclajes (las tablas de NLT Script usan las 9 posiciones de Pine) */
.ud-esq[data-pos="Top Center"] { top: 8px; left: 50%; transform: translateX(-50%); align-items: center; }
.ud-esq[data-pos="Middle Left"] { top: 50%; left: 8px; transform: translateY(-50%); }
.ud-esq[data-pos="Middle Center"] { top: 50%; left: 50%; transform: translate(-50%, -50%); align-items: center; }
.ud-esq[data-pos="Middle Right"] { top: 50%; right: 8px; transform: translateY(-50%); align-items: flex-end; }
.ud-esq[data-pos="Bottom Center"] { bottom: 8px; left: 50%; transform: translateX(-50%); align-items: center; }
.sc-tbl { border-collapse: collapse; border-radius: 10px; overflow: hidden; font-family: Inter, system-ui, sans-serif; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7); }
.sc-tbl td { padding: 4px 9px; line-height: 1.35; font-weight: 600; white-space: pre-line; font-variant-numeric: tabular-nums; }

/* interruptor de confirmación (panel Operar) y botón de la barra de dibujo */
.tr-sw { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair); cursor: pointer; }
.tr-sw input { appearance: none; -webkit-appearance: none; flex: none; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; cursor: pointer; transition: background .3s var(--nlt-ease); margin-top: 2px; }
.tr-sw input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--nlt-ease); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.tr-sw input:checked { background: linear-gradient(180deg, #5b8bff, #3a68ee); box-shadow: 0 0 16px rgba(67, 120, 255, .45); }
.tr-sw input:checked::after { transform: translateX(16px); }
.tr-sw input:focus-visible { outline: 2px solid #78a0ff; outline-offset: 3px; }
.tr-sw-t { font-size: 12.5px; line-height: 1.45; color: #cdd3dd; } .tr-sw-t b { color: #fff; font-weight: 600; } .tr-sw-t small { display: block; margin-top: 3px; font-size: 11.5px; color: #8a94a6; }
.dw-btn.dw-ico { padding-left: 8px; padding-right: 8px; }
.dw-btn.dw-ico:not(.on) { color: #fbbf24; }
@media (prefers-reduced-motion: reduce) { .tr-sw input, .tr-sw input::after { transition: none; } }

/* descripción del script (debajo del nombre) */
.sc-descw { position: relative; display: block; }
.sc-desc { width: 100%; resize: vertical; min-height: 52px; max-height: 140px; padding: 10px 12px 22px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nlt-hair); color: #e5e7eb; font: inherit; font-size: 13px; line-height: 1.45; transition: border-color .2s ease, box-shadow .25s var(--nlt-ease), background .2s ease; }
.sc-desc:focus { outline: none; border-color: rgba(var(--nlt-b), .75); background: rgba(var(--nlt-b), .06); box-shadow: 0 0 0 3px rgba(var(--nlt-b), .18); }
.sc-desc::placeholder { color: #6f7a8b; }
.sc-desc-n { position: absolute; right: 12px; bottom: 7px; font-size: 10.5px; color: #6f7a8b; pointer-events: none; }
@media (max-width: 720px) { .sc-desc { font-size: 16px; } }

/* Botón para plegar la lista de indicadores */
.ch-leyenda-btn { position: absolute; z-index: 6; left: 8px; top: 6px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(14, 16, 22, 0.72); color: #9ca3af; font: 600 11px/1 'Inter', system-ui, sans-serif; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: color .18s ease, border-color .18s ease, background .18s ease; }
.ch-leyenda-btn:hover { color: #fff; border-color: rgba(67, 120, 255, 0.55); background: rgba(67, 120, 255, 0.16); }
.ch-leyenda-btn i { font-size: 12px; transition: transform .2s ease; }
.ch-leyenda-btn.plegada i { transform: rotate(-90deg); }
.ch-leyenda-btn b { font-weight: 700; color: #cfe0ff; background: rgba(67, 120, 255, 0.22); border-radius: 999px; padding: 2px 6px; font-size: 10px; }

/* Saldo de la cuenta real arriba, en el botón Operar */
.tr-saldo { margin-left: 2px; padding: 2px 8px; border-radius: 999px; font: 700 11px/1.3 'Inter', system-ui, sans-serif; letter-spacing: .01em; color: #cfe0ff; background: rgba(67, 120, 255, 0.20); border: 1px solid rgba(67, 120, 255, 0.35); white-space: nowrap; }
.tr-saldo[hidden] { display: none; }

/* Historial de operaciones de la cuenta real */
.tr-rango { display: flex; gap: 6px; margin-bottom: 10px; }
.tr-rango button { flex: 1; height: 30px; border-radius: 10px; border: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); background: rgba(255, 255, 255, .035); color: #9ca3af; font: 600 12px 'Inter', system-ui, sans-serif; cursor: pointer; transition: all .18s ease; }
.tr-rango button:hover { color: #fff; border-color: rgba(67, 120, 255, .5); }
.tr-rango button.on { color: #fff; background: rgba(67, 120, 255, .22); border-color: rgba(67, 120, 255, .6); }
.tr-rango button:last-child { flex: 0 0 34px; }
.tr-hist { display: flex; flex-direction: column; gap: 6px; }
.tr-dia { margin: 10px 2px 2px; font: 700 10px 'Inter', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; }
.tr-op { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); }
.tr-lado { flex: 0 0 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }
.tr-lado.compra { color: #22c55e; background: rgba(34, 197, 94, .14); }
.tr-lado.venta { color: #ef4444; background: rgba(239, 68, 68, .14); }
.tr-op-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.tr-op-txt span { font-size: 11px; color: #9ca3af; }
.tr-op-txt small, .tr-op-pl small { font-size: 11px; color: #6b7280; }
.tr-op-pl { text-align: right; display: flex; flex-direction: column; gap: 1px; font-size: 14px; white-space: nowrap; }
.tr-hist-res { margin-top: 0; }
#chBtnTrader.ch-herr.con-saldo { width: auto; min-width: 0; padding-left: 10px; padding-right: 8px; gap: 7px; flex: 0 0 auto; }
.tr-saldo.aviso { color: #fde68a; background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .4); }
.sc-desc.falta { border-color: rgba(248, 113, 113, .8) !important; box-shadow: 0 0 0 3px rgba(248, 113, 113, .18); }
.sc-pubmsg { margin: 8px 0 2px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.sc-pubmsg.ok { color: #86efac; background: rgba(34, 197, 94, .10); border: 1px solid rgba(34, 197, 94, .35); }
.sc-pubmsg.mal { color: #fca5a5; background: rgba(239, 68, 68, .10); border: 1px solid rgba(239, 68, 68, .35); }

/* Mis ganancias (creadores de indicadores) */
.sc-gstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
@media (max-width: 640px) { .sc-gstats { grid-template-columns: 1fr 1fr; } }
.sc-gcard { padding: 11px 13px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); }
.sc-gcard small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin-bottom: 3px; }
.sc-gcard b { font-size: 17px; color: #fff; }
.sc-gcard.pend b { color: #fbbf24; } .sc-gcard.rev b { color: #8fb1ff; } .sc-gcard.ok b { color: #22c55e; }
.sc-cobro .sc-b { margin-top: 6px; }
.sc-prog { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 8px 0 4px; }
.sc-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgb(67,120,255), #8fb1ff); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.sc-vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-top: 6px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); }
.sc-vtxt { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sc-vtxt b { font-size: 13px; color: #fff; } .sc-vtxt small { font-size: 11px; color: #6b7280; overflow-wrap: anywhere; }
.sc-vmonto { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } .sc-vmonto b { color: #22c55e; font-size: 14px; }
.sc-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.12); color: #9ca3af; white-space: nowrap; }
.sc-chip.pend { color: #fbbf24; background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.3); } .sc-chip.rev { color: #8fb1ff; background: rgba(67,120,255,.14); border-color: rgba(67,120,255,.4); }
.sc-chip.ok { color: #22c55e; background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.3); } .sc-chip.mal { color: #f87171; background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.3); }

/* Pantalla completa del gráfico: botón abajo a la izquierda y barra lateral de NLT oculta */
.ch-pc { position: absolute; z-index: 7; left: 8px; bottom: 3px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; font-size: 14px; color: #9ca3af;
  background: rgba(14, 16, 22, .72); border: 1px solid rgba(255, 255, 255, .10); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.ch-pc:hover { color: #fff; border-color: rgba(67, 120, 255, .55); background: rgba(67, 120, 255, .16); transform: scale(1.06); }
.ch-pc[aria-pressed="true"] { color: #fff; border-color: rgba(67, 120, 255, .6); background: rgba(67, 120, 255, .22); }
body.ch-full #sidebar, body.ch-full #mobileSidebarToggle, body.ch-full #mobileSidebarBackdrop { display: none !important; }
body.ch-full .ch-toolbar { padding-left: 16px; }

/* Aviso discreto mientras llega historial más viejo (borde izquierdo del gráfico) */
.ch-histcarga { position: absolute; z-index: 8; left: 50%; bottom: 44px; transform: translate(-50%, 6px); padding: 6px 14px 6px 30px; border-radius: 999px; font: 600 11.5px/1 'Inter', system-ui, sans-serif; color: #cfe0ff; white-space: nowrap;
  background: rgba(14, 16, 22, .82); border: 1px solid rgba(67, 120, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.ch-histcarga.on { opacity: 1; transform: translate(-50%, 0); }
.ch-histcarga::before { content: ''; position: absolute; left: 11px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; border: 2px solid rgba(143, 177, 255, .35); border-top-color: #8fb1ff; animation: chGiro .8s linear infinite; }
@keyframes chGiro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ch-histcarga::before { animation: none; } }

/* ── Panel «Trade» estilo MT5: posiciones y ganancia/pérdida en vivo, pegado abajo del gráfico ── */
.tp { position: relative; z-index: 40; flex: 0 0 auto; display: flex; flex-direction: column; min-height: 0; background: linear-gradient(180deg, rgba(16, 20, 28, .94), rgba(8, 10, 15, .98)); border-top: 1px solid var(--nlt-hair, rgba(255,255,255,.08));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); font-family: 'Inter', system-ui, sans-serif; }
.tp[hidden] { display: none; }
.tp-barra { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); background: none; border: 0; color: #fff; cursor: pointer; text-align: left; flex: 0 0 auto; }
.tp-barra:hover { background: rgba(67, 120, 255, .06); }
body.tp-on .ch-tools { padding-bottom: 6px; }
@media (min-width: 768px) { body.tp-on .ch-tools { padding-bottom: 8px; } .tp-barra { padding-bottom: 6px; } }
.tp-id { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #cfe0ff; }
.tp-id i { font-size: 9px; } .tp-id i.ok { color: #22c55e; } .tp-id i.mal { color: #f59e0b; }
.tp-bal, .tp-bpl { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.tp-bal small, .tp-bpl small, .tp-cel small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; font-weight: 600; }
.tp-bal b, .tp-bpl b { font-size: 14px; font-variant-numeric: tabular-nums; }
.tp-bpl { margin-left: auto; text-align: right; }
.gan { color: #22c55e; } .per { color: #ef4444; }
.tp-flecha { font-size: 15px; color: #8fb1ff; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.tp.abierto .tp-flecha { transform: rotate(180deg); }
.tp-cuerpo { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; flex-direction: column; min-height: 0; max-height: min(58vh, 520px); padding: 12px 14px 12px; gap: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgb(17, 21, 30), rgb(10, 12, 18)); border-top: 1px solid rgba(67, 120, 255, .35); border-radius: 20px 20px 0 0; box-shadow: 0 -18px 40px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: tpSube .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tpSube { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tp-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-etq { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #8fb1ff; }
.tp-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); }
.tp-seg button { height: 26px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: #9ca3af; font: 600 12px 'Inter', system-ui, sans-serif; cursor: pointer; transition: all .18s ease; }
.tp-seg button.on { background: rgba(67, 120, 255, .28); color: #fff; box-shadow: 0 0 0 1px rgba(67, 120, 255, .55) inset; }
.tp-lnk { background: none; border: 0; color: #8fb1ff; font: 600 12px 'Inter', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; } .tp-lnk:hover { color: #fff; }
.tp-error { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 12px; color: #fde68a; background: rgba(245, 158, 11, .10); border: 1px solid rgba(245, 158, 11, .35); }
.tp-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 520px) { .tp-res { grid-template-columns: repeat(3, 1fr); gap: 6px; } .tp-cel { padding: 7px 9px; } .tp-cel small { font-size: 9px; letter-spacing: .05em; } .tp-cel b { font-size: 13px; } }
.tp-cel { padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); display: flex; flex-direction: column; gap: 3px; }
.tp-cel b { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; } .tp-cel.gan b { color: #22c55e; } .tp-cel.per b { color: #ef4444; }
.tp-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); }
.tp-tabs button { position: relative; padding: 8px 12px; background: none; border: 0; color: #9ca3af; font: 600 13px 'Inter', system-ui, sans-serif; cursor: pointer; }
.tp-tabs button i { font-style: normal; margin-left: 5px; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: rgba(255, 255, 255, .08); }
.tp-tabs button.on { color: #fff; } .tp-tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(67, 120, 255), #8fb1ff); }
.tp-tabs button.on i { background: rgba(67, 120, 255, .28); color: #cfe0ff; }
.tp-aviso { margin: 0; font-size: 12px; color: #cfe0ff; }
.tp-lista { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; -webkit-overflow-scrolling: touch; }
.tp-fila { border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--nlt-hair, rgba(255,255,255,.08)); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.tp-fila:hover, .tp-fila.abierta { border-color: rgba(67, 120, 255, .45); background: rgba(67, 120, 255, .07); }
.tp-principal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; }
.tp-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tp-linea1 { display: flex; align-items: baseline; gap: 8px; } .tp-linea1 b { font-size: 15px; color: #fff; letter-spacing: .01em; }
.tp-lado { font-size: 12px; font-weight: 700; } .tp-lado.compra { color: #5b8dff; } .tp-lado.venta { color: #ef4444; }
.tp-linea2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; } .tp-linea2 i { font-size: 10px; color: #6b7280; }
.tp-niv { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: rgba(255, 255, 255, .06); }
.tp-niv.gan { background: rgba(34, 197, 94, .12); } .tp-niv.per { background: rgba(239, 68, 68, .12); }
.tp-pl { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .25s ease; }
.tp-pl.pend { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fbbf24; }
.tp-acc { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px; }
.tp-acc button { flex: 1 1 110px; height: 34px; border-radius: 11px; border: 1px solid var(--nlt-hair, rgba(255,255,255,.1)); background: rgba(255, 255, 255, .05); color: #e5e7eb; font: 600 12px 'Inter', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .18s ease; }
.tp-acc button:hover { border-color: rgba(67, 120, 255, .55); color: #fff; }
.tp-acc .tp-cerrar:hover { border-color: rgba(239, 68, 68, .6); } .tp-acc .tp-cerrar.armado { background: #dc2626; border-color: #dc2626; color: #fff; }
.tp-vacio { margin: 10px 0; text-align: center; font-size: 13px; color: #9ca3af; } .tp-vacio span { font-size: 12px; color: #6b7280; }
@media (prefers-reduced-motion: reduce) { .tp-cuerpo { animation: none; } .tp-flecha { transition: none; } }
@media (min-width: 900px) { .tp-cuerpo { max-height: min(50vh, 440px); } .tp-res { grid-template-columns: repeat(6, 1fr); } .tp-cel { padding: 7px 11px; } .tp-cel b { font-size: 14px; } }

/* equity en la barra (solo si hay ancho) */
.tp-eq { display: none; flex-direction: column; gap: 1px; line-height: 1.1; } .tp-eq small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; font-weight: 600; } .tp-eq b { font-size: 14px; font-variant-numeric: tabular-nums; }
@media (min-width: 480px) { .tp-eq { display: flex; } }

/* NLT AI: botones del panel y enlace del visor de reportes */
.ze-btns { display: flex; gap: 6px; }
.ze-btn { flex: 1; height: 28px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #e5e7eb; font: 600 11.5px 'Inter', system-ui, sans-serif; cursor: pointer; transition: all .18s ease; }
.ze-btn:hover:not(:disabled) { border-color: rgba(67, 120, 255, .6); color: #fff; }
.ze-btn.on { background: rgba(67, 120, 255, .85); border-color: rgb(67, 120, 255); color: #fff; }
.ze-btn:disabled { opacity: .55; cursor: default; }
.air-enlace { text-decoration: none; }
