/* ascendr · paleta de @Ascendrbot: azul marino del logo/portada, blanco de la portada,
   degradado de la "r" (lila → orquídea → durazno). Layout: sidebar + hero en tarjeta + tarjetas. */
:root {
  --bg: #0a1524; --side: #0d1a2b; --panel: #12223a; --panel-2: #192d4a;
  --line: #22395b; --text: #fdfdfd; --muted: #9aa8bf;
  --navy: #0e1b2c; --paper: #fdfdfd; --ink-muted: #5d6b82;
  --violet: #a77dc8; --orchid: #e99df7; --peach: #f8d9a0;
  --grad: linear-gradient(120deg, #a77dc8 0%, #e99df7 50%, #f8d9a0 100%);
  --radius: 20px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root { color-scheme: dark; } /* la página ya es oscura: evita que Chrome la "oscurezca" e invierta el hero blanco */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: grid; grid-template-columns: 248px 1fr; min-height: 100vh;
}
a { color: var(--orchid); text-decoration: none; }
code { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; font-weight: 800; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------- sidebar */
.side {
  background: var(--side); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 18px;
}
.side-top { padding: 4px 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .group { margin: 14px 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.side-nav .group:first-child { margin-top: 0; }
.side-nav a, .side-nav .disabled {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px;
  color: #d7dde8; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s;
}
.side-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav a:hover { background: var(--panel); color: var(--text); }
.side-nav a.on { background: var(--panel-2); color: var(--text); }
.side-nav a.on svg { stroke: var(--orchid); }
.side-nav i { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }
.side-nav .disabled { color: #5d6b82; cursor: not-allowed; }
.side-nav .disabled em {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--navy); background: var(--grad); border-radius: 999px; padding: 2px 8px; text-transform: uppercase; opacity: .75;
}
.side-foot { margin-top: auto; padding: 0 10px; font-size: 12.5px; color: var(--muted); }
.side-foot p { margin: 4px 0 0; }

main { padding: 32px clamp(16px, 3vw, 40px) 80px; width: 100%; max-width: 1680px; min-width: 0; margin-inline: auto; }

/* sesión (abajo del sidebar) */
.auth { padding: 10px 2px 2px; border-top: 1px solid var(--line); }
.auth .pill { width: 100%; padding: 13px; border-radius: 13px; font-size: 14.5px; }
.who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--panel); }
.who-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--grad); overflow: hidden; }
.who-dot img { width: 100%; height: 100%; object-fit: cover; }
.who-out { color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px; border-radius: 8px; }
.who-out:hover { color: var(--text); background: var(--panel-2); }
.x-login svg { width: 16px; height: 16px; }
.panel.empty h3 { font-size: 18px; margin-bottom: 6px; }
.panel.empty p { margin: 0; }
.who-main { min-width: 0; flex: 1; }
.who-main b { display: block; font-family: var(--mono); font-size: 13px; }
.who-main a { font-size: 12.5px; font-weight: 600; }
.who button { background: none; border: 0; color: var(--muted); cursor: pointer; font: 600 12px "Plus Jakarta Sans", sans-serif; padding: 6px; border-radius: 8px; }
.who button:hover { color: var(--text); background: var(--panel-2); }

/* my tokens */
.me-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.me-actions:empty { display: none; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.me-stats[hidden] { display: none; }

/* ------------------------------------------------------------- buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: var(--grad); color: var(--navy); border: 0; cursor: pointer;
  font: 800 15px/1 "Plus Jakarta Sans", sans-serif; padding: 16px 26px; border-radius: 16px;
  transition: transform .15s var(--ease), filter .15s, box-shadow .2s;
  box-shadow: 0 8px 24px -10px rgba(233, 157, 247, .7);
}
.pill:hover { filter: brightness(1.05) saturate(1.06); transform: translateY(-1px); }
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.pill.dark { background: var(--navy); color: var(--paper); box-shadow: none; }
.pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.pill.ghost:hover { border-color: var(--violet); }
.pill.sm { padding: 8px 12px; font-size: 12px; border-radius: 10px; }

.tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--orchid);
  border: 1px solid rgba(233, 157, 247, .55); border-radius: 999px; padding: 3px 11px; margin-bottom: 10px;
}

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper); color: var(--navy); border-radius: 30px;
  min-height: 560px; padding: 46px 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; max-width: 480px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--navy); color: var(--paper); font-weight: 600; font-size: 15px; transition: transform .2s var(--ease);
}
.badge span { background: var(--grad); color: var(--navy); font-weight: 800; padding: 6px 13px; border-radius: 999px; font-size: 14px; }
.badge b { transition: transform .2s var(--ease); }
.badge:hover b { transform: translateX(3px); }
.hero h1 { font-size: clamp(44px, 6vw, 78px); line-height: .98; margin: 40px 0 18px; color: var(--navy); }
.hero-copy p { color: var(--ink-muted); font-size: 17.5px; line-height: 1.6; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* arte 3D */
.art { position: absolute; inset: 0 0 0 38%; z-index: 1; perspective: 1400px; pointer-events: none; }
.blob {
  position: absolute; right: -14%; bottom: -30%; width: 125%; height: 92%; filter: blur(38px);
  background:
    radial-gradient(closest-side at 55% 58%, #d77cf0, transparent),
    radial-gradient(closest-side at 30% 70%, #9b6fd0, transparent),
    radial-gradient(closest-side at 72% 72%, #e58fe6, transparent),
    radial-gradient(closest-side at 92% 88%, #f8c98a, transparent);
  animation: breathe 9s ease-in-out infinite alternate;
}
.stage {
  --rx: 0deg; --rz: 0deg;
  position: absolute; left: 52%; top: 44%; width: 420px; height: 260px; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(calc(54deg + var(--rx))) rotateZ(calc(-30deg + var(--rz)));
  transition: transform .5s var(--ease);
}
.term {
  position: absolute; inset: 0; border-radius: 34px; padding: 30px 34px; transform-style: preserve-3d;
  background: linear-gradient(135deg, #b88ae0 0%, #e99df7 60%, #f2b7e8 100%);
  box-shadow: 0 40px 60px -20px rgba(120, 70, 170, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .55);
  font: 500 15px/1.75 var(--mono); color: rgba(14, 27, 44, .78);
}
.term p { margin: 0; white-space: nowrap; }
.term p:nth-child(odd) { color: rgba(255, 255, 255, .92); }
.term b { color: var(--navy); }
.term-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.tile {
  position: absolute; left: 34%; top: -6%; width: 190px; height: 190px; transform-style: preserve-3d;
  transform: translateZ(90px);
}
.tile-in {
  width: 100%; height: 100%; border-radius: 48px; display: grid; place-items: center;
  background: linear-gradient(140deg, #fbe3bd 0%, #f6b9d9 55%, #e99df7 100%);
  box-shadow: 0 30px 50px -18px rgba(167, 110, 170, .6), inset 0 0 0 2px rgba(255, 255, 255, .6);
  animation: float 6s ease-in-out infinite;
}
.tile-in img { width: 62%; height: 62%; border-radius: 26px; box-shadow: 0 10px 24px -8px rgba(14, 27, 44, .5); }
.chip { position: absolute; transform-style: preserve-3d; }
.chip span {
  display: block; padding: 8px 16px; border-radius: 12px; font: 700 13px var(--mono); color: var(--navy);
  background: linear-gradient(135deg, #f8d9a0, #f4b7a0); box-shadow: 0 14px 24px -12px rgba(200, 120, 90, .6);
  animation: float 5s ease-in-out infinite;
}
.chip.c1 { left: 92%; top: -30%; transform: translateZ(150px); }
.chip.c2 { left: -14%; top: 4%; transform: translateZ(120px); }
.chip.c2 span { animation-delay: -2s; background: linear-gradient(135deg, #e99df7, #a77dc8); color: #fff; }
.chip.c3 { left: 72%; top: 104%; transform: translateZ(60px); }
.chip.c3 span { width: 46px; height: 10px; padding: 0; border-radius: 6px; animation-delay: -3.5s; }

.stats {
  position: absolute; z-index: 4; right: 26px; bottom: 26px; left: 46%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 18px 8px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(167, 125, 200, .35), rgba(233, 157, 247, .28)); border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  color: #fff; text-shadow: 0 1px 12px rgba(120, 60, 150, .35);
}
.stats div { padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, .45); min-width: 0; }
.stats div:first-child { border-left: 0; }
.stats small { display: block; font-size: 13.5px; font-weight: 600; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats b { display: block; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-3%, -2%); } }

/* ------------------------------------------------------------- panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.finder-panel { margin-top: 22px; padding: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h2 { font-size: 28px; }
.panel-head p { margin: 0; max-width: 380px; }
.finder { display: flex; gap: 12px; flex-wrap: wrap; }
.find {
  flex: 1 1 420px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 18px; transition: border-color .15s;
}
.find:focus-within { border-color: var(--violet); }
.find .at { color: var(--muted); font-weight: 700; font-size: 16px; }
.find input { flex: 1; min-width: 0; background: transparent; color: var(--text); border: 0; outline: none; font: 600 16px "Plus Jakarta Sans", sans-serif; padding: 10px 0; }
.find .pill { padding: 13px 20px; border-radius: 13px; }
.found-head { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; }
.found-head h3 { font-size: 17px; }
.found-head:has(h3:empty) { display: none; }
.rows { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 130px 130px auto; gap: 18px; align-items: center;
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  animation: rise .4s var(--ease) both;
}
.row-name { color: var(--text); font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { display: block; color: var(--muted); font-size: 13px; }
.row-status { font-size: 12px !important; margin-top: 2px; }
.row-num b { display: block; font-family: var(--mono); font-size: 17px; }
.row-num.amt b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; scroll-margin-top: 20px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(233, 157, 247, .5); }
.feature-art { height: 170px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--navy); }
.feature-art b { font-size: 38px; letter-spacing: -.04em; line-height: 1; }
.feature-art span { font-weight: 700; margin-top: 8px; opacity: .8; font-family: var(--mono); font-size: 13px; }
.feature-art.g1 { background: linear-gradient(120deg, #a77dc8, #e99df7 55%, #f8d9a0); }
.feature-art.g2 { background: linear-gradient(120deg, #f8d9a0, #f3b6d6 50%, #a77dc8); }
.feature-art.g3 { background: linear-gradient(120deg, #26405f, #1a2d47); color: #7e8ca5; }
.feature-body { padding: 22px 24px 26px; }
.feature-body h3 { font-size: 21px; margin-bottom: 8px; }
.feature-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feature.soon { opacity: .6; }
.feature.soon:hover { transform: none; border-color: var(--line); }
.feature.soon .tag { color: var(--muted); border-color: var(--line); }

/* ------------------------------------------------------------- tokens */
.page-head { margin: 10px 0 24px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.page-head p { margin: 6px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tok {
  display: flex; gap: 14px; align-items: center; color: var(--text); padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  transition: transform .2s var(--ease), border-color .2s; animation: rise .4s var(--ease) both;
}
.tok:hover { transform: translateY(-3px); border-color: rgba(233, 157, 247, .5); }
.tok .t-main { min-width: 0; }
.tok b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok small { color: var(--muted); font-size: 13px; }
.badge-test { font-size: 10.5px; font-weight: 800; color: var(--peach); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }

.avatar {
  width: 52px; height: 52px; border-radius: 14px; background: var(--panel-2); flex: none;
  display: grid; place-items: center; font-weight: 800; color: var(--orchid); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- token page */
.back { display: inline-block; color: var(--muted); margin-bottom: 22px; font-weight: 600; }
.back:hover { color: var(--text); }
.token-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.token-head .avatar { width: 80px; height: 80px; border-radius: 22px; font-size: 22px; }
.token-head h1 { font-size: clamp(28px, 4vw, 42px); overflow-wrap: anywhere; }
.token-head p { margin: 4px 0 0; }
.addr-list { display: grid; gap: 8px; margin-bottom: 18px; }
.addr {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 16px;
}
.addr span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.addr code { overflow-wrap: anywhere; font-size: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.stat .label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .value { margin: 8px 0 2px; font-size: 30px; font-weight: 800; font-family: var(--mono); letter-spacing: -.03em; }
.stat .hint { margin: 0; color: var(--muted); font-size: 12px; }
.claim .claim-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.msg { margin: 12px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.ok { color: var(--peach); }
.msg.err { color: #ff8f9c; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature.soon { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body { grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
  .side { min-width: 0; }
  .finder { display: grid; grid-template-columns: minmax(0, 1fr); }
  .find { min-width: 0; flex-basis: auto; }
  .find .pill { padding: 12px 14px; }
  .side {
    position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center;
    padding: 10px 14px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .side-top { padding: 0; }
  .brand span { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .side-nav .group, .side-nav a[target], .side-foot { display: none; }
  .auth { border-top: 0; padding: 0; margin-left: auto; flex: none; }
  .auth .pill { width: auto; padding: 9px 14px; font-size: 13px; }
  .who { padding: 4px 6px; background: none; }
  .who-main, .who-out { display: none; }
  .x-login span { display: none; }
  .x-login { padding: 9px 12px !important; }
  .who-dot { width: 30px; height: 30px; }
  .me-stats { grid-template-columns: 1fr; }
  .side-nav a, .side-nav .disabled { padding: 8px 11px; font-size: 14px; white-space: nowrap; }
  .side-nav svg { display: none; }
  .side-nav .disabled em { margin-left: 6px; }
  main { padding: 16px 14px 64px; }
  .hero { grid-template-columns: 1fr; padding: 30px 24px 24px; min-height: 0; border-radius: 24px; }
  .hero h1 { margin-top: 28px; }
  .art { position: relative; inset: auto; height: 300px; margin: 6px -24px 0; }
  .stage { width: 300px; height: 190px; left: 50%; top: 48%; }
  .term { padding: 22px 24px; font-size: 11.5px; border-radius: 26px; }
  .tile { width: 130px; height: 130px; }
  .tile-in { border-radius: 34px; }
  .stats { position: relative; inset: auto; margin-top: -40px; grid-template-columns: 1fr 1fr 1fr; padding: 14px 4px; }
  .stats div { padding: 0 10px; }
  .stats small { font-size: 11px; white-space: normal; }
  .features, .stat-row { grid-template-columns: 1fr; }
  .row { grid-template-columns: 52px 1fr 1fr; grid-template-areas: "av main main" "amt amt held" "act act act"; row-gap: 14px; }
  .row > .avatar { grid-area: av; }
  .row > .t-main { grid-area: main; }
  .row > .amt { grid-area: amt; }
  .row > .held { grid-area: held; }
  .row > .row-act { grid-area: act; }
  .row-act .pill { width: 100%; }
  .find { flex-basis: 100%; }
  #find-wallet { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
