:root {
  --bg: #07090c;
  --card: #10151b;
  --card-2: #161d25;
  --line: #1d2530;
  --text: #e8edf2;
  --muted: #8a96a3;
  --cyan: #29b6e8;
  --cyan-ink: #04212d;
  --up: #22c55e;
  --down: #ef4444;
  --warn: #f5b73b;
  --radius: 14px;
  --nav-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; }
body { min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); } .cyan { color: var(--cyan); }
.hidden { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: calc(var(--nav-h) + 12px); }
.screen { padding: 14px 16px; }

/* Encabezado */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.logo { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; display: flex; align-items: baseline; gap: 6px; }
.logo b { color: var(--cyan); font-weight: 600; }
.logo small { font-size: 12px; color: var(--muted); font-weight: 500; }
.icon-btn { background: var(--card); border: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; cursor: pointer; color: var(--text); }

/* Tarjetas */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.label { font-size: 12px; color: var(--muted); }
.big { font-size: 30px; font-weight: 600; letter-spacing: -0.5px; }
.mid { font-size: 18px; font-weight: 600; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 10px; font-weight: 600; }
.section-title a, .section-title button { font-size: 13px; font-weight: 500; background: none; border: 0; color: var(--cyan); cursor: pointer; }

.hero { text-align: center; padding: 10px 0 4px; }
.spark { width: 100%; height: 60px; display: block; margin-top: 8px; }

.fav { cursor: pointer; transition: background .15s; }
.fav:active, .row:active { background: var(--card-2); }
.fav .sym { font-weight: 600; }
.fav .px { margin-top: 8px; font-weight: 500; }

/* Barras de reglas */
.rule { margin-top: 12px; }
.rule .head { display: flex; justify-content: space-between; font-size: 13px; }
.bar { height: 6px; background: var(--card-2); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--cyan); border-radius: 6px; }
.bar.risk > i { background: var(--warn); }
.bar.danger > i { background: var(--down); }

/* Lista de mercados */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 20px; background: var(--card); border: 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.chip.on { background: var(--cyan); color: var(--cyan-ink); font-weight: 600; }
.search { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin: 12px 0; outline: none; }
.search:focus { border-color: var(--cyan); }
.list { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.row .sym { font-weight: 600; }
.row .r { text-align: right; }
.row svg { flex: none; }

/* Gráfico */
.chart-top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; }
.chart-top .t { flex: 1; }
.chart-wrap { height: 52vh; min-height: 300px; background: #0b0f14; }
.chart-wrap > div { height: 100%; position: relative; touch-action: pan-y; }
.iv-bar { display: flex; align-items: center; gap: 4px; padding: 6px 12px; background: #0b0f14; border-bottom: 1px solid var(--line); }
.iv-bar button { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.iv-bar button.on { background: var(--card-2); color: var(--text); font-weight: 600; }
.lw-msg { position: absolute; inset: 0; display: none; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 20px; z-index: 3; pointer-events: none; }
.lw-msg[style*="block"] { display: grid !important; }
.order { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--card-2); font-size: 18px; cursor: pointer; }
.stepper input { width: 72px; text-align: center; background: transparent; border: 0; font-weight: 600; font-size: 16px; outline: none; }
.sltp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sltp input { width: 100%; background: var(--card-2); border: 1px solid transparent; border-radius: 10px; padding: 10px; outline: none; }
.sltp input:focus { border-color: var(--cyan); }
.trade-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trade-btns button { border: 0; border-radius: 12px; padding: 12px 0; font-weight: 600; font-size: 15px; cursor: pointer; }
.trade-btns button small { display: block; font-weight: 500; font-size: 12px; opacity: .85; margin-top: 2px; }
.btn-sell { background: var(--down); color: #fff; }
.btn-buy { background: var(--up); color: #04210f; }

/* Posiciones */
.pos { background: var(--card); border-radius: 12px; padding: 12px 14px; }
.pos .line { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.tag.buy { background: rgba(34,197,94,.15); color: var(--up); }
.tag.sell { background: rgba(239,68,68,.15); color: var(--down); }
.lvls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.lvl { background: var(--card-2); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lvl b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sl-warn { margin-top: 8px; font-size: 13px; color: var(--warn); display: flex; gap: 6px; align-items: center; }
.btn-close { background: var(--card-2); border: 0; border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty i { font-size: 34px; display: block; margin-bottom: 8px; color: var(--line); }

/* Barra inferior */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: var(--nav-h); background: rgba(7,9,12,.96); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; z-index: 10; }
.nav button { background: none; border: 0; color: #5f6b78; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; cursor: pointer; padding: 6px 10px; }
.nav button i { font-size: 22px; }
.nav button.on { color: var(--cyan); }

/* Formularios de acceso */
.auth { max-width: 420px; margin: 0 auto; padding: 40px 22px; min-height: 100vh; display: flex; flex-direction: column; }
.auth .brand { text-align: center; margin: 20px 0 30px; }
.auth .brand .logo-svg { max-width: 80%; height: auto; display: inline-block; }
.auth h1 { font-size: 22px; margin: 0 0 4px; }
.auth p.sub { color: var(--muted); margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--cyan); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.check input { margin-top: 2px; accent-color: var(--cyan); }
.btn-primary { width: 100%; background: var(--cyan); color: var(--cyan-ink); border: 0; border-radius: 12px; padding: 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn-primary:disabled { opacity: .6; }
.btn-ghost { width: 100%; background: var(--card); border: 0; border-radius: 12px; padding: 13px; cursor: pointer; }
.err { color: var(--down); font-size: 13px; min-height: 18px; margin: 4px 0 10px; }
.ok { color: var(--up); font-size: 13px; margin: 4px 0 10px; }
.switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.switch a { cursor: pointer; }

/* Modal y avisos */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal .sheet { background: var(--card); width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px; }
.modal h2 { margin: 0 0 12px; font-size: 18px; }
.modal ol { padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 60; max-width: 90%; text-align: center; }

.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.st-activa { background: rgba(41,182,232,.15); color: var(--cyan); }
.st-sin_challenge { background: var(--card-2); color: var(--muted); }
.st-pendiente, .st-suspendida { background: rgba(245,183,59,.15); color: var(--warn); }
.st-fallida { background: rgba(239,68,68,.15); color: var(--down); }
.st-aprobada { background: rgba(34,197,94,.15); color: var(--up); }

/* Registro en pasos */
.auth .brand.small { margin: 0 0 18px; }
.stepper-top { display: flex; align-items: flex-start; justify-content: center; margin: 0 0 22px; }
.stp { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; }
.stp span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.stp small { font-size: 11px; color: var(--muted); }
.stp.cur span { background: var(--cyan); color: var(--cyan-ink); border-color: var(--cyan); }
.stp.cur small { color: var(--text); font-weight: 500; }
.stp.done span { background: rgba(41,182,232,.15); color: var(--cyan); border-color: transparent; }
.stp-line { flex: 1; height: 1px; background: var(--line); margin-top: 14px; max-width: 50px; }
.form-sec { background: var(--card); border-radius: var(--radius); padding: 14px 14px 2px; margin-bottom: 12px; }
.form-sec .field input, .form-sec .field select { background: var(--bg); }
.sec-t { font-weight: 600; font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sec-t i { color: var(--cyan); font-size: 18px; }
.tips { margin: -4px 0 12px; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.secure { text-align: center; margin-top: 12px; display: flex; gap: 6px; justify-content: center; align-items: center; }
input[type="date"] { color-scheme: dark; }

/* Subir foto */
.upload { position: relative; display: block; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; overflow: hidden; min-height: 150px; transition: border-color .15s; }
.upload:hover { border-color: var(--cyan); }
.upload img { display: none; width: 100%; max-height: 260px; object-fit: contain; background: #000; }
.upload .up-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 26px 14px; text-align: center; }
.upload .up-empty i { font-size: 32px; color: var(--cyan); }
.upload .up-empty b { font-size: 14px; font-weight: 500; }
.upload .up-empty small { color: var(--muted); font-size: 12px; }
.upload .up-change { display: none; position: absolute; right: 8px; bottom: 8px; background: rgba(7,9,12,.85); border-radius: 8px; padding: 6px 10px; font-size: 12px; }
.upload.has { border-style: solid; border-color: var(--cyan); }
.upload.has img { display: block; }
.upload.has .up-empty { display: none; }
.upload.has .up-change { display: block; }
.upload.loading { opacity: .5; pointer-events: none; }

.pend-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 8px; }
.pend-row i { font-size: 18px; }

/* Pago */
.pay-sum { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 10px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 10px 6px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; display: flex; gap: 6px; align-items: center; justify-content: center; }
.seg button.on { background: var(--card-2); color: var(--text); }
.seg button.on i { color: var(--cyan); }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.copy-row:last-of-type { border-bottom: 0; }
.copy-row b { font-weight: 500; word-break: break-all; }
.copy-btn { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--card-2); color: var(--cyan); cursor: pointer; font-size: 16px; }
.qr-wrap { text-align: center; margin-top: 12px; }
.qr-wrap img { width: 180px; height: 180px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* Elección de challenge */
.ch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ch { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ch-size { font-weight: 600; font-size: 15px; }
.ch-price { font-size: 12px; color: var(--muted); }
.ch.on { border-color: var(--cyan); background: rgba(41,182,232,.1); }
.ch.on .ch-price { color: var(--cyan); }
.ch-sum { background: var(--card); border-radius: 12px; padding: 4px 14px; margin-top: 10px; }
.ch-sum .kv { font-size: 13px; padding: 8px 0; }

.lev-select { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; outline: none; }
.lev-select:focus { border-color: var(--cyan); }
.ch-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); margin-bottom: 4px; }

/* Soporte */
.rules-list .rl { border-bottom: 1px solid var(--line); padding: 11px 0; }
.rules-list .rl:first-child { padding-top: 0; }
.rules-list .rl:last-child { border-bottom: 0; padding-bottom: 0; }
.rl-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rl-h span { text-align: right; font-weight: 500; }
.rules-list p { color: var(--muted); font-size: 13px; margin: 4px 0 0; line-height: 1.45; }
.chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 6px; margin: 2px 4px 2px 0; white-space: nowrap; }
.chk.ok { background: rgba(34,197,94,.12); color: var(--up); }
.chk.no { background: rgba(239,68,68,.12); color: var(--down); }
.chk.warn { background: rgba(245,183,59,.12); color: var(--warn); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.steps div { background: var(--card-2); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.steps span { width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: var(--cyan-ink); font-weight: 600; font-size: 13px; display: grid; place-items: center; margin: 0 auto 2px; }
.steps small { color: var(--muted); font-size: 11px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--muted); font-size: 14px; margin: 8px 0 0; line-height: 1.5; }

.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }

/* Certificados */
.cert-card { margin-bottom: 10px; }
.cert-card img { display: block; width: 100%; border-radius: 10px; margin-bottom: 10px; cursor: zoom-in; }
.cert-card .kv { align-items: center; gap: 10px; }
.cert-card a.chip { white-space: nowrap; text-decoration: none; border: 1px solid var(--line); color: var(--cyan); }

/* Redes sociales */
.social-card { padding: 14px; }
.social-card .wa-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #25d366; color: #fff; text-decoration: none; }
.social-card .wa-btn > i:first-child { font-size: 28px; }
.social-card .wa-btn span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.social-card .wa-btn small { opacity: .85; font-size: 12px; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.social-grid a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: var(--bg, #07090c); border: 1px solid var(--line); text-decoration: none; color: var(--text); min-width: 0; transition: border-color .2s; }
.social-grid a:hover, .social-grid a:active { border-color: var(--c); }
.social-grid i { font-size: 24px; color: var(--c); margin-bottom: 2px; }
.social-grid b { font-size: 13px; font-weight: 600; }
.social-grid small { font-size: 10.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.auth-socials { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.auth-socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--c); font-size: 20px; text-decoration: none; }
.auth-socials a:hover { border-color: var(--c); }
/* Varias cuentas */
.acct-bar { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.acct-bar:active { border-color: var(--cyan); }
.acct-bar .acct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct-bar > i { color: var(--muted); font-size: 18px; }
.acct-code { font-weight: 600; font-size: 14px; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.acct-list { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow: auto; }
.acct-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg, #07090c); border: 1px solid var(--line); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.acct-item.on { border-color: var(--cyan); }
.lw-closed { position: absolute; top: 8px; left: 8px; z-index: 5; background: rgba(15,20,26,.92); border: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 6px 10px; border-radius: 10px; pointer-events: none; max-width: calc(100% - 90px); }

/* ---------- Pantallas de acceso con efecto (vidrio + cintas de luz) ---------- */
.fx-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.auth.fx { position: relative; z-index: 1; justify-content: center; padding-top: 28px; padding-bottom: 28px; }
.auth.fx .brand { margin: 6px 0 18px; animation: fxDown .7s ease both; }
.glass-wrap { position: relative; animation: fxIn .6s cubic-bezier(.2,.8,.2,1) both; }
/* Triángulos de vidrio en las esquinas cortadas */
.glass-wrap::before, .glass-wrap::after { content: ''; position: absolute; width: 30px; height: 30px; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(41,182,232,.10)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.glass-wrap::before { top: -6px; left: -6px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.glass-wrap::after { bottom: -6px; right: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.glass { position: relative; padding: 26px 22px 22px; border-radius: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,.085), rgba(255,255,255,.025) 45%, rgba(41,182,232,.05));
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 30px 80px rgba(0,0,0,.55);
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); }
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%); background-size: 250% 100%; animation: fxShine 6s ease-in-out infinite; }
.auth.fx h1 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.auth.fx h1 span { color: var(--cyan); }
.auth.fx p.sub { font-size: 14px; }
.auth.fx .field input, .auth.fx .field select { background: rgba(0,0,0,.38); border-color: rgba(255,255,255,.09); transition: border-color .2s, box-shadow .2s; }
.auth.fx .field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,182,232,.18); outline: none; }
.auth.fx .form-sec { background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.07); }
.in-ic { position: relative; }
.in-ic > i { position: absolute; z-index: 2; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; pointer-events: none; }
.in-ic input { padding-left: 40px !important; }
.in-ic .eye { position: absolute; z-index: 2; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 18px; padding: 6px 8px; cursor: pointer; }
.in-ic:has(.eye) input { padding-right: 42px; }
.forgot-row { text-align: right; margin: -4px 0 14px; font-size: 13px; }
.forgot-row a { cursor: pointer; color: var(--muted); }
.btn-glow { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #3cc6f2, #1b9fd4) !important;
  box-shadow: 0 10px 30px rgba(41,182,232,.35); transition: transform .15s, box-shadow .2s; }
.btn-glow:hover { box-shadow: 0 12px 36px rgba(41,182,232,.5); }
.btn-glow:active { transform: scale(.98); }
.btn-glow i { transition: transform .2s; }
.btn-glow:hover i { transform: translateX(3px); }
.auth.fx .switch { position: relative; z-index: 1; }
.auth.fx .auth-socials { animation: fxIn .8s .15s ease both; }
@keyframes fxIn { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fxDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fxShine { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .glass-wrap, .auth.fx .brand, .glass::before, .auth.fx .auth-socials { animation: none; } }
/* Porcentaje de ganancia y prueba gratis */
.split-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.split-pick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit; }
.split-pick button.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41,182,232,.15); }
.split-pick b { font-size: 18px; } .split-pick small { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.25; }
.trial-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; margin-bottom: 14px; border-radius: 14px; border: 1px dashed var(--cyan); background: rgba(41,182,232,.08); color: var(--text); cursor: pointer; font: inherit; }
.trial-card > i:first-child { font-size: 26px; color: var(--cyan); } .trial-card span { flex: 1; display: flex; flex-direction: column; } .trial-card small { color: var(--muted); font-size: 12px; }
.trial-banner { margin-bottom: 12px; border: 1px solid var(--cyan); }
/* ---------- Operar desde el gráfico (estilo MetaTrader) ---------- */
.mt-quick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; background: #0b0f14; border-bottom: 1px solid var(--line); }
.mt-side { border: 0; padding: 7px 10px; text-align: left; cursor: pointer; color: #fff; opacity: .55; transition: opacity .15s, box-shadow .15s; }
.mt-side small { display: block; font-size: 10px; letter-spacing: .5px; opacity: .9; }
.mt-side b { font-size: 17px; font-variant-numeric: tabular-nums; }
.mt-side.sell { background: #b9383b; }
.mt-side.buy { background: #1f8f53; text-align: right; }
.mt-side.on { opacity: 1; box-shadow: inset 0 -3px 0 rgba(255,255,255,.85); }
.mt-lot { display: flex; align-items: center; background: #121821; }
.mt-lot button { width: 30px; height: 100%; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.mt-lot input { width: 58px; text-align: center; background: transparent; border: 0; color: var(--text); font-weight: 600; font-size: 15px; outline: none; }
.mt-panel { padding: 12px; }
.mt-types { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mt-types::-webkit-scrollbar { display: none; }
.mt-types button { flex: none; border: 1px solid var(--line); background: var(--card-2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.mt-types button.on { border-color: var(--cyan); color: #fff; background: rgba(41,182,232,.16); }
.mt-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.mt-row .label { margin-left: 4px; font-size: 12px; }
.mt-chip { width: 40px; height: 40px; border-radius: 50%; border: 2px solid currentColor; background: none; font-weight: 700; font-size: 13px; cursor: pointer; flex: none; }
.mt-chip.sl { color: #ef4444; } .mt-chip.tp { color: #22c55e; }
.mt-chip.on.sl { background: #ef4444; color: #fff; border-color: #ef4444; }
.mt-chip.on.tp { background: #22c55e; color: #04210f; border-color: #22c55e; }
.mt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.mt-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.mt-fields input { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; outline: none; width: 100%; }
.mt-fields .sl input:focus { border-color: #ef4444; } .mt-fields .tp input:focus { border-color: #22c55e; } .mt-fields .en input:focus { border-color: #f59e0b; }
.mt-fields .sl span { color: #f87171; } .mt-fields .tp span { color: #4ade80; } .mt-fields .en span { color: #fbbf24; }
.mt-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.mt-sum div { display: flex; flex-direction: column; gap: 2px; }
.mt-sum .label { font-size: 11px; }
.mt-sum b { font-size: 14px; font-variant-numeric: tabular-nums; }
.mt-sum.bad { box-shadow: inset 0 0 0 1px #ef4444; }
.mt-send { margin-top: 12px; width: 100%; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.mt-send.buy { background: var(--up); color: #04210f; }
.mt-send.sell { background: var(--down); color: #fff; }
.mt-send:active { transform: scale(.98); }
.tag.pend { background: rgba(245,158,11,.15); color: #fbbf24; }

/* ---------- Panel del usuario con efecto (mismo fondo que el panel del administrador) ---------- */
html:has(body.fx-on), body.fx-on { background: #05070a; }
body.fx-on .app, body.fx-on .auth { position: relative; z-index: 1; }
body.fx-on .card { background: linear-gradient(150deg, rgba(22,30,39,.80), rgba(12,17,23,.74)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.22); }
body.fx-on .card .card { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
body.fx-on .fav:active { background: rgba(41,182,232,.08); }
body.fx-on .nav { background: rgba(7,10,14,.78); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); border-top-color: rgba(255,255,255,.07); }
body.fx-on .nav button.on { color: #fff; text-shadow: 0 0 12px rgba(41,182,232,.8); }
body.fx-on .nav button.on i { color: var(--cyan); }
body.fx-on .icon-btn { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
body.fx-on .acct-bar { background: rgba(14,20,27,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
body.fx-on .hero .big { background: linear-gradient(180deg, #fff, #b9e7f8); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.fx-on .row { background: rgba(16,22,29,.72); }
body.fx-on .chart-top, body.fx-on .iv-bar { background: rgba(8,12,17,.88); }
body.fx-on .bar { background: rgba(255,255,255,.07); }
body.fx-on .bar > i { box-shadow: 0 0 10px rgba(41,182,232,.45); }
.screen.enter > * { animation: scrIn .4s cubic-bezier(.2,.8,.2,1) both; }
.screen.enter > *:nth-child(2) { animation-delay: .04s; } .screen.enter > *:nth-child(3) { animation-delay: .08s; } .screen.enter > *:nth-child(4) { animation-delay: .12s; }
@keyframes scrIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.enter > * { animation: none; } }