/* HashOps — real-time feed (live.js): price flashes, "Live" markers and the liquidation line. */
.lv-up { animation: lv-up .9s ease-out; }
.lv-dn { animation: lv-dn .9s ease-out; }
@keyframes lv-up { 0% { color: var(--green); text-shadow: 0 0 14px rgba(105,230,166,.45); } }
@keyframes lv-dn { 0% { color: var(--red); text-shadow: 0 0 14px rgba(255,107,107,.45); } }
@keyframes lv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.term .top-live.streaming i { animation: lv-pulse 1.6s ease-in-out infinite; }
.term .hchip.live-chip i { animation: lv-pulse 1.6s ease-in-out infinite; }

.term .liq-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-2, rgba(255,255,255,.055)); border-radius: 14px; background: rgba(255,255,255,.02); font: 500 11px var(--mono); color: var(--muted); min-width: 0; }
.term .liq-line[hidden] { display: none; }
.term .liq-line .lq-t { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: auto; }
.term .liq-line .lq-v { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.term .liq-line .lq-v > span { white-space: nowrap; }
.term .liq-line b { font-weight: 600; }

.mk-live { display: inline-flex; align-items: center; gap: 7px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.mk-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: lv-pulse 1.6s ease-in-out infinite; }
.mk-kv .lv-liq-t, .mk-kv .lv-liq { grid-column: 1 / -1; }
.mk-kv .lv-liq { display: flex; flex-wrap: wrap; gap: 2px 10px; text-align: left; margin-top: -2px; }
.mk-kv .lv-liq > span { white-space: nowrap; }

/* exchange comparison (Mercados → Gráfico) */
.xx-table { display: grid; }
.xx-tr { display: grid; grid-template-columns: minmax(70px, .8fr) repeat(3, minmax(90px, 1fr)) minmax(110px, 1fr) minmax(140px, 1.4fr) minmax(90px, .9fr); gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid rgba(255,255,255,.055); font: 500 13px var(--mono, monospace); color: #dfe4e9; }
.xx-tr > span { min-width: 0; overflow-wrap: anywhere; }
.xx-th { border-top: 0; padding-top: 0; color: #7f8791; font: 500 9.5px var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.xx-coin b { color: #fff; font-weight: 600; }
.xx-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07); }
.xx-bar i { display: block; height: 100%; }
.xx-share small { display: none; margin-top: 6px; color: #8f97a1; font-size: 10.5px; }
.x0 { background: var(--cyan, #4ee1ff); } .x1 { background: var(--violet, #7c6cf5); } .x2 { background: var(--green, #69e6a6); }
.xx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: #8f97a1; font: 500 10px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
.xx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.xx-legend i { width: 9px; height: 9px; border-radius: 3px; }
.xx-lock .blur { max-height: 260px; overflow: hidden; }
@media (max-width: 1200px) {
  .xx-share small { display: block; }   /* the split in words, not only in colour */
}
@media (max-width: 900px) {
  /* rows become cards (tablets and phones) */
  .xx-th { display: none; }
  .xx-tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 14px 4px; }
  .xx-tr > span[data-l]::before { content: attr(data-l); display: block; color: #7f8791; font: 500 9px var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; }
  .xx-coin, .xx-share { grid-column: 1 / -1; }
  .xx-share { order: 9; }            /* open interest and price gap share a row; the split bar closes the card */
  .xx-share small { display: block; }
}
@media (max-width: 480px) {
  .xx-tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* monitors checked live (Vigilancia → Monitores) */
.mg-live { flex: none; font-size: 9px; }
.mg-live-note { margin-top: 10px; line-height: 1.55; }
.mg-live-note .mk-live { margin-right: 6px; }

@media (prefers-reduced-motion: reduce) {
  .lv-up, .lv-dn, .term .top-live.streaming i, .term .hchip.live-chip i, .mk-live i { animation: none !important; }
}
/* USDT / USDC switch (topbar and account menu): same look as the language switch */
.q-btn { min-width: 38px; padding: 7px 8px; border: 0; border-radius: 6px; color: #69727d; background: transparent; cursor: pointer; font: 600 9px/1 var(--mono); letter-spacing: .06em; transition: color .25s, background .25s; }
.q-btn:hover { color: #dbe1e6; }
.q-btn.active { color: #071014; background: #dffbff; }
.q-btn:focus-visible { outline: 2px solid var(--cyan, #4ee1ff); outline-offset: 2px; }
.quote-switch[hidden] { display: none !important; }
.term .me-menu .q-btn { min-width: 50px; min-height: 40px; }
.mk-q { margin-left: 3px; font-size: 9px; color: #69727d; letter-spacing: .04em; }
@media (max-width: 1100px) { .term .topbar > .quote-switch { display: none !important; } }
@media (max-width: 1100px) { .term .me-menu .quote-switch.me-lang { display: inline-flex; } }
.mk-quote-note { margin: -6px 0 16px; line-height: 1.55; }
.mk-card-head { flex-wrap: wrap; row-gap: 5px; }
.mk-card-head .mk-sym { white-space: nowrap; }
/* liquidation map (market.js, liqmap.py) */
.lq-svg { display: block; max-width: 100%; height: auto; margin-top: 6px; }
.lq-l { fill: rgba(255,107,107,.75); }
.lq-s { fill: rgba(105,230,166,.75); }
.lq-axis { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.lq-now { stroke: #4ee1ff; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.lq-t, .lq-tn, .lq-h { font: 500 10px var(--mono, monospace); fill: #9aa4af; }
.lq-nb { fill: rgba(10,14,20,.85); }
.lq-tn { fill: #4ee1ff; }
.lq-hl { fill: #ff8f8f; } .lq-hs { fill: #7fe6b0; }
.lq-sum { list-style: none; margin: 12px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #c6ccd3; }
.lq-lock .blur { min-height: 360px; }

#liq-tools .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* cross sentiment index (sentiment.py) */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .st-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.st-card { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.02); min-width: 0; }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.st-head b { font: 700 15px var(--display, inherit); }
.st-sel { font-size: 11px; color: #4ee1ff; }
.st-score { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; }
.st-n { font: 700 30px var(--display, inherit); line-height: 1; }
.st-l { font-size: 13px; }
.st-fear .st-n, .st-fear .st-l { color: #ff8f8f; }
.st-greed .st-n, .st-greed .st-l { color: #7fe6b0; }
.st-neu .st-n, .st-neu .st-l { color: #c6ccd3; }
.st-gauge { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #ff6b6b, #8a929c 50%, #69e6a6); }
.st-gauge i { position: absolute; top: -4px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.st-parts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.st-parts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k v" "b b"; align-items: baseline; gap: 3px 6px; font-size: 12px; color: #c6ccd3; }
.st-pk { grid-area: k; min-width: 0; }
.st-pr { margin-left: 6px; font: 500 10.5px var(--mono, monospace); color: #9aa4af; white-space: nowrap; }
.st-pb { grid-area: b; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.st-pb i { display: block; height: 100%; background: #4ee1ff; }
.st-pv { grid-area: v; text-align: right; font: 600 12px var(--mono, monospace); }
.st-hist { margin-top: 10px; font-size: 11px; color: #9aa4af; }
.st-spark { display: block; width: 100%; height: 34px; margin-top: 4px; }
.st-spark path { fill: none; stroke: #4ee1ff; stroke-width: 1.5; }
.st-spark .st-mid { stroke: rgba(255,255,255,.15); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.st-lock { margin-top: 12px; }
.st-lock .blur { min-height: 260px; max-height: 300px; overflow: hidden; }
.st-how { margin-top: 12px; font-size: 12.5px; color: #c6ccd3; }
.st-how summary { cursor: pointer; color: #4ee1ff; }
.st-how dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.st-how dt { font-weight: 600; }
.st-how dd { margin: 0; color: #9aa4af; }
@media (max-width: 600px) { .st-how dl { grid-template-columns: 1fr; } .st-how dd { margin-bottom: 6px; } }
#market-sent .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Deribit options (options.py) */
.op-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (min-width: 1100px) { .op-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.op-stat { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.02); min-width: 0; }
.op-stat > span { display: block; font-size: 12px; color: #9aa4af; }
.op-stat b { display: block; font: 700 24px var(--display, inherit); margin-top: 2px; }
.op-stat small { display: block; font-size: 12px; margin-top: 2px; }
.op-stat p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: #9aa4af; }
.op-line { margin-top: 14px; }
.op-cap { font-size: 12px; color: #9aa4af; }
.op-line svg { display: block; width: 100%; height: 120px; margin-top: 4px; }
.op-line path { fill: none; stroke: #4ee1ff; stroke-width: 1.5; }
.op-h { font-size: 15px; margin: 18px 0 8px; }
.op-table td { vertical-align: top; }
.op-table tr.op-on td { background: rgba(78,225,255,.07); }
.op-exp { background: none; border: 0; padding: 0; color: #4ee1ff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.op-tag { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: rgba(78,225,255,.12); color: #4ee1ff; }
.op-c { fill: rgba(105,230,166,.75); }
.op-p { fill: rgba(255,107,107,.75); }
.op-mp { stroke: #ffc861; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.op-mp-t { font: 500 10px var(--mono, monospace); fill: #ffc861; }
.lq-now-t { font: 500 10px var(--mono, monospace); fill: #4ee1ff; }
.op-lock { margin-top: 12px; }
.op-lock .blur { min-height: 220px; max-height: 280px; overflow: hidden; }
.op-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-bottom: 10px; font-size: 12px; }

/* money by narrative (narratives.py) */
.nr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nr-tile { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.02); min-width: 0; }
.nr-tile.nr-in { border-color: rgba(105,230,166,.35); background: linear-gradient(180deg, rgba(105,230,166,.07), rgba(255,255,255,.01)); }
.nr-tile.nr-out { border-color: rgba(255,107,107,.3); background: linear-gradient(180deg, rgba(255,107,107,.06), rgba(255,255,255,.01)); }
.nr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nr-head b { font: 700 14px var(--display, inherit); min-width: 0; }
.nr-tag { font-size: 11px; white-space: nowrap; color: #9aa4af; }
.nr-in .nr-tag { color: #7fe6b0; } .nr-out .nr-tag { color: #ff8f8f; }
.nr-main { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.nr-n { font: 700 24px var(--display, inherit); }
.nr-per, .nr-rel { font-size: 12px; color: #9aa4af; }
.nr-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin: 8px 0; }
.nr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6b6b, #8a929c 50%, #69e6a6); background-size: 220px 100%; }
.nr-kv { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0; font-size: 12px; }
.nr-kv dt { color: #9aa4af; } .nr-kv dd { margin: 0; text-align: right; font-family: var(--mono, monospace); }
.nr-movers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.nr-chip { font: 500 11px var(--mono, monospace); padding: 2px 6px; border-radius: 7px; background: rgba(255,255,255,.05); }
.nr-badge { font: 600 10px var(--mono, monospace); letter-spacing: .12em; padding: 3px 8px; border-radius: 8px; border: 1px solid rgba(244,184,96,.4); color: var(--amber, #f4b860); align-self: flex-start; }
.nr-lock { margin-top: 4px; } .nr-lock .blur { min-height: 260px; max-height: 300px; overflow: hidden; }
#market-narr .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* expert mode entry (Mercado header) */
.xp-entry { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; text-decoration: none; color: var(--text, #eef1f4);
  border: 1px solid rgba(78,225,255,.35); background: linear-gradient(135deg, rgba(78,225,255,.10), rgba(155,123,255,.08)); box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 18px 50px rgba(0,0,0,.25); align-self: center; }
.xp-entry:hover { border-color: rgba(78,225,255,.7); }
.xp-entry-dot { width: 9px; height: 9px; border-radius: 50%; background: #69e6a6; box-shadow: 0 0 10px #69e6a6; flex: none; }
.xp-entry-t { display: flex; flex-direction: column; line-height: 1.2; }
.xp-entry-t b { font: 600 14px var(--sans, sans-serif); }
.xp-entry-t small { font: 400 11.5px var(--sans, sans-serif); color: var(--muted, #9aa3ad); }
.xp-entry .nr-badge { align-self: center; }
.xp-entry.locked { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.02); }
.xp-entry.locked .xp-entry-dot { background: #6b7280; box-shadow: none; }
@media (max-width: 760px) { .xp-entry { width: 100%; margin-top: 10px; } }
.xp-entry[hidden] { display: none; }
.tg-ctrl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Settings: the on-call analyst's latest messages */
.an-recent { margin: 2px 0 12px; }
.an-recent h4 { margin: 0 0 8px; color: #8b939c; font: 500 10px var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.an-m { border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.02); margin: 0 0 6px; }
.an-m summary { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; cursor: pointer; list-style: none; min-width: 0; }
.an-m summary::-webkit-details-marker { display: none; }
.an-m summary b { font-weight: 500; color: #e4e8ec; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.an-m time { color: #7f8791; font: 500 10.5px var(--mono, monospace); white-space: nowrap; }
.an-k { color: #4ee1ff; font: 500 9.5px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.an-m p { margin: 0; padding: 0 12px 11px; color: #b6bcc4; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .an-m summary { flex-wrap: wrap; } .an-m summary b { flex-basis: 100%; white-space: normal; } }
