/* =====================================================================
   PANEL "MI CUENTA" (/cuenta/) — estilo dashboard: marco oscuro, barra
   de pestañas en píldora, tarjetas KPI y panel claro con lista + detalle.
   Lógica en js/pages/cuenta/
   ===================================================================== */

:root {
  --bg: #060608;
  --shell: #0b0b10;
  --card: #14141b;
  --card2: #1b1b24;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --faint: #6b6b77;
  --orange: #ff7a1a;
  --orange2: #ff8c3a;
  --orange-dim: rgba(255,122,26,.14);
  --paper: #0d0d12;      /* panel principal (negro, como la web) */
  --paper2: #17171e;
  --ink: #f4f4f6;        /* texto del panel */
  --ink-muted: #9a9aa6;
  --ok: #3ddc84;
  --bad: #ff6b6b;
  --r-xl: 30px; --r-lg: 22px; --r-md: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 500px at 80% -10%, rgba(255,122,26,.10), transparent 60%);
}
h1, h2, h3, .num { font-family: 'Space Grotesk', sans-serif; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange2); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Marco principal ---------- */
.shell {
  max-width: 1320px; margin: 22px auto; padding: 18px 26px 30px;
  background: linear-gradient(180deg, var(--shell-top, #0f0f15), var(--shell));
  border: 1px solid var(--line); border-radius: 34px;
  box-shadow: var(--shell-shadow, 0 40px 120px rgba(0,0,0,.55));
}

/* ---------- Barra superior ---------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 4px 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk'; font-weight: 700; letter-spacing: 3px; font-size: 15px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); color: var(--muted); transition: .2s;
}
.icon-btn:hover { color: var(--fg-strong); border-color: var(--orange); }
.icon-btn svg { width: 17px; height: 17px; }

/* pestañas en píldora (como la barra blanca de la referencia) */
.tabs-wrap { flex: 1; display: flex; justify-content: center; min-width: 0; }
.tabs {
  display: flex; gap: 4px; padding: 5px; overflow-x: auto; scrollbar-width: none;
  background: var(--tabs-bg, #121218); border: 1px solid var(--line); border-radius: 999px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--ink-muted); transition: .2s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--orange); color: #111; box-shadow: 0 6px 18px rgba(255,122,26,.35); }
.top-right { display: flex; gap: 8px; align-items: center; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #111; background: linear-gradient(135deg, var(--orange2), var(--orange));
}

/* ---------- Título ---------- */
.title-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 22px; }
.title-row h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 500; letter-spacing: -1px; flex: 1; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line2); font-size: 13px; font-weight: 600; transition: .2s; white-space: nowrap;
}
.pill-btn:hover { border-color: var(--orange); color: var(--orange2); }
.pill-btn svg { width: 15px; height: 15px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 18px; }
.kcard {
  position: relative; overflow: hidden; padding: 24px 24px 22px;
  background: linear-gradient(180deg, var(--card-top, #17171f), var(--card)); border: 1px solid var(--line); border-radius: var(--r-xl);
}
.k-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.k-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.k-value { font-family: 'Space Grotesk'; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.5px; }
.k-value small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.k-value .cur { font-size: 15px; color: var(--muted); margin-right: 3px; }
.k-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.k-bar-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.bar { height: 7px; border-radius: 99px; background: var(--track, rgba(255,255,255,.08)); overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1);
  background: repeating-linear-gradient(135deg, var(--orange) 0 6px, var(--orange2) 6px 12px);
}
.faces { display: flex; margin-top: 14px; }
.face {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--card);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #111;
}
.face:first-child { margin-left: 0; }
.face.more { background: var(--card2) !important; color: var(--muted); }

/* tarjeta de comisiones con redes */
.k-pay-top { display: flex; justify-content: space-between; align-items: flex-start; }
.k-pay-top .k-value { font-size: clamp(28px, 3vw, 38px); }
.chip { font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.net-cards { display: flex; gap: 8px; align-items: flex-end; margin-top: 18px; }
.net-card {
  flex: 1; min-width: 0; height: 96px; padding: 12px; border-radius: 16px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--card2); border: 1px solid var(--line); transition: .25s; font-size: 11.5px; color: var(--muted);
}
.net-card b { color: var(--text); font-size: 12.5px; }
.net-card.on { height: 116px; background: var(--orange); border-color: var(--orange); color: #3a1d00; }
.net-card.on b { color: #111; }
.net-card svg { width: 22px; height: 22px; }
.k-pay-btn {
  height: 50px; padding: 0 18px; border-radius: 999px; background: var(--orange); color: #111;
  font-weight: 700; font-size: 13px; white-space: nowrap; transition: .2s;
}
.k-pay-btn:hover { background: var(--orange2); }

/* ---------- Panel claro con lista + detalle ---------- */
.paper-wrap { position: relative; margin-top: 34px; }
.notch {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 6px; padding: 8px; border-radius: 22px; background: var(--shell);
}
.seg {
  padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--card2); color: var(--muted); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px;
}
.seg .count { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--track, rgba(255,255,255,.1)); }
.seg.active { background: var(--orange); color: #111; border-color: var(--orange); }
.seg.active .count { background: #111; color: #fff; }

.paper {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; padding: 30px 22px 22px;
  background: var(--paper); color: var(--ink); border-radius: var(--r-xl); min-height: 380px; border: 1px solid var(--line);
}
.paper-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 0 6px; }
.paper-head h2 { font-size: 17px; font-weight: 600; }
.paper-head p { font-size: 12.5px; color: var(--ink-muted); }

/* filas de la lista */
.rows { display: grid; gap: 4px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 999px;
  text-align: left; width: 100%; color: var(--ink); transition: background .2s;
}
.row:hover { background: var(--paper2); }
.row.sel { background: rgba(255,122,26,.12); box-shadow: inset 0 0 0 1px rgba(255,122,26,.45); }
.row-ic {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; background: var(--card2); border: 1px solid var(--line);
}
.row.sel .row-ic { background: var(--orange); border-color: var(--orange); color: #111; }
.row-ic svg { width: 17px; height: 17px; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { display: block; font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.sel .row-main small { color: #a8a8b3; }
.row-tag { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: transparent; border: 1px solid var(--line2); color: var(--ink-muted); white-space: nowrap; }
.row.sel .row-tag { border-color: rgba(255,122,26,.5); color: var(--orange2); }
.row-tag.ok { color: var(--ok); border-color: rgba(61,220,132,.35); background: rgba(61,220,132,.08); }
.row-tag.warn { color: var(--orange2); border-color: rgba(255,122,26,.45); background: rgba(255,122,26,.08); }
.row-amt { font-family: 'Space Grotesk'; font-size: 15px; font-weight: 600; white-space: nowrap; }
.row-amt .cur { font-size: 11px; color: var(--ink-muted); margin-right: 2px; }
.row.sel .row-amt .cur { color: #a8a8b3; }
.empty { text-align: center; color: var(--ink-muted); font-size: 13.5px; padding: 40px 10px; }

/* tarjeta de detalle (dentro del panel principal) */
.dark {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-top, #17171f), var(--card-bottom, #101015)); color: var(--text);
  border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.d-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.d-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.d-big { font-family: 'Space Grotesk'; font-size: 30px; font-weight: 500; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-big .hash { color: var(--muted); font-size: 20px; }
.tag-dark { font-size: 11.5px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); font-family: 'Inter'; font-weight: 600; }
.tag-dark.ok { color: var(--ok); border-color: rgba(61,220,132,.35); }
.tag-dark.warn { color: var(--orange2); border-color: rgba(255,122,26,.45); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini {
  position: relative; padding: 14px; border-radius: 16px; background: var(--tint-a, rgba(255,255,255,.04)); border: 1px solid var(--line);
  min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.mini b { font-family: 'Space Grotesk'; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.mini span { font-size: 11.5px; color: var(--muted); }
.mini .arrow { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; color: var(--muted); }
.d-foot {
  margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 18px; background: var(--tint-b, rgba(255,255,255,.05));
}
.d-foot .f-item { flex: 1; min-width: 110px; }
.d-foot small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.d-foot b { font-family: 'Space Grotesk'; font-size: 17px; font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700; transition: .2s; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-orange { background: var(--orange); color: #111; }
.btn-orange:hover { background: var(--orange2); box-shadow: 0 8px 24px rgba(255,122,26,.35); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange2); }
.btn-ink { background: var(--card2); color: var(--text); border: 1px solid var(--line2); }
.btn-ink:hover { background: #24242e; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.loading { opacity: .6; pointer-events: none; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.round:hover { color: var(--fg-strong); border-color: var(--orange); }
.round svg { width: 16px; height: 16px; }

/* ---------- Perfil ---------- */
.profile-card { align-items: center; text-align: center; justify-content: center; }
.p-avatar {
  width: 92px; height: 92px; border-radius: 50%; font-size: 36px; font-weight: 700; color: #111;
  display: flex; align-items: center; justify-content: center; margin: 4px auto 0;
  background: linear-gradient(135deg, var(--orange2), var(--orange)); box-shadow: 0 0 0 6px rgba(255,122,26,.15);
}
.p-name { font-family: 'Space Grotesk'; font-size: 24px; font-weight: 500; }
.p-user { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.lock-box {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,122,26,.08); border: 1px solid rgba(255,122,26,.3);
  font-size: 12.5px; color: #ffd2a6;
}
.lock-box svg { width: 20px; height: 20px; flex: none; color: var(--orange2); }

/* ---------- Referidos ---------- */
.ref-box { display: flex; flex-direction: column; gap: 14px; padding: 4px 6px; }
.ref-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px dashed rgba(255,122,26,.45);
}
.ref-code b { font-family: 'Space Grotesk'; font-size: 28px; letter-spacing: 5px; }
.ref-link {
  display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line);
}
.ref-link input { flex: 1; min-width: 0; border: 0; background: none; font-size: 12.5px; color: var(--ink-muted); outline: none; }
.qr-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
/* el QR necesita fondo claro para que lo lean las cámaras: se usa crema anaranjado */
.qr-box { width: 128px; height: 128px; flex: none; line-height: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,122,26,.5), 0 0 24px rgba(255,122,26,.25); }
.qr-box img, .qr-box canvas { width: 128px !important; height: 128px !important; }
.qr-card p { font-size: 12.5px; color: var(--ink-muted); line-height: 1.55; }
.qr-card .btn { margin-top: 10px; height: 38px; }
.ref-rules { font-size: 12px; color: var(--ink-muted); line-height: 1.6; padding: 0 4px; }

/* árbol de referidos */
.tree-scroll { overflow-x: auto; padding: 6px 2px 10px; }
.tree, .tree ul { list-style: none; display: flex; justify-content: center; }
.tree { flex-direction: column; align-items: center; min-width: max-content; }
.tree ul { position: relative; padding-top: 22px; }
.tree li { position: relative; padding: 22px 8px 0; display: flex; flex-direction: column; align-items: center; }
/* conectores */
.tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid rgba(255,122,26,.5); }
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 22px; border-top: 2px solid rgba(255,122,26,.5); }
.tree li::before { right: 50%; }
.tree li::after { left: 50%; border-left: 2px solid rgba(255,122,26,.5); }
.tree li:first-child::before, .tree li:last-child::after { border-top: 0; }
.tree li:only-child::before { display: none; }
.tree li:only-child::after { border-top: 0; }
.tree > li { padding-top: 0; }
.tree > li::before, .tree > li::after { display: none; }
.tree li:first-child::after { border-top-left-radius: 10px; }
.tree li:last-child::before { border-right: 2px solid rgba(255,122,26,.5); border-top-right-radius: 10px; }
.node {
  width: 132px; padding: 12px 10px; border-radius: 18px; text-align: center;
  background: var(--tint-a, rgba(255,255,255,.04)); border: 1px solid var(--line); transition: .25s;
  animation: nodeIn .5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 60ms);
}
.node:hover { border-color: rgba(255,122,26,.5); transform: translateY(-2px); }
.node.root { background: var(--orange); color: #111; border-color: var(--orange); width: 150px; }
.node .n-av {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 8px; font-weight: 700; color: #111;
  display: flex; align-items: center; justify-content: center;
}
.node.root .n-av { background: #111; color: var(--orange2); }
.node b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.node.root small { color: #3a1d00; }
.node .earn { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--ok); }
.node .earn.none { color: var(--faint); font-weight: 500; }
@keyframes nodeIn { from { opacity: 0; transform: translateY(10px) scale(.95); } }

/* aviso de pago en 72 h */
.notice {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,122,26,.18), rgba(255,122,26,.06)); border: 1px solid rgba(255,122,26,.35);
  font-size: 13px; color: #ffe3c7;
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--orange2); }
.notice b { color: var(--fg-strong); }

/* ---------- Formularios (panel claro) ---------- */
.form { display: grid; gap: 12px; padding: 4px 6px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: var(--ink-muted); margin-bottom: 6px; text-transform: uppercase; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 14px; outline: none; font-size: 14px; transition: .2s;
  background: var(--card); border: 1px solid var(--line2); color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.field.bad input, .field.bad select { border-color: var(--bad); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { font-size: 13px; min-height: 18px; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.hint { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }

/* selector de red de la cartera */
.net-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.net-opt {
  padding: 14px; border-radius: 18px; text-align: left; background: var(--card); border: 1px solid var(--line2); color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; transition: .2s;
}
.net-opt svg { width: 30px; height: 30px; }
.net-opt b { font-size: 13.5px; }
.net-opt small { font-size: 11px; color: var(--ink-muted); }
.net-opt.on { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); background: rgba(255,122,26,.1); }
.wallet-addr { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; line-height: 1.6; padding: 14px; border-radius: 14px; background: var(--tint-b, rgba(255,255,255,.05)); border: 1px solid var(--line); }

/* ---------- Seguridad ---------- */
.sec-list { display: grid; gap: 10px; }
.sec-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--tint-a, rgba(255,255,255,.04)); border: 1px solid var(--line); }
.sec-item svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 1px; }
.sec-item b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.sec-item span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Modales ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; padding: 18px; display: none; align-items: center; justify-content: center;
  background: rgba(3,3,6,.72); backdrop-filter: blur(8px);
}
.overlay.open { display: flex; animation: fade .2s; }
.modal {
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 28px;
  background: var(--paper); color: var(--ink); border: 1px solid rgba(255,122,26,.35); box-shadow: 0 0 40px rgba(255,122,26,.12), var(--modal-shadow, 0 40px 100px rgba(0,0,0,.6)); border-radius: 26px; animation: pop .3s cubic-bezier(.2,.9,.3,1.2);
}
.modal h3 { font-family: 'Space Grotesk'; font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.modal .sub { font-size: 13px; color: var(--ink-muted); margin-bottom: 18px; line-height: 1.5; }
.modal-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.x-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); color: var(--ink-muted); flex: none; }
.x-btn:hover { color: var(--fg-strong); border-color: var(--orange); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }


/* códigos de verificación */
.codes { display: grid; gap: 12px; }
.code-item { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.code-item .ci-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.code-item .ci-head svg { width: 18px; height: 18px; color: var(--orange); }
.code-item .ci-head small { color: var(--ink-muted); margin-left: auto; }
.code-input {
  width: 100%; height: 50px; text-align: center; font-family: 'Space Grotesk'; font-size: 24px; letter-spacing: 12px;
  border-radius: 14px; border: 1px solid var(--line2); outline: none; background: var(--field, #0a0a0e); color: var(--text);
}
.code-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.dev-hint { font-size: 11.5px; color: var(--orange2); margin-top: 6px; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Avisos flotantes ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; }
.toast {
  min-width: 240px; max-width: 360px; padding: 13px 16px; border-radius: 14px; font-size: 13px;
  background: var(--menu, #1b1b24); border: 1px solid var(--line2); box-shadow: var(--menu-shadow, 0 16px 40px rgba(0,0,0,.5));
  animation: pop .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast.ok { border-color: rgba(61,220,132,.45); }
.toast.err { border-color: rgba(255,107,107,.5); }

/* ---------- Cargando ---------- */
.loading-screen { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line2); border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* entrada suave de las vistas */
.view-in { animation: viewIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .kpis, .paper { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { margin: 0; border-radius: 0; padding: 14px 14px 24px; border: 0; }
  .topbar { flex-wrap: wrap; }
  .tabs-wrap { order: 3; flex-basis: 100%; }
  .tabs { width: 100%; }
  .k-metrics, .k-bars { grid-template-columns: 1fr 1fr; }
  .k-metrics > :last-child, .k-bars > :last-child { display: none; }
  .mini-grid, .net-pick, .f-row { grid-template-columns: 1fr; }
  .notch { position: static; transform: none; margin: 0 auto -10px; width: max-content; max-width: 100%; overflow-x: auto; }
  .paper { padding: 22px 12px 12px; }
  .row-tag { display: none; }
  .net-cards { flex-wrap: wrap; }
  .net-card { height: 84px; }
  .net-card.on { height: 84px; }
  .k-pay-btn { flex-basis: 100%; }
  .qr-card { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   ACROX v2 — paleta y piezas de la app (Ui/Core/Acx2.cs + ProfileView.cs)
   ===================================================================== */
:root {
  --bg: #0a0a0c; --shell: #0e0e11; --card: #141417; --card2: #1d1d21; --card3: #26262b;
  --paper: #111114; --paper2: #19191d;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13);
  --text: #f4f4f6; --muted: #8a8a93; --faint: #5c5c66; --ink-muted: #8a8a93;
  --orange: #ff7a1a; --orange2: #ff8c3a; --orange-dim: rgba(255,122,26,.13);
  --grad: linear-gradient(135deg, #ff7a1a, #ff4d2e);
  --grad-hover: linear-gradient(135deg, #ff8c3a, #ff6447);
  --ok: #2ee06d; --bad: #ff5257;
  --card-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 24px -8px rgba(0,0,0,.5);
}
.tab.active, .seg.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(255,77,46,.28); }
.btn-orange { background: var(--grad); color: #fff; }
.btn-orange:hover { background: var(--grad-hover); box-shadow: 0 8px 24px rgba(255,77,46,.32); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; letter-spacing: 0; }
.mini-btn { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--text); background: var(--card2); }
.mini-btn:hover { border-color: var(--orange); color: var(--orange2); }
/* ---------- PERFIL (como la pantalla PERFIL de la app) ---------- */
.paper > .pf, .paper > .acx-wallet { grid-column: 1 / -1; }
.pf { display: grid; gap: 18px; min-width: 0; }
.pf-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow); padding: 20px; min-width: 0; }
.pf-head { padding: 0; overflow: hidden; }
.pf-cover {
  position: relative; height: 208px; border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #4a220c 0%, #2c1426 50%, #1c1638 100%) center / cover no-repeat;
}
.pf-cover-actions { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.pf-soft {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #f4f4f6;
  background: rgba(20,20,23,.72); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(6px); transition: .2s;
}
.pf-soft:hover { background: var(--hover, #26262b); border-color: rgba(255,255,255,.24); }
.pf-soft svg { width: 14px; height: 14px; }
.pf-soft.xs { height: 24px; font-size: 10px; padding: 0 10px; }
.pf-soft.pill { border-radius: 999px; }
.pf-info { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 0 16px 16px; }
.pf-avatar-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -52px; position: relative; z-index: 1; }
.pf-avatar {
  width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #1a1a1e; border: 2.5px solid #ff6a24; box-shadow: 0 0 0 3px var(--card);
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar span { font-size: 36px; font-weight: 700; color: #b0b0b0; font-family: 'Inter', sans-serif; }
.pf-id { min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 600; letter-spacing: -.3px; color: var(--fg-strong); font-family: 'Inter', sans-serif; overflow-wrap: anywhere; }
.pf-badge { width: 17px; height: 17px; flex: none; }
.pf-handle { font-size: 11px; color: #8a8a8a; margin-top: 3px; }
.pf-grad {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 140px; justify-content: center; padding: 0 16px;
  border-radius: 10px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(255,77,46,.25); transition: .2s;
}
.pf-grad:hover { background: var(--grad-hover); transform: translateY(-1px); }
.pf-grad svg { width: 14px; height: 14px; }
.pf-note { font-size: 11.5px; color: var(--muted); padding: 0 20px 14px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pf-span { grid-column: 1 / -1; }
.pf-title { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: #b6b6be; margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pf-title span { font-weight: 500; letter-spacing: 0; color: var(--faint); font-size: 11px; }
.pf-bio textarea, .pf-bio input {
  width: 100%; background: var(--field, #0e0e11); border: 1px solid var(--line2); color: var(--text); border-radius: 10px;
  padding: 10px 12px; font-size: 13.5px; font-family: inherit; resize: vertical; outline: none;
}
.pf-bio textarea:focus, .pf-bio input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.16); }
.pf-bio-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.pf-bio-row input { flex: 1; min-width: 0; height: 40px; }
.pf-bio-row .btn { height: 40px; }
.pf-count { font-size: 11px; color: var(--faint); white-space: nowrap; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf-tags span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,122,26,.1); color: #ffb27a; border: 1px solid rgba(255,122,26,.25); }
.pf-secret { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider, rgba(255,255,255,.05)); }
.pf-secret:last-of-type { border-bottom: 0; }
.pf-k { font-size: 13px; color: #8a8a93; }
.pf-v { font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
.pf-eye { width: 30px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.pf-eye:hover, .pf-eye.on { background: var(--hover, #262626); color: var(--fg-strong); }
.pf-eye svg { width: 15px; height: 15px; }
.pf-rows { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
.pf-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 40px; border-bottom: 1px solid var(--divider, rgba(255,255,255,.05)); }
.pf-row span { font-size: 13px; color: #8a8a93; }
.pf-row b { font-size: 13px; font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; min-width: 0; }
.pf .notice, .acx-wallet .notice { margin-top: 14px; }
.pf .hint { margin-top: 12px; }

/* ---------- Cartera Acrox ---------- */
.acx-wallet { background: linear-gradient(135deg, rgba(58,29,12,.55), rgba(42,20,36,.45) 55%, rgba(26,20,48,.45)); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.acx-w-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.acx-wallet .muted { color: var(--muted); font-size: 12px; }

/* ---------- Pantalla "Confirma tu correo" ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-card {
  width: 100%; max-width: 430px; text-align: center; padding: 36px 30px; border-radius: 20px;
  background: linear-gradient(180deg, var(--card-top, #19191d), var(--paper)); border: 1px solid var(--line); box-shadow: var(--modal-shadow, 0 40px 100px rgba(0,0,0,.6));
}
.gate-logo { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 14px; }
.gate-card h1 { font-size: 24px; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.gate-card p b { color: var(--text); }
.gate-code {
  width: 100%; height: 56px; margin: 18px 0 6px; text-align: center; letter-spacing: 12px; font-size: 26px; font-family: 'Space Grotesk', sans-serif;
  background: var(--field, #0e0e11); border: 1px solid var(--line2); color: var(--text); border-radius: 12px; outline: none;
}
.gate-code:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.gate-card .btn { width: 100%; margin-top: 8px; }
.gate-links { margin-top: 16px; font-size: 12.5px; }
.gate-links a { color: var(--orange2); font-weight: 600; }
.gate-links a.off { opacity: .45; pointer-events: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

@media (max-width: 760px) {
  .pf-cover { height: 150px; }
  .pf-info { grid-template-columns: auto 1fr; padding: 0 14px 14px; }
  .pf-grad { grid-column: 1 / -1; width: 100%; }
  .pf-avatar { width: 88px; height: 88px; }
  .pf-avatar-box { margin-top: -44px; }
  .pf-name { font-size: 20px; }
  .pf-grid, .pf-rows { grid-template-columns: 1fr; }
  .pf-secret { grid-template-columns: 90px 1fr auto; }
  .pf-bio-row { flex-wrap: wrap; }
  .pf-bio-row input { flex-basis: 100%; }
  .pf-cover-actions { top: 10px; right: 10px; }
}
/* =====================================================================
   VERIFICACIÓN DE IDENTIDAD (views/kyc.js)
   ===================================================================== */
.kyc-loading { display: grid; place-items: center; min-height: 220px; }
.kyc-status { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); margin-bottom: 22px; background: var(--card2, #1d1d21); border: 1px solid var(--line); }
.kyc-status svg { flex: 0 0 26px; width: 26px; height: 26px; }
.kyc-status b { display: block; font-size: 16px; margin-bottom: 4px; }
.kyc-status span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.kyc-status.ok { border-color: rgba(46,224,109,.4); box-shadow: 0 0 30px rgba(46,224,109,.10); }
.kyc-status.ok svg, .kyc-status.ok b { color: var(--ok); }
.kyc-status.wait { border-color: rgba(255,122,26,.4); }
.kyc-status.wait svg { color: var(--orange); }
.kyc-status.bad { border-color: rgba(255,82,87,.45); }
.kyc-status.bad svg, .kyc-status.bad b { color: var(--bad); }
.kyc-cuba { margin-top: 8px; color: var(--text) !important; }
.kyc-form { margin-top: 6px; }
.kyc-hint { display: block; margin-top: 5px; font-size: 11.5px; color: var(--faint); }
.kyc-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 16px; }
.kyc-slot {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 14px; cursor: pointer;
  border-radius: var(--r-md); border: 1.5px dashed rgba(255,122,26,.35); background: rgba(255,122,26,.03); transition: .2s;
}
.kyc-slot:hover { border-color: var(--orange); background: rgba(255,122,26,.08); transform: translateY(-2px); }
.kyc-slot[hidden] { display: none; }
.kyc-slot.has { border-style: solid; border-color: rgba(46,224,109,.45); background: rgba(46,224,109,.04); }
.ks-img { display: grid; place-items: center; height: 110px; border-radius: 12px; overflow: hidden; background: var(--well, #0c0c0f); color: var(--orange); }
.ks-img svg { width: 28px; height: 28px; }
.ks-img img { width: 100%; height: 100%; object-fit: cover; }
.ks-ok { color: var(--ok); font-weight: 700; font-size: 13px; }
.kyc-slot b { font-size: 13.5px; }
.kyc-slot small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.ks-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.ks-bar i { display: block; height: 100%; width: 0; background: var(--grad, #ff7a1a); transition: width .2s; }
.kyc-slot.up { pointer-events: none; opacity: .8; }
@media (max-width: 760px) { .kyc-slots { grid-template-columns: 1fr; } }
.kyc-form { max-width: 780px; }
.ks-img svg.up { transition: transform .25s; }
.kyc-slot:hover .ks-img svg.up { transform: translateY(-3px); }

/* =====================================================================
   QUEJAS Y REPORTES (views/support.js)
   ===================================================================== */
.sp-form { max-width: 780px; }
.sp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.sp-cat {
  padding: 9px 14px; border-radius: 10px; font: 600 12.5px Inter, sans-serif; color: var(--muted);
  background: var(--tint-a, rgba(255,255,255,.04)); border: 1px solid var(--line); transition: .2s; cursor: pointer;
}
.sp-cat:hover { color: var(--text); border-color: rgba(255,122,26,.4); transform: translateY(-1px); }
.sp-cat.on { color: #fff; border-color: transparent; background: var(--grad, #ff7a1a); box-shadow: 0 8px 20px -6px rgba(255,90,30,.55); }
.sp-form textarea {
  width: 100%; min-height: 140px; resize: vertical; padding: 13px 15px; outline: none; transition: .2s;
  border-radius: 12px; border: 1px solid var(--line); background: var(--tint-a, rgba(255,255,255,.04)); color: var(--text); font: 14.5px/1.6 Inter, sans-serif;
}
.sp-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.16); }
.sp-count { display: block; text-align: right; font-size: 11px; color: var(--faint); margin-top: 4px; }
.sp-drop {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; cursor: pointer; outline: none; transition: .2s;
  border: 1.5px dashed rgba(255,122,26,.38); background: rgba(255,122,26,.04); color: var(--orange);
}
.sp-drop svg { flex: 0 0 24px; width: 24px; height: 24px; }
.sp-drop:hover, .sp-drop:focus-visible, .sp-drop.over { background: rgba(255,122,26,.1); border-color: var(--orange); transform: translateY(-1px); }
.sp-drop b { display: block; color: var(--text); font-size: 14px; }
.sp-drop small { color: var(--muted); font-size: 12px; }
.sp-list { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 8px; }
.sp-file {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px;
  background: var(--card2, #1d1d21); border: 1px solid var(--line); animation: sp-in .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes sp-in { from { opacity: 0; transform: translateY(8px); } }
.sp-file img, .sp-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.sp-ic { display: grid; place-items: center; font: 700 12px Inter, sans-serif; color: #fff; background: var(--grad, #ff7a1a); }
.sp-file div { flex: 1; min-width: 0; }
.sp-file b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-file small { font-size: 11.5px; color: var(--muted); }
.sp-file button { flex: 0 0 30px; height: 30px; border-radius: 8px; color: var(--muted); background: var(--tint-a, rgba(255,255,255,.04)); border: 1px solid var(--line); cursor: pointer; }
.sp-file button:hover { color: var(--fg-strong); border-color: var(--bad); }
.sp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.sp-bar i { display: block; height: 100%; width: 0; background: var(--grad, #ff7a1a); transition: width .2s; }
.sp-file.done .sp-bar i { width: 100%; background: var(--ok); }
.sp-file.bad { border-color: var(--bad); }
.sp-progress { position: relative; height: 34px; border-radius: 10px; overflow: hidden; background: var(--tint-a, rgba(255,255,255,.04)); border: 1px solid var(--line); }
.sp-progress[hidden] { display: none; }
.sp-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(255,122,26,.35), rgba(255,77,46,.25)); transition: width .3s; }
.sp-progress span { position: relative; display: block; text-align: center; line-height: 32px; font-size: 12.5px; }
.sp-priv { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); margin-top: 4px; }
.sp-priv svg { width: 14px; height: 14px; }

/* mis reportes */
.sp-row { padding: 16px 18px; border-radius: var(--r-md); background: var(--card2, #1d1d21); border: 1px solid var(--line); transition: .2s; }
.sp-row:hover { border-color: rgba(255,122,26,.3); transform: translateY(-1px); }
.sp-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sp-top b { font-size: 15px; }
.sp-row > small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.sp-tag { flex: 0 0 auto; font: 700 11px Inter, sans-serif; letter-spacing: .3px; padding: 5px 9px; border-radius: 6px; background: var(--tint-b, rgba(255,255,255,.05)); color: var(--muted); }
.sp-tag.wait { background: rgba(255,122,26,.14); color: var(--orange); }
.sp-tag.ok { background: rgba(46,224,109,.13); color: var(--ok); }
.sp-reply { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid var(--orange); background: rgba(255,122,26,.06); }
.sp-reply span { font-size: 11.5px; color: var(--orange); font-weight: 600; }
.sp-reply p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; white-space: pre-line; }
.sp-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 50px 20px; color: var(--muted); }
.sp-empty svg { width: 34px; height: 34px; color: var(--orange); margin-bottom: 6px; }
.sp-empty b { color: var(--text); font-size: 16px; }

/* vistas de una sola columna dentro del panel de dos columnas */
#kycRoot, #spList { grid-column: 1 / -1; }
.sp-form { max-width: none; }

/* nombre «Acrox Solutions» con la tipografía oficial */
.brand img.wordmark { width: auto; height: 15px; border-radius: 0; object-fit: contain; }
@media (max-width: 560px) { .brand img.wordmark { display: none; } }
