/* Paleta de @Ascendrbot: azul marino del logo/portada + degradado de la "r" (lila → orquídea → durazno). */
:root {
  --bg: #0a1524; --side: #0e1b2c; --panel: #12223a; --panel-2: #192d4a;
  --line: #233a5c; --text: #fdfdfd; --muted: #9aa8bf;
  --violet: #a77dc8; --orchid: #e99df7; --peach: #f8d9a0;
  --grad: linear-gradient(135deg, #a77dc8 0%, #e99df7 50%, #f8d9a0 100%);
  --ink: #0e1b2c; --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
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: 240px 1fr; min-height: 100vh;
}
a { color: var(--orchid); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; font-weight: 700; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* sidebar */
.side {
  background: var(--side); border-right: 1px solid var(--line);
  padding: 24px 18px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { color: var(--muted); padding: 9px 12px; border-radius: 10px; font-weight: 500; }
.side nav a:hover, .side nav a.on { color: var(--text); background: var(--panel); text-decoration: none; }
.side nav a.on { box-shadow: inset 2px 0 0 var(--orchid); }
.side-foot { margin-top: auto; font-size: 13px; color: var(--muted); }
.side-foot p { margin: 6px 0 0; }

main { padding: 48px clamp(16px, 5vw, 64px) 80px; max-width: 1080px; width: 100%; }

/* buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: var(--ink); border: 0;
  font: 700 14px/1 "Plus Jakarta Sans", sans-serif; padding: 13px 22px; border-radius: 999px; cursor: pointer;
}
.pill:hover { text-decoration: none; filter: brightness(1.06) saturate(1.05); }
.pill:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 12px 21px; }
.pill.ghost:hover { border-color: var(--violet); }
.pill.sm { padding: 7px 12px; font-size: 12px; }

/* home */
.hero { padding: 24px 0 40px; }
.eyebrow { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.04; }
.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 18px 0 26px; }
.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 12px 18px; max-width: 560px;
}
.cmd code { font-size: 15px; overflow-wrap: anywhere; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 48px; }
.step span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: var(--ink); font-weight: 800; font-size: 13px;
}
.step h3 { margin: 14px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step code { color: var(--text); }

.block { margin-bottom: 40px; }
.block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tok { display: flex; gap: 14px; align-items: center; color: var(--text); transition: border-color .15s; }
.tok:hover { border-color: var(--violet); text-decoration: none; }
.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; }
.tag { font-size: 11px; font-weight: 700; color: var(--peach); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

.avatar {
  width: 48px; height: 48px; border-radius: 12px; 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; }
.notice h3 { font-size: 16px; margin-bottom: 6px; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; }

/* token page */
.back { display: inline-block; color: var(--muted); margin-bottom: 24px; }
.token-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.token-head .avatar { width: 76px; height: 76px; border-radius: 18px; font-size: 22px; }
.token-head h1 { font-size: clamp(26px, 4vw, 38px); overflow-wrap: anywhere; }
.token-head p { margin: 4px 0 0; }
.addr-list { display: grid; gap: 8px; margin-bottom: 22px; }
.addr {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px;
}
.addr span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.addr code { overflow-wrap: anywhere; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.stat .label { margin: 0; color: var(--muted); font-size: 13px; }
.stat .value { margin: 6px 0 2px; font-size: 26px; font-weight: 700; font-family: var(--mono); letter-spacing: -.02em; }
.stat:first-child .value { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .hint { margin: 0; color: var(--muted); font-size: 12px; }
.claim { margin-bottom: 14px; }
.claim h3 { margin-bottom: 6px; }
.claim-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.msg { margin: 12px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.msg.ok { color: var(--peach); }
.msg.err { color: #ff8f9c; }

/* claim page */
.hero.small { padding-bottom: 28px; }
.steps.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
.finder { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.find { display: flex; gap: 10px; flex: 1 1 360px; }
.find input {
  flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; font: 500 15px "Plus Jakarta Sans", sans-serif; outline: none;
}
.find input:focus { border-color: var(--violet); }
.or { color: var(--muted); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 120px 120px auto; gap: 16px; align-items: center; padding: 14px 16px; }
.row-name { color: var(--text); font-weight: 700; 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; }
.row-act .pill { white-space: nowrap; }

@media (max-width: 860px) {
  .steps.two { grid-template-columns: 1fr; }
  .row { grid-template-columns: 48px 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%; }
}

@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .side {
    position: sticky; height: auto; flex-direction: row; align-items: center;
    padding: 12px 16px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); z-index: 5;
  }
  .side nav { flex-direction: row; gap: 2px; overflow-x: auto; }
  .side nav a { padding: 7px 10px; font-size: 14px; white-space: nowrap; }
  .side nav a.on { box-shadow: inset 0 -2px 0 var(--orchid); }
  .side-foot { display: none; }
  .brand span { display: none; }
  main { padding: 28px 16px 64px; }
  .steps, .stats { grid-template-columns: 1fr; }
}
