/* PANGR — palette from the logo and the X cover: ink black, TV cream, signal lime. */
:root {
  --bg: #0d0d0c;
  --side: #111110;
  --panel: #171715;
  --panel-2: #1e1e1b;
  --line: #2a2925;
  --text: #f5efdf;
  --muted: #9b978a;
  --lime: #a8e63a;
  --lime-ink: #0d0d0c;
  --radius: 16px;
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 7px; color: var(--text); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .ink { color: var(--text); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 800; margin: 0; }
h3 { font-size: 16px; font-weight: 800; margin: 24px 0 10px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- shell: sidebar + main ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-weight: 500; }
.nav-item:hover { background: var(--panel); text-decoration: none; }
.nav-item.on { background: color-mix(in srgb, var(--lime) 14%, transparent); color: var(--lime); }
.side-foot { margin-top: auto; }
.me { display: flex; justify-content: space-between; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.me-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 28px 56px; flex: 1; }
footer { border-top: 1px solid var(--line); padding: 18px 28px; color: var(--muted); font-size: 13px; }
.mobile-top { display: none; }

/* ---------- buttons, pills, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lime); color: var(--lime-ink); font: inherit; font-weight: 800; padding: 11px 18px; border-radius: 12px; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--text); filter: none; }
.btn.launch { width: 100%; }
.side .btn.ghost { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.dots { display: inline-flex; gap: 4px; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.dots .cdot { margin: 0; }
.copy { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 0 0 6px; }
.copy:hover, .copy.done { color: var(--lime); }
.banner { background: #23200f; border: 1px solid #5a4f1a; color: #f3df86; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }

/* ---------- home ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; background: radial-gradient(120% 140% at 100% 0%, #1b1d14 0%, var(--panel) 55%); border: 1px solid var(--line); border-radius: 24px; padding: 40px; overflow: hidden; }
.hero-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; margin: 0; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { margin: 0; color: #cfc9b8; max-width: 560px; font-size: 16px; }
.cmd { display: flex; align-items: center; background: var(--bg); border: 1px dashed #3a3933; border-radius: 12px; padding: 8px 12px; max-width: 100%; }
.cmd code { background: none; border: 0; padding: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 100%); border-radius: 28px; transform: rotate(-4deg); box-shadow: 0 30px 60px -20px #000; }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 8px; }
.hero-stats > div { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.hero-stats span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-stats b { font-size: 24px; font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 36px; scroll-margin-top: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-weight: 900; }
.step h3 { margin: 12px 0 6px; font-size: 18px; }
.step p { margin: 0; color: #cfc9b8; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 9px; cursor: pointer; }
.tabs button.on { background: var(--panel-2); color: var(--text); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.tcard { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.tcard:hover { border-color: var(--lime); transform: translateY(-2px); text-decoration: none; }
.tcard-top { display: flex; align-items: center; gap: 12px; }
.tcard-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tcard-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tcard-stats > div { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.tcard-foot { display: flex; justify-content: space-between; }
.handle { color: var(--text); font-weight: 600; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); }
.avatar { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--panel-2); flex: none; }
.avatar.sm { width: 44px; height: 44px; border-radius: 12px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 16px; }
.avatar.letter { display: grid; place-items: center; font-weight: 900; font-size: 20px; color: var(--lime); border: 1px solid var(--line); }

/* ---------- token ---------- */
.token-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.token-head h1 { margin: 0 0 6px; font-size: 30px; font-weight: 900; }
.token-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.chart-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 440px; position: relative; }
.chart-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
#chart { width: 100%; height: 380px; display: block; }
#chart-empty { position: absolute; inset: 50% 0 auto; display: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.price { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.kpis > div { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.panel .btn { width: 100%; margin-top: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-align: right; }
.list .row:first-child { border-top: 0; }
.row > span:first-child { text-align: left; display: inline-flex; align-items: center; }
.ca { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

/* ---------- gate (sign in / errors) ---------- */
.center-stage { min-height: 70vh; display: grid; place-items: center; }
.gate { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gate h1 { margin: 6px 0 0; font-size: 26px; font-weight: 900; }
.gate p { margin: 0; }
.gate .btn { width: 100%; margin-top: 8px; }
.gate-logo { width: 84px; height: 84px; border-radius: 20px; }

/* ---------- claim agent ---------- */
.agent { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.agent-head { display: flex; gap: 12px; align-items: center; }
.agent-head img { width: 42px; height: 42px; border-radius: 11px; }
.agent-head .pill { margin-left: auto; }
.agent-log { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 380px; max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; overflow-wrap: anywhere; }
.msg.bot { background: var(--panel-2); border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--lime); color: var(--lime-ink); font-weight: 700; border-top-right-radius: 4px; align-self: flex-end; }
.msg ul { margin: 8px 0; padding-left: 18px; }
.msg li { margin: 4px 0; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { background: transparent; color: var(--lime); border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); border-radius: 999px; padding: 6px 13px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.chip-btn:hover { background: color-mix(in srgb, var(--lime) 12%, transparent); }
.agent-input { display: flex; gap: 8px; }
.agent-input input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; }
.agent-input input:focus { outline: 2px solid var(--lime); outline-offset: 0; }

/* ---------- small screens: the sidebar becomes a drawer ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 20; transform: translateX(-100%); transition: transform 0.2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); }
  .mobile-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 10; }
  .menu-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px; cursor: pointer; display: grid; }
  main { padding: 18px 16px 40px; }
  footer { padding: 16px; }
  .hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero-art { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .token-layout { grid-template-columns: 1fr; }
  .chart-box { min-height: 300px; } #chart { height: 250px; }
}
