/* Fuentes alojadas en el sitio (licencia SIL OFL, ver public/fonts) */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Michroma'; src: url('/fonts/Michroma.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* SOLARIS · terminal de trading (diseño para PC)
   Paleta de marca: Rojo Astral #E43A3A · Negro Profundo #0A0A0A · Gris Espacial #1E1E1E · Blanco Nebular #EDEDED */
:root {
  /* Fondo: negro con un tinte rojo muy bajo (el "vacío" de SOLARIS), nunca gris neutro */
  --bg: #070506;
  --bg2: #0d0a0b;
  --bg3: #141012;
  --bg4: #1c1619;
  --line: #1f181b;
  --line2: #2c2226;
  --text: #f1ecec;
  --muted: #a39598;
  --dim: #6f6265;
  --red: #e43a3a;
  --red-hi: #ff5a4f;
  --red-deep: #7d1712;
  --red-glow: rgba(var(--accent-rgb, 228, 58, 58), 0.3);
  --red-soft: rgba(var(--accent-rgb, 228, 58, 58), 0.1);
  --up: #3ddc97;
  --up-soft: rgba(61, 220, 151, 0.1);
  --down: #ff6b8b;
  --down-soft: rgba(255, 107, 139, 0.1);
  --warn: #f2b84b;
  --warn-soft: rgba(242, 184, 75, 0.1);
  --head: 56px;
  --foot: 30px;
  --r: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --brand-font: 'Michroma', sans-serif;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-width: 1100px;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 var(--font);
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--foot);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #22222a; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33333d; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.up { color: var(--up); }
.down { color: var(--down); }
.zero { color: var(--dim); }
.warn { color: var(--warn); }
.page { padding: 16px 20px 24px; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--head);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span { font: 12px var(--brand-font); letter-spacing: 0.38em; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav:not(.tn) a { position: relative; display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-weight: 500; transition: color 0.15s; }
.nav:not(.tn) a:hover { color: var(--text); }
.nav:not(.tn) a.on { color: var(--text); }
.nav:not(.tn) a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--red); border-radius: 2px; }
.search { position: relative; width: 380px; margin-left: auto; }
.search input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 36px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: #4a1d1d; background: var(--bg2); }
.search > svg { position: absolute; left: 12px; top: 11px; width: 14px; height: 14px; color: var(--dim); }
.search kbd { position: absolute; right: 10px; top: 9px; padding: 0 6px; border: 1px solid var(--line2); border-radius: 4px; color: var(--dim); font: 11px/16px var(--mono); }
.results { position: absolute; top: 42px; left: 0; width: 520px; max-height: 70vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 60px #000d; display: none; }
.results.open { display: block; }
.results a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.active { background: var(--bg4); }
.results .r-main { flex: 1; min-width: 0; }
.results .r-sub { color: var(--muted); font-size: 12px; }
.results .empty { padding: 14px; color: var(--muted); }
.top-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- Botones y controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; white-space: nowrap; transition: filter 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.5); }
.btn-red:not(:disabled):hover { background: #ee4343; }
.btn-dark { background: var(--bg3); border-color: var(--line2); }
.btn-dark:hover { background: var(--bg4); border-color: #34343e; }
.btn-big { width: 100%; height: 44px; font-size: 14px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; font-weight: 500; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected='true'] { background: var(--bg4); color: var(--text); box-shadow: 0 0 0 1px var(--line2) inset; }
.qb-amt { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 6px; }
.qb-amt:focus-within { border-color: #4a1d1d; }
.qb-amt svg { width: 12px; height: 12px; color: var(--warn); }
.qb-amt input { width: 44px; border: 0; outline: 0; background: none; font: 600 12px var(--mono); }
.qb-amt span { color: var(--dim); font-size: 11px; }
.qb { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 1px solid #3b2a12; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font: 600 12px var(--mono); white-space: nowrap; transition: background 0.12s, border-color 0.12s, transform 0.08s; }
.qb svg { width: 11px; height: 11px; }
.qb:hover { background: rgba(245, 184, 74, 0.2); border-color: #6b4a18; }
.qb:active { transform: scale(0.96); }
.qb.busy { opacity: 0.6; pointer-events: none; }
.qb.off { color: var(--dim); background: var(--bg3); border-color: var(--line2); }

/* ---------- Wallet ---------- */
.w-menu { position: relative; }
.w-menu .btn img { border-radius: 4px; }
.w-drop { position: absolute; right: 0; top: 44px; min-width: 220px; padding: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 60px #000d; z-index: 50; }
.w-drop a, .w-drop button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; text-align: left; }
.w-drop a:hover, .w-drop button:hover { background: var(--bg4); }
.w-addr { padding: 8px 10px; color: var(--muted); font: 12px var(--mono); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); animation: fade 0.15s ease-out; }
.modal { position: relative; width: 100%; max-width: 420px; padding: 24px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px #000; animation: pop 0.18s ease-out; }
.modal.danger { border-color: #4a1d24; }
.modal h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.modal p { margin: 0 0 16px; color: var(--muted); }
.modal ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.modal-x:hover { background: var(--bg4); color: var(--text); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.w-list { display: grid; gap: 8px; }
.w-list button { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 10px; text-align: left; }
.w-list button:hover { border-color: #4a1d1d; background: var(--bg4); }
.w-list button img { border-radius: 6px; }
.w-list button span { flex: 1; font-weight: 600; }
.w-list button small { color: var(--up); font-size: 11px; }
.err { color: var(--down); font-size: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* ---------- Avisos (toasts) ---------- */
.toasts { position: fixed; right: 20px; bottom: calc(var(--foot) + 16px); z-index: 120; display: grid; gap: 8px; width: 340px; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.8); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), filter 220ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(4px); } }
.toast .t-ico { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.toast.ok .t-ico { color: var(--up); }
.toast.bad .t-ico { color: var(--down); }
.toast.wait .t-ico { color: var(--warn); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast b { display: block; }
.toast a { color: var(--muted); text-decoration: underline; }
.toast.out { opacity: 0; transform: translateY(6px) scale(0.98); filter: blur(4px); }

/* ---------- Barra de estado inferior ---------- */
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--foot); display: flex; align-items: center; gap: 18px; padding: 0 20px; background: var(--bg2); border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.foot .live { display: inline-flex; align-items: center; gap: 6px; }
.foot .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
.foot .live.bad::before { background: var(--down); box-shadow: 0 0 8px var(--down); }
.foot .sp { flex: 1; }
.foot b { color: var(--muted); font-weight: 500; font-family: var(--mono); }
.foot a:hover { color: var(--muted); }

/* ---------- Token (imagen, nombre) ---------- */
.tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tok-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--bg4); flex-shrink: 0; }
.tok-ph { display: grid; place-items: center; font: 600 12px var(--font); color: var(--muted); background: linear-gradient(135deg, #1d1d24, #121217); }
.tok b { font-weight: 600; }
.tok .nm { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.socials { display: inline-flex; gap: 6px; align-items: center; }
.socials a { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--dim); transition: color 0.12s; }
.socials a:hover { color: var(--text); }
.socials svg { width: 13px; height: 13px; }
.copy { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--dim); }
.copy:hover { color: var(--text); background: var(--bg4); }
.copy svg { width: 12px; height: 12px; }

/* ---------- Barra inferior: precios ---------- */
.coins { display: inline-flex; gap: 14px; }
.coin { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); }
.coin i { font-style: normal; font-weight: 700; }
.coin.btc i { color: #f7931a; }
.coin.eth i { color: #8c9eff; }
.coin.sol i { color: #19fb9b; }
.coin b { color: var(--text); font-weight: 500; }
.spark { display: block; }

/* ---------- Pulse ---------- */
.pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(100vh - var(--head) - var(--foot)); }
.col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.col-head { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.col-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.col-head .count { padding: 1px 7px; border-radius: 10px; background: var(--bg4); color: var(--muted); font: 600 11px var(--mono); }
.col-head .paused { display: none; padding: 2px 8px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 600; }
.col.hold .paused { display: inline-block; }
.col-search { position: relative; flex: 1; min-width: 60px; max-width: 200px; margin-left: auto; }
.col-search svg { position: absolute; left: 8px; top: 8px; width: 12px; height: 12px; color: var(--dim); }
.col-search input { width: 100%; height: 28px; padding: 0 8px 0 26px; background: var(--bg3); border: 1px solid var(--line2); border-radius: 6px; outline: 0; font-size: 12px; }
.col-search input:focus { border-color: #3a3a44; }
.col-search input::placeholder { color: var(--dim); }
.pset { display: inline-flex; gap: 1px; }
.pset button { height: 28px; padding: 0 6px; border: 0; border-radius: 5px; background: none; color: var(--dim); font: 600 11px var(--mono); }
.pset button:hover { color: var(--text); }
.pset button.on { color: var(--red); background: var(--red-soft); }
.col-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pc { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.12s; }
.pc:hover { background: var(--bg2); }
.pc-left { display: grid; gap: 6px; justify-items: center; align-content: start; }
.pc-img { position: relative; width: 74px; height: 74px; }
.pc-img .tok-img { width: 74px; height: 74px; border-radius: 10px; font-size: 22px; }
.pc-img .ring { position: absolute; inset: -3px; border-radius: 13px; border: 1.5px solid var(--line2); pointer-events: none; }
.pc-img .ring.curve { border-color: rgba(47, 211, 138, 0.6); }
.pc-img .ring.amm { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.65); }
.pc-img .dex { position: absolute; right: -6px; bottom: -6px; padding: 0 5px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line2); color: var(--muted); font: 700 9px/15px var(--font); text-transform: uppercase; letter-spacing: 0.04em; }
.pc-ca { color: var(--dim); font: 10.5px var(--mono); }
.pc-main { display: grid; gap: 7px; align-content: start; min-width: 0; }
.pc-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-l1 b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.pc-l1 .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.pc-l2 { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.pc-l2 .xs { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--dim); }
.pc-l2 .xs:hover { color: var(--text); }
.pc-l2 .xs svg { width: 13px; height: 13px; }
.age { color: var(--up); font: 600 12px var(--mono); }
.age.old { color: var(--muted); font-weight: 500; }
.pc-l3 { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 6px; border: 1px solid var(--line2); border-radius: 5px; color: var(--muted); font: 500 11px var(--mono); white-space: nowrap; }
.tag.up { color: var(--up); border-color: rgba(47, 211, 138, 0.25); background: var(--up-soft); }
.tag.down { color: var(--down); border-color: rgba(255, 77, 106, 0.25); background: var(--down-soft); }
.tag.warn { color: var(--warn); border-color: rgba(245, 184, 74, 0.25); background: var(--warn-soft); }
.pc-side { display: grid; gap: 5px; justify-items: end; align-content: start; text-align: right; }
.pc-side .row { display: flex; gap: 10px; align-items: baseline; }
.kv { display: flex; gap: 5px; align-items: baseline; }
.kv span { color: var(--dim); font-size: 11px; }
.kv b { font: 600 13px var(--mono); }
.kv.mc b { font-size: 15px; }
.mc-hi { color: var(--up); }
.mc-mid { color: var(--warn); }
.txbar { display: flex; align-items: center; gap: 6px; font: 11px var(--mono); color: var(--dim); }
.txbar b { color: var(--text); font-weight: 500; }
.txbar i { display: flex; width: 40px; height: 3px; border-radius: 2px; overflow: hidden; background: var(--down); }
.txbar i::before { content: ''; width: var(--b, 50%); background: var(--up); }
.pc .buy { margin-top: 6px; }
.buy { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 600 12px var(--mono); white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); transition: background 120ms ease, transform 160ms var(--ease-out); }
.buy svg { width: 11px; height: 11px; }
.buy:hover { background: #f04848; }
.buy:active { transform: scale(0.96); }
.buy.busy { opacity: 0.6; pointer-events: none; }
.buy.off { background: var(--bg3); color: var(--dim); box-shadow: none; pointer-events: none; }
.col-empty { padding: 40px 20px; text-align: center; color: var(--dim); }
.sk { height: 87px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, #101015, transparent); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Tablas (Tendencias, portafolio, transacciones) ---------- */
.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.bar .sp { flex: 1; }
.bar h1 { margin: 0 8px 0 0; font-size: 18px; font-weight: 600; }
.tbl-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 0 12px; height: 56px; text-align: right; white-space: nowrap; }
th { position: sticky; top: var(--head); z-index: 2; height: 36px; background: var(--bg2); color: var(--dim); font-weight: 500; font-size: 11px; border-bottom: 1px solid var(--line); }
.tbl-box th:first-child { border-top-left-radius: 12px; }
.tbl-box th:last-child { border-top-right-radius: 12px; }
th.l, td.l { text-align: left; }
td { border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; }
td.l { font-family: var(--font); }
tbody tr { transition: background 0.1s; }
tbody tr[data-i] { cursor: pointer; }
tbody tr.fresh { animation: flash 1.6s ease-out; }
tbody tr:hover { background: var(--bg3); }
tbody tr:last-child td { border-bottom: 0; }
td.rank { width: 44px; color: var(--dim); }
.tcell { display: grid; gap: 3px; }
.tcell { gap: 5px; }
.tcell .tl1 { display: flex; align-items: center; gap: 6px; }
.tcell .tl1 b { font-size: 14px; }
.tcell .tl1 .nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.tcell .meta { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 11px; }
.tcell .meta .xs { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--dim); }
.tcell .meta .xs:hover { color: var(--text); }
.tcell .meta .xs svg { width: 13px; height: 13px; }
.tok-img.big { width: 46px; height: 46px; border-radius: 10px; font-size: 16px; }
.stack { display: grid; gap: 2px; justify-items: end; }
.stack b { font-weight: 600; color: var(--text); }
.stack span { font-size: 11.5px; }
.tbl-box td { height: 68px; }
.score { display: inline-flex; align-items: center; gap: 8px; }
.score i { display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--bg4); overflow: hidden; }
.score i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--red); }
.skrow td::after { content: ''; display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, #121217, #1a1a20, #121217); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.msg { padding: 40px 16px; text-align: center; color: var(--muted); font-family: var(--font); }
.hint { margin: 10px 2px 0; color: var(--dim); font-size: 12px; }

/* ---------- Página de token ---------- */
.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: calc(100vh - var(--head) - var(--foot)); }
.t-main { min-width: 0; border-right: 1px solid var(--line); }
.t-strip { display: flex; align-items: center; gap: 28px; padding: 12px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.t-id { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.t-id .tok-img { width: 40px; height: 40px; border-radius: 10px; }
.t-id h1 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.t-id h1 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.t-id .meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--dim); font-size: 12px; }
.t-price { flex-shrink: 0; }
.t-price b { display: block; font: 700 20px var(--mono); letter-spacing: -0.01em; }
.t-price span { font: 12px var(--mono); }
.t-stat { flex-shrink: 0; }
.t-stat span { display: block; color: var(--dim); font-size: 11px; }
.t-stat b { font: 600 13px var(--mono); }
.chart-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
#chart { height: calc(100vh - var(--head) - var(--foot) - 340px); min-height: 380px; position: relative; }
#chart .msg { position: absolute; inset: 0; display: grid; place-items: center; }
.t-tabs { display: flex; align-items: center; gap: 2px; padding: 0 14px; height: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t-tabs button { height: 40px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-weight: 500; position: relative; }
.t-tabs button[aria-selected='true'] { color: var(--text); }
.t-tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--red); }
.t-tabs .sp { flex: 1; }
.t-panel { max-height: 420px; overflow-y: auto; }
.t-panel th { top: 0; }
.t-panel td { height: 36px; font-size: 12px; }
.t-side { display: flex; flex-direction: column; }
.t-side > section { border-bottom: 1px solid var(--line); }
.sec-title { padding: 14px 16px 0; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.changes { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.changes div { padding: 8px 4px; text-align: center; border-right: 1px solid var(--line); }
.changes div:last-child { border-right: 0; }
.changes span { display: block; color: var(--dim); font-size: 11px; }
.changes b { font: 600 12px var(--mono); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 16px 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats div { padding: 9px 12px; background: var(--bg); }
.stats dt { color: var(--dim); font-size: 11px; }
.stats dd { margin: 2px 0 0; font: 600 13px var(--mono); }
.bs { margin: 0 16px 14px; }
.bs-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: var(--bg4); margin: 6px 0; }
.bs-bar i { background: var(--up); }
.bs-bar i + i { background: var(--down); }
.bs-legend { display: flex; justify-content: space-between; font: 11px var(--mono); }
.links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.links a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.links a:hover { color: var(--text); border-color: #3a3a44; }
.links svg { width: 12px; height: 12px; }

/* ---------- Panel de trading ---------- */
.trade { padding: 16px; display: grid; gap: 12px; }
.trade-off { color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.side button { height: 34px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-weight: 600; }
.side button[aria-selected='true'] { background: var(--up-soft); color: var(--up); box-shadow: 0 0 0 1px rgba(47, 211, 138, 0.2) inset; }
.selling .side button[aria-selected='true'] { background: var(--down-soft); color: var(--down); box-shadow: 0 0 0 1px rgba(255, 77, 106, 0.2) inset; }
.trade .btn-red { background: var(--up); color: #04150d; box-shadow: none; }
.trade .btn-red:not(:disabled):hover { background: #3be39a; box-shadow: 0 4px 20px rgba(47, 211, 138, 0.25); }
.selling .btn-red { background: var(--down); color: #fff; }
.selling .btn-red:not(:disabled):hover { background: #ff6680; box-shadow: 0 4px 20px rgba(255, 77, 106, 0.25); }
.amt { display: flex; align-items: center; height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r); transition: border-color 0.15s; }
.amt:focus-within { border-color: #3a3a44; }
.amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 18px var(--mono); }
.amt span { color: var(--muted); font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.presets button { height: 30px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg3); color: var(--muted); font: 500 12px var(--mono); }
.presets button:hover { color: var(--text); background: var(--bg4); }
.quote { display: grid; gap: 4px; min-height: 36px; font-size: 12px; }
.quote b { font-family: var(--mono); }
.ack { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); cursor: pointer; }
.ack input { margin-top: 2px; accent-color: var(--red); }
.t-bal { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; }
.t-bal b { color: var(--muted); font-family: var(--mono); font-weight: 500; }
.t-bal:empty, .t-msg:empty { display: none; }
.t-msg { font-size: 12px; text-align: center; }
.t-msg a { text-decoration: underline; }
.risk-pill { display: grid; gap: 2px; padding: 9px 12px; border-radius: var(--r); font-size: 12px; border: 1px solid; }
.risk-pill span { color: var(--muted); }
.risk-pill.ok { border-color: rgba(47, 211, 138, 0.25); color: var(--up); background: var(--up-soft); }
.risk-pill.warn { border-color: rgba(245, 184, 74, 0.3); color: var(--warn); background: var(--warn-soft); }
.risk-pill.danger { border-color: rgba(255, 77, 106, 0.35); color: var(--down); background: var(--down-soft); }
.risk-pill.unk { border-color: var(--line2); color: var(--muted); }

/* ---------- Portafolio ---------- */
.pf-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.pf-sum > div { padding: 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.pf-sum span { display: block; color: var(--dim); font-size: 12px; }
.pf-sum b { display: block; margin-top: 6px; font: 700 22px var(--mono); }
.pf-sum small { color: var(--muted); font-family: var(--mono); }
.empty-card { max-width: 440px; margin: 80px auto; padding: 36px; text-align: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; }
.empty-card img { width: 64px; margin: 0 auto 16px; }
.empty-card h2 { margin: 0 0 6px; font-size: 18px; }
.empty-card p { color: var(--muted); margin: 0 0 20px; }
.section-title { margin: 28px 0 10px; font-size: 14px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tarjeta para compartir ---------- */
.modal.share { max-width: 760px; }
.share-img { width: 100%; border-radius: 12px; border: 1px solid var(--line2); }
.xlink { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); font-size: 11px; }
.xlink:hover { color: var(--text); border-color: #3a3a44; }
.xlink svg { width: 11px; height: 11px; }

/* ---------- Cabecera: presets y ajustes ---------- */
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg3); color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--bg4); }
.icon-btn svg { width: 16px; height: 16px; }
.hdr-pset { height: 36px; align-items: center; padding: 0 4px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg3); }
.hdr-pset button { height: 28px; }
.busy { opacity: 0.55; pointer-events: none; }

/* ---------- Panel de trading: preset ---------- */
.t-pre { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.t-pre .pset { border: 1px solid var(--line2); border-radius: 6px; padding: 0 2px; }
.t-pre #t-pinfo { margin-left: auto; font-family: var(--mono); font-size: 11px; }

/* ---------- Instant Trade ---------- */
.instant { position: fixed; z-index: 60; width: 300px; padding: 0 12px 12px; background: rgba(11, 11, 14, 0.96); backdrop-filter: blur(10px); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px #000c, 0 0 0 1px rgba(var(--accent-rgb, 228, 58, 58), 0.08); }
.instant[hidden] { display: none; }
/* --s = ancho / 300: el contenido crece con la ventana */
.instant { --s: 1; }
.instant .in-row { gap: calc(6px * var(--s)); }
.instant .in-row button, .in-edit { height: calc(38px * var(--s)); font-size: calc(13px * var(--s)); }
.instant .in-label { font-size: calc(11px * var(--s)); }
.instant.resizing { user-select: none; }
.in-tool { display: grid; place-items: center; width: 26px; height: 26px; margin-left: 2px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--dim); transition: color 0.15s, background 0.15s, transform 0.12s var(--ease-out); }
.in-tool svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.in-tool:hover { color: var(--text); background: var(--bg4); }
.in-tool:hover svg { transform: rotate(45deg); }
.in-tool:active { transform: scale(0.94); }
.in-tool.on { color: var(--up); border-color: rgba(61, 220, 151, 0.35); background: var(--up-soft); }
.in-tool.on svg { transform: none; }
.in-head .pset + .in-tool { margin-left: 4px; }
.in-edit { width: 100%; min-width: 0; padding: 0; border-radius: 8px; outline: 0; text-align: center; font-family: var(--mono); font-weight: 700; transition: border-color 0.15s, box-shadow 0.15s; }
.in-edit.in-buy { border-style: dashed; }
.in-edit.in-sell { border-style: dashed; }
.in-edit:focus { border-style: solid; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05); }
.instant.editing .in-row { animation: in-wiggle 0.22s var(--ease-out); }
@keyframes in-wiggle { from { opacity: 0.4; transform: translateY(2px); } }
.in-hint { margin: 8px 0 0; color: var(--dim); font-size: 11px; text-align: center; }
.in-resize { position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; cursor: nwse-resize; opacity: 0.45; transition: opacity 0.15s;
  background: linear-gradient(135deg, transparent 0 45%, var(--muted) 45% 52%, transparent 52% 64%, var(--muted) 64% 71%, transparent 71% 83%, var(--muted) 83% 90%, transparent 90%); }
.instant:hover .in-resize, .instant.resizing .in-resize { opacity: 1; }
.in-head { display: flex; align-items: center; gap: 8px; height: 42px; cursor: grab; user-select: none; }
.in-head:active { cursor: grabbing; }
.in-head b { font-size: 13px; }
.in-head .pset { margin-left: auto; }
.in-head .modal-x { position: static; width: 26px; height: 26px; }
.in-label { display: flex; justify-content: space-between; margin: 8px 0 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.in-label .dim { font-weight: 400; font-family: var(--mono); }
.in-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.in-row button { position: relative; height: 38px; border-radius: 8px; font: 700 13px var(--mono); transition: background 0.1s, transform 0.08s; }
.in-row button:active { transform: scale(0.95); }
.in-row button kbd { position: absolute; top: 2px; right: 3px; font: 600 8px var(--mono); opacity: 0.6; }
.in-buy { border: 1px solid rgba(47, 211, 138, 0.3); background: var(--up-soft); color: var(--up); }
.in-buy:hover { background: rgba(47, 211, 138, 0.2); }
.in-sell { border: 1px solid rgba(255, 77, 106, 0.3); background: var(--down-soft); color: var(--down); }
.in-sell:hover { background: rgba(255, 77, 106, 0.2); }
#instant-btn.on { border-color: rgba(245, 184, 74, 0.5); color: var(--warn); }

/* ---------- Ventana de ajustes ---------- */
.settings-modal { max-width: 720px; }
.st-wrap { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; margin-top: 12px; min-height: 360px; }
.st-tabs { display: grid; gap: 2px; align-content: start; }
.st-tabs button { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); text-align: left; font-weight: 500; }
.st-tabs button:hover { color: var(--text); background: var(--bg3); }
.st-tabs button[aria-selected='true'] { color: var(--text); background: var(--bg4); box-shadow: inset 2px 0 0 var(--red); }
.st-body { display: grid; gap: 14px; align-content: start; }
.st-body p { margin: 0; }
.st-body input:not([type]), .st-body input[inputmode] { height: 34px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; outline: 0; font: 600 13px var(--mono); min-width: 0; }
.st-body input:focus { border-color: #4a1d1d; }
.presets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preset-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg3); }
.preset-card.on { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.5); box-shadow: 0 0 0 1px rgba(var(--accent-rgb, 228, 58, 58), 0.15); }
.preset-card .pc-head { display: flex; justify-content: space-between; align-items: center; }
.preset-card label { display: grid; gap: 4px; color: var(--dim); font-size: 11px; }
.field-row { display: grid; grid-template-columns: 110px repeat(4, 1fr); gap: 8px; align-items: center; }
.field-row > span { color: var(--muted); font-size: 12px; }
.opt { display: grid; gap: 6px; }
.opt > span { color: var(--muted); font-size: 12px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keycap-in { display: grid; gap: 3px; text-align: center; }
.keycap-in small { color: var(--dim); font: 10px var(--mono); }
.keycap-in input { text-align: center; cursor: pointer; text-transform: uppercase; caret-color: transparent; }
.kbd-list { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
kbd { display: inline-block; min-width: 18px; padding: 0 5px; margin-right: 3px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 4px; background: var(--bg3); color: var(--text); font: 600 11px/18px var(--mono); text-align: center; }
.st-body input[type='range'] { accent-color: var(--red); }

/* ---------- Visualización configurable ---------- */
html { zoom: var(--fs, 1); }
.pulse { height: calc(100vh / var(--fs, 1) - var(--head) - var(--foot)); }
.hide-vol [data-m='vol'], .hide-mc [data-m='mc'], .hide-tx [data-m='tx'], .hide-liq [data-m='liq'], .hide-ch5 [data-m='ch5'],
.hide-ch1 [data-m='ch1'], .hide-txh [data-m='txh'], .hide-socials [data-m='socials'], .hide-ca [data-m='ca'] { display: none !important; }
.img-round .tok-img, .img-round .pc-img .ring { border-radius: 50% !important; }
[data-density='compacta'] .pc { grid-template-columns: 54px minmax(0, 1fr) auto; padding: 8px 12px; gap: 10px; }
[data-density='compacta'] .pc-img, [data-density='compacta'] .pc-img .tok-img { width: 54px; height: 54px; }
[data-density='compacta'] .pc-main { gap: 4px; }
[data-density='compacta'] .tbl-box td { height: 52px; }
[data-density='amplia'] .pc { grid-template-columns: 90px minmax(0, 1fr) auto; padding: 16px; }
[data-density='amplia'] .pc-img, [data-density='amplia'] .pc-img .tok-img { width: 90px; height: 90px; }
[data-density='amplia'] .tbl-box td { height: 80px; }
[data-btn='chico'] .buy { height: 22px; padding: 0 8px; font-size: 11px; }
[data-btn='grande'] .buy { height: 36px; padding: 0 18px; font-size: 14px; }
#chart { height: calc(100vh / var(--fs, 1) - var(--head) - var(--foot) - 340px); }
.t-layout { min-height: calc(100vh / var(--fs, 1) - var(--head) - var(--foot)); }
.pc-ca { white-space: nowrap; }
[data-density='compacta'] .pc-ca { font-size: 9.5px; }

/* =====================================================================
   SOLARIS · capa de oficio (impeccable craft floor + Emil Kowalski)
   ===================================================================== */

/* Superficies del navegador con la paleta de la marca */
::selection { background: rgba(var(--accent-rgb, 228, 58, 58), 0.45); color: #fff; }
input, textarea { caret-color: var(--red-hi); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 6px; }
input:focus-visible { outline: none; }
a { text-underline-offset: 3px; }
html { scrollbar-color: #2c2226 transparent; }

/* Todo lo que se presiona responde al dedo: se hunde un poco */
.btn, .buy, .seg button, .pset button, .presets button, .side button, .in-row button, .icon-btn, .copy, .w-list button, .st-tabs button {
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active:not(:disabled), .buy:active, .seg button:active, .pset button:active, .presets button:active, .side button:active,
.in-row button:active, .icon-btn:active, .copy:active, .w-list button:active { transform: scale(0.97); }

/* Cabecera: la marca vive en un trazo, no en un halo */
.top { background: rgba(7, 5, 6, 0.86); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb, 228, 58, 58), 0.55) 18%, rgba(var(--accent-rgb, 228, 58, 58), 0.08) 60%, transparent); pointer-events: none; }
.top { position: sticky; }
.brand span { color: var(--text); }

/* Ventanas: entran desde un poco más chicas y difuminadas, nunca desde cero */
.modal-bg { animation: none; transition: opacity 180ms var(--ease-out); }
@starting-style { .modal-bg { opacity: 0; } }
.modal { animation: none; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), filter 220ms var(--ease-out); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; }
@starting-style { .modal { opacity: 0; transform: scale(0.96) translateY(6px); filter: blur(6px); } }
.w-drop, .results { transform-origin: top right; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
@starting-style { .w-drop:not([hidden]) { opacity: 0; transform: scale(0.97) translateY(-4px); } }
.results { transform-origin: top left; }

/* ---------- Gesto propio: la órbita de lanzamiento ----------
   Un anillo alrededor de cada token se completa durante su primera hora de vida.
   Rojo mientras el token es nuevo, apagado cuando ya completó su órbita. */
.pc-img .ring { inset: -4px; border: 0; border-radius: 14px; padding: 2px;
  background: conic-gradient(from -90deg, var(--orbit-c, var(--red)) calc(var(--p, 1) * 1turn), var(--line2) 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pc-img .ring.done { --orbit-c: #3a2e32; }
.pc-img .ring.amm.done { --orbit-c: rgba(var(--accent-rgb, 228, 58, 58), 0.35); }
.img-round .pc-img .ring { border-radius: 50% !important; }

/* ---------- Materializar: el único momento animado de Pulse ----------
   Un token nuevo aparece desde un recorte y un desenfoque, como si se enfocara al entrar al radar. */
.pc.fresh { animation: materialize 520ms var(--ease-out) both; }
@keyframes materialize {
  from { clip-path: inset(0 0 100% 0); filter: blur(8px); background: rgba(var(--accent-rgb, 228, 58, 58), 0.12); }
  60% { clip-path: inset(0 0 0 0); filter: blur(0); }
  to { clip-path: inset(0 0 0 0); filter: blur(0); background: transparent; }
}
tbody tr.fresh { animation: rowin 600ms var(--ease-out) both; }
@keyframes rowin { from { background: rgba(var(--accent-rgb, 228, 58, 58), 0.12); } to { background: transparent; } }

/* Tarjetas y filas: estado activo sin barras de color */
.pc:hover { background: var(--bg2); }
.pc:hover .pc-l1 b { color: #fff; }
tbody tr:hover { background: var(--bg3); }

/* Íconos dibujados (sin emojis) */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; }
.modal-x { display: inline-grid; place-items: center; }
.modal-x svg { width: 14px; height: 14px; }
.ext { width: 11px; height: 11px; vertical-align: -1px; margin-left: 3px; opacity: 0.7; }

/* Barra inferior: monedas como texto, no como símbolos */
.coin i { font: 600 10px var(--mono); letter-spacing: 0.04em; color: var(--dim); }
.coin.btc i, .coin.eth i, .coin.sol i { color: var(--dim); }

/* Instant Trade: ventana de herramienta, no tarjeta brillante */
.instant { background: rgba(13, 10, 11, 0.94); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.in-head b { display: inline-flex; align-items: center; gap: 6px; }
.in-head b svg { width: 12px; height: 12px; color: var(--warn); }

@media (prefers-reduced-motion: reduce) {
  .pc.fresh, tbody tr.fresh { animation: none; }
}
.btn svg { width: 13px; height: 13px; }
.btn-sm svg { width: 12px; height: 12px; }
.pc-img .ring { padding: 2.5px; }

/* ---------- Temas (Ajustes → Apariencia) ---------- */
[data-theme='vacio'] { --bg: #080808; --bg2: #0d0d0d; --bg3: #141414; --bg4: #1c1c1c; --line: #202020; --line2: #303030; --text: #ededed; --muted: #a3a3a3; --dim: #737373; --red: #ededed; --red-hi: #ffffff; --red-deep: #555555; --red-glow: rgba(237, 237, 237, .15); --red-soft: rgba(237, 237, 237, .08); --buy-fg: #080808; }
[data-theme='eclipse'] { --bg: #000000; --bg2: #08080a; --bg3: #101013; --bg4: #18181c; --line: #19191d; --line2: #26262c; --muted: #9a9aa3; --dim: #64646d; }
[data-theme='corona'] { --bg: #0a0805; --bg2: #100d08; --bg3: #17130c; --bg4: #201a10; --line: #221c12; --line2: #33291a; --muted: #ad9f88; --dim: #75694f; --red: #f0b429; --red-hi: #ffd166; --warn: #ff8a3d; --warn-soft: rgba(255, 138, 61, 0.1); --buy-fg: #120d03; }
[data-theme='abismo'] { --bg: #05070b; --bg2: #090d14; --bg3: #0f141d; --bg4: #161c28; --line: #161d29; --line2: #222b3a; --muted: #93a0b4; --dim: #5f6b7d; --red: #4f8cff; --red-hi: #7aa8ff; }
[data-theme='marte'] { --bg: #0c0604; --bg2: #130a07; --bg3: #1b0f0a; --bg4: #24140e; --line: #26150f; --line2: #362016; --muted: #b19a8f; --dim: #78635a; --red: #ff6a2b; --red-hi: #ff8a55; }

/* ---------- Colores por rango ---------- */
.m-lo { color: var(--text); }
.m-mid { color: var(--warn); }
.m-hi { color: var(--up); }
.range-row .m-lo { color: var(--dim); }

/* ---------- Botón de compra rápida: color y tamaños elegidos por el usuario ---------- */
.buy { background: var(--buy-bg, var(--red)); color: var(--buy-fg, #fff); }
.st-body .color-row .buy { pointer-events: none; }
.buy:hover { background: var(--buy-bg, var(--red)); filter: brightness(1.08); }
[data-btn='mega'] .buy { height: 44px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
[data-btn='mega'] .buy svg { width: 15px; height: 15px; }

/* ---------- Favoritos, ocultos y vista previa ---------- */
.copy.star.on { color: var(--warn); }
.copy.star.on svg { fill: currentColor; }
.icon-btn.on { color: var(--warn); }
.pc.is-hidden { opacity: 0.45; }
.watch-drop { min-width: 260px; max-height: 60vh; overflow-y: auto; }
.watch-drop a { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.w-sym { font-weight: 600; }
.img-preview { position: fixed; z-index: 70; width: 210px; height: 210px; padding: 4px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85); pointer-events: none; transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
@starting-style { .img-preview:not([hidden]) { opacity: 0; transform: scale(0.97); } }
.img-preview[hidden] { display: none; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* ---------- Filtros por columna ---------- */
.icon-btn.sm { position: relative; width: 28px; height: 28px; border-radius: 6px; }
.icon-btn.sm svg { width: 13px; height: 13px; }
.fdot { position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font: 700 9px/15px var(--mono); font-style: normal; text-align: center; }
.fdot[hidden] { display: none; }
.filters-modal { max-width: 560px; }
.flt { display: grid; gap: 10px; margin-top: 10px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.flt > label { display: grid; gap: 4px; color: var(--dim); font-size: 11px; }
.flt input:not([type]), .flt input[inputmode] { height: 32px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; outline: 0; font: 500 12px var(--mono); color: var(--text); min-width: 0; }
.flt input:focus { border-color: var(--red); }
.range-row { display: grid; grid-template-columns: 130px 1fr 1fr 80px; gap: 8px; align-items: center; font-size: 12px; }
.range-row b { font-weight: 500; color: var(--muted); }
.st-body .range-row { grid-template-columns: 100px auto 110px auto 110px; }
.st-body .range-row span { font-size: 11px; }

/* ---------- Ajustes: piezas nuevas ---------- */
.settings-modal { max-width: 820px; }
.st-wrap { grid-template-columns: 180px minmax(0, 1fr); }
.st-body { max-height: 64vh; overflow-y: auto; padding-right: 6px; }
.st-sub { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.opt.inline { display: flex; align-items: center; gap: 10px; }
.side-title { margin-top: 2px; font-size: 11px; font-weight: 600; }
.tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tile { height: 30px; padding: 0 12px; border: 1px dashed var(--line2); border-radius: 8px; background: none; color: var(--dim); font-size: 12px; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.tile.on { border-style: solid; border-color: var(--line2); background: var(--bg3); color: var(--text); }
.tile:active { transform: scale(0.97); }
.color-row { display: flex; align-items: center; gap: 12px; }
.color-row input[type='color'] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line2); border-radius: 6px; background: none; cursor: pointer; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg3); color: var(--muted); }
.theme i { width: 24px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, var(--t-bg) 55%, var(--t-ac) 55%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.theme.on { color: var(--text); border-color: var(--red); }
.bl-add { display: flex; gap: 8px; align-items: center; }
.bl-add input { flex: 1; height: 32px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; outline: 0; color: var(--text); font: 500 12px var(--font); }
.bl-list { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; }
.bl-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.bl-item .mono { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-actions { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bl-actions .sp { flex: 1; }
.bl-actions label.btn { cursor: pointer; }
/* Corona: el dorado pide texto oscuro encima */
[data-theme='corona'] .btn-red, [data-theme='corona'] .fdot { color: #120d03; }

/* ---------- Órdenes ---------- */
.mode-wrap { padding: 14px 16px 0; }
.seg.mode { display: grid; grid-template-columns: 1fr 1.6fr; width: 100%; }
.seg.mode button { height: 30px; }
.orders-form .o-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.f-l { display: grid; gap: 4px; color: var(--dim); font-size: 11px; }
.f-l input, .f-in { height: 38px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r); outline: 0; color: var(--text); font: 600 14px var(--mono); min-width: 0; width: 100%; }
.f-l input:focus, .f-in:focus { border-color: var(--red); }
.f-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.orders-form .hint { margin: 0; }
.o-count { margin-left: 4px; color: var(--warn); font-family: var(--mono); }
#f-orders b { color: var(--warn); }
#f-orders[hidden] { display: none; }

/* ---------- Recompensas ---------- */
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
#rw { display: grid; gap: 14px; max-width: 1280px; margin: 0 auto; }
.eyebrow { display: block; color: var(--dim); font: 10px var(--brand-font); letter-spacing: 0.28em; text-transform: uppercase; }
.rw-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 24px 28px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.rw-ring { position: relative; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--red) var(--p), var(--line) 0); animation: rw-fill 1.1s var(--ease-out) both; }
.rw-ring > div { position: absolute; inset: 5px; display: grid; place-items: center; border-radius: 50%; background: var(--bg2); }
@keyframes rw-fill { from { --p: 0%; } }
.rw-tier h1 { margin: 6px 0 6px; font: 600 26px/1.15 var(--font); letter-spacing: -0.01em; }
.rw-tier p { margin: 0; max-width: 540px; }
.rw-rates { display: flex; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.rw-rates b { color: var(--text); font-family: var(--mono); }
.rw-cta { justify-self: end; }
.rw-kpis { display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 10px; }
.rw-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.rw-kpi > span { color: var(--dim); font-size: 12px; }
.rw-kpi > b { font: 700 22px var(--mono); }
.rw-kpi > b small { color: var(--muted); font-size: 12px; font-weight: 500; }
.rw-kpi > small { color: var(--dim); font-size: 11px; }
.rw-kpi.main { border-color: #3a1a1c; }
.rw-kpi .btn { margin-top: 4px; align-self: flex-start; }
.rw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rw-box { padding: 18px 20px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.rw-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rw-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.rw-h .dim { font-size: 12px; }
.rw-note { margin: 0 0 12px; font-size: 12px; }
.rw-link { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r); }
.rw-link .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.rw-link svg { width: 13px; height: 13px; }
.rw-code { display: flex; align-items: center; gap: 8px; margin: 10px 0 16px; }
.rw-code label { font-size: 12px; white-space: nowrap; }
.rw-code .f-in { height: 30px; font-size: 12px; max-width: 200px; }
.rw-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.rw-levels > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.rw-levels span { color: var(--dim); font-size: 11px; }
.rw-levels b { font: 700 20px var(--mono); }
.rw-levels small { color: var(--muted); font-size: 11px; }
.rw-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rw-ladder li { display: grid; grid-template-columns: auto 1fr 76px 76px; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.rw-ladder li > div { display: flex; flex-direction: column; }
.rw-ladder li b { color: var(--text); font-weight: 600; }
.rw-ladder li small { color: var(--dim); font-size: 11px; }
.rw-ladder li > span { display: flex; flex-direction: column; align-items: flex-end; font: 600 14px var(--mono); color: var(--text); }
.rw-ladder li.on { border-color: var(--red); background: var(--red-soft); }
.rw-ladder li.past { opacity: 0.6; }
.rw-badge { flex: none; display: block; }
.rw-quests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rw-q { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.rw-q p { margin: 0; font-size: 12px; }
.rw-q-top { display: flex; justify-content: space-between; gap: 8px; }
.rw-q-top .mono { color: var(--warn); font-weight: 600; font-size: 12px; }
.rw-q-foot { display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-size: 11px; }
.rw-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rw-bar i { display: block; height: 100%; background: var(--red); border-radius: 4px; transform-origin: left; animation: rw-grow 0.9s var(--ease-out) both; }
@keyframes rw-grow { from { transform: scaleX(0); } }
.rw-q.ready { border-color: #3a1a1c; }
.rw-q.claimed { opacity: 0.55; }
.rw-q.claimed .rw-bar i { background: var(--up); }
.rw-done { display: inline-flex; align-items: center; gap: 4px; color: var(--up); }
.rw-done svg { width: 12px; height: 12px; }
.rw-table th { position: static; height: 30px; padding: 0 8px; background: none; text-align: left; }
.rw-table td { height: 40px; padding: 0 8px; text-align: left; font-size: 12px; }
.rw-table td:first-child { width: 36px; color: var(--dim); }
.rw-table td:nth-child(3) { width: 40px; }
.rw-table th:nth-child(n + 4), .rw-table td:nth-child(n + 4) { text-align: right; }
.rw-table tr:last-child td { border-bottom: 0; }
.rw-table tr.me td { background: var(--red-soft); }
.rw-hist { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.rw-hist li { display: grid; grid-template-columns: 1fr auto 90px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.rw-hist li:last-child { border-bottom: 0; }
.rw-hist small { text-align: right; }
.rw-hist a { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.rw-hist a svg { width: 11px; height: 11px; }
#rw.settled .rw-ring, #rw.settled .rw-bar i { animation: none; }
@media (prefers-reduced-motion: reduce) { .rw-ring, .rw-bar i { animation: none; } }

/* ---------- Entrada (/entrar): muro 3D de gráficas y posts + inicio de sesión ---------- */
body.gate { padding: 0; overflow-x: hidden; background: #050405; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: rgba(255, 236, 236, 0.04); border-color: rgba(255, 236, 236, 0.14); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 236, 236, 0.08); border-color: rgba(255, 236, 236, 0.24); }
.gate-brand { display: inline-flex; align-items: center; gap: 12px; }
.gate-brand span { font: 13px var(--brand-font); letter-spacing: 0.42em; }

.land { position: relative; height: 100vh; height: 100svh; overflow: hidden; scroll-snap-align: start; background: #050405; }
.land-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 28px 40px; }
.land-nav { display: flex; gap: 8px; }
.land-copy { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 clamp(32px, 6vw, 96px); max-width: 860px; pointer-events: none; }
.land-copy > * { pointer-events: auto; }
.land-t { margin: 0; font: 600 clamp(44px, 5.4vw, 84px)/1 var(--font); letter-spacing: -0.04em; text-wrap: balance; }
.land-t em { font-style: normal; background: linear-gradient(100deg, #ff6a55 10%, #e43a3a 55%, #9c1f1a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.land-s { max-width: 520px; margin: 0; color: #c9bebf; font-size: 17px; line-height: 1.55; }
.land-cta { display: flex; gap: 10px; }
.land-copy > * { animation: land-in 0.9s var(--ease-out) both; }
.land-copy > :nth-child(2) { animation-delay: 80ms; }
.land-copy > :nth-child(3) { animation-delay: 160ms; }
.land-copy > :nth-child(4) { animation-delay: 240ms; }
@keyframes land-in { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } }
.land-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #050405 0%, rgba(5, 4, 5, 0.92) 30%, rgba(5, 4, 5, 0.35) 62%, rgba(5, 4, 5, 0.15) 100%), linear-gradient(0deg, #050405 0%, transparent 22%), linear-gradient(180deg, #050405 0%, transparent 18%); }
.land-hint { position: absolute; z-index: 3; left: 50%; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); color: rgba(241, 236, 236, 0.6); font: 600 10px var(--mono); letter-spacing: 0.3em; text-transform: uppercase; transition: color 0.15s; }
.land-hint:hover { color: var(--text); }
.land-hint svg { animation: hint-bob 1.6s var(--ease-in-out) infinite; }
@keyframes hint-bob { 0%, 100% { opacity: 0.5; transform: none; } 50% { opacity: 1; transform: translateY(5px); } }

/* Muro 3D (port de "3d-marquee"): 4 columnas que suben y bajan sobre un plano inclinado */
.mq { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; contain: strict; }
.mq.off { visibility: hidden; }
.mq.off .mq-col { animation-play-state: paused; }
.mq-stage { flex: none; width: 1720px; height: 1720px; transform: translateX(22%) scale(var(--mq-scale, 1)); }
.mq-grid { position: relative; top: 384px; right: 50%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; width: 100%; height: 100%; transform-origin: top left; transform: rotateX(55deg) rotateY(0deg) rotateZ(-45deg); transform-style: preserve-3d; }
.mq-col { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; animation: mq-down 10s var(--ease-in-out) infinite alternate; }
.mq-col:nth-child(even) { animation-name: mq-up; animation-duration: 15s; }
/* Arrancan a media carrera (retraso negativo): se mueven desde el primer cuadro, sin tramo lento al inicio */
.mq-col:nth-child(1) { animation-delay: -4s; } .mq-col:nth-child(2) { animation-delay: -6s; }
.mq-col:nth-child(3) { animation-delay: -2.5s; } .mq-col:nth-child(4) { animation-delay: -9s; }
@keyframes mq-down { from { transform: translateY(-60px); } to { transform: translateY(160px); } }
@keyframes mq-up { from { transform: translateY(60px); } to { transform: translateY(-160px); } }
.gl-v, .gl-h { position: absolute; z-index: 3; pointer-events: none; -webkit-mask-composite: xor; mask-composite: exclude; }
.gl-v { left: -16px; top: -40px; width: 1px; height: calc(100% + 80px); background: linear-gradient(to bottom, rgba(255, 236, 236, 0.2) 50%, transparent 0) 0 0 / 1px 5px;
  -webkit-mask: linear-gradient(to top, #fff 90%, transparent), linear-gradient(to bottom, #fff 90%, transparent), linear-gradient(#000, #000); mask: linear-gradient(to top, #fff 90%, transparent), linear-gradient(to bottom, #fff 90%, transparent), linear-gradient(#000, #000); }
.gl-h { top: -16px; left: -10px; height: 1px; width: calc(100% + 20px); background: linear-gradient(to right, rgba(255, 236, 236, 0.2) 50%, transparent 0) 0 0 / 5px 1px;
  -webkit-mask: linear-gradient(to left, #fff 90%, transparent), linear-gradient(to right, #fff 90%, transparent), linear-gradient(#000, #000); mask: linear-gradient(to left, #fff 90%, transparent), linear-gradient(to right, #fff 90%, transparent), linear-gradient(#000, #000); }
.mq-item { position: relative; width: 100%; }
.mq-card { position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 970 / 700; overflow: hidden; border-radius: 12px; background: #0c0a0b; box-shadow: 0 0 0 1px rgba(255, 236, 236, 0.07); transition: transform 0.3s var(--ease-in-out), box-shadow 0.3s ease; }
.mq-card:hover { transform: translateY(-10px); box-shadow: 0 0 0 1px rgba(var(--accent-rgb, 228, 58, 58), 0.35), 0 30px 60px -10px rgba(0, 0, 0, 0.8); }
/* Tarjeta de gráfica */
.mc-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.mc-av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: var(--bg4); color: var(--muted); font: 700 14px var(--font); }
.mc-av img { width: 100%; height: 100%; object-fit: cover; }
.mc-id { display: flex; flex-direction: column; min-width: 0; }
.mc-id b { font-size: 15px; }
.mc-id span { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-px { margin-left: auto; text-align: right; font-family: var(--mono); }
.mc-px b { display: block; font-size: 15px; }
.mc-px span { font-size: 12px; }
.mc-chart { flex: 1; min-height: 0; padding: 0 10px; }
.mc-chart svg { display: block; width: 100%; height: 100%; }
.mc-foot { display: flex; gap: 18px; padding: 8px 18px 14px; border-top: 1px solid rgba(255, 236, 236, 0.05); color: var(--dim); font: 11px var(--mono); }
.mc-foot b { color: var(--text); font-weight: 500; }
/* Tarjeta tipo post de X */
.mp { padding: 18px 20px; gap: 10px; }
.mp-head { display: flex; align-items: center; gap: 10px; }
.mp-head img { width: 38px; height: 38px; border-radius: 50%; background: #000; }
.mp-head div { display: flex; flex-direction: column; }
.mp-head b { font-size: 14px; }
.mp-head span { color: var(--dim); font-size: 12px; }
.mp-head svg { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
.mp-text { margin: 0; font-size: 15px; line-height: 1.45; color: #e9e2e2; }
.mp-text a, .mp-text .cash { color: var(--red-hi); font-weight: 600; }
.mp-chip { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 12px; border: 1px solid rgba(255, 236, 236, 0.08); border-radius: 12px; background: rgba(255, 236, 236, 0.02); font: 12px var(--mono); }
.mp-chip .mc-av { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.mp-chip b { color: var(--text); font-family: var(--font); font-size: 13px; }
.mp-chip .sp { flex: 1; }
.mp-chip svg { width: 70px; height: 24px; }
.mp-act { display: flex; justify-content: space-between; padding: 0 8px; color: var(--dim); }
.mp-act svg { width: 16px; height: 16px; }

/* Panel de acceso (port de "auth-page"): lado de marca con líneas flotantes + formulario */
.ap { position: relative; display: grid; grid-template-columns: 1fr minmax(440px, 520px); min-height: 100vh; min-height: 100svh; scroll-snap-align: start; }
.ap-side { position: relative; display: flex; flex-direction: column; padding: 36px 40px 32px; overflow: hidden; border-right: 1px solid rgba(255, 236, 236, 0.07); background: #050405; }
.ap-paths { position: absolute; inset: 0; }
.fp { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-a { color: var(--red); }
.fp-b { color: #f1ecec; }
.fp-b path { stroke-opacity: 0.35; }
/* Las líneas se dibujan una vez; solo se mueven las capas completas (transform/opacity: sin redibujar) */
.fp path { stroke: currentColor; }
.fp { will-change: transform; animation: fp-drift 26s var(--ease-in-out) infinite alternate; }
.fp-b { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes fp-drift { from { transform: translate3d(-3%, 2%, 0) rotate(-2deg) scale(1.06); opacity: 0.6; } to { transform: translate3d(3%, -2%, 0) rotate(2deg) scale(1.12); opacity: 1; } }
.ap-sweep { position: absolute; inset: -20% -60%; background: linear-gradient(100deg, transparent 40%, rgba(var(--accent-rgb, 228, 58, 58), 0.09) 50%, transparent 60%); animation: sweep 9s var(--ease-in-out) infinite; will-change: transform; }
@keyframes sweep { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.ap-fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #050405 8%, rgba(5, 4, 5, 0.6) 45%, transparent); pointer-events: none; }
.ap-brand, .ap-quote { position: relative; z-index: 2; }
.ap-quote { margin-top: auto; display: grid; gap: 22px; }
.ap-q { margin: 0; font: 600 clamp(30px, 3vw, 46px)/1.08 var(--font); letter-spacing: -0.03em; }
.ap-l { display: grid; gap: 12px; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.ap-l li { display: flex; gap: 16px; align-items: baseline; padding-top: 12px; border-top: 1px solid rgba(255, 236, 236, 0.08); color: #cfc5c6; }
.ap-l b { color: var(--red); font: 600 11px var(--mono); }
.tape { overflow: hidden; opacity: 0; transition: opacity 0.6s ease; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tape.on { opacity: 1; }
.tape-in { display: flex; width: max-content; animation: tape 60s linear infinite; }
.tape-in span { display: inline-flex; gap: 8px; align-items: baseline; padding: 0 22px; border-right: 1px solid rgba(255, 236, 236, 0.07); font: 12px var(--mono); white-space: nowrap; }
.tape-in em { color: var(--muted); font-style: normal; }
.tape-in i { font-style: normal; }
@keyframes tape { to { transform: translateX(-50%); } }
.auth { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 72px 56px 32px; background: #070506; overflow: hidden; }
.auth::before { content: ''; position: absolute; top: -40%; right: -20%; width: 560px; height: 1280px; border-radius: 50%; background: radial-gradient(68% 69% at 55% 31%, rgba(255, 236, 236, 0.06), rgba(140, 140, 140, 0.02) 50%, transparent 80%); pointer-events: none; }
.ap-home { position: absolute; top: 26px; left: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; transition: color 0.15s, background 0.15s; }
.ap-home:hover { color: var(--text); background: var(--bg3); }
.auth-card { position: relative; width: 100%; max-width: 384px; margin: 0 auto; }
@media (max-width: 1000px) { .ap { grid-template-columns: 1fr; } .ap-side { display: none; } .land-shade { background: rgba(5, 4, 5, 0.72); } }
@media (prefers-reduced-motion: reduce) {
  .mq-col, .fp, .ap-sweep, .tape-in, .land-hint svg, .land-copy > * { animation: none; }
}
.auth-foot { margin: 0; color: var(--dim); font-size: 11px; text-align: center; }
.step { display: flex; flex-direction: column; gap: 14px; }
.a-mark img { display: block; }
.a-t { margin: 0; font: 600 24px/1.2 var(--font); letter-spacing: -0.02em; }
.a-s { margin: -6px 0 2px; color: var(--muted); line-height: 1.5; }
.a-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-bottom: -4px; padding: 0; border: 0; background: none; color: var(--dim); font-size: 12px; transition: color 0.15s; }
.a-back:hover { color: var(--text); }
.a-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; }
.a-seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px; background: var(--bg4); box-shadow: inset 0 0 0 1px var(--line2); transform: translateX(calc(var(--i) * 100%)); transition: transform 0.24s var(--ease-out); }
.a-seg button { position: relative; height: 32px; border: 0; background: none; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.a-seg button[aria-selected='true'] { color: var(--text); }
.a-oauth { display: grid; gap: 8px; }
.a-prov { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg3); font-weight: 600; transition: border-color 0.15s, background 0.15s, transform 0.12s var(--ease-out); }
.a-prov:hover { border-color: #3d3034; background: var(--bg4); }
.a-prov:active, .a-choice:active, .btn:active { transform: scale(0.97); }
.a-or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; }
.a-or::before, .a-or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.a-form { display: flex; flex-direction: column; gap: 12px; }
.a-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-field > span { color: var(--muted); font-size: 12px; }
.a-field input, .a-words { width: 100%; height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; outline: 0; color: var(--text); font: 14px var(--font); transition: border-color 0.15s, box-shadow 0.15s; }
.a-field input:focus, .a-words:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.a-field input.bad { border-color: var(--down); }
.a-pass { position: relative; }
.a-pass input { padding-right: 44px; }
.a-eye { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--dim); transition: color 0.15s; }
.a-eye:hover, .a-eye.on { color: var(--text); }
.a-guest { align-self: center; padding: 4px; border: 0; background: none; color: var(--dim); font-size: 12px; transition: color 0.15s; }
.a-guest:hover { color: var(--text); }
.err { margin: 0; color: var(--down); font-size: 12px; }
.btn-big .spin, .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-choices { display: grid; gap: 10px; }
.a-choice { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg3); text-align: left; transition: border-color 0.15s, background 0.15s, transform 0.12s var(--ease-out); }
.a-choice b { font-size: 14px; }
.a-choice span { color: var(--muted); font-size: 12px; }
.a-choice:hover { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.5); background: var(--bg4); }
.words-wrap { position: relative; }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: w; transition: filter 0.35s var(--ease-out); }
.words li { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; counter-increment: w; font: 13px var(--mono); animation: word-in 0.4s var(--d, 0ms) var(--ease-out) both; }
.words li::before { content: counter(w); min-width: 14px; color: var(--dim); font-size: 10px; }
@keyframes word-in { from { opacity: 0; transform: translateY(6px); } }
.words.sealed { filter: blur(7px); user-select: none; }
.reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed var(--line2); border-radius: 10px; background: rgba(5, 4, 5, 0.35); color: var(--text); font-weight: 600; transition: background 0.15s; }
.reveal:hover { background: rgba(5, 4, 5, 0.2); }
.reveal small { color: var(--muted); font-weight: 400; font-size: 11px; }
.a-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.a-row svg { width: 13px; height: 13px; }
.a-check { display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; }
.a-check input { width: 16px; height: 16px; accent-color: var(--red); }
.a-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a-words { height: auto; padding: 12px 14px; resize: none; font: 13px/1.6 var(--mono); }
.a-count { display: flex; justify-content: space-between; margin-top: -4px; color: var(--dim); font-size: 12px; }
.a-count svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -4px; }
.meter i { height: 3px; border-radius: 3px; background: var(--line2); transition: background 0.25s ease; }
.meter[data-s='1'] i:nth-child(-n + 1) { background: var(--down); }
.meter[data-s='2'] i:nth-child(-n + 2) { background: var(--warn); }
.meter[data-s='3'] i:nth-child(-n + 3) { background: #c7d25a; }
.meter[data-s='4'] i { background: var(--up); }
.a-note { margin: 0; font-size: 12px; line-height: 1.5; }
.a-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; font-size: 12px; }
.a-addr.big .mono { overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.a-addr svg { width: 13px; height: 13px; }
.ready { display: flex; flex-direction: column; gap: 14px; }
.ready-ring { stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; animation: ring-draw 0.7s 0.1s var(--ease-out) forwards; }
.ready-check { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ring-draw 0.35s 0.65s var(--ease-out) forwards; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }

/* Cuenta en el menú de la wallet y ventanas */
.w-sep { margin: 6px 4px 2px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-own { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; border: 1px solid rgba(var(--accent-rgb, 228, 58, 58), 0.35); border-radius: 10px; background: var(--red-soft); }
.w-own span { display: flex; flex-direction: column; }
.w-own small { color: var(--muted); font-size: 11px; }
#wallet-slot { display: flex; gap: 8px; }
#w-unlock { gap: 6px; }
.acc-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.acc-small { margin: 12px 0 0; font-size: 12px; }
.acc-small a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.acc-addr { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; }
.acc-addr .mono { flex: 1; overflow-wrap: anywhere; font-size: 12px; }
.acc-addr svg { width: 13px; height: 13px; }
.acc-amt { display: flex; gap: 6px; }
.acc-amt input { flex: 1; }
.acc-modal .words { margin-top: 12px; }

/* ---------- Bots ---------- */
#bots { display: grid; gap: 16px; max-width: 1280px; margin: 0 auto; }
.bt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bt-head h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.bt-head p { margin: 0; }
.bt-head .btn svg { width: 14px; height: 14px; }
.bt-mode { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--muted); font-size: 12px; }
.bt-mode .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.bt-mode.ok .dot { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.bt-mode.warn .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.bt-sec { padding: 18px 20px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.bt-tpl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.bt-t { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg3); text-align: left; transition: border-color 0.15s, background 0.15s, transform 0.12s var(--ease-out); }
.bt-t b { font-size: 13px; }
.bt-t span { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.45; }
.bt-t em { color: var(--red-hi); font-style: normal; font-size: 12px; font-weight: 600; }
.bt-t:hover { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.45); background: var(--bg4); }
.bt-t:active { transform: scale(0.98); }
.bt-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px; color: var(--muted); text-align: center; }
.bt-empty svg { width: 34px; height: 34px; color: var(--dim); }
.bt-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); transition: border-color 0.2s; }
.bt-card.on { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.4); }
.bt-top { display: flex; align-items: center; gap: 12px; }
.bt-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg3); color: var(--muted); }
.bt-card.on .bt-ico { color: var(--red-hi); background: var(--red-soft); }
.bt-ico svg { width: 18px; height: 18px; }
.bt-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bt-name b { font-size: 14px; }
.bt-name span { color: var(--dim); font-size: 12px; }
.bt-name em { font-style: normal; }
.bt-name .sim { color: var(--warn); }
.bt-name .real { color: var(--up); }
.bt-desc { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.bt-stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; }
.bt-stats > div { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bt-stats span { color: var(--dim); font-size: 11px; }
.bt-stats b { font: 600 13px var(--mono); }
.bt-stats i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p); background: var(--red); }
.bt-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.bt-foot .sp { flex: 1; }
.bt-foot svg { width: 12px; height: 12px; }
.bt-log { display: grid; gap: 2px; max-height: 260px; margin: 0; padding: 8px 0 0; overflow-y: auto; border-top: 1px solid var(--line); list-style: none; }
.bt-log li { display: grid; grid-template-columns: 70px 82px auto 1fr auto; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.bt-log li > span { color: var(--dim); }
.bt-log li em { color: var(--muted); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-log .compra b { color: var(--up); }
.bt-log .simulada b { color: var(--warn); }
.bt-log .error b { color: var(--down); }
.bt-log .saltada b { color: var(--dim); }
.bt-log svg { width: 11px; height: 11px; }
/* Interruptor */
.switch { position: relative; flex: none; width: 38px; height: 22px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--bg4); box-shadow: inset 0 0 0 1px var(--line2); transition: background 0.2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.22s var(--ease-out), background 0.2s; }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--red-hi); outline-offset: 2px; }
/* Editor */
.bt-modal { max-width: 860px; max-height: 88vh; overflow-y: auto; }
.bt-modal form { display: grid; gap: 14px; margin-top: 12px; }
.bt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bt-fs { display: grid; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.bt-fs[hidden] { display: none; }
.bt-fs legend { padding: 0 6px; color: var(--text); font-size: 12px; font-weight: 600; }
.bt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bt-grid .f-l input { font-size: 13px; height: 34px; }
.bt-src { flex-wrap: wrap; }
.bt-checks { display: flex; flex-wrap: wrap; gap: 16px; }
.bt-chk { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.bt-chk input { width: 15px; height: 15px; accent-color: var(--red); }
#f-bots a { color: var(--muted); }
#f-bots b { color: var(--red-hi); }

/* ---------- Perfil y wallets ---------- */
.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--red-deep), var(--red)); color: #fff; font: 700 11px var(--font); }
#w-me .av { width: 20px; height: 20px; }
.pf-form { gap: 14px; }
.pf-av { display: flex; align-items: center; gap: 16px; }
.pf-av .av { font-size: 26px; }
.pf-av > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-av .acc-small { flex-basis: 100%; margin: 4px 0 0; }
.pf-av label.btn { cursor: pointer; }
.wl-modal { max-width: 620px; }
.wl { display: grid; gap: 6px; margin-top: 12px; }
.wl-row { display: grid; grid-template-columns: 28px 1fr auto auto 70px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); }
.wl-row.on { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.45); }
.wl-i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg3); color: var(--muted); font: 600 12px var(--mono); }
.wl-row.on .wl-i { background: var(--red); color: #fff; }
.wl-n { display: flex; flex-direction: column; min-width: 0; }
.wl-n input { padding: 0; border: 0; outline: 0; background: none; color: var(--text); font: 600 13px var(--font); }
.wl-n input:focus { text-decoration: underline; text-decoration-color: var(--red); }
.wl-n span { font-size: 11px; }
.wl-b { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; }
.wl-row svg { width: 12px; height: 12px; }
.wl-act { color: var(--red-hi); font-size: 12px; font-weight: 600; text-align: center; }
.wl-total { display: flex; justify-content: space-between; padding: 8px 4px 0; font-size: 12px; }
.wl-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 14px; }
.wl-add .f-in { height: 36px; font: 13px var(--font); }
#f-wallet .fw { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg3); color: var(--muted); font-size: 11px; }
#f-wallet .fw:hover { color: var(--text); border-color: #3d3034; }
#f-wallet .fw b { color: var(--text); font-weight: 500; }
#f-wallet .fw em { padding: 0 4px; border-radius: 4px; background: var(--red-soft); color: var(--red-hi); font-style: normal; }
/* Símbolo de SOL en los colores de la marca */
svg.sol { flex: none; width: 1em; height: 0.78em; vertical-align: -0.05em; }
.w-bal { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.w-bal svg.sol { width: 15px; height: 12px; }
.w-bal b { font-weight: 600; }
#f-wallet .fw b { display: inline-flex; align-items: center; gap: 4px; }
.pc .buy svg.sol { width: 12px; height: 10px; margin-left: -2px; }
#f-net { display: inline-flex; align-items: center; gap: 10px; }
#f-net b { color: var(--text); font-weight: 500; font-family: var(--mono); }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.net-dot.up { background: var(--up); }
.net-dot.warn { background: var(--warn); }
.net-dot.down { background: var(--down); }

/* ---------- Notificaciones ---------- */
#bell { position: relative; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font: 700 10px/16px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.nt-drop { position: absolute; right: 0; top: 44px; z-index: 50; width: 380px; padding: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 60px #000d; transform-origin: top right; animation: nt-in 0.16s var(--ease-out); }
@keyframes nt-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } }
.nt-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.nt-head .sp { flex: 1; }
.nt-link { padding: 2px 4px; border: 0; background: none; color: var(--dim); font-size: 11px; }
.nt-link:hover { color: var(--text); }
.nt-tabs { display: flex; gap: 2px; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.nt-tabs button { padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 11px; }
.nt-tabs button[aria-selected='true'] { background: var(--bg4); color: var(--text); }
.nt-list { max-height: 420px; overflow-y: auto; padding-top: 4px; }
.nt { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: start; padding: 9px 8px; border-radius: 8px; color: var(--text); }
.nt:hover { background: var(--bg4); }
.nt.new { background: rgba(var(--accent-rgb, 228, 58, 58), 0.06); }
.nt > div { display: flex; flex-direction: column; min-width: 0; }
.nt b { font-size: 12px; font-weight: 600; }
.nt span:not(.nt-k) { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt time { color: var(--dim); font-size: 11px; }
.nt-k { padding: 2px 6px; border-radius: 5px; background: var(--bg3); color: var(--muted); font-size: 10px; font-weight: 600; text-align: center; }
.nt.buy .nt-k, .nt.bot .nt-k { color: var(--up); background: var(--up-soft); }
.nt.sell .nt-k { color: var(--warn); background: var(--warn-soft); }
.nt.order .nt-k { color: var(--red-hi); background: var(--red-soft); }
.nt.follow .nt-k { color: #c9a7ff; background: rgba(160, 120, 255, 0.1); }
.nt.fail .nt-k { color: var(--down); background: var(--down-soft); }
.nt-empty { margin: 0; padding: 24px 12px; color: var(--dim); font-size: 12px; text-align: center; }
.nt-desk { width: 100%; margin-top: 4px; padding: 8px; border: 1px dashed var(--line2); border-radius: 8px; background: none; color: var(--muted); font-size: 11px; }
.nt-desk:hover { color: var(--text); border-color: var(--red); }
.snd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.snd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Rastreador ---------- */
#trk { display: grid; gap: 16px; max-width: 1440px; margin: 0 auto; }
.tk-grid { display: grid; grid-template-columns: 340px 1fr; gap: 14px; align-items: start; }
.tk-side, .tk-feed { padding: 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.tk-add { display: grid; gap: 8px; margin-bottom: 14px; }
.tk-add .f-in { height: 36px; font: 13px var(--font); }
.tk-list { display: grid; gap: 4px; }
.tk-w { display: grid; grid-template-columns: 32px 1fr auto auto auto; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; }
.tk-w:hover { background: var(--bg3); }
.tk-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #3a2a7a, #a078ff); color: #fff; font-weight: 700; font-size: 12px; }
.tk-n { display: flex; flex-direction: column; min-width: 0; }
.tk-n b { font-size: 13px; }
.tk-n span { font-size: 11px; }
.tk-w .icon-btn { width: 28px; height: 28px; }
.tk-w svg { width: 13px; height: 13px; }
.tk-bell.on { color: #c9a7ff; }
.tk-empty, .tk-note { margin: 8px 4px 0; font-size: 12px; line-height: 1.5; }
.tk-empty a { color: var(--text); text-decoration: underline; }
.tk-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tk-bar .sp { flex: 1; }
.tk-q { max-width: 240px; height: 30px; font: 12px var(--font); }
.tk-rows td { height: 46px; }
.tk-r.is-buy { box-shadow: inset 2px 0 0 transparent; }
.tk-tok { display: inline-flex; align-items: center; gap: 8px; }
.tk-tok img, .tk-tok .ph { width: 24px; height: 24px; border-radius: 6px; }
.tk-rows .btn svg { width: 12px; height: 12px; }
.tk-rows .icon-btn { width: 26px; height: 26px; vertical-align: middle; }
.tk-rows .icon-btn svg { width: 11px; height: 11px; }

/* ---------- Órbita rápida (franja bajo la cabecera) ---------- */
body.has-dock { --head: 92px; }
.top { height: 56px; }
.dock { position: sticky; top: 56px; z-index: 39; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 14px; background: linear-gradient(180deg, rgba(10, 8, 9, 0.94), rgba(7, 5, 6, 0.94)); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dk-tabs { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.dk-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--dim); font-size: 11px; font-weight: 500; transition: color 0.15s, background 0.15s; }
.dk-tabs button svg { width: 12px; height: 12px; }
.dk-tabs button span { display: none; }
.dk-tabs button[aria-selected='true'] { background: var(--red-soft); color: var(--red-hi); }
.dk-tabs button[aria-selected='true'] span { display: inline; }
.dk-tabs button:hover { color: var(--text); }
.dk-list { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.dk-list::-webkit-scrollbar { display: none; }
.dk-c { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 3px; border: 1px solid transparent; border-radius: 999px; color: var(--text); font-size: 12px; transition: background 0.15s, border-color 0.15s; }
.dk-c:hover { background: var(--bg3); border-color: var(--line2); }
.dk-o { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--c) var(--p), rgba(255, 236, 236, 0.08) 0); }
.dk-o > span { display: grid; place-items: center; width: 18px; height: 18px; overflow: hidden; border-radius: 50%; background: var(--bg3); color: var(--muted); font-size: 9px; }
.dk-o img { width: 100%; height: 100%; object-fit: cover; }
.dk-s { font-weight: 600; }
.dk-v { color: var(--muted); font-size: 11px; }
.dk-p { font-size: 11px; }
.dk-side { padding: 0 4px; border-radius: 4px; font: 700 9px/14px var(--mono); font-style: normal; }
.dk-side.buy { background: var(--up-soft); color: var(--up); }
.dk-side.sell { background: var(--down-soft); color: var(--down); }
.dk-empty { color: var(--dim); font-size: 11px; }
.dk-c.up-f { animation: dk-up 1.2s var(--ease-out); }
.dk-c.down-f { animation: dk-down 1.2s var(--ease-out); }
@keyframes dk-up { from { background: rgba(61, 220, 151, 0.22); } }
@keyframes dk-down { from { background: rgba(255, 107, 139, 0.22); } }
@media (prefers-reduced-motion: reduce) { .dk-c.up-f, .dk-c.down-f { animation: none; } }

/* ---------- Página de token: auditoría, holders, traders, mis operaciones ---------- */
.au-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 10px; }
.au { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 11px; }
.au span { color: var(--dim); }
.au b { font: 600 12px var(--mono); }
.au.ok b { color: var(--up); }
.au.warn b { color: var(--warn); }
.au.bad { border-color: rgba(255, 107, 139, 0.3); }
.au.bad b { color: var(--down); }
.au-dev { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.au-dev svg { width: 12px; height: 12px; }
.au-wait { margin: 10px 0 0; font-size: 12px; }
.tf-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.tf-min { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.tf-min .f-in { width: 80px; height: 26px; font-size: 12px; }
.mt { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 5px; border-radius: 4px; font: 700 9px/14px var(--mono); font-style: normal; letter-spacing: 0.04em; }
.mt.you { background: var(--red-soft); color: var(--red-hi); }
.mt.dev { background: var(--warn-soft); color: var(--warn); }
.mt.top { background: rgba(120, 170, 255, 0.1); color: #8fb6ff; }
.mt.ins { background: var(--down-soft); color: var(--down); }
.mt.fol { background: rgba(160, 120, 255, 0.1); color: #c9a7ff; }
tr.mine td { background: rgba(var(--accent-rgb, 228, 58, 58), 0.05); }
.hb { position: relative; display: flex; align-items: center; width: 220px; height: 18px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.hb i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(var(--accent-rgb, 228, 58, 58), 0.35), rgba(var(--accent-rgb, 228, 58, 58), 0.15)); }
.hb span { position: relative; padding-left: 8px; font: 600 11px var(--mono); }
.my-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.my-sum div { display: flex; flex-direction: column; gap: 2px; }
.my-sum span { color: var(--dim); font-size: 11px; }
.my-sum b { font: 600 13px var(--mono); }
.my-sum .up b { color: var(--up); }
.my-sum .down b { color: var(--down); }
#audit { padding: 0 16px 14px; }

/* Arte del panel de acceso: el eclipse respira y su corona late; las líneas flotan encima, tenues */
.ap-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 12%; animation: art-breathe 22s var(--ease-in-out) infinite alternate; }
@keyframes art-breathe { from { transform: scale(1); filter: brightness(0.92); } to { transform: scale(1.06); filter: brightness(1.08); } }
.ap-side { container-type: inline-size; }
/* El eclipse de la imagen está al 10.5% de su alto (alto = 1.286 × ancho) y mide 22% del ancho */
.ap-flare { position: absolute; left: 50%; top: 13.5cqw; width: 31cqw; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, transparent 62%, rgba(255, 106, 61, 0.45) 70%, transparent 86%); mix-blend-mode: screen; animation: flare 4.5s var(--ease-in-out) infinite alternate; pointer-events: none; }
@keyframes flare { from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.98); } to { opacity: 0.9; transform: translate(-50%, -50%) scale(1.03); } }
.ap-side .fp-b path { stroke-opacity: 0.18; }
.ap-side .fp { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .ap-art, .ap-flare { animation: none; } }

/* ---------- Ventanas flotantes ---------- */
.float { position: fixed; z-index: 70; overflow: hidden; border: 1px solid var(--line2); border-radius: 14px; background: rgba(12, 9, 10, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 236, 236, 0.03) inset; animation: fl-in 0.22s var(--ease-out); }
.float[hidden] { display: none; }
@keyframes fl-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.float.dragging { opacity: 0.92; }
.fl-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; }
.fl-head:active { cursor: grabbing; }
.fl-t { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.fl-t svg { width: 14px; height: 14px; color: var(--red-hi); }
.fl-tools { display: flex; gap: 2px; margin-left: auto; }
.fl-tools button, .fl-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--dim); font-size: 13px; }
.fl-tools button:hover, .fl-x:hover { background: var(--bg4); color: var(--text); }
.fl-x svg { width: 12px; height: 12px; }
.f-tools { display: inline-flex; gap: 4px; }
.f-tool { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg3); color: var(--muted); font-size: 11px; }
.f-tool svg { width: 12px; height: 12px; }
.f-tool:hover { color: var(--text); }
.f-tool.on { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.5); color: var(--red-hi); background: var(--red-soft); }
/* PnL tracker */
.pn .fl-body { position: relative; padding: 0; }
.pn-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; padding: 22px 26px 14px; overflow: hidden; background: #070506 var(--bg) center / cover no-repeat; isolation: isolate; }
.pn-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 80% at 50% 45%, rgba(5, 4, 5, 0.25), rgba(5, 4, 5, 0.72)), linear-gradient(180deg, rgba(5, 4, 5, 0.1), rgba(5, 4, 5, 0.6)); }
.pn-card.plain { background: radial-gradient(120% 90% at 100% 0%, rgba(var(--accent-rgb, 228, 58, 58), 0.16), transparent 55%), #070506; }
.pn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: auto 0; }
.pn-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pn-pl { align-items: flex-end; text-align: right; }
.pn-big { display: inline-flex; align-items: center; gap: 10px; font: 700 46px/1 var(--font); letter-spacing: -0.04em; color: #fff; white-space: nowrap; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.pn-big .sol { width: 38px; height: auto; flex: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)); }
.pn-big sub { font-size: 0.5em; vertical-align: -0.1em; margin: 0 0.04em; }
.pn-pl.up .pn-big, .pn-pl.up .pn-usd { color: var(--up); }
.pn-pl.down .pn-big, .pn-pl.down .pn-usd { color: var(--down); }
.pn-usd { margin-top: 8px; font: 600 17px var(--mono); color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.pn-lab { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.pn-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.pn-foot em { font-style: normal; font-weight: 600; }
.pn-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: 0.24em; color: #fff; }
.pn-empty { margin: auto 0; color: rgba(255, 255, 255, 0.7); font-size: 13px; text-align: center; }
.pn-compact .pn-card { min-height: 0; padding: 14px 16px 12px; }
.pn-compact .pn-big { font-size: 30px; gap: 6px; }
.pn-compact .pn-big .sol { width: 22px; }
.pn-compact .pn-usd { font-size: 13px; margin-top: 4px; }
.pn-compact .pn-lab { font-size: 11px; }
.pn-compact .pn-foot { display: none; }
.pn .fl-tools svg { width: 14px; height: 14px; }
.pn-pick { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: rgba(6, 4, 5, 0.94); backdrop-filter: blur(6px); }
.pn-pick-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.pn-pick-h button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pn-pick-h button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.pn-pick-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; overflow: auto; }
.pn-bg { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 6px; border: 1px solid var(--line2); border-radius: 10px; background: #0b0809 var(--src) center / cover; color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; overflow: hidden; transition: border-color 0.15s, transform 0.15s var(--ease-out); }
.pn-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75)); }
.pn-bg span { position: relative; }
.pn-bg:hover { border-color: rgba(255, 255, 255, 0.35); }
.pn-bg:active { transform: scale(0.97); }
.pn-bg.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.pn-up { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); text-align: center; }
.pn-up::before { display: none; }
.pn-up:hover { color: #fff; }
/* Copy trading */
.tk-w { grid-template-columns: 32px minmax(0, 1fr) auto auto auto auto; }
.tk-w .tk-n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-copy { height: 26px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg3); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tk-copy:hover { color: var(--text); border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.5); }
.tk-copy.on { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.55); background: var(--red-soft); color: var(--red-hi); }
.tk-clog { display: grid; gap: 2px; margin-top: 12px; }
.tk-ch { padding: 8px 4px 4px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; border-top: 1px solid var(--line); }
.tk-cl { display: grid; grid-template-columns: 30px auto auto 1fr; gap: 6px; align-items: baseline; padding: 4px; font-size: 11px; }
.tk-cl span { color: var(--dim); font-family: var(--mono); }
.tk-cl em { font-style: normal; color: var(--text); }
.tk-cl i { font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-cl.compra b, .tk-cl.venta b { color: var(--up); }
.tk-cl.simulada b { color: var(--warn); }
.tk-cl.error b { color: var(--down); }
.ct-modal { max-width: 720px; }
.ct-modal form { display: grid; gap: 12px; margin-top: 12px; }
/* Social: transmisión vertical, un hilo rojo une las publicaciones */
.float.so .fl-body { display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 180px)); padding: 0; }
.so-top { padding: 10px; border-bottom: 1px solid var(--line); }
.so-new textarea { width: 100%; resize: none; padding: 9px 10px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(5, 4, 5, 0.6); color: var(--text); font: 13px/1.45 var(--font); }
.so-new textarea:focus { outline: none; border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.5); }
.so-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; }
.so-att { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; }
.so-att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-n { margin-left: auto; color: var(--dim); font-size: 10px; }
.so-gate { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.so-tabs { display: flex; gap: 4px; padding: 8px 10px 0; }
.so-tabs button { height: 24px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--dim); font-size: 11px; font-weight: 600; }
.so-tabs button[aria-selected='true'] { background: var(--red-soft); color: var(--red-hi); }
.so-list { position: relative; overflow-y: auto; padding: 6px 10px 12px; }
.so-list::before { content: ''; position: absolute; left: 25px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--red), rgba(var(--accent-rgb, 228, 58, 58), 0.05)); opacity: 0.35; }
.so-p { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.so-p + .so-p { border-top: 1px dashed rgba(255, 236, 236, 0.05); }
.so-av { position: relative; z-index: 1; }
.so-av .av { border-radius: 50%; box-shadow: 0 0 0 3px rgba(12, 9, 10, 1); object-fit: cover; }
.so-c header { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.so-x { color: var(--dim); font-size: 11px; }
.so-x:hover { color: var(--red-hi); }
.so-t { margin-left: auto; color: var(--dim); font: 10px var(--mono); }
.so-del { border: 0; background: none; color: var(--dim); font-size: 14px; line-height: 1; padding: 0 2px; }
.so-del:hover { color: var(--down); }
.so-c p { margin: 4px 0 0; color: var(--text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.so-cash { color: var(--red-hi); font-weight: 600; }
.so-tok { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 6px 8px; border: 1px solid var(--line2); border-radius: 10px; background: linear-gradient(90deg, rgba(var(--accent-rgb, 228, 58, 58), 0.06), transparent 60%); font-size: 12px; }
.so-tok:hover { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.45); }
.so-tok img, .so-tok i { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.so-tok i { display: grid; place-items: center; background: var(--bg4); font-style: normal; font-size: 10px; }
.so-tok span { color: var(--muted); font-size: 11px; }
.so-tok em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 12px; }
.so-c footer { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.so-trade { padding: 2px 7px; border-radius: 999px; font: 600 10px var(--mono); background: var(--bg3); color: var(--muted); }
.so-trade.buy, .so-trade.hold { background: var(--up-soft, rgba(46, 204, 113, 0.12)); color: var(--up); }
.so-trade.sell { background: var(--down-soft); color: var(--down); }
.so-like { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; height: 24px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--dim); font: 11px var(--mono); }
.so-like svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.so-like:hover { color: var(--red-hi); }
.so-like.on { color: var(--red-hi); }
.so-like.on svg { fill: currentColor; transform: scale(1.12); }
.so-empty { padding: 18px 6px; color: var(--dim); font-size: 12px; text-align: center; }
/* Panel de acceso: arte ASCII en vivo (public/js/ascii.js) + capa de tubo: barrido, viñeta y grano */
.ap-ascii { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ap-crt { position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 85% 75% at 50% 35%, transparent 52%, rgba(4, 2, 3, 0.38) 78%, rgba(4, 2, 3, 0.8) 100%); }
.ap-crt::after { content: ''; position: absolute; inset: -50%; opacity: 0.16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 0.6s steps(3) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -5%); } }
@media (prefers-reduced-motion: reduce) { .ap-crt::after { animation: none; } }

/* ---------- Tipografía de la interfaz: Geist con el trato del "hero" (títulos seminegrita, muy juntos y con degradado) ---------- */
:root { --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { font-family: var(--font); }
.land-t, .ap-q, .bt-head h1, .rw-head h1, main > h1, .page-h h1, .sub-hero h1 {
  font-family: var(--font); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
  background: none; color: var(--text);
}
.land-t { line-height: 1.08; padding-bottom: 0.06em; }
.land-s, .ap-l span, .bt-head p, .sub-hero p { letter-spacing: 0; color: var(--muted); }
.land-s { font-size: 18px; }
.land-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; letter-spacing: -0.01em !important; text-transform: none !important; color: #b8adae; font: 500 15px 'Geist', var(--font) !important; }
.land-copy .eyebrow svg.sol { width: 16px; height: 13px; }

/* ---------- Botones (estilo "primitive": borde que acompaña al color, hundimiento al presionar) ---------- */
.btn { border-radius: 0.875rem; font-weight: 500; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 100ms; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--text) 45%, transparent); }
.btn-red { border-color: color-mix(in srgb, var(--red) 88%, var(--bg)); box-shadow: none; }
.btn-red:not(:disabled):hover { background: color-mix(in srgb, var(--red) 90%, #fff); border-color: color-mix(in srgb, var(--red) 82%, #fff); }
.btn-red:not(:disabled):active { background: color-mix(in srgb, var(--red) 82%, var(--bg)); }
.btn-dark { background: color-mix(in srgb, var(--text) 4%, var(--bg2)); border-color: var(--line2); color: var(--text); }
.btn-dark:hover { background: color-mix(in srgb, var(--text) 7%, var(--bg2)); border-color: color-mix(in srgb, var(--text) 16%, transparent); }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--text) 16%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 4%, transparent); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.btn-white { background: linear-gradient(180deg, #fff, #c9c4c4); border-color: #e8e3e3; color: #0a0708; }
.btn-white:hover { background: linear-gradient(180deg, #fff, #dad5d5); }
.btn-sm { border-radius: 0.75rem; }
.btn-lg { border-radius: 0.95rem; }
/* Flecha que avanza al pasar el mouse */
.btn .arr { transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover .arr { transform: translateX(2px); } }

/* ---------- Mensajes del sistema (errores, avisos, información) ---------- */
.sys { display: flex; align-items: center; gap: 12px; margin: 16px auto; max-width: 560px; padding: 8px 8px 8px 12px; border: 1px solid; border-radius: 12px; font-size: 14px; line-height: 1.45; text-align: left; }
.sys > svg { flex-shrink: 0; width: 16px; height: 16px; align-self: flex-start; margin-top: 2px; }
.sys-t { flex: 1; min-width: 0; }
.sys.action { border-color: #27272a; color: #d4d4d8; }
.sys.error { border-color: rgba(185, 28, 28, 0.75); color: #ef4444; }
.sys.warning { border-color: transparent; background: rgba(120, 53, 15, 0.22); color: #d97706; }
.sys-cta { flex-shrink: 0; height: 32px; padding: 0 14px; border: 0; border-radius: 0.6rem; background: #e7e5e5; color: #0a0708; font: 500 13px var(--font); transition: background-color 160ms var(--ease-out), transform 100ms var(--ease-out); }
.sys-cta:hover { background: #fff; }
.sys-cta:active { transform: scale(0.97); }
.err:not(:empty):not([hidden]) { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(185, 28, 28, 0.75); border-radius: 12px; color: #ef4444; font-size: 13px; }
/* Avisos flotantes con el mismo lenguaje */
.toast { border-radius: 12px; padding: 10px 12px; }
.toast.bad { border-color: rgba(185, 28, 28, 0.75); color: #ef4444; }
.toast.bad .muted { color: color-mix(in srgb, #ef4444 75%, var(--text)); }
.toast.wait { background: color-mix(in srgb, rgba(120, 53, 15, 0.35) 60%, var(--bg2)); border-color: transparent; }
.toast.ok { border-color: #27272a; }
header.top nav a, .top nav a { white-space: nowrap; }

/* ---------- Suscripción: tarjetas "squishy" en la paleta de SOLARIS ---------- */
.pl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 22px 0 18px; }
.pl { --squish: cubic-bezier(0.68, -0.6, 0.32, 1.6); position: relative; width: 320px; height: 430px; flex-shrink: 0; overflow: hidden; border-radius: 16px; padding: 28px; color: #fff; isolation: isolate;
  background: var(--img, none) center / cover, var(--pl-bg); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.9); transition: transform 1s var(--squish), box-shadow 0.3s; }
.pl::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45)); pointer-events: none; }
.pl-explorador { --pl-bg: linear-gradient(160deg, #5a1414, #2a0a0b 70%); }
.pl-pro { --pl-bg: linear-gradient(160deg, #e43a3a, #8f1a1a 75%); }
.pl-elite { --pl-bg: linear-gradient(160deg, #ff7a45, #c2301f 55%, #3a0b0b); }
.pl.mine { box-shadow: 0 0 0 2px #fff inset, 0 20px 50px -20px rgba(0, 0, 0, 0.9); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .pl:hover { transform: scale(1.04); } }
.pl-in { position: relative; z-index: 2; }
.pl-tag { display: inline-block; padding: 2px 12px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; font-weight: 500; }
.pl-price { display: block; margin: 10px 0 8px; transform-origin: top left; transform: scale(0.86); font: 800 54px/1.05 var(--mono); letter-spacing: -0.03em; transition: transform 1s var(--squish); }
.pl-price small { font-size: 0.34em; font-weight: 600; letter-spacing: 0; opacity: 0.85; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .pl:hover .pl-price { transform: scale(1); } }
.pl-desc { margin: 0 0 10px; color: rgba(255, 255, 255, 0.92); font-size: 15px; line-height: 1.4; }
.pl-feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.pl-feat li::before { content: '— '; opacity: 0.6; }
.pl-cta { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px; height: 42px; border: 2px solid #fff; border-radius: 10px; background: #fff; color: #1a0b0c; font: 800 13px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; transition: background-color 0.2s, color 0.2s, transform 0.1s; }
.pl-cta:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.pl-cta:active { transform: scale(0.97); }
.pl-cta:disabled { opacity: 0.6; }
.pl-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
.pl-bg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; transition: transform 1s var(--squish); }
.pl-bg * { fill: rgba(0, 0, 0, 0.22); transform-box: fill-box; transform-origin: center; transition: transform 1s var(--squish) 0.2s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pl-explorador:hover .pl-bg { transform: scale(1.5); }
  .pl-explorador:hover .s1 { transform: translateY(-25px) scaleY(0.5); }
  .pl-explorador:hover .s2 { transform: translateY(-25px) scaleY(2.25); }
  .pl-pro:hover .pl-bg { transform: scale(1.05); }
  .pl-pro:hover .s1 { transform: translateY(207px) rotate(90deg) scaleX(2); }
  .pl-pro:hover .s2 { transform: translateY(-207px) rotate(90deg) scaleX(2); }
  .pl-elite:hover .pl-bg { transform: scale(1.25); }
  .pl-elite:hover .s1, .pl-elite:hover .s2, .pl-elite:hover .s3 { transform: translateY(-50px); }
  .pl-elite .s2 { transition-delay: 0.2s; } .pl-elite .s3 { transition-delay: 0.3s; } .pl-elite .s1 { transition-delay: 0.1s; }
}
.pl-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 992px; margin: 0 auto; }
.pl-opts svg.sol { width: 12px; height: 10px; vertical-align: -1px; }
#subs .sys { max-width: 992px; }
.bt-t.pro { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.45); }
.bt-pro { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--red-soft); color: var(--red-hi); font: 600 10px var(--font); font-style: normal; vertical-align: 2px; }
.bt-sub { margin: 10px 0 0; max-width: none; }
.bt-note { margin: 6px 0 0; font-size: 11px; }
#subs .bt-head { max-width: 992px; margin: 0 auto; }

/* ---------- Navegación de la cabecera (diseño del menú lateral, en horizontal) ---------- */
.nav.tn { position: relative; align-items: center; gap: 2px; }
.tn-it { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 0.625rem; color: color-mix(in srgb, var(--text) 72%, transparent); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color 150ms var(--ease-out); }
.tn-it:hover { color: var(--text); }
.tn-it::after { display: none !important; }
.tn-it:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in srgb, var(--text) 45%, transparent); }
.tn-ic { display: grid; place-items: center; width: 18px; height: 18px; color: var(--dim); transition: color 150ms; }
.tn-ic svg { width: 16px; height: 16px; }
.tn-it:hover .tn-ic { color: var(--text); }
.tn-it.on { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.tn-it.on .tn-ic { color: var(--red-hi); }
.tn-hover { position: absolute; left: 0; top: 50%; height: 34px; margin-top: -17px; border-radius: 0.625rem; background: color-mix(in srgb, var(--text) 4%, transparent); opacity: 0; pointer-events: none; transition: transform 200ms var(--ease-out), width 200ms var(--ease-out), opacity 150ms; }
.tn-hover.on { opacity: 1; }
.tn-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--line2); }
@media (prefers-reduced-motion: reduce) { .tn-hover { transition: none; } }
@media (max-width: 1760px) { .tn-ic { display: none; } .tn-it { padding: 0 10px; } .tn-sep { margin: 0 4px; } }
@media (max-width: 1400px) { .tn-it { padding: 0 8px; font-size: 13px; } }
header.top .search { min-width: 220px; }
/* Botón de idioma */
.lang-sw { display: inline-flex; height: 30px; padding: 2px; border: 1px solid var(--line2); border-radius: 0.75rem; background: var(--bg2); }
.lang-sw button { padding: 0 8px; border: 0; border-radius: 0.55rem; background: none; color: var(--dim); font: 600 11px var(--mono); transition: color 150ms, background-color 150ms; }
.lang-sw button:hover { color: var(--text); }
.lang-sw button[aria-pressed='true'] { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.col-head h2 { white-space: nowrap; }
/* Con imagen de fondo: velo oscuro para que el texto siempre se lea */
.pl[style*="--img"]::after { background: linear-gradient(180deg, rgba(6, 3, 4, 0.5), rgba(6, 3, 4, 0.62) 45%, rgba(6, 3, 4, 0.82)); }
.pl[style*="--img"] .pl-bg * { fill: rgba(255, 255, 255, 0.04); }
.pl-price, .pl-desc, .pl-feat { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
@media (max-width: 1440px) { header.top .search { min-width: 150px; } header.top { gap: 14px; } .top-right { gap: 8px; } }
/* "Pausado" flota bajo la cabecera de la columna: ya no empuja el buscador ni el filtro */
.col-head { position: relative; }
.col.hold .col-head .paused { display: block; position: absolute; z-index: 6; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); }
@media (max-width: 1440px) {
  header.top .search { min-width: 0; flex: 0 0 40px; transition: flex-basis 200ms var(--ease-out); }
  header.top .search:focus-within { flex-basis: 280px; }
  header.top .search:not(:focus-within) input::placeholder { color: transparent; }
  header.top .search:not(:focus-within) kbd { display: none; }
  header.top .search input { cursor: pointer; }
}
@media (max-width: 1440px) { header.top .brand span { display: none; } }
/* Título de la portada: blanco que se degrada a gris (todo, también "descubierto.") */
.land-t { background: none; color: var(--text); }
.land-t em { background: none !important; color: inherit !important; -webkit-text-fill-color: transparent; }
/* Fondos de los planes más opacos */
.pl[style*="--img"]::after { background: linear-gradient(180deg, rgba(6, 3, 4, 0.66), rgba(6, 3, 4, 0.76) 45%, rgba(6, 3, 4, 0.9)) !important; }
/* La navegación no cambia de tamaño mientras carga ni al hacer clic */
.tn-it { flex-shrink: 0; }
.tn-it:active { transform: none; }

/* Botón de pausa de cada columna de Pulse */
.col-pause .i-play { display: none; }
.col-pause[aria-pressed="true"] { background: var(--warn-soft); color: var(--warn); }
.col-pause[aria-pressed="true"] .i-pause { display: none; }
.col-pause[aria-pressed="true"] .i-play { display: block; }
.col-pause svg { width: 13px; height: 13px; }

/* Contenido protegido: no se selecciona ni se arrastra el texto o las imágenes de la interfaz,
   y no aparece la rayita de escribir al hacer clic fuera de un campo */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; caret-color: transparent; }
img, svg, canvas { -webkit-user-drag: none; user-drag: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; caret-color: var(--red-hi); }
.keycap-in input { caret-color: transparent; }

/* Barra inferior: SOLARIS en X */
.f-x { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.f-x svg { width: 12px; height: 12px; }
.f-x:hover { color: var(--text); }

/* Ventanas flotantes con tamaño ajustable */
.float.resizable[hidden] { display: none; }
.float.resizable { resize: both; overflow: hidden; display: flex; flex-direction: column; max-width: calc(100vw - 16px); max-height: calc(100vh - 80px); }
.float.resizable .fl-body { flex: 1; min-height: 0; overflow: auto; }
.so.resizable .fl-body { display: flex; flex-direction: column; }
.so.resizable .so-list { flex: 1; max-height: none; }

/* ---------- Tendencias: escáner ---------- */
.tr-page { display: flex; flex-direction: column; gap: 12px; }
.tr-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tr-head h1 { margin: 0; font: 600 28px/1.1 var(--font); letter-spacing: -0.03em; }
.tr-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.tr-bar { flex-wrap: wrap; gap: 10px; }
.chips { display: inline-flex; gap: 6px; }
.chips button { height: 32px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg3, #121214); color: var(--muted); font: 500 12.5px var(--font); cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.12s; }
.chips button:hover { color: var(--text); }
.chips button:active { transform: scale(0.97); }
.chips button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tr-sort select { height: 32px; padding: 0 30px 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg3, #121214) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center / 14px no-repeat; color: var(--text); font: 500 12.5px var(--font); appearance: none; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tr-fwrap { position: relative; }
#tr-filters, #radar-btn { display: inline-flex; align-items: center; gap: 6px; position: relative; }
#tr-filters svg, #radar-btn svg { width: 14px; height: 14px; }
#tr-filters .fdot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
#radar-btn[aria-pressed="true"] { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.5); color: #fff; }
.tr-fpop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 280px; padding: 14px; border: 1px solid var(--line2); border-radius: 14px; background: #0c0a0b; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
.tr-fpop form { display: grid; gap: 10px; }
.tr-frow { display: flex; justify-content: flex-end; gap: 8px; }
.tr-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.tr-wrap.docked { grid-template-columns: minmax(0, 1fr) var(--rw, 320px); }
.tr-wrap .tbl-box { min-width: 0; overflow: auto; max-height: calc(100vh - var(--head, 56px) - var(--foot, 32px) - 215px); min-height: 360px; }
.tr-wrap .tbl-box th { top: 0; }
.tr-tbl td { height: 56px; }
.tr-tbl td.rank { color: var(--dim); }
@media (max-width: 1800px) { .tr-wrap.docked .tr-tbl [data-m="tx"] { display: none; } }
.tr-tbl th.on, .tr-tbl td.on { background: rgba(var(--accent-rgb, 228, 58, 58), 0.06); }
.tr-tbl th.r, .tr-tbl td.r { text-align: right; }
.tr-tbl .meta .nm { color: var(--dim); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-act { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.tr-act .star.on { color: #f5c542; }
.tr-trade { display: inline-flex; align-items: center; gap: 5px; min-width: 76px; justify-content: center; }
.tr-trade svg { width: 12px; height: 12px; }

/* Panel Radar (acoplado o flotante) */
.radar { position: sticky; top: 12px; display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - var(--head, 56px) - var(--foot, 32px) - 215px); min-height: 360px; border: 1px solid var(--line); border-radius: 16px; background: #0b090a; overflow: hidden; }
.radar[hidden] { display: none; }
.radar-grip { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 2; }
.radar-grip::after { content: ""; position: absolute; left: 4px; top: 50%; width: 2px; height: 36px; margin-top: -18px; border-radius: 2px; background: var(--line2); opacity: 0; transition: opacity 0.15s; }
.radar:hover .radar-grip::after { opacity: 1; }
.radar.floating .radar-grip { display: none; }
.radar-h { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); }
.radar-h b { font-size: 13px; }
.radar-h svg { width: 14px; height: 14px; }
.radar.floating { position: fixed; z-index: 60; resize: both; min-width: 260px; min-height: 240px; max-width: calc(100vw - 16px); max-height: calc(100vh - 80px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.radar.floating .radar-h { cursor: grab; user-select: none; }
.radar.dragging .radar-h { cursor: grabbing; }
.radar-b { flex: 1; min-height: 0; overflow: auto; padding: 6px; display: grid; gap: 6px; align-content: start; }
.rd-sec { padding: 8px 6px; border: 1px solid rgba(255, 236, 236, 0.05); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.rd-sec header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 6px; font-size: 13px; }
.rd-all { color: var(--muted); font-size: 12px; text-decoration: none; }
.rd-all:hover { color: var(--text); }
.rd-tabs button { height: 24px; padding: 0 8px; font-size: 11px; }
.rd-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; color: var(--text); text-decoration: none; font: 500 12.5px var(--mono); }
.rd-row:hover { background: rgba(255, 255, 255, 0.04); }
.rd-row .tok-img, .rd-row img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.rd-row b { font-weight: 600; letter-spacing: 0.01em; }
.rd-row em { font-style: normal; }
.rd-row .sp { flex: 1; }
.rd-ext { display: inline-grid; color: var(--dim); }
.rd-ext svg { width: 13px; height: 13px; }
.rd-row:hover .rd-ext { color: var(--text); }
.rd-num { flex-direction: row; }
.rd-empty { margin: 4px 6px; font-size: 12px; }
body.resizing-x { cursor: col-resize; user-select: none; }
@media (max-width: 1100px) { .tr-wrap.docked { grid-template-columns: minmax(0, 1fr); } .tr-wrap.docked .radar { position: static; max-height: none; } }

/* Copy trading: wallets destacadas */
.tk-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 14px; }
.tk-sh small { font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.tk-sugg { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.tk-s { display: grid; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.015); }
.tk-s1 { display: flex; justify-content: space-between; font-size: 12.5px; }
.tk-s1 b { font-family: var(--mono); }
.tk-s2 { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.tk-s2 .sp { flex: 1; }
.tk-stoks { display: inline-flex; align-items: center; }
.tk-stoks i { display: inline-flex; margin-left: -4px; }
.tk-stoks i:first-child { margin-left: 0; }
.tk-stoks .tok-img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #0b090a; font-size: 9px; }
.tk-stoks em { margin-left: 4px; font-style: normal; font-size: 10.5px; }

/* Panel de compra: editar las cantidades de los botones */
.t-pre { align-items: center; }
.t-edit { display: grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.t-edit svg { width: 13px; height: 13px; }
.t-edit:hover { color: var(--text); }
.t-edit.on { border-color: rgba(47, 211, 138, 0.5); color: var(--up); }
.presets.editing { gap: 6px; }
.t-pin { min-width: 0; height: 34px; padding: 0 8px; border: 1px dashed rgba(var(--accent-rgb, 228, 58, 58), 0.55); border-radius: 8px; background: rgba(var(--accent-rgb, 228, 58, 58), 0.06); color: var(--text); font: 500 13px var(--mono); text-align: center; }
.t-pin:focus { outline: none; border-style: solid; border-color: var(--red-hi); }

/* ---------- Filtros de Pulse ---------- */
.pf-modal { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow: hidden; }
.pf-head { display: flex; align-items: center; gap: 6px; }
.pf-head b { font-size: 16px; }
.pf-head .icon-btn svg { width: 15px; height: 15px; }
.pf-head .modal-x { position: static; }
.pf-cols, .pf-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-cols button[data-col], .pf-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.pf-cols button[aria-selected="true"], .pf-tabs button[aria-selected="true"] { background: var(--bg4); color: var(--text); }
.pf-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 10.5px var(--mono); font-style: normal; }
.pf-box { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.015); }
.pf-words { grid-template-columns: 1fr 1fr; }
.pf-body { display: grid; gap: 10px; overflow: auto; min-height: 0; padding-right: 2px; }
.pf-bh { display: flex; align-items: center; justify-content: space-between; }
.pf-bh b { font-size: 13.5px; }
.pf-all { height: 26px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--bg4); color: var(--text); font: 600 12px var(--font); cursor: pointer; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { height: 32px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: var(--dim); font: 600 12.5px var(--font); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.12s; }
.pf-chip:active { transform: scale(0.97); }
.pf-chip.on { border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.6); background: rgba(var(--accent-rgb, 228, 58, 58), 0.12); color: #fff; }
.pf-soc .pf-chip { border-radius: 10px; }
.pf-r { display: grid; grid-template-columns: 1fr; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pf-r:last-of-type { border-bottom: 0; padding-bottom: 0; }
.pf-r > span { color: var(--muted); font-size: 12.5px; }
.pf-r small { color: var(--dim); }
.pf-r { grid-template-columns: 1fr 1fr; }
.pf-r > span { grid-column: 1 / -1; }
.pf-age { grid-template-columns: 1fr 64px 1fr 64px; }
.pf-r input, .pf-l input, .pf-r select { height: 38px; min-width: 0; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: #0b090a; color: var(--text); font: 13px var(--font); }
.pf-r input:focus, .pf-l input:focus { outline: none; border-color: rgba(var(--accent-rgb, 228, 58, 58), 0.6); }
.pf-l { display: grid; gap: 6px; }
.pf-l > span { color: var(--muted); font-size: 12.5px; }
.pf-l small { color: var(--dim); }
.pf-note { margin: 0; color: var(--dim); font-size: 11.5px; line-height: 1.45; }
.pf-foot { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) { .pf-words { grid-template-columns: 1fr; } }
.pf-tabs { flex-wrap: nowrap; overflow-x: auto; }
/* Al cambiar de pestaña no se repite la animación de entrada */
.modal-bg.filters.pf-ready, .modal-bg.filters.pf-ready .modal { animation: none !important; transition: none !important; }
.modal.pf-modal { width: min(600px, calc(100vw - 24px)); max-width: none; }
.pf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-links > .f-l { flex-basis: 100%; }
.pf-links > p { flex-basis: 100%; margin: 0; }
.pf-link.on { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid rgba(47, 211, 138, 0.4); border-radius: 0.875rem; color: var(--up); font-size: 12.5px; }

/* Shared Mesh drift backdrop. Authentication deliberately keeps its own artwork. */
body.has-solaris-background {
  isolation: isolate;
  background: radial-gradient(ellipse at 70% 35%, color-mix(in srgb, var(--red) 9%, var(--bg)) 0, color-mix(in srgb, var(--red) 3%, var(--bg)) 42%, var(--bg) 80%);
}
.solaris-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.solaris-background[hidden] { display: none; }
.has-solaris-background :is(.tbl-box, .radar, .pf-sum > div, .bt-sec, .bt-mode, .bt-card, .tk-side, .tk-feed, .rw-hero, .rw-box) {
  background: color-mix(in srgb, var(--bg2) 78%, transparent);
}

[data-theme="vacio"] :is(.btn-red, .fdot, .pf-n, .chips button[aria-selected="true"]) { color: #080808; }
[data-theme="vacio"] .buy:hover { background: var(--red-hi); }

/* Theme accents follow the selected palette; the SOLARIS image assets keep their branding. */
body:not(.gate) {
  --red-soft: rgba(var(--accent-rgb, 228, 58, 58), .1);
  --red-glow: rgba(var(--accent-rgb, 228, 58, 58), .3);
  --red-deep: color-mix(in srgb, var(--red) 45%, var(--bg));
}
body.gate { --accent-rgb: 228, 58, 58; }

body:not(.gate) :is(.top, .foot, .dock) { background: color-mix(in srgb, var(--bg2) 94%, transparent); }
body:not(.gate) :is(.instant, .tr-fpop, .radar, .pf-r input, .pf-l input, .pf-r select) { background-color: var(--bg2); }
body:not(.gate) :is(.btn-red, .fdot, .pf-n, .chips button[aria-selected="true"]) { color: var(--accent-fg, #fff); }
body:not(.gate) .buy { color: var(--buy-fg, var(--accent-fg, #fff)); }
body:not(.gate) .buy:hover { background: var(--buy-bg, var(--red-hi)); }
body:not(.gate) :is(.search input, .col-search input):focus { border-color: var(--red); }
body:not(.gate) .tk-av { background: linear-gradient(135deg, var(--red-deep), var(--red)); color: var(--accent-fg, #fff); }
body:not(.gate) .pl-pro { --pl-bg: linear-gradient(160deg, var(--red), var(--red-deep) 75%); }
body:not(.gate) .pn-card.plain { background: radial-gradient(120% 90% at 100% 0%, var(--red-soft), transparent 55%), var(--bg); }
html { scrollbar-color: var(--line2) transparent; }
body:not(.gate) :is(.qb-amt:focus-within, .st-body input:focus, .w-list button:hover, .rw-kpi.main, .rw-q.ready) { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
body:not(.gate) #f-wallet .fw:hover { border-color: var(--line2); }
body:not(.gate) .tk-stoks .tok-img { border-color: var(--bg2); }
body:not(.gate) :is(.btn-white, .sys-cta) { background: var(--red); border-color: var(--red); color: var(--accent-fg, #fff); }
body:not(.gate) .pl[style*="--img"]::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 66%, transparent), color-mix(in srgb, var(--bg) 76%, transparent) 45%, color-mix(in srgb, var(--bg) 90%, transparent)) !important; }
body:not(.gate) .sol { color: var(--red); }

/* Shiny-button treatment adapted to native controls and the active theme. */
@property --gleam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gleam-width { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
body :is(.btn.btn-red, .buy:not(.off), .pl-cta) {
  --gleam-accent: var(--red);
  --gleam-surface: color-mix(in srgb, var(--bg) 86%, var(--gleam-accent));
  --gleam-edge: color-mix(in srgb, var(--gleam-accent) 55%, var(--line2));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  color: var(--text);
  background: linear-gradient(var(--gleam-surface), var(--gleam-surface)) padding-box,
    conic-gradient(from var(--gleam-angle), var(--gleam-edge), var(--gleam-accent) var(--gleam-width), var(--red-hi) calc(var(--gleam-width) * 2), var(--gleam-accent) calc(var(--gleam-width) * 3), var(--gleam-edge) calc(var(--gleam-width) * 4)) border-box;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gleam-accent) 25%, transparent);
  animation: solaris-gleam 4s linear infinite paused;
  transition: --gleam-width 300ms ease, box-shadow 180ms ease, transform 150ms ease, opacity 180ms ease;
}
body :is(.btn.btn-red, .buy:not(.off), .pl-cta)::before,
body :is(.btn.btn-red, .buy:not(.off), .pl-cta)::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
body :is(.btn.btn-red, .buy:not(.off), .pl-cta)::before {
  background: radial-gradient(circle at 2px 2px, var(--text) .5px, transparent .6px) 0 0 / 4px 4px;
  mask-image: linear-gradient(120deg, transparent 20%, #000 60%, transparent);
  opacity: .08;
}
body :is(.btn.btn-red, .buy:not(.off), .pl-cta)::after {
  background: linear-gradient(115deg, transparent 20%, color-mix(in srgb, var(--gleam-accent) 28%, transparent) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 700ms ease;
}
body :is(.btn.btn-red, .buy:not(.off), .pl-cta):not(:disabled):is(:hover, :focus-visible) {
  --gleam-width: 16%;
  background: linear-gradient(var(--gleam-surface), var(--gleam-surface)) padding-box,
    conic-gradient(from var(--gleam-angle), var(--gleam-edge), var(--gleam-accent) var(--gleam-width), var(--red-hi) calc(var(--gleam-width) * 2), var(--gleam-accent) calc(var(--gleam-width) * 3), var(--gleam-edge) calc(var(--gleam-width) * 4)) border-box;
  border-color: transparent;
  color: var(--text);
  animation-play-state: running;
  box-shadow: inset 0 -8px 18px -12px var(--gleam-accent);
}
body :is(.btn.btn-red, .buy:not(.off), .pl-cta):not(:disabled):is(:hover, :focus-visible)::after { transform: translateX(100%); }
body :is(.btn.btn-red, .buy:not(.off), .pl-cta):focus-visible { outline: 2px solid var(--red-hi); outline-offset: 4px; }
body :is(.btn.btn-red, .buy:not(.off), .pl-cta):disabled { animation: none; opacity: .45; cursor: not-allowed; }
body .pl-cta { position: absolute; font: 600 14px var(--font); letter-spacing: 0; text-transform: none; }
.gate .land-cta .btn-red { animation-play-state: running; border-radius: 999px; }
.gate .btn-secondary { background: #ededed; color: #111; border: 1px solid #ededed; border-radius: 999px; box-shadow: inset 0 1px 0 #fff; }
.gate .btn-secondary:hover { background: #d5d5d5; border-color: #d5d5d5; }
.gate .btn-secondary:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 4px; }
.land-t { font-size: clamp(40px, 4.5vw, 70px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; max-width: 730px; text-wrap: balance; }
.ap-q { font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.a-t { font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.land-s, .a-s, .ap-l span { line-height: 1.65; letter-spacing: 0; }
.pl-price { font-weight: 600; font-family: var(--font); }
@keyframes solaris-gleam { to { --gleam-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  body :is(.btn.btn-red, .buy:not(.off), .pl-cta),
  body :is(.btn.btn-red, .buy:not(.off), .pl-cta)::after { animation: none; transition: none; }
  body :is(.btn.btn-red, .buy:not(.off), .pl-cta)::after { display: none; }
}
body.gate { min-width: 0; }
@media (max-width: 600px) {
  .land { min-height: 740px; }
  .land-top { padding: 20px 22px; flex-wrap: wrap; gap: 16px; }
  .land-nav { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .land-copy { max-width: 100%; padding: 140px 22px 100px; gap: 20px; }
  .land-t { font-size: clamp(34px, 9vw, 46px); }
  .land-s { font-size: 16px; }
  .land-cta { flex-wrap: wrap; }
  .land-cta .btn { min-height: 44px; }
  .auth { padding: 84px 24px 32px; }
  .ap-home { left: 24px; }
}
body .btn.btn-red:not(.btn-sm):not(:disabled), body .pl-cta:not(:disabled) { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  body .btn.btn-red:not(.btn-sm):not(:disabled), body .pl-cta:not(:disabled) { animation: none; }
}

.gate .btn-login { background: #ededed; color: #111; border: 1px solid #ededed; box-shadow: inset 0 1px 0 #fff; }
.gate .btn-login:not(:disabled):hover { background: #d5d5d5; border-color: #d5d5d5; }
.gate .btn-login:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 4px; }
.sol {
  --sol-light: color-mix(in srgb, var(--red) 45%, #fff);
  --sol-mid: var(--red);
  --sol-deep: color-mix(in srgb, var(--red) 65%, #35194b);
}
.sol stop:first-child { stop-color: var(--sol-light); }
.sol stop:nth-child(2) { stop-color: var(--sol-mid); }
.sol stop:last-child { stop-color: var(--sol-deep); }
.top .sol, .land-top .sol {
  --sol-light: #ff8974;
  --sol-mid: #ef3f3f;
  --sol-deep: #99192b;
}

/* Keep controls accessible inside all three Pulse columns. */
.col-head { gap: 6px; padding-inline: 10px; flex-wrap: wrap; height: auto; min-height: 46px; padding-block: 8px; }
.col-head .col-search { min-width: 30px; }
.col-head > button, .col-head > .seg { flex-shrink: 0; }
.gate .btn-login { background: rgba(255,255,255,.035); color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.gate .btn-login:not(:disabled):hover { background: rgba(255,255,255,.08); border-color: var(--muted); }
body .pl .pl-cta { position: absolute; left: 16px; right: 16px; bottom: 16px; width: calc(100% - 32px); }
#follow-alerts { position: fixed; z-index: 11000; right: 20px; top: 80px; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.follow-alert { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--red); border-radius: 12px; background: var(--bg2); color: var(--text); box-shadow: 0 8px 30px #0008; text-decoration: none; }
.follow-alert span { color: var(--muted); font-size: 12px; }
.follow-alert:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.follow-alert { position: relative; padding: 0; }
.follow-alert > a { display: grid; gap: 6px; padding: 16px 44px 16px 16px; color: inherit; text-decoration: none; }
.follow-alert-close { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.follow-alert-close:hover,.follow-alert-close:focus-visible { color: var(--text); background: var(--red-soft); }
#notifications-mute[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.dk-o .tok-img { width: 100%; height: 100%; margin: 0; border-radius: inherit; font-size: 9px; }
