/* ═══════════════════════════════════════════════════════════════
 *  percolators.app · the only stylesheet
 *  ───────────────────────────────────────────────────────────────
 *  near-black background, ivory text, sangria-red as the single
 *  accent. paper-trade typography (instrument serif italic for the
 *  wordmarks, mono for everything technical). minimal, no neon.
 * ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #161616;
  --panel:     #131313;
  --panel-up:  #1a1a1a;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.14);
  --line-3:    rgba(255,255,255,0.22);

  --text:      #f1ede1;
  --text-mute: rgba(241,237,225,0.62);
  --text-dim:  rgba(241,237,225,0.36);
  --text-ghost: rgba(241,237,225,0.20);

  --sangria:   #c14747;
  --sangria-dim: #8a2f2f;
  --leaf:      #5fb37a;
  --ember:     #d65a5a;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:  'Inter', system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body {
  /* faint paper grain */
  background-image:
    radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: transparent; border: 0; color: inherit; cursor: pointer; }
input { font: inherit; }

/* ── ticker tape ────────────────────────────────────────────── */
.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
  background: var(--bg-2);
}
.ticker-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: tickerScroll 80s linear infinite;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-mute);
  text-transform: uppercase;
  padding-left: 16px;
}
.ticker-track .t-sym { color: var(--text); }
.ticker-track .t-up  { color: var(--leaf); }
.ticker-track .t-dn  { color: var(--ember); }
.ticker-track .t-sep { color: var(--text-ghost); }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── crown / header ─────────────────────────────────────────── */
.crown {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 24px;
}
.brand { display: flex; align-items: baseline; }
.wm {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.wm-cursor { color: var(--sangria); font-style: normal; margin-left: 1px; }
.nav {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-mute);
  text-transform: uppercase;
}
.nav a { padding: 4px 2px; transition: color .15s; }
.nav a:hover { color: var(--sangria); }
.crown-right { display: flex; align-items: center; gap: 10px; }

/* ── bracket buttons (the only button style) ──────────────── */
.bracket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: all .12s ease;
}
.bracket-btn::before { content: "[ "; opacity: 0.5; }
.bracket-btn::after  { content: " ]"; opacity: 0.5; }
.bracket-btn:hover:not(:disabled) {
  border-color: var(--sangria);
  color: var(--sangria);
}
.bracket-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bracket-btn.primary {
  border-color: var(--sangria);
  color: var(--sangria);
}
.bracket-btn.primary:hover {
  background: var(--sangria);
  color: var(--bg);
}
.bracket-btn.danger { color: var(--ember); border-color: var(--ember); }
.bracket-btn.success { color: var(--leaf); border-color: var(--leaf); }

/* ── hero ───────────────────────────────────────────────────── */
.hero { padding: 56px 28px 48px; border-bottom: 1px solid var(--line); }
.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 10vw, 112px);
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--text);
}
.cursor {
  display: inline-block;
  width: 0.45em;
  height: 0.08em;
  background: var(--sangria);
  vertical-align: middle;
  margin-left: 0.15em;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 0%,50% { opacity: 1 } 51%,100% { opacity: 0 } }

.bullets {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-mute);
}
.bullets .dot {
  display: inline-block;
  width: 0.5em;
  height: 0.12em;
  background: var(--sangria);
  vertical-align: middle;
  margin-right: 12px;
}
.cta-row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* hero right column */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--panel); padding: 20px 18px; }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.live-feed {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.live-feed-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.live-feed-title { color: var(--sangria); }
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--sangria);
  border-radius: 50%;
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1 } 50% { opacity: 0.25 } }
.live-feed-list {
  list-style: none;
  max-height: 160px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 11px;
}
.live-feed-list li {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
}
.live-feed-list li:last-child { border-bottom: 0; }
.live-feed-list .lf-time { color: var(--text-dim); font-size: 10px; }
.live-feed-list .lf-sym  { color: var(--text); }
.live-feed-list .lf-tag  { color: var(--sangria); }
.live-feed-list .lf-empty { color: var(--text-dim); font-style: italic; }

/* ── board / tokens grid ────────────────────────────────────── */
.board { padding: 48px 28px 80px; max-width: 1280px; margin: 0 auto; }
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.board-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 42px;
  color: var(--text);
}
.board-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  width: 260px;
  outline: none;
  transition: border-color .15s;
}
.search:focus { border-color: var(--sangria); }
.search::placeholder { color: var(--text-dim); }

.sort-row { display: flex; gap: 4px; }
.sort-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  transition: all .12s;
}
.sort-btn:hover { color: var(--text); border-color: var(--line-2); }
.sort-btn.on { color: var(--sangria); border-color: var(--sangria); }

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}
.empty {
  grid-column: 1/-1;
  padding: 80px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* token card */
.tcard {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.tcard:hover { border-color: var(--sangria); transform: translateY(-1px); }
.tcard-head { display: flex; gap: 12px; align-items: center; }
.tcard-img {
  width: 44px; height: 44px;
  border-radius: 0;
  background: var(--bg-3);
  object-fit: cover;
  border: 1px solid var(--line-2);
}
.tcard-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  line-height: 1.1;
}
.tcard-sym {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--sangria);
  text-transform: uppercase;
  margin-top: 2px;
}
.tcard-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.tcard-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tcard-change {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.tcard-change.up { color: var(--leaf); }
.tcard-change.dn { color: var(--ember); }
.tcard-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tcard-meta .m-label { display: block; margin-bottom: 3px; }
.tcard-meta .m-value { color: var(--text); font-variant-numeric: tabular-nums; }

/* graduated badge */
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--sangria);
  color: var(--sangria);
  background: rgba(193,71,71,0.06);
}
.badge.new { border-color: var(--leaf); color: var(--leaf); background: rgba(95,179,122,0.06); }

/* ── footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.footer a:hover { color: var(--sangria); }
.footer .sep { opacity: 0.5; }
.footer .status { display: inline-flex; align-items: center; gap: 8px; color: var(--leaf); }
.footer .status .live-dot { background: var(--leaf); }

/* ═══ inner pages shared ═══ */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}
.page-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  margin-bottom: 4px;
  color: var(--text);
}
.page-subtitle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ═══ launch form ═══ */
.launch-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}
@media (max-width: 900px) { .launch-grid { grid-template-columns: 1fr; } }
.launch-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
}
.field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 6px;
}
.input, .textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
.input:focus, .textarea:focus { border-color: var(--sangria); }
.textarea { min-height: 80px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.image-drop {
  border: 1px dashed var(--line-2);
  padding: 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all .15s;
}
.image-drop:hover { border-color: var(--sangria); color: var(--sangria); }
.image-drop img {
  max-width: 96px; max-height: 96px;
  margin-bottom: 10px;
  border: 1px solid var(--line-2);
}

.preview-card {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}
.preview-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.preview-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--text);
}
.preview-sym {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--sangria);
  text-transform: uppercase;
  margin-top: 4px;
}
.preview-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}
.preview-row:last-child { border-bottom: 0; }
.preview-row .pr-v { color: var(--text); }

/* ═══ token detail page ═══ */
.t-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.t-avatar {
  width: 64px; height: 64px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  object-fit: cover;
}
.t-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
}
.t-sym {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--sangria);
  margin-top: 4px;
}
.t-mint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 6px;
}
.t-mint button {
  margin-left: 6px;
  color: var(--text-mute);
  border: 1px solid var(--line);
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.t-mint button:hover { color: var(--sangria); border-color: var(--sangria); }

.t-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) { .t-grid { grid-template-columns: 1fr; } }

.chart-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}
.chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.chart-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
}
.chart-change {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.chart-change.up { color: var(--leaf); }
.chart-change.dn { color: var(--ember); }
.chart-canvas {
  width: 100%;
  height: 360px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.chart-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
}
.chart-meta div { padding: 10px 12px; border: 1px solid var(--line); }
.chart-meta .cm-l { color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; font-size: 9px; margin-bottom: 4px; }
.chart-meta .cm-v { color: var(--text); font-variant-numeric: tabular-nums; }

/* trade panel */
.trade-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
  position: sticky;
  top: 90px;
}
.trade-tabs { display: flex; gap: 4px; margin-bottom: 18px; }
.trade-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-mute);
  text-transform: uppercase;
  transition: all .12s;
}
.trade-tab.on.long  { border-color: var(--leaf);   color: var(--leaf); }
.trade-tab.on.short { border-color: var(--ember);  color: var(--ember); }

.lev-row {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.lev-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.lev-value { color: var(--sangria); font-size: 16px; }
.lev-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line-3);
  outline: none;
}
.lev-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--sangria);
  cursor: pointer;
}
.lev-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--sangria);
  border: 0;
  cursor: pointer;
}
.lev-stops {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
}

.trade-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}
.trade-row .tr-v { color: var(--text); font-variant-numeric: tabular-nums; }

.disclaimer {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  line-height: 1.5;
}
.disclaimer strong { color: var(--sangria); }

/* ═══ docs / papp pages ═══ */
.prose {
  max-width: 760px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mute);
}
.prose h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--text);
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-2);
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--text);
}
.prose ul { margin: 14px 0 18px 0; padding-left: 18px; }
.prose ol { margin: 14px 0 18px 0; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--sangria); }
.prose a:hover { text-decoration: underline; }
.prose .pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 3px 8px;
  border: 1px solid var(--sangria);
  color: var(--sangria);
  text-transform: uppercase;
}

/* ═══ toast ═══ */
.toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--panel-up);
  border: 1px solid var(--line-3);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  min-width: 260px;
  animation: toastIn .25s ease;
}
.toast.success { border-color: var(--leaf); }
.toast.error   { border-color: var(--ember); }
.toast.info    { border-color: var(--sangria); }
.toast .t-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.toast.success .t-label { color: var(--leaf); }
.toast.error   .t-label { color: var(--ember); }
.toast.info    .t-label { color: var(--sangria); }
@keyframes toastIn {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
 *  motion — minimal, deliberate, never gimmicky
 *  ───────────────────────────────────────────────────────────────
 *  every animation respects prefers-reduced-motion. nothing loops
 *  faster than ~2s except live-dot pulse (1.8s).
 * ═══════════════════════════════════════════════════════════════ */

/* hero wordmark — fades up, settles. only fires once on first paint */
.wordmark {
  animation: heroIn 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.bullets li {
  animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(0.18s + var(--i, 0) * 0.07s);
}
.cta-row { animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) 0.55s both; }
.stat-grid { animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) 0.35s both; }
.live-feed { animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) 0.5s both; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* card hover lift — slightly softer + adds a thin sangria underline */
.tcard {
  transition: border-color .18s, transform .18s, box-shadow .18s;
  position: relative;
}
.tcard::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--sangria);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.tcard:hover::after { transform: scaleX(1); }

/* live price flash — token detail page price update */
.chart-price {
  transition: color .35s ease;
}
.chart-price.flash-up { color: var(--leaf); }
.chart-price.flash-dn { color: var(--ember); }

/* sangria cursor blink — already exists, but pin the timing exactly */
.cursor { animation: blink 1.1s steps(2) infinite; }

/* search input — small focus glow without losing minimalism */
.search {
  transition: border-color .15s, background-color .15s;
}
.search:focus { background: var(--bg-3); }

/* sort button — animated underline */
.sort-btn { position: relative; overflow: hidden; }
.sort-btn.on::before {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: 4px;
  height: 1px;
  background: var(--sangria);
  animation: sortLine .25s ease-out both;
}
@keyframes sortLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* live feed entry slide-in */
.live-feed-list li {
  animation: feedSlide .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes feedSlide {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* trade panel tab switch */
.trade-tab { transition: all .15s; }

/* token avatar — subtle scale on hover */
.tcard:hover .tcard-img { transform: scale(1.04); }
.tcard-img { transition: transform .25s; }

/* respect user preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
 *  wallet picker modal
 * ═══════════════════════════════════════════════════════════════ */
.wp-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  animation: wpFade .18s ease both;
}
.wp-overlay.wp-closing { animation: wpFade .18s ease reverse both; }
@keyframes wpFade { from { opacity: 0; } to { opacity: 1; } }

.wp-modal {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  margin: 16px;
  animation: wpUp .22s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes wpUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.wp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.wp-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sangria);
}
.wp-close {
  font-size: 22px; line-height: 1;
  color: var(--text-mute);
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all .12s;
}
.wp-close:hover { color: var(--sangria); border-color: var(--line-2); }

.wp-list { list-style: none; }
.wp-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background-color .12s;
}
.wp-item:last-child { border-bottom: 0; }
.wp-item:hover { background: var(--bg-3); }
.wp-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  object-fit: contain;
}
.wp-label {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.wp-detected {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px solid var(--leaf);
  padding: 2px 6px;
}
.wp-install {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sangria);
  border: 1px solid var(--sangria);
  padding: 4px 10px;
  text-decoration: none;
  transition: all .12s;
}
.wp-install:hover { background: var(--sangria); color: var(--bg); }
.wp-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-align: center;
}
.wp-foot a { color: var(--text-mute); }
.wp-foot a:hover { color: var(--sangria); }
