@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0b0c;
  --panel: #141516;
  --panel2: #1b1c1e;
  --line: #2a2c2e;
  --line2: #3a3d40;
  --text: #f2f2ee;
  --muted: #8b8f84;
  --dim: #5d6058;
  --lime: #c8ff3c;
  --lime-ink: #0b0b0c;
  --lime-soft: rgba(200, 255, 60, .12);
  --red: #ff5c5c;
  --red-soft: rgba(255, 92, 92, .12);
  --warn: #ffb547;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; }
input, select { font: inherit; color: inherit; }
img { display: block; }

.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.lime { color: var(--lime); }
.up { color: var(--lime); }
.down { color: var(--red); }

/* 品牌字标 */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; letter-spacing: -.5px; }
.brand img { width: 26px; height: 26px; }
.brand b { color: var(--lime); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  font-weight: 600; text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover:not(:disabled) { filter: brightness(1.08); }
.btn-lime:disabled { background: var(--panel2); color: var(--dim); }
.btn-ghost { background: var(--panel2); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line2); }
.btn-red { background: var(--red); color: #1a0505; }
.pill { padding: 7px 12px; border-radius: 999px; font-size: 13px; }

/* 输入 */
.field { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: 0; transition: border-color .15s; }
.field:focus { border-color: var(--line2); }
.field::placeholder { color: var(--dim); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }

/* 链标签 */
.chain-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--panel2); border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* 代币头像（无 logo 时用首字母） */
.tok-av { width: 36px; height: 36px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); object-fit: cover;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--lime); flex: none; overflow: hidden; }

/* 弹层（钱包选择等） */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 6, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.sheet h3 { margin: 0 0 2px; font-size: 17px; }
.sheet p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.sheet .opt { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px; text-decoration: none; text-align: left; font-weight: 500; }
.sheet .opt:hover { border-color: var(--lime); }
.sheet .opt img { width: 24px; height: 24px; border-radius: 6px; }
.sheet .close { color: var(--muted); padding: 8px; margin-top: 2px; }

/* 提示条 */
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.toast.show { opacity: 1; }
