:root {
  --bg: #0f1222;
  --card: #1b2040;
  --accent: #7c6cf0;
  --text: #eef0ff;
  --muted: #9aa0c8;
  --plus: #4ade80;
  --minus: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 16px;
  max-width: 560px;
  margin: 0 auto;
}

h1 { font-size: 24px; margin-bottom: 4px; }
.subtitle { color: var(--muted); margin-bottom: 16px; }
.section-title { font-size: 16px; color: var(--muted); margin: 20px 0 8px; }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.wallet-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.balance { font-size: 20px; font-weight: 700; color: var(--plus); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 6px;
}

.agent-name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.agent-desc { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.soon { color: var(--muted); font-size: 13px; }

.history { color: var(--text); }
.hrow {
  display: flex;
  justify-content: space-between;
  background: var(--card);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: 14px;
}
.plus { color: var(--plus); font-weight: 600; }
.minus { color: var(--minus); font-weight: 600; }

.hidden { display: none; }
.hint { color: var(--muted); font-size: 12px; margin-top: 20px; }

.topup { margin-top: 10px; }
.topup .hint { margin-top: 0; margin-bottom: 8px; }
.topup-row { display: flex; gap: 8px; }
.topup-row .btn {
  flex: 1;
  margin-top: 0;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
}
