/* design tokens (locked) - clean fintech dashboard, boring on purpose, the mundanity IS the joke
   palette: white #FFFFFF bg, ink #111318 text, grey #6B6B6B labels, pale-blue #2E86DE accent, divider #E9ECEF
   type: Fira Sans (dashboard sans) + Fira Code (mono, for the CA and the counter's digits)
   spacing scale: 8 / 12 / 16 / 24 / 32 / 48px. corner radius: 16px on the panel, 999px on pills/buttons.
   motion: one thing only, a slow real tick on the fee counter every few seconds. nothing else moves. */

@font-face {
  font-family: 'Fira Sans';
  src: url('./fonts/fira-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('./fonts/fira-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('./fonts/fira-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Code';
  src: url('./fonts/fira-code-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --ink: #111318;
  --grey: #6B6B6B;
  --accent: #2E86DE;
  --divider: #E9ECEF;
  --green: #2ECC71;
  --sans: 'Fira Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fira Code', 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
}

.panel {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 19, 24, 0.04);
}

.panel-inner {
  padding: 32px 28px 24px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticker-row {
  margin-bottom: 16px;
}

.ticker {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chain-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 4px 10px;
}

.lede {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
  margin: 0 0 24px;
  max-width: 34ch;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.stat-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}

.stat-value {
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 4px 0 20px;
}

.recipient-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.avatar-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.32);
  flex-shrink: 0;
  background: #eee;
}

.recipient-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.handle {
  font-size: 16px;
  font-weight: 600;
  color: var(--grey);
}

.followers {
  font-size: 15px;
  color: var(--ink);
}

.followers strong {
  font-weight: 700;
}

.ca-row {
  margin-bottom: 20px;
  gap: 8px;
  flex-wrap: wrap;
}

.ca-label {
  font-size: 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ca-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: #F6F7F8;
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ca-value:hover {
  border-color: var(--accent);
}

.copy-flag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transition: opacity 150ms ease;
}

.copy-flag.show {
  opacity: 1;
}

.action-row {
  gap: 10px;
}

.buy-btn {
  flex: 1;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  transition: background 150ms ease;
}

.buy-btn:hover {
  background: #2470bd;
}

.x-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 150ms ease;
}

.x-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fallback-note {
  font-size: 11px;
  color: #B0B4BA;
  margin: 20px 0 0;
  text-align: center;
}

@media (max-width: 400px) {
  .panel-inner { padding: 24px 20px 20px; }
  .ticker { font-size: 26px; }
  .stat-value { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
