/* Mi cuenta · dashboard (estilo claro, plano, compacto) */
.dash-page{background:var(--bg,#0b0f1a);color:var(--txt,#e6ebf5);padding:28px 12px 40px;font-family:Inter,system-ui,sans-serif}
.dash-shell{max-width:1100px;margin:0 auto;background:var(--bg2,#111827);border:1px solid var(--line,#24304a);border-radius:4px;display:grid;grid-template-columns:minmax(0,1fr);min-height:520px}
.dash-page a{color:var(--teal,#27cfcd)}
.dash-page .price{background:none;color:inherit;padding:0;border-radius:0;font-size:inherit;font-weight:inherit}
/* menú lateral */
.dash-side{border-bottom:1px solid var(--line,#24304a);padding:10px;min-width:0}
.dash-menu{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.dash-menu::-webkit-scrollbar{display:none}
.dash-menu a,.dash-menu button{display:flex;align-items:center;gap:10px;white-space:nowrap;padding:9px 12px;border-radius:4px;color:#c7d0e3!important;font:500 .9rem Inter,system-ui,sans-serif;background:none;border:1px solid transparent;border-left:3px solid transparent;cursor:pointer;text-align:left}
.dash-menu a:hover,.dash-menu button:hover{background:#1a2236;color:#fff!important}
.dash-menu a.on{background:var(--card,#151c2c);border-color:var(--line,#24304a);border-left-color:var(--teal,#27cfcd);color:#fff!important;font-weight:600}
.dash-menu svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dash-menu .sep{flex:none;width:1px;background:var(--line,#24304a);margin:4px 2px}
.dash-main{padding:18px 14px;min-width:0}
.dash-hello{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.dash-hello h1{font:700 1.25rem Poppins,Inter,sans-serif;color:#fff}.dash-hello p{color:var(--mut,#9aa6bf);font-size:.85rem}
.dash-msg{border-radius:4px;padding:9px 12px;font-size:.88rem;margin-bottom:12px;background:#ff2d551a;color:#ff8da3;border:1px solid #ff2d5555}
.dash-msg.ok{background:#29d6371a;color:#7ee887;border-color:#29d63755}
.dash-warn{background:#ffb0201a;border:1px solid #ffb02055;color:#ffd27a;border-radius:4px;padding:9px 12px;font-size:.88rem;margin-bottom:12px}
.dash-warn button{background:none;border:0;color:var(--teal,#27cfcd);text-decoration:underline;cursor:pointer;font:inherit;padding:0}
/* fila superior */
.dash-top{display:grid;gap:14px;grid-template-columns:1fr}
.bal-card{position:relative;overflow:hidden;background:#1c2539;color:#fff;border:1px solid #33415f;border-radius:4px;padding:20px;display:flex;flex-direction:column;gap:14px}
.bal-card::after{content:"";position:absolute;right:-40px;top:-40px;width:130px;height:130px;border-radius:50%;background:#ffffff14}
.dash-page .bal-amt{font:700 2rem Poppins,Inter,sans-serif;line-height:1.1}
.bal-label{font-size:.85rem;color:#c9ced6}.bal-amt{font:700 1.9rem Poppins,Inter,sans-serif;line-height:1.1}
.bal-sub{font-size:.75rem;color:#9aa3af;margin-top:-10px}
.bal-boxes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bal-box{border:1px solid #33415f;background:#141b2b;border-radius:4px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.bal-box span{font-size:.75rem;color:#c9ced6}.bal-box b{font-size:.95rem}
.bal-btn{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #3d4c6d;background:#141b2b;color:#fff!important;border-radius:4px;padding:11px;font-weight:600;font-size:.92rem}
.bal-btn:hover{background:#222c43;border-color:var(--teal,#27cfcd)}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start}
.stat{border-radius:4px;color:#fff;padding:16px 14px;display:flex;align-items:center;gap:12px;min-height:84px}
.stat .si{width:38px;height:38px;border-radius:4px;background:#ffffff33;display:grid;place-items:center;flex:none}
.stat .si svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stat span{display:block;font-size:.82rem;opacity:.95}.stat b{display:block;font-size:1rem;margin-top:2px}.stat b span{display:inline;font-size:inherit;opacity:1}
.st-wait{background:#5f6b78}.st-proc{background:#ef8c0e}.st-ok{background:#2fa66a}.st-rej{background:#df3a3a}
.stat.total{grid-column:1/-1;background:#2fa66a;justify-content:space-between}
.stat.total>div{display:flex;align-items:center;gap:12px}
.stat .go{width:38px;height:38px;border-radius:50%;background:#ffffff33;border:0;color:#fff;font-size:1.2rem;cursor:pointer;display:grid;place-items:center}
.stat .go:hover{background:#ffffff55}
/* listas */
.dash-lists{display:grid;gap:14px;margin-top:16px;grid-template-columns:1fr}
.lcard{border:1px solid var(--line,#24304a);border-radius:4px;background:var(--card,#151c2c);min-width:0}
.lhead{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line,#24304a)}
.lhead h3{font:600 .95rem Inter,sans-serif;color:#fff}.lhead a{font-size:.82rem;color:var(--teal,#27cfcd)!important}
.lrow{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 14px;border-bottom:1px solid #1f2940;font-size:.85rem}
.lrow:last-child{border-bottom:0}
.lrow .ld{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--txt,#e6ebf5)}.lrow .ld small{display:block;color:var(--mut,#9aa6bf);font-size:.75rem}
.lrow .la{color:var(--txt,#e6ebf5);font-weight:500;white-space:nowrap;text-align:right}
.lempty{padding:22px 14px;color:var(--mut,#9aa6bf);font-size:.85rem;text-align:center}
.pill{display:inline-block;border-radius:3px;padding:3px 9px;font-size:.66rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#fff;white-space:nowrap}
.p-wait{background:#6b7785}.p-proc{background:#ef8c0e}.p-ok{background:#2fa66a}.p-rej{background:#df3a3a}
/* vistas internas */
.dash-h2{font:600 1.05rem Inter,sans-serif;color:#fff;margin-bottom:12px}
.ord{border:1px solid var(--line,#24304a);background:var(--card,#151c2c);border-radius:4px;margin-bottom:10px}
.ord-h{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid #1f2940;flex-wrap:wrap}
.ord-h b{font-size:.95rem;color:#fff}
.ord dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;padding:10px 14px;font-size:.86rem}
.ord dt{color:var(--mut,#9aa6bf)}.ord dd{color:var(--txt,#e6ebf5);white-space:pre-line;word-break:break-word}
.ord ol{list-style:none;margin:0 14px 12px;padding-left:12px;border-left:2px solid var(--line,#24304a);display:grid;gap:6px;font-size:.82rem}
.ord ol small{color:var(--mut,#9aa6bf)}
.dform{display:grid;gap:12px;max-width:440px}
.dform label{display:grid;gap:4px;font-size:.86rem;color:#c7d0e3}
.dform input{background:var(--bg,#0b0f1a);border:1px solid #2e3b58;border-radius:4px;color:var(--txt,#e6ebf5);padding:9px 10px;font:inherit}
.dform input:focus{outline:2px solid #27cfcd33;border-color:var(--teal,#27cfcd)}
.dform input[readonly]{background:#141b2b;color:var(--mut,#9aa6bf)}
.dbtn{background:var(--teal,#27cfcd);color:#03201f;border:0;border-radius:4px;padding:10px 16px;font:600 .9rem Inter,sans-serif;cursor:pointer;justify-self:start}
.dbtn:hover{filter:brightness(1.1)}.dbtn.ghost{background:transparent;color:var(--teal,#27cfcd);border:1px solid var(--teal,#27cfcd)}.dbtn.red{background:#df3a3a;color:#fff}
.dbtn:disabled{opacity:.6;cursor:default}
.dnote{color:var(--mut,#9aa6bf);font-size:.82rem}
.dbox{border:1px solid var(--line,#24304a);background:var(--card,#151c2c);border-radius:4px;padding:14px;margin-bottom:12px;display:grid;gap:8px;font-size:.88rem;color:var(--txt,#e6ebf5)}
.dbox h3{color:#fff}
.dbox h3{font:600 .92rem Inter,sans-serif}
@media(min-width:640px){.dash-lists{grid-template-columns:1fr 1fr}}
@media(min-width:900px){
 .dash-shell{grid-template-columns:240px minmax(0,1fr)}
 .dash-side{border-bottom:0;border-right:1px solid var(--line,#24304a);padding:18px 14px}
 .dash-menu{flex-direction:column;gap:4px;overflow:visible}
 .dash-menu .sep{width:auto;height:1px;margin:6px 0}
 .dash-main{padding:22px}
 .dash-top{grid-template-columns:1fr 1fr}
}
.dform .opt{display:inline}
/* Cargar saldo */
button.bal-btn{width:100%;font:600 .92rem Inter,system-ui,sans-serif;cursor:pointer}
.tp-box{border-color:var(--line,#24304a);border-radius:6px;gap:12px}
.tp-box.tp-bn{border-color:#f0b90b66}
.tp-title{color:#fff;font:700 1.1rem Poppins,Inter,sans-serif}.tp-bn .tp-title{color:#f0b90b}
.tp-lab{display:grid;gap:4px;font-size:.85rem;color:#c7d0e3}
.tp-inp{background:var(--bg,#0b0f1a);border:1px solid #2e3b58;border-radius:4px;color:#fff;padding:10px;font:600 1.05rem Inter,sans-serif;width:100%}
.tp-inp:focus{outline:2px solid #27cfcd33;border-color:var(--teal,#27cfcd)}
.tp-chips{display:flex;flex-wrap:wrap;gap:6px}
.tp-chip{background:var(--bg2,#111827);color:var(--txt,#e6ebf5);border:1px solid var(--line,#24304a);border-radius:4px;padding:5px 10px;font:500 .82rem Inter,sans-serif;cursor:pointer}
.tp-chip:hover{border-color:var(--teal,#27cfcd)}
.tp-conv{font-size:.85rem;color:var(--teal,#27cfcd);min-height:1.2em}
.tp-k{font-size:.8rem;color:var(--mut,#9aa6bf)}
.tp-methods{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tp-m{display:grid;gap:2px;text-align:left;background:var(--bg2,#111827);color:#fff;border:1px solid var(--line,#24304a);border-radius:4px;padding:10px;cursor:pointer;font:inherit}
.tp-m small{color:var(--mut,#9aa6bf);font-size:.75rem}
.tp-m.tp-mp.on{border-color:#00b1ea;background:#00b1ea1f}.tp-m.tp-binance.on{border-color:#f0b90b;background:#f0b90b1f}
.tp-err{background:#ff2d551a;color:#ff8da3;border:1px solid #ff2d5555;border-radius:4px;padding:8px 10px;font-size:.85rem}
.tp-go{justify-self:stretch;text-align:center}
.tp-status{font-size:.85rem;color:#ffd27a}.tp-status.ok{color:#7ee887}
.tp-reopen{display:block;background:none;border:1px solid #f0b90b66;color:#f0b90b;border-radius:3px;font:500 .72rem Inter,sans-serif;padding:2px 7px;margin-top:4px;cursor:pointer}
