/* Private account app. Neutral bank look on tokens; the site template's palette and type are mapped onto these variables. */
:root {
  --bg: #000000; --panel: #0F0F11; --ink: #FFFFFF; --ink2: #E9E9EE; --slate: #B3B3BA; --mute: #8E8E93; --line: #1F1F23; --soft: #17171A;
  --accent: #FFFFFF; --accentInk: #000000; --gold: #FF5B3A; --usd: #5BD48A; --save: #9B5CFF; --bad: #FF5B3A; --good: #5BD48A;
  --grad: linear-gradient(135deg, #FF6A2B 0%, #E0337A 52%, #7A2CFF 100%);
  --display: Satoshi, system-ui, sans-serif; --sans: Satoshi, system-ui, -apple-system, sans-serif;
  --shadow: 0 30px 60px -40px rgba(0, 0, 0, .7); --r: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--mute); } .small { font-size: 13px; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: .01em; }

.hdr { display: flex; align-items: center; gap: 28px; padding: 22px 40px; max-width: 1240px; margin: 0 auto; }
.logo { text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 30px; width: auto; display: block; }
.hnav { display: flex; gap: 4px; }
.hnav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 500; color: var(--slate); }
.hnav a.on, .hnav a:hover { color: var(--ink); background: var(--soft); }
.hdr .sp { flex: 1; }
.pill { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; white-space: nowrap; }
.pill.dark { background: var(--accent); color: var(--accentInk); border-color: var(--accent); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 40px 90px; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; transition: background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accentInk); border-color: var(--accent); }
.btn.primary:hover { background: var(--ink2); border-color: var(--ink2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.wide { width: 100%; margin-top: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link:hover { text-decoration-color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* signed out */
.outv { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 40px 0 70px; }
.outv h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 18px; text-wrap: balance; }
.lede { font-size: 18px; color: var(--slate); max-width: 540px; }

/* the account card (a statement card, not a payment card) */
.acct-card { aspect-ratio: 1.586; border-radius: 26px; padding: 28px 30px; background: var(--grad); border: 0; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 50px 80px -40px rgba(14, 15, 18, .6); }
.ac-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; opacity: .85; }
.ac-top span:first-child { font-family: var(--display); font-size: 18px; font-weight: 700; opacity: 1; }
.ac-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .12em; }
.ac-bal span { display: block; font-size: 12px; opacity: .6; } .ac-bal b { font-family: var(--display); font-weight: 500; font-size: 28px; }
.ac-pk { display: flex; gap: 22px; font-size: 13px; opacity: .85; } .ac-pk div { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .dot.usd { background: var(--usd); } .dot.save { background: var(--save); }

/* signed in */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 24px 0 10px; }
.total b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.total span { color: var(--mute); font-size: 14px; }
.acts.main { margin-top: 0; }
.pockets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.pocket { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow); }
.pocket header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.pocket header span:first-child { display: flex; align-items: center; gap: 8px; }
.pv { display: block; font-family: var(--display); font-weight: 500; font-size: 40px; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.ps { min-height: 20px; }
.pa { display: flex; gap: 18px; margin-top: 14px; }
.sec { display: flex; align-items: baseline; gap: 14px; font-size: 15px; font-weight: 700; margin: 46px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cardt { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s; }
.cardt:hover { border-color: var(--ink); }
.cardt img { width: 28px; height: 28px; margin-bottom: 8px; }
.cardt span { color: var(--mute); font-size: 13px; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--ink); border-radius: 16px; padding: 14px 18px; margin-top: 14px; }
.stmt { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 22px; margin-bottom: 10px; }
.stmt > p { padding: 16px 0; }
.srow { display: grid; grid-template-columns: 110px 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.srow:first-child { border-top: 0; }
.srow .d { color: var(--mute); font-size: 13px; } .srow .w b { font-weight: 600; display: block; } .srow .w span { color: var(--mute); font-size: 13px; }
.srow .a { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; } .srow .a.in { color: var(--good); } .srow .a span { display: block; color: var(--mute); font-weight: 400; font-size: 12.5px; }
.proof { margin-top: 30px; }
.kv4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 12px; }
.kv4 div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.kv4 dt { color: var(--mute); font-size: 13px; } .kv4 dd { font-family: var(--display); font-weight: 500; font-size: 26px; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* modal, fields, steps */
.ov { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); }
.modal { width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; position: relative; box-shadow: 0 40px 80px -30px rgba(14, 15, 18, .55); }
.modal h2 { font-family: var(--display); font-weight: 500; font-size: 30px; margin-bottom: 8px; padding-right: 34px; letter-spacing: -.01em; }
.modal p { color: var(--slate); margin-bottom: 14px; }
.modal .x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; line-height: 1; }
.field { display: block; } .field > span { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.inp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 4px 4px 4px 14px; }
.inp input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 10px 0; font-size: 16px; }
.inp .unit { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; background: var(--panel); border: 1px solid var(--line); }
.inp select { border: 0; background: none; padding: 10px 6px; outline: none; width: 100%; font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.seg button { padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--slate); }
.seg button.on { background: var(--accent); color: var(--accentInk); }
.payees { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 2px; }
.payees button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--slate); }
.payees button img { width: 22px; height: 22px; } .payees button.on { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.payees button:not(:has(img))::before { content: ''; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid currentColor; }
.sum { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; } .sum div { display: flex; justify-content: space-between; gap: 14px; } .sum dt { color: var(--slate); } .sum dd { font-weight: 600; text-align: right; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--slate); margin-top: 14px; }
.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); opacity: .55; }
.steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.steps li b { font-weight: 600; } .steps li span { color: var(--mute); font-size: 13px; }
.steps li.on { opacity: 1; border-color: var(--ink); } .steps li.on::before { background: var(--accent); color: var(--accentInk); border-color: var(--accent); }
.steps li.done { opacity: 1; } .steps li.done::before { content: '✓'; background: var(--good); color: #fff; border-color: var(--good); }
.steps li.bad { opacity: 1; border-color: var(--bad); } .steps li.bad::before { content: '!'; background: var(--bad); color: #fff; border-color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; z-index: 60; max-width: min(520px, calc(100% - 32px)); font-size: 14px; }
.toast.bad { background: var(--bad); }
.dep { background: var(--bg); border: 1px dashed var(--gold); border-radius: 16px; padding: 14px; margin: 12px 0 6px; display: flex; flex-direction: column; gap: 4px; }
.dep b { font-family: var(--display); font-weight: 500; font-size: 22px; } .dep .addr { margin: 4px 0; font-size: 13px; }

@media (max-width: 900px) {
  .hdr { padding: 16px; gap: 12px; } .hnav { display: none; }
  .wrap { padding: 12px 16px 60px; }
  .outv { grid-template-columns: 1fr; gap: 34px; padding: 20px 0 40px; }
  .pockets, .kv4 { grid-template-columns: 1fr 1fr; } .cards { grid-template-columns: 1fr 1fr; }
  .acts.main .btn { flex: 1; padding: 12px 14px; }
}
@media (max-width: 560px) {
  .pockets { grid-template-columns: 1fr; } .kv4 dd { font-size: 21px; }
  .srow { grid-template-columns: 1fr auto; } .srow .d { grid-column: 1 / -1; }
  .payees { grid-template-columns: repeat(3, 1fr); } .row2 { grid-template-columns: 1fr; }
}

.logo i { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.logo i svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grad-text { background: linear-gradient(90deg, #FF8A4C, #E0337A 55%, #9B5CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li.on::before { background: var(--grad); color: #fff; border-color: transparent; }
.seg button.on { background: #fff; color: #000; }
.pv, .total b, .kv4 dd { font-weight: 700; }
