/* ============================================================
   .fun — Robinhood Chain · Tema neón glass (estilo falcox)
   ============================================================ */

:root {
  --bg: #050308;
  --bg-2: #0b0509;
  --panel: rgba(24, 8, 13, 0.72);
  --panel-2: rgba(29, 10, 16, 0.85);
  --line: rgba(255, 45, 69, 0.16);
  --line-2: rgba(255, 45, 120, 0.2);
  --text: #f7edef;
  --muted: #9b8490;
  --green: #00c805;      /* positivo/subida (convención trading) */
  --green-2: #00ff88;
  --accent: #e01428;     /* rojo MemeHood */
  --accent-2: #ff2d45;
  --violet: #a855f7;
  --pink: #ff2d78;
  --amber: #ffb020;
  --red: #ff4d5e;
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --display: "Rubik Wet Paint", "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---------- fondos / efectos ---------- */
#bg-canvas, #fx-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
#fx-canvas { z-index: 9998; }

.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; filter: blur(90px); opacity: .55; }
.aurora i {
  position: absolute; width: 52vw; height: 52vw; border-radius: 50%;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(224,20,40,.35), transparent 65%); top: -18%; left: -12%; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(168,85,247,.30), transparent 65%); top: 22%; right: -18%; animation-delay: -8s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(255,45,120,.22), transparent 65%); bottom: -22%; left: 24%; animation-delay: -16s; }
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(6vw, -4vh) scale(1.15); }
  100% { transform: translate(-5vw, 5vh) scale(.95); }
}

#cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,69,.07), transparent 60%);
  pointer-events: none; z-index: -1; transform: translate(-50%, -50%);
  transition: opacity .3s;
}

/* ---------- header ---------- */
#topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: rgba(5, 8, 14, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 0 22px rgba(255, 45, 69, .55);
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.logo-text { font-weight: 800; font-size: 22px; letter-spacing: -.6px; }
.logo-dot {
  background: linear-gradient(90deg, #ff2d45, #e01428 60%, #ff7a8c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,45,69,.35));
}
.logo-img {
  width: 40px; height: 40px; object-fit: contain; border-radius: 10px; flex: none;
  filter: drop-shadow(0 0 10px rgba(255,45,69,.35));
}
.logo-word { height: 30px; width: auto; object-fit: contain; display: block; flex: none; filter: drop-shadow(0 0 12px rgba(255,45,69,.4)); }
.footer-brand .logo-word { height: 28px; }
.logo-img-sm { width: 26px; height: 26px; border-radius: 8px; }
.logo-net {
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--accent-2);
  border: 1px solid rgba(255,45,69,.35); border-radius: 6px; padding: 3px 6px;
}

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; color: var(--muted); font-family: var(--sans);
  font-size: 13.5px; font-weight: 600; padding: 8px 13px; border-radius: 10px; cursor: pointer;
  transition: .2s;
}
.nav-ico { width: 15px; height: 15px; flex: none; }
.btn-ico { width: 16px; height: 16px; flex: none; }

/* iconos SVG del tema (sustituyen emojis) */
.ui-ico { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: none; color: var(--accent-2); vertical-align: -2px; }
.ui-ico svg { width: 100%; height: 100%; }
.ui-ico.dot-green { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(0, 200, 5, .8); }
.ui-ico.dot-red { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(255, 77, 94, .8); }
.title-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; color: var(--accent-2); vertical-align: -5px; margin-right: 4px; }
.title-ico svg { width: 100%; height: 100%; }
.pool-cat svg { width: 13px; height: 13px; display: block; }
.chart-hint .ui-ico { width: 12px; height: 12px; }
.nav-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-btn.active { color: var(--accent-2); background: rgba(255,45,69,.09); box-shadow: inset 0 0 0 1px rgba(255,45,69,.25); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.net-select { position: relative; font-family: var(--mono); font-size: 12px; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; gap: 7px; align-items: center; background: rgba(255,255,255,.03); }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.net-caret { color: var(--muted); font-size: 9px; }
.net-menu {
  position: absolute; top: 110%; right: 0; min-width: 190px; display: none;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6); backdrop-filter: blur(14px);
}
.net-select.open .net-menu { display: block; }
.net-menu button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: var(--mono); font-size: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.net-menu button:hover { background: rgba(255,45,69,.1); }
.lang-switch {
  display: flex; gap: 2px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px;
}
.lang-btn {
  background: none; border: none; color: var(--muted); font-family: var(--mono);
  font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 7px; cursor: pointer; transition: .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 10px rgba(255,45,69,.4);
}

.wallet-chip {
  font-family: var(--mono); font-size: 12px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(255,45,69,.3); background: rgba(255,45,69,.07); cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: .2s;
}
.wallet-chip:hover { box-shadow: 0 0 16px rgba(255,45,69,.25); }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

/* ---------- ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(7,11,21,.6);
}
.ticker-track { display: flex; gap: 0; width: max-content; animation: marquee 45s linear infinite; padding: 7px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick-item { font-family: var(--mono); font-size: 12px; padding: 0 26px; white-space: nowrap; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.tick-logo { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 6px rgba(255,45,69,.35); }
.tick-item b { color: var(--text); }
.tick-item .up { color: var(--green-2); }
.tick-item .down { color: var(--red); }

/* ---------- botones ---------- */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 10px 18px; border-radius: 12px; cursor: pointer; transition: .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 2px 0 rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.3);
}
.btn:hover {
  transform: translateY(-2px); filter: brightness(1.14);
  box-shadow: 0 9px 24px rgba(0,0,0,.45), 0 2px 0 rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.3);
}
.btn:active {
  transform: translateY(1px) scale(.98); filter: brightness(.94);
  box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 2px 8px rgba(0,0,0,.5);
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(180deg, #ff4d5e, #e01428 52%, #a0101c);
  color: #fff; border: 1px solid rgba(255,45,69,.65);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  box-shadow: 0 7px 26px rgba(255,45,69,.4), 0 3px 0 rgba(70,4,12,.95),
    inset 0 1px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(90,6,16,.45);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .45s;
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(0,224,122,.6), 0 3px 0 rgba(0,70,28,.95), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(0,90,32,.45); }
.btn-primary:hover::after { left: 130%; }

/* botón de COMPRAR en verde (VENDER se queda rojo) */
#btn-trade.is-buy {
  background: linear-gradient(180deg, #00ff88, #00c805 52%, #008a04);
  border: 1px solid rgba(0,255,136,.65);
  box-shadow: 0 7px 26px rgba(0,200,5,.4), 0 3px 0 rgba(0,60,10,.95),
    inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,90,16,.45);
}
#btn-trade.is-buy:hover {
  box-shadow: 0 12px 36px rgba(0,255,136,.55), 0 3px 0 rgba(0,70,18,.95),
    inset 0 1px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(0,90,26,.45);
}
.btn-glass {
  background: linear-gradient(180deg, rgba(168,85,247,.25), rgba(168,85,247,.08));
  backdrop-filter: blur(10px); border: 1px solid rgba(168,85,247,.5); color: #e6d2ff;
  box-shadow: 0 4px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.16), inset 0 -2px 0 rgba(0,0,0,.28);
}
.btn-glass:hover { box-shadow: 0 0 28px rgba(168,85,247,.5), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.17);
}
.btn-warn {
  background: linear-gradient(180deg, #ffc94d, #ff9a1f 52%, #d96a00); color: #231100; border: 1px solid rgba(255,176,32,.7);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  box-shadow: 0 7px 24px rgba(255,176,32,.35), 0 3px 0 rgba(120,60,0,.8), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(150,75,0,.4);
}
.btn-danger {
  background: linear-gradient(180deg, #ff5d6e, #e0263d 52%, #a3122a); color: #fff; border: 1px solid rgba(255,77,94,.65);
  box-shadow: 0 7px 24px rgba(255,77,94,.35), 0 3px 0 rgba(80,0,20,.8), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(80,0,20,.5);
}
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }

/* ---------- inputs ---------- */
.input {
  width: 100%; background: rgba(6,10,20,.7); color: var(--text);
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px;
  font-family: var(--sans); font-size: 14px; outline: none; transition: .2s;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,255,255,.03);
}
.input:focus { border-color: rgba(255,45,69,.55); box-shadow: 0 0 0 3px rgba(255,45,69,.12), inset 0 2px 6px rgba(0,0,0,.35); }
.input.mono, .mono { font-family: var(--mono); }
.select { appearance: none; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
textarea.input { resize: vertical; }

/* ---------- layout ---------- */
main { max-width: 1380px; margin: 0 auto; padding: 26px 22px 60px; }
.view.hidden { display: none; }
.hidden { display: none !important; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  backdrop-filter: blur(16px);
  position: relative;
  box-shadow: 0 18px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06), inset 0 -14px 34px rgba(0,0,0,.18);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font-size: 15.5px; font-weight: 700; }
.muted { color: var(--muted); font-size: 12.5px; }

/* ---------- hero ---------- */
/* a todo lo ancho de la pantalla (rompe el contenedor central) */
.hero {
  text-align: left; padding: 64px 0 46px; position: relative; overflow: hidden;
  min-height: 500px; max-width: none;
  width: 100vw; margin-left: calc(50% - 50vw);
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  opacity: .95; pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,3,8,.97) 0%, rgba(5,3,8,.9) 22%, rgba(5,3,8,.58) 48%, rgba(5,3,8,.24) 74%, rgba(5,3,8,.1) 100%),
    linear-gradient(180deg, rgba(5,3,8,.55) 0%, transparent 32%, transparent 68%, rgba(5,3,8,.95) 100%);
}
.hero > .hero-row, .hero > .hero-stats, .hero > .ref-hero {
  position: relative; z-index: 2;
  max-width: 1280px; margin-left: auto; margin-right: auto;
  padding-left: 22px; padding-right: 22px;
}
.hero-row {
  display: flex; align-items: center; gap: 40px; justify-content: space-between;
  margin-bottom: 44px;
}
.hero-copy { flex: 1 1 0; min-width: 0; max-width: 640px; }
.hero-kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
  text-shadow: 0 0 18px rgba(255,45,69,.6);
}
.hero-word {
  height: clamp(56px, 8vw, 104px); width: auto; display: block; margin: 0 0 10px;
  filter: drop-shadow(0 0 26px rgba(255,45,69,.55));
}
.hero-art { flex: 0 0 auto; width: min(420px, 36vw); }
.hero-art img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 44px rgba(0,0,0,.55)) drop-shadow(0 0 34px rgba(255,45,69,.14));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-12px); } }
.hero-badge {
  display: inline-block; font-size: 13px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,45,69,.35); color: var(--accent-2);
  background: linear-gradient(180deg, rgba(255,45,69,.12), rgba(255,45,69,.05));
  margin-bottom: 22px; font-weight: 600;
  box-shadow: inset 0 0 16px rgba(255,45,69,.14), 0 4px 18px rgba(0,0,0,.35), 0 0 22px rgba(255,45,69,.15);
}
.pulse { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,69,.35); }
  50% { box-shadow: 0 0 0 9px rgba(255,45,69,0); }
}
.hero-title { font-size: clamp(28px, 3.8vw, 50px); font-weight: 400; font-family: var(--display); letter-spacing: 1px; line-height: 1.12; color: #fff; text-shadow: 0 4px 26px rgba(0,0,0,.65); }
.hero-title .grad-text, .hero-title .grad-text-2 { font-family: var(--display); font-weight: 400; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.hero-pill {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .3px;
  padding: 7px 14px; border-radius: 999px; color: var(--text);
  border: 1px solid rgba(255,45,69,.3); background: rgba(255,45,69,.07);
  transition: .2s;
}
.hero-pill:hover { border-color: rgba(255,45,69,.6); box-shadow: 0 0 14px rgba(255,45,69,.25); transform: translateY(-2px); }
.grad-text {
  background: linear-gradient(90deg, #ff2d45, #e01428, #ff7a8c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 6s linear infinite;
}
.grad-text-2 {
  background: linear-gradient(90deg, #ff2d78, #a855f7, #ff2d78);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 8s linear infinite reverse;
}
@keyframes hue { to { filter: hue-rotate(30deg); } }
.hero-sub { color: var(--muted); max-width: 620px; margin: 18px 0 26px; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 0; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none; margin: 0; gap: 14px;
}
.stat {
  background: linear-gradient(180deg, rgba(22,31,55,.85), rgba(13,19,34,.75));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 10px; display: flex; flex-direction: column; gap: 4px;
  transition: .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.07);
}
.stat:hover { border-color: rgba(255,45,69,.4); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.stat b { font-family: var(--mono); font-size: 20px; color: #fff; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- explorar ---------- */
.explore-panel { margin-top: 30px; }
.explore-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.explore-controls .input { width: auto; min-width: 200px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.cat-chip { cursor: pointer; background: rgba(255,255,255,.05); border-color: var(--line); color: var(--muted); transition: .18s; }
.cat-chip:hover { border-color: rgba(255,45,69,.5); color: var(--accent-2); }
.cat-chip.active {
  background: linear-gradient(135deg, rgba(255,45,69,.2), rgba(224,20,40,.12));
  border-color: rgba(255,45,69,.6); color: var(--accent-2);
  box-shadow: 0 0 14px rgba(255,45,69,.28);
}
.pools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.pool-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, rgba(22,30,54,.9), rgba(10,14,26,.92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: .22s;
  box-shadow: 0 12px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.07), inset 0 -14px 34px rgba(0,0,0,.28);
}
/* banner visible como portada de la card (no de fondo) */
.pool-cover {
  height: 92px; margin: -16px -16px 0; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}
.pool-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,11,20,.85));
}
.pool-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pool-top.over-cover { margin-top: -24px; position: relative; z-index: 1; }
.pool-top.over-cover .pool-avatar { border: 3px solid var(--bg); }
.pool-card.has-banner { border-color: rgba(255,255,255,.14); }
.pool-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: .3s;
  background: radial-gradient(420px circle at 50% 0%, rgba(255,45,69,.14), transparent 60%);
}
.pool-card:hover {
  transform: translateY(-6px); border-color: rgba(255,45,69,.5);
  box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 30px rgba(255,45,69,.16),
    inset 0 1px 0 rgba(255,255,255,.1), inset 0 -14px 34px rgba(0,0,0,.22);
}
.pool-card:hover::before { opacity: 1; }
.pool-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pool-id { min-width: 0; flex: 1; }
.pool-avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 20px; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 2px rgba(255,45,69,.25), 0 0 18px rgba(255,45,69,.25);
}
.pool-name { font-weight: 700; font-size: 15px; }
.pool-symbol { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pool-state { margin-left: auto; font-family: var(--mono); font-size: 10px; padding: 4px 8px; border-radius: 7px; }
.st-trading { color: var(--green-2); background: rgba(0,255,136,.1); border: 1px solid rgba(0,255,136,.3); }
.st-listed { color: #9bd1ff; background: rgba(80,160,255,.1); border: 1px solid rgba(80,160,255,.3); }
.st-ready { color: var(--amber); background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.35); }
.st-paused { color: var(--red); background: rgba(255,77,94,.1); border: 1px solid rgba(255,77,94,.35); }
.pool-cat {
  font-size: 13px; line-height: 1; padding: 4px 7px; border-radius: 7px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
  cursor: default;
}
.pool-badge-trend {
  font-family: var(--mono); font-size: 10px; padding: 4px 8px; border-radius: 7px;
  color: #ffb020; background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.4);
  box-shadow: 0 0 10px rgba(255,176,32,.18);
}
.pool-price { font-family: var(--mono); font-size: 19px; font-weight: 700; color: #fff; }
.pool-curve {
  width: 100%; height: 36px; display: block; margin: 10px 0 6px;
  filter: drop-shadow(0 0 6px rgba(255,45,69,.35));
}
.pool-curve polyline { opacity: .95; }
.pool-cap { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pool-progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); margin: 12px 0 8px; overflow: hidden; }
.pool-progress i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #e01428, #ff2d45, #ff7a8c);
  box-shadow: 0 0 12px rgba(255,45,69,.7);
  transition: width 1s ease;
}
.pool-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

.empty-state { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 14px; grid-column: 1 / -1; }

/* botón de compra directa en cada card */
.pool-buy {
  width: 100%; margin-top: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  position: relative; z-index: 2;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  color: #fff; border: 1px solid rgba(255,45,69,.65);
  background: linear-gradient(180deg, #ff4d5e, #e01428 60%);
  box-shadow: 0 4px 16px rgba(255,45,69,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: .18s;
}
.pool-buy:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255,45,69,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.pool-buy:active { transform: translateY(1px); filter: brightness(.95); }

/* ---------- únete al hood ---------- */
.hood {
  margin: 34px 0 0; padding: 40px 28px; border-radius: var(--radius); position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px circle at 15% -10%, rgba(255,45,69,.18), transparent 60%),
    radial-gradient(700px circle at 95% 120%, rgba(255,45,120,.12), transparent 55%),
    linear-gradient(160deg, rgba(24,8,13,.92), rgba(10,5,9,.94));
}
.hood-grid { display: flex; gap: 34px; 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(34px, 5vw, 58px);
  letter-spacing: 2px; color: #fff; line-height: 1.05;
  text-shadow: 0 0 34px rgba(255,45,69,.5);
}
.hood-sub { color: var(--muted); max-width: 460px; margin: 12px 0 16px; }
.hood-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hood-tag {
  font-family: var(--display); font-size: 15px; letter-spacing: 1.5px; color: var(--accent-2);
  border: 1px solid rgba(255,45,69,.35); padding: 6px 14px; border-radius: 999px;
  background: rgba(255,45,69,.06);
}
.hood-socials { display: flex; gap: 10px; }
.newsletter { flex: 1 1 360px; max-width: 480px; }
.newsletter h3 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: 1px; }
.newsletter p { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.news-row .input { flex: 1; min-width: 200px; }

@media (max-width: 860px) {
  .hero-bg-img { object-position: 70% center; opacity: .55; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(5,3,8,.92) 0%, rgba(5,3,8,.72) 55%, rgba(5,3,8,.55) 100%),
      linear-gradient(180deg, rgba(5,3,8,.45) 0%, transparent 30%, transparent 65%, rgba(5,3,8,.95) 100%);
  }
}

/* ---------- trade ---------- */
/* portada hero del token: banner completo nítido + laterales rellenos con blur */
.trade-cover {
  display: none; max-height: 300px; border-radius: var(--radius); overflow: hidden;
  position: relative; margin-bottom: 0; background: #070b14;
}
.trade-cover.on { display: block; }
.trade-cover .tc-blur {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(22px) brightness(.45) saturate(1.2); transform: scale(1.12);
}
.trade-cover .tc-main {
  position: relative; width: 100%; max-height: 300px; object-fit: contain;
  display: block; margin: 0 auto;
}
.trade-topbar.has-cover { margin-top: -32px; position: relative; z-index: 1; }
.trade-topbar.has-cover .token-avatar { border: 3px solid var(--bg); }
.trade-topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.token-head { display: flex; align-items: center; gap: 13px; }
.token-avatar {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 20px rgba(255,45,69,.4);
}
.token-avatar.big { width: 72px; height: 72px; font-size: 30px; margin: 0 auto 12px; border-radius: 18px; }
.pool-avatar img, .token-avatar img, .token-avatar.big img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pool-banner { width: 100%; border-radius: 12px; margin-top: 12px; max-height: 170px; object-fit: cover; display: block; }
.media-video { margin-top: 12px; }
.media-video iframe, .media-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; display: block; }
.pool-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pool-links:empty { display: none; }
.token-socials { margin: 0 0 0 2px; align-items: center; }
.pool-link {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  text-decoration: none; transition: .15s;
}
.pool-link svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.pool-link.x { color: #e7e9ea; }
.pool-link.x:hover { background: #000; border-color: #3a3f44; }
.pool-link.tg { color: #2aabee; }
.pool-link.tg:hover { background: #2aabee; color: #fff; border-color: #2aabee; }
.pool-link.web { color: #4fd1a0; }
.pool-link.web:hover { background: rgba(255,45,69,.15); border-color: rgba(255,45,69,.45); }
.pool-linksmini { display: flex; gap: 6px; }
.pool-linkmini {
  text-decoration: none; width: 27px; height: 27px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 50%; transition: .15s;
}
.pool-linkmini svg { width: 13px; height: 13px; fill: currentColor; display: block; }
.pool-linkmini.x { color: #e7e9ea; }
.pool-linkmini.x:hover { background: #000; border-color: #3a3f44; }
.pool-linkmini.tg { color: #2aabee; }
.pool-linkmini.tg:hover { background: #2aabee; color: #fff; border-color: #2aabee; }
.pool-linkmini.web { color: #4fd1a0; }
.pool-linkmini.web:hover { background: rgba(255,45,69,.15); border-color: rgba(255,45,69,.45); }
.token-name-row { display: flex; align-items: center; gap: 10px; }
.token-name-row h1 { font-size: 22px; letter-spacing: -.4px; }
.chip { font-family: var(--mono); font-size: 10.5px; padding: 4px 9px; border-radius: 7px; border: 1px solid; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.25); }
.token-sub { display: flex; align-items: center; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.mini-btn {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid var(--line); color: var(--muted);
  border-radius: 7px; padding: 2px 7px; cursor: pointer; font-family: var(--mono); font-size: 11.5px;
  text-decoration: none; transition: .15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.3);
}
.mini-btn:hover { transform: translateY(-1px); filter: brightness(1.2); }
.mini-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); }
.mini-btn.mm-btn {
  color: #ff9f43; border-color: rgba(255,159,67,.4); background: rgba(255,159,67,.08);
  font-weight: 600;
}
.mini-btn.mm-btn:hover { background: rgba(255,159,67,.18); box-shadow: 0 0 12px rgba(255,159,67,.35); }
.mini-btn:hover { color: var(--accent-2); border-color: rgba(255,45,69,.4); }
.token-kpis { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 16px; display: flex; flex-direction: column; gap: 2px;
}
.kpi span { font-size: 11px; color: var(--muted); }
.kpi b { font-family: var(--mono); font-size: 14.5px; }

.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; align-items: start; }
.trade-left, .trade-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ===== gráfica estilo TradingView ===== */
.chart-panel { padding: 10px 12px 12px; position: relative; }
.tv-panel { background: #131722; border-color: #2a2e39; border-radius: 8px; }
.tv-toolbar {
  display: flex; align-items: stretch; justify-content: space-between; gap: 8px;
  background: #1e222d; border: 1px solid #2a2e39; border-radius: 8px 8px 0 0;
  margin: -10px -12px 0; padding: 0 8px 0 12px; min-height: 40px;
}
.tv-intervals { display: flex; align-items: stretch; gap: 2px; }
.tv-intervals button {
  background: none; border: none; color: #b2b5be; font-family: var(--mono);
  font-size: 12.5px; padding: 0 11px; cursor: pointer;
}
.tv-intervals button:hover { color: #e8eef7; }
.tv-intervals button.active { color: #2962ff; font-weight: 700; box-shadow: inset 0 -2px 0 #2962ff; }
.tv-tools { display: flex; align-items: center; gap: 2px; }
.tv-tool {
  background: none; border: none; color: #b2b5be; border-radius: 6px; padding: 6px 8px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
}
.tv-tool:hover, .tv-tool.active { color: #e8eef7; background: rgba(255,255,255,.07); }
.tv-dd { position: relative; }
.tv-dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px;
  background: #1e222d; border: 1px solid #2a2e39; border-radius: 8px; padding: 5px;
  display: none; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.tv-dd.open .tv-dd-menu { display: block; }
.tv-dd-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: #b2b5be; font-size: 12.5px; padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.tv-dd-menu button:hover { background: rgba(255,255,255,.06); color: #e8eef7; }
.tv-dd-menu button.active { color: #2962ff; }
.tv-chart-wrap { position: relative; margin: 8px -12px -6px; }
#tv-chart { width: 100%; height: 460px; }
.tv-legend {
  position: absolute; top: 8px; left: 10px; z-index: 2; pointer-events: none;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  font-family: var(--mono); font-size: 11.5px; color: #b2b5be; max-width: 70%;
}
.tv-legend .tv-pair { font-weight: 700; color: #e8eef7; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.tv-legend .tv-dot { width: 8px; height: 8px; border-radius: 50%; background: #26a69a; }
.tv-legend .tv-dot.down { background: #ef5350; }
.tv-legend .tv-ohlc { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tv-legend .tv-ohlc em { font-style: normal; color: #787b86; }
.tv-legend .tv-ohlc b { font-weight: 600; color: #d1d4dc; }
.tv-legend .tv-chg { font-weight: 700; }
.tv-legend .tv-chg.up { color: #26a69a; }
.tv-legend .tv-chg.down { color: #ef5350; }
.tv-legend .tv-vol em { font-style: normal; color: #787b86; }
.tv-legend .tv-vol b { font-weight: 600; color: #d1d4dc; }
.tv-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #1e222d; border: 1px solid #2a2e39; border-radius: 0 0 8px 8px;
  margin: 6px -12px -12px; padding: 6px 12px; min-height: 32px;
}
.tv-footer-right { display: flex; align-items: center; gap: 2px; }
.tv-clock { color: #787b86; font-family: var(--mono); font-size: 11px; margin-right: 8px; }
.tv-foot-btn {
  background: none; border: none; color: #787b86; font-family: var(--mono);
  font-size: 11.5px; padding: 3px 8px; border-radius: 5px; cursor: pointer;
}
.tv-foot-btn:hover:not(:disabled) { color: #b2b5be; }
.tv-foot-btn.active { color: #2962ff; }
.tv-foot-btn:disabled { opacity: .45; cursor: default; }
.chart-hint { color: #787b86; font-size: 11px; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.chart-hint .ui-ico { width: 12px; height: 12px; flex: none; }
.chart-hint code { color: #26a69a; }
.chart-hint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-watermark {
  position: absolute; right: 22px; bottom: 10px; z-index: 1; pointer-events: none;
  font-family: var(--display); font-size: 24px; letter-spacing: 1px;
  color: rgba(255,255,255,.05);
}
.tv-chart-wrap:fullscreen { background: #131722; display: flex; flex-direction: column; margin: 0; }
.tv-chart-wrap:fullscreen #tv-chart { flex: 1; height: auto; }
.tv-chart-wrap:fullscreen .tv-legend { top: 14px; left: 14px; }

.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: 5px 0; font-family: var(--mono); font-size: 12px; }
.depth-bars .asks .depth-row { direction: rtl; }
.depth-track { height: 8px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; direction: ltr; }
.depth-track i { display: block; height: 100%; border-radius: 6px; }
.depth-asks .depth-track i { background: linear-gradient(90deg, rgba(255,77,94,.75), rgba(255,77,94,.2)); }
.depth-bids .depth-track i { background: linear-gradient(90deg, rgba(0,255,136,.75), rgba(0,255,136,.2)); }
.depth-row .d-price { color: var(--text); }
.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: 1px solid var(--line); }
.swap-tab {
  background: none; border: none; color: var(--muted); font-family: var(--sans);
  font-weight: 700; font-size: 14.5px; padding: 14px; cursor: pointer; transition: .2s;
}
.swap-tab.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent-2), inset 0 2px 10px rgba(255,45,69,.12); }
.swap-tab.sell.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--red), inset 0 2px 10px rgba(255,77,94,.12); }
.swap-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.amount-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(6,10,20,.8); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px;
  transition: .2s;
}
.amount-box:focus-within { border-color: rgba(255,45,69,.5); box-shadow: 0 0 0 3px rgba(255,45,69,.1); }
.amount-box.out { background: rgba(6,10,20,.4); }
.amount-input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-family: var(--mono); font-size: 21px; font-weight: 600; min-width: 0;
}
.amount-cur {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-2);
  background: rgba(255,45,69,.09); border: 1px solid rgba(255,45,69,.3);
  padding: 5px 10px; border-radius: 9px; font-weight: 700;
}
.quick-row { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-row button {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
}
.quick-row button:hover { color: var(--accent-2); border-color: rgba(255,45,69,.4); }
.quote-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.slip-wrap input {
  width: 52px; background: rgba(6,10,20,.8); border: 1px solid var(--line); border-radius: 7px;
  color: var(--text); font-family: var(--mono); padding: 3px 6px; text-align: right;
}
.adv { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; }
.adv summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
.adv[open] summary { margin-bottom: 9px; }
.swap-note { text-align: center; color: var(--muted); font-size: 12px; }

/* curva */
.progressbar { height: 11px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progressbar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #a855f7, #ff2d78, #ffb020);
  box-shadow: 0 0 16px rgba(255,45,120,.65);
  transition: width 1s ease;
}
.curve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.countdown { font-family: var(--mono); font-size: 12.5px; color: var(--amber); text-align: center; padding: 8px; }

/* bottom */
.trade-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.trades-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.holders-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.holder-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); font-size: 12px; }
.holder-rank { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.holder-addr { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holder-flag { font-size: 9px; color: var(--green-2); background: rgba(0,255,136,.1); border: 1px solid rgba(0,255,136,.3); border-radius: 6px; padding: 1px 5px; margin-left: 4px; }
.holder-amt { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.holder-pct { color: var(--green-2); font-family: var(--mono); font-weight: 700; font-size: 11px; }

/* ---------- compartir token ---------- */
.share-row { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.share-btn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  text-decoration: none; font-size: 13px; cursor: pointer; transition: .15s;
}
.share-btn:hover { color: var(--accent-2); border-color: rgba(255,45,69,.4); transform: translateY(-2px); }

/* ---------- bloque SEO (contenido indexable) ---------- */
.seo-block { max-width: 1380px; margin: 30px auto 8px; padding: 0 22px; }
.seo-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.seo-wrap h2 { font-size: 20px; margin: 0 0 10px; }
.seo-wrap h3 { font-size: 15px; margin: 18px 0 4px; color: var(--accent-2); }
.seo-wrap > p, .seo-points li { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.seo-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; padding: 0; margin: 14px 0 4px; }
.seo-points li { position: relative; }
.seo-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.seo-faq summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 14px; }
.seo-faq details p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.seo-guides { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.seo-guides a {
  color: var(--accent-2); text-decoration: none; font-size: 13px; font-weight: 600;
  background: rgba(255,45,69,.07); border: 1px solid rgba(255,45,69,.25);
  border-radius: 10px; padding: 8px 14px; transition: .15s;
}
.seo-guides a:hover { background: rgba(255,45,69,.14); transform: translateY(-2px); }
@media (max-width: 720px) {
  .seo-points { grid-template-columns: 1fr; }
  .share-row { margin-left: 0; }
}
.trade-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12.5px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.trade-row .b { color: var(--accent-2); }
.trade-row .s { color: var(--red); }
.info-grid { display: grid; grid-template-columns: minmax(88px, auto) 1fr; gap: 0 16px; font-size: 13px; margin: 0; }
.info-grid dt {
  color: var(--muted); padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.06);
}
.info-grid dd {
  font-family: var(--mono); word-break: break-all; padding: 8px 0; margin: 0;
  border-bottom: 1px dashed rgba(255,255,255,.06); text-align: right;
}
.pool-media { display: flex; flex-direction: column; gap: 10px; }

/* ---------- crear ---------- */
.section-head { text-align: center; margin: 26px 0 26px; }
.section-head h1 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -1px; }
.section-head p { color: var(--muted); margin-top: 8px; }
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; max-width: 1060px; margin: 0 auto; }
.form-panel h2 { font-size: 15px; margin: 20px 0 12px; color: var(--accent-2); }
.form-panel h2:first-child { margin-top: 0; }
input[type="range"] { width: 100%; accent-color: var(--accent-2); }
.range-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); margin-bottom: 18px; }
.preview-card { text-align: center; padding: 8px 4px; }
.preview-card h3 { font-size: 21px; }
.preview-card code { color: var(--accent-2); font-size: 13px; }
.preview-card p { color: var(--muted); font-size: 13px; margin: 6px 0 14px; min-height: 19px; }
.preview-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-top: 1px dashed rgba(255,255,255,.08); }
.preview-row span { color: var(--muted); }
.preview-row b { font-family: var(--mono); }

/* ---------- fábrica ---------- */
.factory-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps-rail { display: flex; flex-direction: column; gap: 10px; }
.step-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--panel); transition: .2s; cursor: pointer;
}
.step-item:hover { border-color: rgba(255,45,69,.3); }
.step-item.active { border-color: rgba(255,45,69,.55); box-shadow: 0 0 20px rgba(255,45,69,.12); }
.step-item.done { border-color: rgba(255,45,69,.4); }
.step-num {
  width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid var(--line);
}
.step-item.active .step-num { background: linear-gradient(135deg,#e01428,#ff4d5e); color: #fff; border: none; }
.step-item.done .step-num { background: rgba(255,45,69,.18); color: var(--accent-2); border-color: rgba(255,45,69,.4); }
.step-title { font-weight: 700; font-size: 13.5px; }
.step-desc { font-size: 11.5px; color: var(--muted); }
.step-addr { font-family: var(--mono); font-size: 10.5px; color: var(--accent-2); word-break: break-all; margin-top: 3px; }

.wizard-panel { min-height: 420px; }
.wizard-head { margin-bottom: 16px; }
.wizard-head h2 { font-size: 19px; }
.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;
  background: rgba(255,45,69,.06); border: 1px solid rgba(255,45,69,.25); border-radius: 12px;
  font-family: var(--mono); font-size: 12.5px; word-break: break-all;
}
.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: 10px; margin-top: 16px; flex-wrap: wrap; }
.wizard-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.code-line {
  font-family: var(--mono); font-size: 12px; color: #9be8c9;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0;
}

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.admin-card .field { margin-bottom: 10px; }
.admin-card h3 { font-size: 14.5px; margin-bottom: 12px; color: var(--accent-2); }
.admin-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.listbox {
  font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; max-height: 150px; overflow-y: auto; background: rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 5px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,11,21,.9), rgba(4,7,13,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 10px 30px rgba(255,45,69,.03);
  overflow-x: hidden;
}
.footer-grid {
  max-width: 1380px; margin: 0 auto; padding: 44px 22px 30px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr; gap: 36px;
}
.footer-brand .logo { font-size: 21px; }
.footer-tag { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 360px; margin: 14px 0 18px; }
.footer-socials { display: flex; gap: 8px; }
.footer-soc {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid var(--line); transition: .18s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 10px rgba(0,0,0,.3);
}
.footer-soc svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.footer-soc.x { color: #e7e9ea; }
.footer-soc.x:hover { background: #000; border-color: #3a3f44; transform: translateY(-2px); }
.footer-soc.tg { color: #2aabee; }
.footer-soc.tg:hover { background: #2aabee; color: #fff; border-color: #2aabee; transform: translateY(-2px); }
.footer-soc.web { color: #4fd1a0; }
.footer-soc.web:hover { background: rgba(255,45,69,.16); border-color: rgba(255,45,69,.45); transform: translateY(-2px); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 4px; font-weight: 700;
}
.footer-col a { color: var(--muted); text-decoration: none; font-size: 13.5px; transition: .15s; width: fit-content; }
.footer-col a:hover { color: var(--accent-2); text-shadow: 0 0 12px rgba(255,45,69,.4); }
.footer-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-mono code {
  color: var(--accent-2); background: rgba(255,45,69,.07); padding: 2px 7px;
  border-radius: 6px; border: 1px solid rgba(255,45,69,.22); font-family: var(--mono);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  max-width: 1380px; margin: 0 auto; padding: 15px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: 12px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* header compacto: logo redondo + controles en una fila, nav debajo */
  #topbar .logo-word { display: none; }
  #topbar { gap: 6px; }
  .btn { padding: 9px 13px; font-size: 13px; }
  .net-select #net-name { display: none; }
  .hero { padding: 30px 0 26px; }
  .hero-word { height: 48px; margin-bottom: 8px; }
  .hero-kicker { font-size: 11px; letter-spacing: 2.5px; }
  .hero-title { font-size: clamp(24px, 7.5vw, 34px); }
  .hero-sub { font-size: 14px; }
  .hero-pill { font-size: 11px; padding: 6px 11px; }
  .hero-stats { gap: 8px; }
  .stat { padding: 12px 8px; }
  .stat b { font-size: 17px; }
  .hood { padding: 28px 16px; }
  .hood-title { font-size: clamp(30px, 10vw, 44px); }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 8px; }
  .footer-tag { max-width: 100%; }
  .footer-col { align-items: flex-start; }
  .footer-mono { flex-wrap: wrap; }
}

/* ---------- referidos ---------- */
.ref-box { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:2px 0 12px; padding:8px 10px; border:1px dashed var(--line); border-radius:10px; font-size:12px; color:var(--muted); line-height:1.45; }
.ref-box .mini-btn { flex:none; }
.ref-hero { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:14px; padding:14px 18px; border:1px solid rgba(255,45,69,.35); border-radius:16px; background:linear-gradient(100deg, rgba(224,20,40,.10), rgba(255,45,69,.04) 55%, rgba(13,19,34,.0)); box-shadow:0 0 24px rgba(224,20,40,.08), inset 0 1px 0 rgba(255,255,255,.05); }
.ref-hero-copy { display:flex; flex-direction:column; gap:3px; min-width:220px; flex:1; }
.ref-hero-copy b { font-size:15px; letter-spacing:-.2px; }
.ref-hero-copy span { color:var(--muted); font-size:12.5px; font-weight:400; }
.ref-hero .btn { white-space:nowrap; flex:none; }

/* ---------- toasts / modal ---------- */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 260px; max-width: 380px; padding: 13px 16px; border-radius: 13px;
  background: var(--panel-2); border: 1px solid var(--line); backdrop-filter: blur(14px);
  font-size: 13.5px; box-shadow: 0 14px 44px rgba(0,0,0,.5);
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast.ok { border-color: rgba(0,255,136,.45); }
.toast.err { border-color: rgba(255,77,94,.5); }
.toast.info { border-color: rgba(80,160,255,.45); }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } }

#modal-root:not(:empty) {
  position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center;
  background: rgba(2,4,9,.7); backdrop-filter: blur(6px); padding: 20px;
}
.modal {
  width: min(480px, 94vw); max-height: 86vh; overflow-y: auto;
  background: var(--panel-2); border: 1px solid rgba(255,45,69,.3); border-radius: 18px; padding: 22px;
  box-shadow: 0 24px 90px rgba(0,0,0,.65), 0 0 40px rgba(255,45,69,.08);
  animation: toastIn .25s ease;
}
.modal h3 { margin-bottom: 12px; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wallet-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; color: var(--text); font-family: var(--sans); font-size: 14.5px;
  transition: .2s;
}
.wallet-row:hover { border-color: var(--accent-2); background: rgba(255,45,69,.06); transform: translateX(3px); }
.wallet-row-name { flex: 1; text-align: left; font-weight: 600; }
.wallet-row-go { color: var(--accent-2); font-family: var(--mono); }
.wallet-badge {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--mono); border: 1px solid; flex: none; font-size: 15px;
}
.wallet-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }
.tx-step { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: 13.5px; }
.tx-step .sp { width: 20px; text-align: center; font-family: var(--mono); }
.tx-link { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); word-break: break-all; }
.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--accent-2);
  border-radius: 50%; animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .trade-layout { grid-template-columns: 1fr; }
  .trade-right { display: grid; grid-template-columns: 1fr 1fr; }
  .create-layout, .factory-layout { grid-template-columns: 1fr; }
  .trade-bottom { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-row { gap: 28px; }
  .hero-art { width: 300px; }
}
@media (max-width: 980px) {
  .hero-row { flex-direction: column; gap: 30px; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-art { width: min(380px, 82vw); }
}
@media (max-width: 720px) {
  #topbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .logo-net { display: none; }
  .topbar-right { gap: 6px; }
  .nav { order: 6; width: 100%; overflow-x: auto; }
  .hero { padding: 40px 0 30px; min-height: 0; }
  .hero-row { margin-bottom: 22px; }
  .hero-actions .btn { flex: 1 1 150px; }
  .hero-pills { margin-bottom: 18px; }
  .trade-right { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  #tv-chart { height: 320px; }
  main { padding: 18px 12px 50px; }

  /* trade topbar móvil: volver + nombre + KPIs en 2x2 */
  .trade-topbar { gap: 10px; }
  #trade-back { flex: none; }
  .token-head { width: 100%; min-width: 0; }
  .token-name-row { flex-wrap: wrap; gap: 6px; }
  .token-name-row h1 { font-size: 19px; }
  .token-sub { flex-wrap: wrap; }
  .token-kpis { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 8px 12px; }

  /* chart móvil */
  .tv-toolbar { flex-wrap: wrap; min-height: 0; padding: 6px 8px; }
  .tv-intervals { order: 1; width: 100%; overflow-x: auto; }
  .tv-intervals button { padding: 5px 9px; font-size: 11.5px; }
  .tv-tools { order: 2; margin-left: auto; }
  .tv-legend { gap: 3px 10px; font-size: 10.5px; max-width: 90%; }
  .chart-hint span { max-width: 140px; }

  /* profundidad móvil: números sin desbordar */
  .depth-bars { gap: 2px 10px; }
  .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; }

  /* media de los tokens más compacta */
  .pool-banner { max-height: 110px; }
  .trade-cover.on { max-height: 200px; }
  .trade-cover .tc-main { max-height: 200px; }
}
