/* ============================================================
   MEME OMDB — Tema "Neo-Brutal": papel crema, tinta negra,
   bordes gruesos, sombras sólidas y bloques de color plano.
   ============================================================ */

:root {
  --bg: #fff3dc;
  --paper: #fffdf6;
  --panel: #fffdf6;
  --panel-2: #fff8e8;
  --ink: #141414;
  --text: #141414;
  --muted: #5f5548;
  --line: #141414;
  --line-2: rgba(20, 20, 20, .18);

  --yellow: #ffd23f;
  --blue: #2f5bff;
  --pink: #ff5c8a;
  --mint: #3ee6a8;
  --orange: #ff8a3d;
  --lilac: #b89cff;
  --sky: #8fd3ff;

  --green: #12b76a;      /* subida / comprar */
  --green-2: #0c9a58;
  --red: #ef3e36;        /* bajada / vender */
  --amber: #b86e00;
  --accent: #ffd23f;
  --accent-2: #2f5bff;
  --violet: #7c4dff;

  --bw: 2.5px;
  --radius: 12px;
  --sh: 4px 4px 0 var(--ink);
  --sh-sm: 2px 2px 0 var(--ink);
  --sh-lg: 7px 7px 0 var(--ink);

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(20, 20, 20, .14) 1.1px, transparent 1.3px);
  background-size: 22px 22px;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: var(--blue); }
code { font-family: var(--mono); }

#fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9998; pointer-events: none; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--bg); border-radius: 10px; }

/* ============================================================
   ESTRUCTURA: barra lateral + contenido
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }

.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 100;
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 16px 18px;
  background: var(--yellow);
  border-right: 3px solid var(--ink);
  overflow-y: auto; overflow-x: hidden;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); cursor: pointer; }
.logo-img {
  width: 46px; height: 46px; flex: none; object-fit: contain; display: block;
  background: var(--ink); border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: var(--sh-sm);
  padding: 2px;
}
.brand-word {
  display: flex; flex-direction: column; font-family: var(--display); font-size: 21px;
  line-height: .95; letter-spacing: -.5px; text-transform: uppercase; color: var(--ink);
}
.brand-word em {
  font-style: normal; display: inline-block; width: fit-content; margin-top: 3px;
  background: var(--ink); color: var(--yellow); padding: 1px 6px 2px; transform: rotate(-2deg);
}
.side-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 3px;
  color: var(--ink); opacity: .6; margin-top: 8px; padding-left: 2px;
}

.nav { display: flex; flex-direction: column; gap: 9px; }
.nav-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--paper); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: .2px;
  padding: 10px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, background .12s;
}
.nav-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.nav-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.nav-btn.active { background: var(--ink); color: var(--yellow); }
.nav-ico { width: 18px; height: 18px; flex: none; }
.nav-caret { width: 15px; height: 15px; flex: none; margin-left: auto; transition: transform .2s; }
.nav-btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-drop { display: flex; flex-direction: column; position: relative; }
/* submenú de Staking: en la barra lateral se despliega en línea (ignora la posición fija del JS) */
.nav-menu {
  position: static !important; display: none; flex-direction: column; gap: 6px;
  margin: 9px 0 2px 12px; padding: 2px 0 2px 12px;
  border-left: var(--bw) dashed var(--ink);
}
.nav-menu.open { display: flex; animation: popIn .14s ease-out; }
.nav-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; white-space: nowrap;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; padding: 8px 10px; cursor: pointer;
  transition: background .12s, transform .08s;
}
.nav-menu-item:hover { background: var(--pink); transform: translateX(2px); }
.nav-menu-item.active { background: var(--pink); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.side-foot, .topbar-right { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: var(--bw) solid var(--ink); }
.side-row { display: flex; gap: 8px; align-items: stretch; }
.wallet-line { display: flex; gap: 8px; align-items: stretch; }
.wallet-line:has(.wallet-chip.hidden):has(#btn-disconnect.hidden) { display: none; }

.lang-switch {
  display: flex; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 9px; overflow: hidden;
}
.lang-btn {
  background: none; border: none; color: var(--ink); font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  padding: 6px 9px; cursor: pointer; white-space: nowrap;
}
.lang-btn + .lang-btn { border-left: 2px solid var(--ink); }
.lang-btn:hover { background: var(--panel-2); }
.lang-btn.active { background: var(--ink); color: var(--yellow); }

.net-select {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 9px; padding: 6px 10px;
}
.net-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); flex: none; }
.net-caret { font-size: 10px; }
.net-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 200px; display: none; z-index: 30;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px; padding: 5px; box-shadow: var(--sh);
}
.net-select.open .net-menu { display: block; }
.net-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none; color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 7px; cursor: pointer;
}
.net-menu button:hover { background: var(--yellow); }

#btn-connect { width: 100%; }
.wallet-chip {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--mint); border: var(--bw) solid var(--ink); border-radius: 10px; padding: 8px 10px;
  box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s;
}
.wallet-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.wallet-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--ink); flex: none; }
#btn-disconnect { padding: 0 12px; font-size: 15px; }

/* ============================================================
   TICKER (cinta de precios)
   ============================================================ */
.ticker {
  display: flex; align-items: stretch; background: var(--ink); color: var(--paper);
  border-bottom: 3px solid var(--ink); overflow: hidden; position: sticky; top: 0; z-index: 90;
}
.ticker-tag {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: var(--pink); color: var(--ink); font-family: var(--display); font-size: 13px; letter-spacing: 1px;
  border-right: 3px solid var(--ink);
}
.ticker-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; padding: 8px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick-item {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; padding: 0 22px; color: #d9d2c4;
  border-right: 1px dashed rgba(255, 253, 246, .25);
}
.tick-logo { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; flex: none; border: 1.5px solid var(--paper); }
.tick-item b { color: var(--yellow); }
.tick-item .up { color: var(--mint); }
.tick-item .down { color: #ff8b86; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: var(--ink); background: var(--paper);
  border: var(--bw) solid var(--ink); border-radius: 10px; padding: 10px 18px; cursor: pointer;
  box-shadow: var(--sh); transition: transform .08s ease, box-shadow .08s ease, filter .12s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--sh-sm); filter: grayscale(.6); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { background: var(--paper); }
.btn-glass { background: var(--lilac); }
.btn-warn { background: var(--orange); }
.btn-danger { background: var(--red); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; box-shadow: var(--sh-sm); }
.btn-sm:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-block { width: 100%; }
.btn-ico { width: 17px; height: 17px; flex: none; }

/* botón de operar: VENDER rojo, COMPRAR verde */
#btn-trade { background: var(--red); color: #fff; }
#btn-trade.is-buy { background: var(--green); color: var(--ink); }

.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 7px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 2px 8px; cursor: pointer;
  text-decoration: none; box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s, background .12s;
}
.mini-btn:hover { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.mini-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.mini-btn.mm-btn { background: var(--orange); }

/* ============================================================
   CAMPOS
   ============================================================ */
.input {
  width: 100%; background: #fff; color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 10px; padding: 10px 12px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; outline: none;
  transition: box-shadow .1s, background .1s;
}
.input::placeholder { color: #9b9080; }
.input:focus { background: #fffbe6; box-shadow: 4px 4px 0 var(--blue); }
.input.mono, .mono { font-family: var(--mono); }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
textarea.input { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .6px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 26px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }

/* ============================================================
   CONTENEDOR / PANELES
   ============================================================ */
main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px 28px 64px; flex: 1; }
.view.hidden { display: none; }
.hidden { display: none !important; }

.panel {
  position: relative; background: var(--paper);
  border: var(--bw) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--sh); padding: 20px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: -20px -20px 16px; padding: 12px 20px;
  background: var(--panel-2); border-bottom: var(--bw) solid var(--ink);
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
}
.panel-head h2 { font-family: var(--display); font-weight: 400; font-size: 16px; text-transform: uppercase; letter-spacing: .3px; }
.muted { color: var(--muted); font-size: 12.5px; }
.empty-state {
  grid-column: 1 / -1; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 13px;
  padding: 36px 12px; border: 2px dashed var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, .5);
}

/* iconos */
.ui-ico { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: none; vertical-align: -2px; color: var(--ink); }
.ui-ico svg { width: 100%; height: 100%; }
.ui-ico.dot-green { width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); }
.ui-ico.dot-red { width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); }
.title-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; padding: 8px; vertical-align: -8px; margin-right: 8px;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm);
  color: var(--ink);
}
.title-ico svg { width: 100%; height: 100%; }

/* texto destacado: subrayado tipo rotulador */
.grad-text, .grad-text-2 {
  color: var(--ink); padding: 0 .18em;
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.grad-text-2 { background: linear-gradient(transparent 55%, var(--pink) 55%, var(--pink) 92%, transparent 92%); }

/* chips / estados */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 6px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
}
.st-trading { background: var(--mint) !important; color: var(--ink) !important; }
.st-listed { background: var(--sky) !important; color: var(--ink) !important; }
.st-ready { background: var(--orange) !important; color: var(--ink) !important; }
.st-paused { background: var(--red) !important; color: #fff !important; }
.up { color: var(--green-2); }
.down { color: var(--red); }

/* ============================================================
   EXPLORAR · HERO
   ============================================================ */
.hero { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 18px; }
.hero-copy {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg);
  padding: 36px 36px 34px; min-width: 0;
}
.hero-kicker {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; background: var(--pink); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 6px; padding: 4px 10px; box-shadow: var(--sh-sm);
  transform: rotate(-1.5deg);
}
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--ink);
  font-size: clamp(34px, 5vw, 66px); line-height: .98; letter-spacing: -1.5px; margin: 20px 0 14px;
}
.hero-sub { font-size: 17px; color: #3a342c; max-width: 600px; margin-bottom: 26px; font-weight: 500; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  position: relative; overflow: hidden; min-height: 300px; display: grid; place-items: center;
  background-color: #000;
  background-image: radial-gradient(circle at 60% 50%, rgba(124, 77, 255, .35), transparent 65%);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg);
}
.hero-banner { width: 100%; height: 100%; max-height: 380px; object-fit: contain; display: block; padding: 34px 10px 40px; }
.hero-sticker {
  width: min(250px, 70%); aspect-ratio: 1; display: grid; place-items: center;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--sh-lg);
  transform: rotate(-6deg); padding: 18px; animation: bob 4s ease-in-out infinite;
}
.hero-sticker img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes bob { 50% { transform: rotate(-3deg) translateY(-8px); } }
.hero-stamp {
  position: absolute; top: 16px; right: 16px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-size: 13px; line-height: 1.05; color: var(--ink);
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: var(--sh-sm);
  transform: rotate(12deg);
}
.hero-tape {
  position: absolute; bottom: 20px; left: -12px; padding: 5px 22px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--ink);
  background: var(--mint); border: var(--bw) solid var(--ink); transform: rotate(-4deg);
}
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat {
  display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px 18px;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--sh); background: var(--mint);
  transition: transform .1s, box-shadow .1s;
}
.stat:nth-child(2) { background: var(--orange); }
.stat:nth-child(3) { background: var(--lilac); }
.stat:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.4vw, 30px); color: var(--ink); overflow-wrap: anywhere; line-height: 1.1; }
.stat span { font-family: var(--mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); }

/* referidos */
.ref-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--pink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--sh);
}
.ref-hero[hidden] { display: none; }
.ref-hero-copy { display: flex; flex-direction: column; gap: 3px; min-width: 220px; flex: 1; }
.ref-hero-copy b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.ref-hero-copy span { font-size: 13px; font-weight: 500; }
.ref-hero .btn { white-space: nowrap; flex: none; background: var(--paper); color: var(--ink); }
.ref-box {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; font-size: 12px; line-height: 1.45; color: var(--ink);
  background: var(--panel-2); border: 2px dashed var(--ink); border-radius: 9px;
}
.ref-box[hidden] { display: none; }
.ref-box .mini-btn { flex: none; }

/* ============================================================
   EXPLORAR · MERCADO
   ============================================================ */
.explore-panel { margin-top: 0; }
.explore-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.explore-controls .input { width: auto; min-width: 210px; padding: 8px 12px; }
.explore-controls .select { padding-right: 34px; }
.explore-controls .btn { padding: 7px 13px; font-size: 16px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.cat-chip {
  cursor: pointer; font-size: 12px; padding: 6px 14px; border-radius: 999px;
  background: var(--paper); box-shadow: var(--sh-sm); transition: transform .08s, background .12s;
}
.cat-chip:hover { background: var(--yellow); transform: translateY(-1px); }
.cat-chip.active { background: var(--ink); color: var(--yellow); }
.pools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.pool-card {
  position: relative; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 14px; padding: 16px;
  box-shadow: var(--sh); transition: transform .1s ease, box-shadow .1s ease;
}
.pool-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.pool-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pool-card:nth-child(4n+1) .pool-top:not(.over-cover) .pool-avatar { background: var(--yellow); }
.pool-card:nth-child(4n+2) .pool-top:not(.over-cover) .pool-avatar { background: var(--pink); }
.pool-card:nth-child(4n+3) .pool-top:not(.over-cover) .pool-avatar { background: var(--mint); }
.pool-card:nth-child(4n+4) .pool-top:not(.over-cover) .pool-avatar { background: var(--lilac); }
.pool-card.has-banner { padding-top: 16px; }
.pool-cover {
  height: 96px; margin: -16px -16px 0; overflow: hidden; position: relative;
  border-bottom: var(--bw) solid var(--ink); background: var(--panel-2);
}
.pool-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pool-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pool-top.over-cover { margin-top: -26px; position: relative; z-index: 1; }
.pool-id { min-width: 0; flex: 1 1 calc(100% - 62px); }
.pool-top .pool-state { margin-left: 0; }
.pool-top .pool-linksmini { margin-left: auto; }
.pool-top.over-cover .pool-id { padding-top: 26px; }
.pool-avatar {
  width: 50px; height: 50px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden;
  font-family: var(--display); font-size: 22px; color: var(--ink);
  background: var(--yellow); border: var(--bw) solid var(--ink); box-shadow: var(--sh-sm);
}
.pool-avatar img, .token-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.pool-name { font-family: var(--display); font-size: 16px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-symbol { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-state {
  margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; border: 2px solid var(--ink); background: var(--paper);
}
.pool-cat {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; cursor: default;
  background: var(--paper); border: 2px solid var(--ink);
}
.pool-cat svg { width: 14px; height: 14px; display: block; }
.pool-badge-trend {
  font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 7px; border-radius: 6px;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink); transform: rotate(-3deg);
}
.pool-price { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pool-curve {
  width: 100%; height: 40px; display: block; margin: 10px 0 8px; padding: 3px 0;
  background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(20, 20, 20, .06) 19px 20px);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.pool-cap { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pool-cap b { color: var(--ink); }
.pool-progress, .progressbar {
  height: 16px; border-radius: 999px; overflow: hidden; margin: 12px 0 10px;
  background: #fff; border: var(--bw) solid var(--ink);
}
.pool-progress i, .progressbar-fill {
  display: block; height: 100%; border-right: 2px solid var(--ink);
  background-color: var(--yellow);
  background-image: repeating-linear-gradient(-45deg, rgba(20, 20, 20, .85) 0 5px, transparent 5px 12px);
  transition: width 1s ease;
}
.progressbar-fill { width: 0%; background-color: var(--pink); }
.pool-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 4px 0 10px; text-align: center;
  border: 2px solid var(--ink); border-radius: 9px; overflow: hidden;
}
.pool-stats > div { padding: 5px 2px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: #fff; min-width: 0; }
.pool-stats > div:nth-child(3n) { border-right: 0; }
.pool-stats > div:nth-child(n+4) { border-bottom: 0; background: var(--panel-2); }
.pool-stats i { display: block; font-style: normal; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.pool-stats b { font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; }
.pool-stats b.up { color: var(--green-2); }
.pool-stats b.down { color: var(--red); }
.pool-meta { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pool-meta .up, .pool-meta .down { font-weight: 700; }
.pool-buy {
  width: 100%; margin-top: auto; padding: 10px 12px; position: relative; z-index: 2; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--ink); background: var(--green); border: var(--bw) solid var(--ink); border-radius: 10px;
  box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s;
}
.pool-card .pool-meta + .pool-buy { margin-top: 12px; }
.pool-buy:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.pool-buy:active { transform: translate(2px, 2px); box-shadow: none; }

/* enlaces sociales */
.pool-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pool-links:empty { display: none; }
.token-socials { align-items: center; }
.pool-link, .pool-linkmini, .footer-soc {
  display: grid; place-items: center; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 9px; transition: transform .08s, box-shadow .08s, background .12s;
}
.pool-link { width: 36px; height: 36px; box-shadow: var(--sh-sm); }
.pool-linkmini { width: 27px; height: 27px; border-radius: 7px; }
.footer-soc { width: 40px; height: 40px; box-shadow: var(--sh-sm); }
.pool-link svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.pool-linkmini svg { width: 13px; height: 13px; fill: currentColor; display: block; }
.footer-soc svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.pool-link:hover, .pool-linkmini:hover, .footer-soc:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.pool-link.x:hover, .pool-linkmini.x:hover, .footer-soc.x:hover { background: var(--ink); color: var(--paper); }
.pool-link.tg:hover, .pool-linkmini.tg:hover, .footer-soc.tg:hover { background: var(--sky); }
.pool-link.web:hover, .pool-linkmini.web:hover, .footer-soc.web:hover { background: var(--mint); }
.pool-linksmini { display: flex; gap: 5px; }

/* ============================================================
   COMUNIDAD + NEWSLETTER
   ============================================================ */
.hood {
  margin-top: 30px; padding: 34px 30px; position: relative; overflow: hidden;
  background: var(--pink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg);
}
.hood-grid { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.hood-copy { flex: 1 1 420px; min-width: 0; }
.hood-title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.6vw, 56px); line-height: .95; letter-spacing: -1px; color: var(--ink); }
.hood-sub { font-size: 15.5px; font-weight: 600; max-width: 480px; margin: 12px 0 16px; }
.hood-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hood-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; padding: 4px 10px;
}
.hood-tag:nth-child(odd) { transform: rotate(-2deg); background: var(--yellow); }
.hood-tag:nth-child(even) { transform: rotate(2deg); }
.hood-socials { display: flex; gap: 10px; }
.newsletter {
  flex: 1 1 340px; max-width: 470px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: var(--sh); padding: 22px;
}
.newsletter h3 { font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.newsletter p { color: var(--muted); font-size: 13.5px; margin: 4px 0 14px; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.news-row .input { flex: 1; min-width: 190px; }

/* ============================================================
   BLOQUE SEO / FAQ
   ============================================================ */
.seo-block { margin: 30px 0 0; }
.seo-wrap { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh); padding: 28px 30px; }
.seo-wrap h2 { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; line-height: 1.1; margin-bottom: 10px; }
.seo-wrap h3 {
  display: inline-block; font-family: var(--display); font-weight: 400; font-size: 16px; text-transform: uppercase;
  background: var(--yellow); border: 2px solid var(--ink); padding: 2px 10px; margin: 22px 0 10px; transform: rotate(-1deg);
}
.seo-wrap > p { color: #3a342c; font-size: 14.5px; line-height: 1.7; max-width: 900px; }
.seo-points { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 6px; counter-reset: pt; }
.seo-points li {
  counter-increment: pt; position: relative; display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink);
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 12px; padding: 14px 14px 14px 58px;
}
.seo-points li::before {
  content: counter(pt, decimal-leading-zero); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px;
  font-family: var(--display); font-size: 13px; background: var(--yellow);
}
.seo-points li:nth-child(2)::before { background: var(--pink); }
.seo-points li:nth-child(3)::before { background: var(--mint); }
.seo-points li:nth-child(4)::before { background: var(--lilac); }
.seo-points li .ui-ico { display: none; }
.seo-faq { display: flex; flex-direction: column; gap: 10px; }
.seo-faq details { background: #fff; border: var(--bw) solid var(--ink); border-radius: 10px; overflow: hidden; }
.seo-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-weight: 800; font-size: 14.5px; padding: 12px 14px;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--display); font-size: 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow);
}
.seo-faq details[open] summary { background: var(--yellow); border-bottom: 2px solid var(--ink); }
.seo-faq details[open] summary::after { content: "−"; background: var(--paper); }
.seo-faq details p { margin: 0; padding: 12px 14px 14px; color: #3a342c; font-size: 14px; line-height: 1.7; }
.seo-guides { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.seo-guides a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
  font-size: 13.5px; font-weight: 800; background: var(--sky); border: var(--bw) solid var(--ink); border-radius: 10px;
  padding: 9px 14px; box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s;
}
.seo-guides a:nth-child(2) { background: var(--mint); }
.seo-guides a:nth-child(3) { background: var(--orange); }
.seo-guides a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

/* ============================================================
   TRADE
   ============================================================ */
.trade-cover {
  display: none; position: relative; overflow: hidden; max-height: 280px; margin-bottom: 18px;
  background: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--sh);
}
.trade-cover.on { display: block; }
.trade-cover .tc-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.3); transform: scale(1.15); opacity: .75; }
.trade-cover .tc-main { position: relative; width: 100%; max-height: 274px; object-fit: contain; display: block; margin: 0 auto; }

.trade-topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--sh); padding: 14px 16px;
}
.trade-topbar.has-cover { margin-top: 0; }
#trade-back { padding: 8px 13px; font-size: 13px; }
.token-head { display: flex; align-items: center; gap: 13px; min-width: 0; flex-wrap: wrap; }
.token-avatar {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden;
  font-family: var(--display); font-size: 24px; color: var(--ink);
  background: var(--pink); border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: var(--sh-sm);
}
.token-avatar.big { width: 86px; height: 86px; font-size: 36px; margin: 0 auto 12px; border-radius: 20px; background: var(--yellow); transform: rotate(-4deg); }
.token-id { min-width: 0; }
.token-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.token-name-row h1 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: -.5px; }
.token-sub { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 5px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.token-sub code { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 5px; padding: 0 6px; font-weight: 700; }
.copy-line { color: var(--ink); }
.token-kpis { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.kpi {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 13px;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 10px;
}
.kpi span { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .6px; opacity: .75; }
.kpi b { font-family: var(--mono); font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.token-kpis .kpi:nth-child(1) { background: var(--yellow); }
.token-kpis .kpi:nth-child(2) { background: var(--mint); }
.token-kpis .kpi:nth-child(3) { background: var(--sky); }
.token-kpis .kpi:nth-child(4) { background: var(--lilac); }
.token-kpis .kpi:nth-child(5) { background: var(--orange); }

/* panel de operar a la IZQUIERDA, gráfica a la derecha */
.trade-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.trade-right { order: -1; position: sticky; top: 58px; }
.trade-left, .trade-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* gráfica */
.chart-panel { padding: 0; overflow: hidden; }
.tv-panel { background: #fffdf6; }
.tv-toolbar {
  display: flex; align-items: stretch; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  background: var(--yellow); border-bottom: var(--bw) solid var(--ink); padding: 6px 8px; min-height: 44px;
}
.tv-intervals { display: flex; align-items: center; gap: 4px; }
.tv-intervals button {
  background: transparent; color: var(--ink); border: 2px solid transparent; border-radius: 7px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 4px 9px; cursor: pointer;
}
.tv-intervals button:hover { border-color: var(--ink); background: var(--paper); }
.tv-intervals button.active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.tv-tools { display: flex; align-items: center; gap: 4px; }
.tv-tool {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 7px;
  font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 5px 8px;
}
.tv-tool:hover, .tv-tool.active { background: var(--ink); color: var(--yellow); }
.tv-dd { position: relative; }
.tv-dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px; display: none;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px; padding: 5px; box-shadow: var(--sh);
}
.tv-dd.open .tv-dd-menu { display: block; }
.tv-dd-menu button {
  display: block; width: 100%; text-align: left; cursor: pointer; background: none; border: none; color: var(--ink);
  font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 6px;
}
.tv-dd-menu button:hover { background: var(--panel-2); }
.tv-dd-menu button.active { background: var(--yellow); font-weight: 800; }
.tv-chart-wrap { position: relative; }
#tv-chart { width: 100%; height: 460px; }
.tv-legend {
  position: absolute; top: 8px; left: 10px; z-index: 2; pointer-events: none; max-width: 72%;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink);
  background: rgba(255, 253, 246, .88); border: 2px solid var(--ink); border-radius: 7px; padding: 4px 8px;
}
.tv-legend:empty { display: none; }
.tv-legend .tv-pair { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.tv-legend .tv-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--green); border: 1.5px solid var(--ink); }
.tv-legend .tv-dot.down { background: var(--red); }
.tv-legend .tv-ohlc { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tv-legend .tv-ohlc em, .tv-legend .tv-vol em { font-style: normal; color: var(--muted); }
.tv-legend .tv-ohlc b, .tv-legend .tv-vol b { font-weight: 700; }
.tv-legend .tv-chg { font-weight: 700; }
.tv-legend .tv-chg.up { color: var(--green-2); }
.tv-legend .tv-chg.down { color: var(--red); }
.tv-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel-2); border-top: var(--bw) solid var(--ink); padding: 6px 12px; min-height: 36px;
}
.tv-footer-right { display: flex; align-items: center; gap: 4px; }
.tv-clock { font-family: var(--mono); font-size: 11px; font-weight: 700; margin-right: 6px; white-space: nowrap; }
.tv-foot-btn {
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px;
}
.tv-foot-btn:hover:not(:disabled) { background: var(--yellow); }
.tv-foot-btn.active { background: var(--ink); color: var(--yellow); }
.tv-foot-btn:disabled { opacity: .4; cursor: default; }
.chart-hint { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; font-family: var(--mono); }
.chart-hint .ui-ico { width: 12px; height: 12px; }
.chart-hint code { color: var(--green-2); }
.chart-hint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-watermark {
  position: absolute; right: 74px; bottom: 34px; z-index: 1; pointer-events: none;
  font-family: var(--display); font-size: 30px; letter-spacing: -1px; color: rgba(20, 20, 20, .06); text-transform: uppercase;
}
.tv-chart-wrap:fullscreen { background: var(--paper); display: flex; flex-direction: column; }
.tv-chart-wrap:fullscreen #tv-chart { flex: 1; height: auto; }

/* profundidad */
.depth-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.depth-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-family: var(--mono); font-size: 12px; }
.depth-bars .asks .depth-row { direction: rtl; }
.depth-track { height: 10px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; overflow: hidden; direction: ltr; }
.depth-track i { display: block; height: 100%; }
.depth-asks .depth-track i { background: var(--red); }
.depth-bids .depth-track i { background: var(--green); }
.depth-row .d-price { color: var(--ink); }
.depth-row .d-size { color: var(--muted); }

/* swap */
.swap-panel { padding: 0; overflow: hidden; }
.swap-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--bw) solid var(--ink); }
.swap-tab {
  background: var(--panel-2); color: var(--muted); border: none; cursor: pointer;
  font-family: var(--display); font-size: 15px; text-transform: uppercase; padding: 14px 10px; transition: background .12s;
}
.swap-tab + .swap-tab { border-left: var(--bw) solid var(--ink); }
.swap-tab:hover { color: var(--ink); }
.swap-tab.active { background: var(--green); color: var(--ink); }
.swap-tab.sell.active { background: var(--red); color: #fff; }
.swap-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.amount-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 12px; transition: box-shadow .1s;
}
.amount-box:focus-within { box-shadow: 4px 4px 0 var(--blue); }
.amount-box.out { background: var(--panel-2); border-style: dashed; }
.amount-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--ink);
  font-family: var(--mono); font-size: 22px; font-weight: 700;
}
.amount-cur {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--yellow);
  background: var(--ink); border: 2px solid var(--ink); border-radius: 7px; padding: 4px 9px; white-space: nowrap;
}
.quick-row { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-row button {
  flex: 1; cursor: pointer; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 6px; transition: background .1s, transform .08s;
}
.quick-row button:hover { background: var(--yellow); transform: translateY(-1px); }
.quote-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--ink); padding: 4px 0; border-bottom: 1.5px dashed var(--line-2);
}
.slip-wrap { display: inline-flex; align-items: center; gap: 4px; }
.slip-wrap input {
  width: 58px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px;
  font-family: var(--mono); font-weight: 700; padding: 2px 6px; text-align: right;
}
.adv { background: var(--panel-2); border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; }
.adv summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.adv[open] summary { margin-bottom: 10px; }
.swap-note { text-align: center; color: var(--muted); font-size: 12px; font-family: var(--mono); }

/* curva */
.curve-panel .panel-head b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.curve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.curve-grid .kpi:nth-child(odd) { background: var(--panel-2); }
.countdown { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: center; padding: 4px; }
.countdown:empty { display: none; }

/* parte inferior */
.trade-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.trades-list, .holders-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.trade-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px; padding: 8px 10px;
  background: #fff; border: 2px solid var(--ink); border-radius: 9px;
}
.trade-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-row .b, .trade-row .s { font-weight: 700; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 5px; }
.trade-row .b { background: var(--green); color: var(--ink); }
.trade-row .s { background: var(--red); color: #fff; }
.holder-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
  padding: 7px 9px; font-size: 12px; background: #fff; border: 2px solid var(--ink); border-radius: 9px;
}
.holder-row:nth-child(1) .holder-rank { background: var(--yellow); }
.holder-row:nth-child(2) .holder-rank { background: #e5e5e5; }
.holder-row:nth-child(3) .holder-rank { background: var(--orange); }
.holder-rank { display: grid; place-items: center; height: 22px; border: 2px solid var(--ink); border-radius: 5px; font-family: var(--mono); font-weight: 700; font-size: 11px; background: var(--paper); }
.holder-addr { font-family: var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holder-flag { font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--ink); background: var(--mint); border: 1.5px solid var(--ink); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.holder-amt { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.holder-pct { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink); background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 4px; padding: 0 5px; }
.info-grid { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 0 16px; font-size: 13px; }
.info-grid dt { font-family: var(--mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1.5px dashed var(--line-2); }
.info-grid dd { font-family: var(--mono); padding: 8px 0; margin: 0; border-bottom: 1.5px dashed var(--line-2); text-align: right; overflow-wrap: anywhere; }
.info-grid a { color: var(--blue); font-weight: 700; }
.pool-media { display: flex; flex-direction: column; gap: 10px; }
.pool-media:not(:empty) { margin-top: 14px; }
.pool-banner { width: 100%; max-height: 170px; object-fit: cover; display: block; border: var(--bw) solid var(--ink); border-radius: 10px; }
.media-video { margin-top: 4px; }
.media-video iframe, .media-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border: var(--bw) solid var(--ink); border-radius: 10px; background: #000; }

/* compartir */
.share-row { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.share-btn {
  width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 13px;
  color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--sh-sm);
}
.share-btn:hover { background: var(--yellow); }

/* ============================================================
   CABECERAS DE SECCIÓN
   ============================================================ */
.section-head {
  display: flex; flex-direction: column; gap: 6px; margin: 4px 0 26px; padding-bottom: 16px;
  border-bottom: 3px solid var(--ink);
}
.section-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.05; text-transform: uppercase; letter-spacing: -1px; }
.section-head p { color: #3a342c; font-size: 15px; font-weight: 500; max-width: 820px; }

/* ============================================================
   CREAR TOKEN (vista previa a la izquierda)
   ============================================================ */
.create-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.preview-panel { position: sticky; top: 58px; background: var(--lilac); }
.preview-panel .panel-head { background: var(--paper); }
.preview-card {
  text-align: center; padding: 18px 14px 6px; background: var(--paper);
  border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm);
}
.preview-card h3 { font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; overflow-wrap: anywhere; }
.preview-card code { display: inline-block; margin-top: 4px; font-weight: 700; background: var(--yellow); border: 2px solid var(--ink); border-radius: 5px; padding: 0 6px; font-size: 13px; }
.preview-card p { color: var(--muted); font-size: 13px; margin: 8px 0 12px; min-height: 19px; overflow-wrap: anywhere; }
.preview-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 8px 0; border-top: 1.5px dashed var(--line-2); }
.preview-row span { color: var(--muted); font-weight: 600; }
.preview-row b { font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
.form-panel h2 {
  display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 17px;
  text-transform: uppercase; margin: 28px 0 14px; padding-bottom: 8px; border-bottom: var(--bw) solid var(--ink);
}
.form-panel h2:first-child { margin-top: 0; }
.form-panel > .field { margin-bottom: 14px; }
.form-panel .swap-note { margin: 4px 0 8px; text-align: left; }
.range-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; margin: 4px 0 18px; }
.range-row > span:first-child { font-weight: 700; background: var(--yellow); border: 2px solid var(--ink); border-radius: 5px; padding: 0 7px; }
#btn-create { margin-bottom: 10px; }

/* ============================================================
   FÁBRICA (pasos en horizontal)
   ============================================================ */
.factory-layout { display: flex; flex-direction: column; gap: 20px; }
.steps-panel { padding: 14px; background: var(--panel-2); }
.steps-rail { display: flex; flex-direction: row; gap: 12px; overflow-x: auto; padding: 2px 6px 8px 2px; }
.step-item {
  flex: 0 0 220px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 12px;
  box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s;
}
.step-item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.step-item.active { background: var(--yellow); }
.step-item.done { background: var(--mint); }
.step-num {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--display); font-size: 13px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%;
}
.step-item.active .step-num { background: var(--ink); color: var(--yellow); }
.step-item.done .step-num { background: var(--ink); color: var(--mint); }
.step-title { font-weight: 800; font-size: 13.5px; }
.step-desc { font-size: 11.5px; color: var(--muted); }
.step-addr { font-family: var(--mono); font-size: 10.5px; font-weight: 700; word-break: break-all; margin-top: 3px; }
.wizard-panel { min-height: 380px; }
.wizard-head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px dashed var(--ink); }
.wizard-head h2 { font-family: var(--display); font-weight: 400; font-size: 21px; text-transform: uppercase; }
.wizard-head p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.addr-out {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; word-break: break-all;
  font-family: var(--mono); font-size: 12.5px; background: var(--mint); border: var(--bw) solid var(--ink); border-radius: 10px;
}
.addr-out .mini-btn { flex: none; }
.config-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-bottom: 10px; align-items: end; }
.wizard-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.wizard-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.code-line {
  font-family: var(--mono); font-size: 12px; color: var(--mint); background: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 9px; padding: 10px 12px; margin: 8px 0; overflow-x: auto;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.admin-card .field { margin-bottom: 10px; }
.admin-card h3 {
  font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase;
  margin: -20px -20px 14px; padding: 10px 20px; background: var(--yellow); border-bottom: var(--bw) solid var(--ink);
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
}
.admin-card:nth-child(3n+2) h3 { background: var(--sky); }
.admin-card:nth-child(3n+3) h3 { background: var(--pink); }
.admin-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.listbox {
  display: flex; flex-direction: column; gap: 5px; max-height: 160px; overflow-y: auto;
  font-family: var(--mono); font-size: 12px; background: #fff; border: 2px solid var(--ink); border-radius: 9px; padding: 9px 12px;
}

/* ============================================================
   STAKING
   ============================================================ */
.staking-banner {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 16px 18px; margin-bottom: 20px; background: var(--sky); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--sh);
}
.staking-banner b { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; }
.staking-banner .muted { font-size: 12.5px; color: var(--ink); opacity: .8; }
.staking-banner .chip { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.staking-create-panel {
  max-width: 700px; margin: 0 auto 22px; padding: 24px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--sh-lg);
}
.staking-create-panel h3 { font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; margin: 6px 0 4px; }
.staking-create-panel .field { margin: 10px 0; }
.staking-create-panel .preview-row { font-size: 14px; }
.staking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.staking-card {
  min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: var(--sh);
  transition: transform .1s, box-shadow .1s;
}
.staking-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.staking-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; padding-bottom: 10px; border-bottom: 2px dashed var(--ink); }
.staking-logos { position: relative; width: 50px; height: 50px; flex: none; }
.staking-logos .tk-main, .staking-logos .tk-reward {
  position: absolute; display: grid; place-items: center; overflow: hidden; line-height: 1;
  font-family: var(--display); color: var(--ink); background: var(--yellow); border: 2px solid var(--ink);
}
.staking-logos .tk-main { inset: 0 8px 8px 0; font-size: 13px; border-radius: 10px; }
.staking-logos .tk-reward { right: 0; bottom: 0; width: 24px; height: 24px; font-size: 8.5px; border-radius: 50%; background: var(--mint); }
.staking-logos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staking-logos .tk-eth { background: var(--sky); }
.staking-logos .tk-eth svg { width: 62%; height: 62%; }
.staking-emoji { font-size: 26px; }
.staking-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; border: 2px solid var(--ink); background: #fff; }
.staking-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.staking-title b { max-width: 100%; font-family: var(--display); font-weight: 400; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staking-title .pool-state { margin-left: 0; }
.staking-apy {
  flex: none; max-width: 44%; text-align: right; overflow-wrap: anywhere; line-height: 1.05;
  font-family: var(--display); font-size: 21px; color: var(--ink);
  background: var(--mint); border: 2px solid var(--ink); border-radius: 9px; padding: 5px 8px;
}
.staking-apy i { display: block; font-style: normal; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.staking-head { display: flex; align-items: center; gap: 10px; }
.staking-head b { font-size: 16px; }
.staking-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: center; margin: 2px 0 8px;
  border: 2px solid var(--ink); border-radius: 9px; overflow: hidden; background: var(--panel-2);
}
.staking-stats > div { min-width: 0; padding: 6px 4px; border-right: 2px solid var(--ink); }
.staking-stats > div:nth-child(3n) { border-right: 0; }
.staking-stats > div:nth-child(n+4) { border-top: 2px solid var(--ink); }
.staking-stats i { display: block; font-style: normal; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
.staking-stats b { font-family: var(--mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.staking-amount { display: flex; gap: 6px; margin: 4px 0 8px; }
.staking-amount .input { flex: 1; min-width: 0; }
.staking-card .pool-cap { overflow-wrap: anywhere; }
.staking-card .pool-stats { margin: 2px 0; }
.staking-card .form-grid { margin-bottom: 0; }
.staking-earn {
  overflow-wrap: anywhere; margin: 2px 0; padding: 7px 10px; font-size: 12.5px;
  background: var(--mint); border: 2px solid var(--ink); border-radius: 8px;
}
.staking-earn b { font-family: var(--mono); font-size: 13px; }
.staking-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.staking-btns .btn { width: 100%; min-width: 0; padding: 9px 8px; font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.staking-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.staking-actions .btn { padding: 8px 12px; font-size: 12.5px; }
.staking-owner { margin-top: 8px; padding-top: 10px; border-top: 2px dashed var(--ink); }
/* asistente de creación de staking */
.wiz-dots { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.wiz-dot {
  flex: 0 0 auto; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 12px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 8px;
}
.wiz-dot.active { background: var(--yellow); box-shadow: var(--sh-sm); transform: rotate(-5deg); }
.wiz-dot.done { background: var(--ink); color: var(--mint); }
.wiz-line { flex: 1; height: 0; border-top: 2.5px dashed var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); color: var(--paper); border-top: 3px solid var(--ink); overflow: hidden; }
.footer-big {
  display: flex; align-items: center; justify-content: center; flex-direction: row-reverse; gap: 2vw;
  font-family: var(--display); font-size: clamp(48px, 10vw, 150px); line-height: .85; letter-spacing: -4px;
  color: var(--yellow); white-space: nowrap; padding: 30px 24px 0; user-select: none;
}
.footer-big img { height: clamp(70px, 13vw, 200px); width: auto; display: block; }
.footer-word { height: 34px; width: auto; display: block; }
.footer-grid {
  max-width: 1360px; margin: 0 auto; padding: 30px 28px 26px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.3fr; gap: 34px;
}
footer .logo { color: var(--paper); }
footer .brand-word { color: var(--paper); }
footer .brand-word em { background: var(--yellow); color: var(--ink); }
footer .logo-img { box-shadow: 2px 2px 0 var(--yellow); }
.footer-tag { color: #cfc6b5; font-size: 13.5px; line-height: 1.65; max-width: 380px; margin: 14px 0 18px; }
.footer-socials { display: flex; gap: 10px; }
footer .footer-soc { background: var(--paper); box-shadow: 2px 2px 0 var(--yellow); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  width: fit-content; margin-bottom: 4px; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 2px 8px;
}
.footer-col a { width: fit-content; color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.footer-col a:hover { border-bottom-color: var(--yellow); color: var(--yellow); }
.footer-mono { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: #cfc6b5; }
.footer-mono code { color: var(--ink); background: var(--mint); padding: 1px 7px; border-radius: 4px; font-weight: 700; }
.footer-mono b { color: var(--yellow); }
.footer-bottom {
  max-width: 1360px; margin: 0 auto; padding: 16px 28px 20px; border-top: 2px dashed rgba(255, 253, 246, .25);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  color: #cfc6b5; font-family: var(--mono); font-size: 12px;
}

/* ============================================================
   TOASTS · MODALES · WALLETS
   ============================================================ */
#toasts { position: fixed; top: 18px; right: 18px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 380px; padding: 12px 14px 12px 18px; font-size: 13.5px; font-weight: 600;
  background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); border-left-width: 12px; border-radius: 10px;
  box-shadow: var(--sh); animation: dropIn .25s cubic-bezier(.2, .9, .3, 1.3); overflow-wrap: anywhere;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }
@keyframes dropIn { from { transform: translateY(-16px) rotate(-2deg); opacity: 0; } }

#modal-root:not(:empty) {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 20px;
  background-color: rgba(20, 20, 20, .55);
  background-image: radial-gradient(rgba(255, 210, 63, .35) 1.2px, transparent 1.4px); background-size: 16px 16px;
}
.modal {
  width: min(480px, 94vw); max-height: 86vh; overflow-y: auto;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; padding: 22px;
  box-shadow: 8px 8px 0 var(--ink); animation: dropIn .22s ease;
}
.modal h3 { font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; margin-bottom: 12px; }
.wallet-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.wallet-row {
  display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
  background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 11px; padding: 10px 12px;
  font-family: var(--sans); font-size: 14.5px; box-shadow: var(--sh-sm); transition: transform .08s, box-shadow .08s, background .1s;
}
.wallet-row:hover { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.wallet-row-name { flex: 1; text-align: left; font-weight: 800; }
.wallet-row-go { font-family: var(--mono); font-weight: 700; }
.wallet-badge {
  flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 15px; border: 2px solid; border-radius: 9px;
}
.wallet-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.tx-step { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1.5px dashed var(--line-2); }
.tx-step .sp { width: 20px; text-align: center; font-family: var(--mono); }
.tx-link { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--blue); word-break: break-all; }
.spinner {
  flex: none; width: 16px; height: 16px; border: 3px solid var(--ink); border-top-color: var(--yellow);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .trade-layout { grid-template-columns: 340px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1020px) {
  /* barra lateral -> cabecera superior + navegación inferior tipo app */
  .app-shell { display: block; }
  body { padding-bottom: 78px; }
  .sidebar {
    position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 14px; border-right: 0; border-bottom: 3px solid var(--ink); overflow: visible;
  }
  .side-label { display: none; }
  .brand-word { font-size: 17px; }
  .logo-img { width: 40px; height: 40px; }
  .side-foot, .topbar-right { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 8px; }
  .net-menu { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; }
  #btn-connect { width: auto; padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
  .wallet-chip { padding: 7px 9px; font-size: 12px; }
  #btn-disconnect { padding: 0 10px; }

  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    flex-direction: row; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 3px solid var(--ink); overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav > .nav-btn, .nav-drop > .nav-btn {
    flex: 1 0 auto; width: auto; min-width: 70px; flex-direction: column; gap: 3px; justify-content: center;
    padding: 6px 8px; font-size: 10.5px; text-align: center; white-space: nowrap;
    background: transparent; color: var(--paper); border-color: transparent; box-shadow: none;
  }
  .nav-drop { flex: 1 0 auto; }
  .nav > .nav-btn:hover, .nav-drop > .nav-btn:hover { transform: none; box-shadow: none; background: rgba(255, 253, 246, .1); }
  .nav > .nav-btn.active, .nav-drop > .nav-btn.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
  .nav-ico { width: 20px; height: 20px; }
  .nav-caret { display: none; }
  /* submenú de staking: flota sobre la barra inferior */
  .nav-menu {
    position: fixed !important; top: auto !important; bottom: 84px; z-index: 1000; min-width: 210px;
    margin: 0; padding: 6px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: var(--sh);
  }
  .ticker { position: relative; top: auto; }
  .trade-right, .preview-panel { position: static; }
  #toasts { top: auto; bottom: 92px; right: 12px; left: 12px; align-items: flex-end; }
}

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-art { min-height: 230px; }
  .trade-layout { grid-template-columns: 1fr; }
  .trade-right { order: 0; }
  .create-layout { grid-template-columns: 1fr; }
  .trade-bottom { grid-template-columns: 1fr; }
  .token-kpis { margin-left: 0; width: 100%; }
}

@media (max-width: 720px) {
  main { padding: 18px 14px 40px; }
  .hero-copy { padding: 24px 20px; }
  .hero-title { font-size: clamp(30px, 9vw, 44px); }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 150px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding: 12px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .explore-controls { width: 100%; }
  .explore-controls .input { flex: 1; min-width: 0; width: 100%; }
  .panel { padding: 16px; }
  .panel-head { margin: -16px -16px 14px; padding: 10px 16px; }
  .admin-card h3 { margin: -16px -16px 14px; padding: 10px 16px; }
  #tv-chart { height: 320px; }
  .tv-intervals { width: 100%; overflow-x: auto; }
  .tv-tools { margin-left: auto; }
  .tv-legend { font-size: 10.5px; max-width: 92%; }
  .chart-hint span { max-width: 140px; }
  .chart-watermark { display: none; }
  .token-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .token-name-row h1 { font-size: 21px; }
  .trade-row { grid-template-columns: auto minmax(0, 1fr); }
  .trade-row > span:nth-child(3) { display: none; }
  .trade-row > span:nth-child(4) { grid-column: 1 / -1; font-size: 11px; }
  .depth-row { font-size: 11px; gap: 6px; min-width: 0; }
  .depth-row .d-price, .depth-row .d-size { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pool-banner { max-height: 110px; }
  .trade-cover.on, .trade-cover .tc-main { max-height: 190px; }
  .seo-wrap { padding: 20px 16px; }
  .seo-points { grid-template-columns: 1fr; }
  .hood { padding: 24px 16px; }
  .config-row { grid-template-columns: 1fr; }
  .step-item { flex-basis: 190px; }
  .share-row { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .staking-card .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .brand-word { display: none; }
  .net-select #net-name, .net-select .net-caret { display: none; }
  .net-select { flex: none; padding: 6px 9px; }
  .lang-btn { padding: 6px 7px; font-size: 10.5px; }
  .hero-stamp { width: 74px; height: 74px; font-size: 11px; }
  #btn-connect { padding: 8px 10px; font-size: 11.5px; letter-spacing: 0; }
  .sidebar { gap: 8px; padding: 10px; }
  .staking-btns .btn { font-size: 11.5px; padding: 8px 4px; }
  .staking-apy { font-size: 17px; }
}

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