/* NLT Funding -- Trader Desk (funding-dashboard.html). Misma identidad que el resto de NLT Funding: fondo oscuro, vidrio, verde neón y azul NLT.
   Todo lo que se mueve usa transform / opacity; con «reducir movimiento» (o el interruptor de Ajustes) queda estático. */
.fd-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.fd-nav { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, rgba(17, 21, 28, .72), rgba(13, 16, 22, .9)); border: 1px solid var(--fx-line); }
.fd-nav button { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 0; border-radius: 13px; background: transparent; color: var(--fx-mute); font: 600 13.5px Inter, sans-serif; cursor: pointer; text-align: left; transition: color .25s; }
.fd-nav button i { font-size: 18px; } .fd-nav button:hover { color: #fff; } .fd-nav button.on { color: #fff; }
.fd-pill { position: absolute; left: 10px; right: 10px; top: 10px; height: 42px; border-radius: 13px; z-index: 0; background: linear-gradient(90deg, rgba(var(--fx-em-rgb), .16), rgba(59, 130, 246, .14)); border: 1px solid rgba(var(--fx-em-rgb), .35); box-shadow: 0 0 24px -10px rgba(var(--fx-em-rgb), .6); transform: translateY(var(--y, 0)); transition: transform .45s cubic-bezier(.3, .8, .2, 1); pointer-events: none; }
.fd-main { min-width: 0; animation: fdEntra .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fdEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fd-main.fd-salir { opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .15s; }

/* tarjetas con luz que sigue al cursor */
.fd-card { position: relative; background: linear-gradient(180deg, rgba(17, 21, 28, .76), rgba(13, 16, 22, .94)); border: 1px solid var(--fx-line); border-radius: 22px; padding: 22px; overflow: hidden; }
.fd-spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--fx-em-rgb), .10), transparent 65%); }
.fd-spot:hover::before { opacity: 1; }
.fd-lab { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fx-dim); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.fd-info { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--fx-dim); font-size: 10px; cursor: help; letter-spacing: 0; }
.fd-sec { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fx-dim); margin: 30px 2px 14px; }
.fd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fd-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* inicio */
.fd-desk { position: relative; }
.fd-aurora { position: absolute; inset: -40px -20px auto; height: 420px; pointer-events: none; z-index: -1; overflow: hidden; }
.fd-aurora i { position: absolute; width: 520px; height: 320px; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.fd-aurora i:first-child { left: 8%; top: 0; background: rgba(var(--fx-em-rgb), .13); animation: fdDeriva 16s ease-in-out infinite alternate; }
.fd-aurora i:last-child { right: 4%; top: 40px; background: rgba(59, 130, 246, .16); animation: fdDeriva 20s ease-in-out infinite alternate-reverse; }
@keyframes fdDeriva { from { transform: translate3d(-30px, 0, 0) scale(1); } to { transform: translate3d(50px, 24px, 0) scale(1.15); } }
.fd-perfil { text-align: center; display: flex; flex-direction: column; align-items: center; }
.fd-perfil .fd-lab { align-self: flex-start; }
.fd-anillo { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 4px 0 14px;
    background: conic-gradient(var(--tier) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); animation: fdAnillo 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes fdAnillo { from { --p: 0; transform: rotate(-30deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.fd-anillo::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #0D1016; }
.fd-av { position: relative; z-index: 1; font: 800 34px Geist, Poppins, sans-serif; letter-spacing: .02em; background: linear-gradient(135deg, #fff, var(--tier)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fd-medalla { position: absolute; z-index: 2; right: 2px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #0D1016; background: var(--tier); box-shadow: 0 0 0 4px #0D1016, 0 0 22px var(--tier); animation: fdFlota 3.4s ease-in-out infinite; }
@keyframes fdFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.fd-nombre { font: 700 24px Geist, Poppins, sans-serif; margin-bottom: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-tier { font-size: 13px; color: var(--tier); margin-bottom: 20px; }
.fd-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.fd-trio small { display: block; font-size: 11px; color: var(--fx-mute); margin-bottom: 5px; } .fd-trio b { font: 800 clamp(17px, 2vw, 22px) Geist, Poppins, sans-serif; }
.fd-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; } .fd-big b { font: 800 clamp(34px, 4.6vw, 48px) Geist, Poppins, sans-serif; letter-spacing: -.03em; } .fd-big span { color: var(--fx-mute); font-size: 15px; } .fd-big.small b { font-size: 34px; }
.fd-score { padding-bottom: 8px; }
.fd-radar { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; } .fd-radar text { fill: #C7CFDB; font: 600 11.5px Inter, sans-serif; }
.fd-rp { animation: fdRadar 1.3s cubic-bezier(.2, .9, .2, 1) both; filter: drop-shadow(0 0 12px rgba(var(--fx-em-rgb), .45)); }
@keyframes fdRadar { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fd-rd { fill: #fff; stroke: var(--fx-em); stroke-width: 2.5; animation: fdPop .5s ease-out both; transform-box: fill-box; transform-origin: center; } @keyframes fdPop { from { transform: scale(0); } to { transform: scale(1); } }
.fd-hint { font-size: 12.5px; color: var(--fx-mute); text-align: center; margin: 8px 0 12px; }
.fd-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.fd-act { text-align: left; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; animation: fdEntra .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 80ms); }
.fd-act:hover { transform: translateY(-5px); border-color: rgba(var(--fx-em-rgb), .4); box-shadow: 0 24px 50px -26px rgba(var(--fx-em-rgb), .5); }
.fd-act small { color: var(--fx-mute); } .fd-bal b { font: 800 clamp(26px, 3.4vw, 34px) Geist, Poppins, sans-serif; letter-spacing: -.02em; } .fd-act em { font-style: normal; font-size: 12.5px; opacity: .85; }
.fd-meta { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; } .fd-meta i { display: block; height: 100%; border-radius: 6px; width: var(--w, 0%); background: linear-gradient(90deg, #3B82F6, var(--fx-em)); animation: fdLlena 1.2s cubic-bezier(.2, .8, .2, 1) both .3s; transform-origin: left; }
@keyframes fdLlena { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fd-habitos { padding: 22px; }
.fd-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 5px; margin-bottom: 18px; overflow: hidden; }
.fd-heat i { aspect-ratio: 1; min-width: 0; border-radius: 5px; background: rgba(255, 255, 255, .05); animation: fdCelda .5s ease-out both; animation-delay: calc(var(--c) * 28ms); }
@keyframes fdCelda { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.fd-heat i.fut { opacity: .25 !important; background: transparent; border: 1px dashed rgba(255, 255, 255, .1); }
.fd-heat i.g1 { background: rgba(57, 255, 20, .22); } .fd-heat i.g2 { background: rgba(57, 255, 20, .42); } .fd-heat i.g3 { background: rgba(57, 255, 20, .68); } .fd-heat i.g4 { background: #39FF14; box-shadow: 0 0 12px rgba(57, 255, 20, .6); }
.fd-heat i.r1 { background: rgba(239, 68, 68, .25); } .fd-heat i.r2 { background: rgba(239, 68, 68, .45); } .fd-heat i.r3 { background: rgba(239, 68, 68, .7); } .fd-heat i.r4 { background: #EF4444; }
.fd-hstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; } .fd-hstats small { display: block; font-size: 11px; color: var(--fx-mute); margin-bottom: 4px; } .fd-hstats b { font: 800 clamp(16px, 2vw, 21px) Geist, Poppins, sans-serif; }
.fd-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding: 22px 26px; border-radius: 22px; text-decoration: none; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, rgba(var(--fx-em-rgb), .16), rgba(59, 130, 246, .2)); border: 1px solid rgba(var(--fx-em-rgb), .3); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.fd-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent); transform: skewX(-20deg); animation: fdBarrido 5s ease-in-out infinite; }
@keyframes fdBarrido { 0%, 60% { left: -50%; } 100% { left: 130%; } }
.fd-cta:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(var(--fx-em-rgb), .55); } .fd-cta b { display: block; font: 700 18px Geist, Poppins, sans-serif; } .fd-cta small { color: #C7CFDB; font-size: 13px; } .fd-cta > i { font-size: 22px; transition: transform .3s; } .fd-cta:hover > i { transform: translateX(6px); }

/* cuentas: lista + detalle */
.fd-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.fd-list { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: none; }
.fd-hola { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--fx-line); background: radial-gradient(120% 90% at 100% 0%, rgba(var(--fx-em-rgb), .12), transparent 60%), linear-gradient(180deg, rgba(17, 21, 28, .8), rgba(13, 16, 22, .95)); }
.fd-hola h2 { font: 700 21px Geist, Poppins, sans-serif; } .fd-hola p { font-size: 12.5px; color: var(--fx-mute); margin: 3px 0 14px; } .fd-hola .fd-trio b { font-size: 17px; }
.fd-comprar { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; border-radius: 14px; text-decoration: none; font: 700 13px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #04130D; background: var(--fx-em); box-shadow: 0 0 26px rgba(var(--fx-em-rgb), .3); transition: transform .2s, box-shadow .2s; }
.fd-comprar:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(var(--fx-em-rgb), .5); }
.fd-filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fd-filtros .fx-select { padding: 10px 12px; font-size: 13px; }
.fd-items { display: flex; flex-direction: column; gap: 10px; }
.fd-item { position: relative; text-align: left; color: inherit; font: inherit; cursor: pointer; padding: 14px 16px; border-radius: 18px; background: var(--fx-card2); border: 1px solid var(--fx-line); display: flex; flex-direction: column; gap: 8px; overflow: hidden;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, background .25s; animation: fdEntra .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 55ms); }
.fd-item:hover { transform: translateX(4px); border-color: rgba(255, 255, 255, .18); }
.fd-item.on { border-color: rgba(var(--fx-em-rgb), .6); background: rgba(var(--fx-em-rgb), .07); box-shadow: 0 0 28px -12px rgba(var(--fx-em-rgb), .6); }
.fd-item.on::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--fx-em); box-shadow: 0 0 12px var(--fx-em); }
.fd-item b { font: 700 16px Geist, Poppins, sans-serif; } .fd-item small { font-size: 11.5px; } .fd-nums { align-items: flex-end; } .fd-nums small { display: block; color: var(--fx-dim); } .fd-nums b { font-size: 15px; }
.fd-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fx-mute); margin-bottom: 16px; } .fd-crumbs button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; } .fd-crumbs button:hover { color: #fff; } .fd-crumbs span { color: #fff; }
.fd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 18px; } .fd-idc { display: flex; align-items: center; gap: 12px; } .fd-idc .fx-mark { width: 38px; height: 38px; } .fd-idc h2 { font: 800 24px Geist, Poppins, sans-serif; line-height: 1.1; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; } .fd-acciones { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.fd-row-sc { display: grid; grid-template-columns: .9fr 1.4fr; gap: 16px; margin-bottom: 18px; }
.fd-scorec { background: radial-gradient(120% 100% at 0% 0%, rgba(59, 130, 246, .22), transparent 60%), linear-gradient(180deg, rgba(17, 24, 40, .9), rgba(13, 16, 22, .95)); border-color: rgba(59, 130, 246, .3); }
.fd-scbody { position: relative; } .fd-scbody .fd-big { position: absolute; left: 0; bottom: 0; margin: 0; } .fd-scbody .fd-radar { max-width: 280px; }
.fd-gl { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--fx-mute); } .fd-gv { font: 800 22px Geist, Poppins, sans-serif; }
.fd-gauges { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.fd-track { position: relative; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); margin: 14px 0 8px; }
.fd-track .fd-zr, .fd-track .fd-zg { position: absolute; top: 0; bottom: 0; } .fd-zr { left: 0; border-radius: 10px 0 0 10px; background: linear-gradient(90deg, rgba(239, 68, 68, .55), rgba(239, 68, 68, .12)); } .fd-zg { border-radius: 0 10px 10px 0; background: linear-gradient(90deg, rgba(57, 255, 20, .12), rgba(57, 255, 20, .55)); }
.fd-ini { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255, 255, 255, .55); }
.fd-pin { position: absolute; top: 50%; left: var(--x); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 4px solid var(--fx-em); box-shadow: 0 0 0 6px rgba(var(--fx-em-rgb), .16), 0 0 18px rgba(var(--fx-em-rgb), .7); animation: fdPin 1.4s cubic-bezier(.2, .8, .2, 1) both .2s; transition: left .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes fdPin { from { left: 0; } }
.fd-ends { font-size: 11.5px; } .fd-leyenda { font-size: 11.5px; }

/* recompensas */
.fd-premio { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 230px; background: radial-gradient(130% 120% at 100% 0%, rgba(250, 204, 21, .16), transparent 55%), linear-gradient(180deg, rgba(28, 22, 12, .85), rgba(13, 16, 22, .96)); border-color: rgba(250, 204, 21, .25); }
.fd-trofeo { position: absolute; right: 22px; top: 18px; width: 120px; height: 120px; display: grid; place-items: center; } .fd-trofeo i { position: relative; z-index: 1; font-size: 78px; color: #FACC15; filter: drop-shadow(0 0 22px rgba(250, 204, 21, .55)); animation: fdFlota 4s ease-in-out infinite; }
.fd-trofeo span { position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(250, 204, 21, .35); animation: fdOnda 3.4s ease-out infinite; } .fd-trofeo span + span { animation-delay: 1.7s; }
@keyframes fdOnda { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.fd-premio-t { position: relative; z-index: 1; } .fd-premio-t small { color: var(--fx-mute); } .fd-premio-a { display: flex; gap: 8px; flex-wrap: wrap; }
.fd-recomp .fd-r-top .fd-card h3 { font: 700 20px Geist, Poppins, sans-serif; }
.fd-tabla { margin-top: 18px; padding: 22px 8px 12px; } .fd-tabla .fd-lab { padding-inline: 16px; }

/* ajustes */
.fd-ajustes { display: flex; flex-direction: column; gap: 16px; }
.fd-pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--fx-line); } .fd-pref:first-of-type { border-top: 0; } .fd-pref b { display: block; font-size: 14px; } .fd-pref small { color: var(--fx-mute); font-size: 12.5px; }
.fd-switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: 26px; border: 0; background: rgba(255, 255, 255, .14); cursor: pointer; transition: background .25s; } .fd-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, .8, .2, 1); }
.fd-switch.on { background: var(--fx-em); } .fd-switch.on::after { transform: translateX(20px); background: #04130D; }

/* móvil y tablet */
@media (max-width: 1100px) { .fd-split { grid-template-columns: 1fr; } .fd-list { position: static; max-height: none; } .fd-items { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .fd-item { flex: 0 0 260px; } .fd-item:hover { transform: none; } }
@media (max-width: 900px) {
    .fd-shell { grid-template-columns: 1fr; gap: 14px; }
    .fd-nav { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 6px; border-radius: 16px; backdrop-filter: blur(14px); }
    .fd-nav button { flex: none; padding: 10px 14px; white-space: nowrap; } .fd-pill { top: 6px; bottom: 6px; left: 0; right: auto; height: auto; width: var(--w, 0); transform: translateX(var(--x, 0)); }
    .fd-grid2, .fd-row-sc { grid-template-columns: 1fr; } .fd-hstats { grid-template-columns: repeat(3, 1fr); } .fd-trofeo { transform: scale(.7); transform-origin: top right; right: 10px; }
}
@media (max-width: 520px) { .fd-hstats { grid-template-columns: repeat(2, 1fr); } .fd-trio b { font-size: 16px; } .fd-heat { gap: 3px; } .fd-acciones { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .fd-aurora i, .fd-medalla, .fd-trofeo i, .fd-trofeo span, .fd-cta::after { animation: none; } .fd-main, .fd-act, .fd-item, .fd-anillo, .fd-rp, .fd-rd, .fd-meta i, .fd-heat i, .fd-pin { animation: none; }
    .fd-pill { transition: none; } .fd-act:hover, .fd-item:hover, .fd-cta:hover { transform: none; }
}
.fd-quieto .fd-aurora i, .fd-quieto .fd-medalla, .fd-quieto .fd-trofeo i, .fd-quieto .fd-trofeo span, .fd-quieto .fd-cta::after, .fd-quieto .fd-main, .fd-quieto .fd-act, .fd-quieto .fd-item, .fd-quieto .fd-anillo, .fd-quieto .fd-rp, .fd-quieto .fd-rd, .fd-quieto .fd-meta i, .fd-quieto .fd-heat i, .fd-quieto .fd-pin { animation: none !important; }

.fx-dash { max-width: 1440px; }
.fd-nodata { font: 600 14px Inter, sans-serif !important; color: var(--fx-mute); letter-spacing: 0 !important; }

/* la columna de cuentas es un flex con scroll: sin esto las tarjetas con overflow:hidden (el saludo) se encogen y el texto sale cortado */
.fd-list > *, .fd-items > * { flex-shrink: 0; }
.fd-monto { position: relative; } .fd-monto span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fx-mute); font-weight: 700; pointer-events: none; } .fd-monto .fx-input { padding-left: 30px; font-variant-numeric: tabular-nums; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#rOtra[hidden] { display: none; }
.fd-wallets { display: flex; flex-direction: column; gap: 10px; }
.fd-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--fx-line); background: rgba(255, 255, 255, .03); }
.fd-wallet > div { min-width: 0; } .fd-wallet b { display: block; font-size: 14px; } .fd-wallet small { display: block; margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.fd-wallet .fx-btn { flex: none; min-width: 44px; min-height: 44px; }
