/* UKE MyAccount.
   Phone first. Most people will open this on a phone, standing up, to check one number —
   so the layout is a single column at every width and the remaining balance is the largest
   thing on the page. Everything is 48px+ to be thumb-hittable. */

:root {
  --navy: #1a3552;
  --bg: #f5f6f8;
  --surface: #fff;
  --text: #111827;
  --muted: #6b7280;
  --border: #d9dde3;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1620; --surface: #182231; --text: #e8eaed; --muted: #9aa4b2;
    --border: #2a3547;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.hd { background: var(--navy); color: #fff; }
.hd-in { max-width: 680px; margin: 0 auto; padding: 14px 16px;
         display: flex; align-items: center; gap: 12px; }
.hd-logo { font-size: 18px; font-weight: 600; flex: 1; }
.hd-logo span { color: #7fb2e5; font-weight: 800; }
.hd-out { min-height: 44px; padding: 0 16px; border-radius: 8px; cursor: pointer;
          background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3);
          font-size: 14px; font-family: inherit; }

.wrap { max-width: 680px; margin: 0 auto; padding: 16px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
        padding: 18px 18px; margin-bottom: 14px; }
.card h2 { margin: 0 0 4px; font-size: 19px; }
.card h3 { margin: 18px 0 8px; font-size: 15px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* The number people open the app for. */
.bal { text-align: center; padding: 26px 18px; }
.bal .n { font-size: 54px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.bal .n.neg { color: var(--bad); }
.bal .u { font-size: 15px; color: var(--muted); margin-top: 6px; }

.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.fig { text-align: center; padding: 10px 6px; border: 1px solid var(--border); border-radius: 10px; }
.fig b { display: block; font-size: 18px; }
.fig span { font-size: 11.5px; color: var(--muted); text-transform: uppercase;
            letter-spacing: .03em; }

label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input[type=email], input[type=text], input[type=date], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px;  /* 16px stops iOS zooming */
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font-family: inherit;
}
textarea { min-height: 84px; }

/* The PIN box. Big, centred, spaced — it is copied from an email under time pressure. */
.pin { font-size: 30px; text-align: center; letter-spacing: .3em; font-weight: 700; }

.check { display: flex; align-items: center; gap: 12px; font-weight: 400;
         min-height: 48px; margin: 4px 0; }
.check input { width: 24px; height: 24px; min-height: 24px; }

.btn { display: block; width: 100%; min-height: 52px; border-radius: 10px; cursor: pointer;
       font-size: 16px; font-weight: 600; font-family: inherit; border: 1px solid var(--border);
       background: var(--surface); color: var(--text); margin-top: 14px; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn:disabled { opacity: .5; cursor: default; }

.quote { border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-size: 14.5px; line-height: 1.6; }
.quote.ok  { background: rgba(22,163,74,.10);  border: 1px solid rgba(22,163,74,.35); }
.quote.bad { background: rgba(220,38,38,.09);  border: 1px solid rgba(220,38,38,.35); color: var(--bad); }
.quote.info{ background: rgba(26,53,82,.05);   border: 1px solid var(--border); color: var(--muted); }

.row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
       border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row .g { flex: 1; }
.row .d { font-weight: 600; }
.row .s { font-size: 13px; color: var(--muted); margin-top: 2px; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px;
       border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.tag.approved { background: rgba(22,163,74,.13); color: var(--ok); }
.tag.pending  { background: rgba(217,119,6,.15); color: var(--warn); }
.tag.declined { background: rgba(220,38,38,.13); color: var(--bad); }
.tag.other    { background: rgba(0,0,0,.06);     color: var(--muted); }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { flex: 1; min-height: 48px; border-radius: 10px; border: 1px solid var(--border);
               background: var(--surface); color: var(--text); font-size: 14px;
               font-family: inherit; cursor: pointer; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.note { border-left: 4px solid var(--warn); background: rgba(217,119,6,.09);
        padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin: 12px 0; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 648px;
         margin: 0 auto; background: var(--navy); color: #fff; padding: 14px 16px;
         border-radius: 10px; font-size: 15px; z-index: 10; }
.toast.bad { background: var(--bad); }

a { color: var(--navy); }
@media (prefers-color-scheme: dark) { a { color: #7fb2e5; } }
