/* Temporary account-pages styling. The real visual identity arrives with
   the landing page; these tokens are the only place colours live, so
   reskinning later means editing :root. */
:root {
  --bg: #0b0b14;
  --bg-glow-1: rgba(255, 209, 102, 0.12);
  --bg-glow-2: rgba(124, 92, 255, 0.16);
  --surface: #151526;
  --surface-2: #1d1d33;
  --border: #2a2a45;
  --text: #ececf4;
  --muted: #9a9ab3;
  --accent: #ffd166;
  --accent-ink: #1a1405;
  --danger: #ff6b7a;
  --success: #4ade80;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(60rem 40rem at 10% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(50rem 40rem at 110% 110%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin: 24px 0 32px;
}
.brand-ball {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--accent) 55%, #c99a2e);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.35);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; text-wrap: balance; }
.lead { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }

label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
input[type='email'], input[type='password'] {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 4px; font-size: 14px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

a { color: var(--accent); }

.btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, opacity 0.15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

.alert { display: none; margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.alert.show { display: block; }
.alert.error { background: rgba(255, 107, 122, 0.1); border: 1px solid rgba(255, 107, 122, 0.4); color: #ffc2c9; }
.alert.success { background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.35); color: #b9f5cf; }

.foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.row-between { display: flex; justify-content: flex-end; margin-top: 8px; font-size: 14px; }

.hidden { display: none !important; }
.center { text-align: center; }
.big-icon { font-size: 44px; margin-bottom: 8px; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
dt { color: var(--muted); }
dd { margin: 0; word-break: break-all; }

.text-left { text-align: left; }
.btn-link { display: block; text-decoration: none; box-sizing: border-box; }

/* Currency choice on sign-up */
.currency-pick { border: 0; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.currency-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); transition: border-color 0.15s, box-shadow 0.15s; }
.choice small { color: var(--muted); font-weight: 400; }
.choice input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.35); }

/* Wallet */
.card.wide { max-width: 720px; }
.balance { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(124, 92, 255, 0.14)); border: 1px solid var(--border); }
.balance-label { color: var(--muted); font-size: 14px; }
.balance-value { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; margin: 24px 0 4px; border-bottom: 1px solid var(--border); }
.tab { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }
select, input[type='text'] { width: 100%; padding: 13px 14px; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); outline: none; }
select:focus-visible, input[type='text']:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2); }
.pay-box { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; margin-top: 20px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.pay-box .qr { background: #fff; border-radius: 10px; padding: 6px; line-height: 0; }
.pay-box .qr svg { width: 100%; height: auto; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; word-break: break-all; }
.copy-row { display: flex; gap: 8px; align-items: center; margin: 6px 0 14px; }
.copy-row .mono { flex: 1; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.btn-small { width: auto; margin: 0; padding: 9px 14px; font-size: 14px; }
.status-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); text-transform: capitalize; }
.status-pill.good { color: var(--success); border-color: rgba(74, 222, 128, 0.4); }
.status-pill.wait { color: var(--accent); border-color: rgba(255, 209, 102, 0.4); }
.status-pill.bad { color: var(--danger); border-color: rgba(255, 107, 122, 0.4); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.pos { color: var(--success); }
.empty { color: var(--muted); text-align: center; padding: 20px 0; }
.nav-links { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 14px; }
.actions { display: flex; gap: 6px; }
@media (max-width: 560px) {
  .pay-box { grid-template-columns: 1fr; }
  .pay-box .qr { max-width: 200px; margin: 0 auto; }
}
