:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface2: #1f232c;
  --border: #2a2f3a;
  --text: #e8eaed;
  --muted: #8b92a3;
  --accent: #5b8cff;
  --green: #2ecc71;
  --red: #ef5a5a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
.shell { max-width: 480px; margin: 0 auto; padding: 20px; }
.hidden { display: none !important; }
.brand { font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.row .label { color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
.green { color: var(--green); }
.red { color: var(--red); }
button {
  cursor: pointer; border: none; border-radius: 10px; padding: 12px 16px;
  font-size: 15px; font-weight: 600; width: 100%;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-buy { background: var(--green); color: #06210f; }
.btn-sell { background: var(--red); color: #250404; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
input, select {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 10px;
}
label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.toggle-row { display: flex; gap: 8px; margin-bottom: 10px; }
.toggle-row button { flex: 1; background: var(--surface2); color: var(--muted); }
.toggle-row button.active-buy { background: var(--green); color: #06210f; }
.toggle-row button.active-sell { background: var(--red); color: #250404; }
.error { color: var(--red); font-size: 13px; margin-top: 8px; }
.success { color: var(--green); font-size: 13px; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--border); }
