/* Ideric Bank — white and blue, mobile first.
   The blues are lifted from the logo so the brand and the interface agree. */

:root {
  --blue-900: #0a2472;
  --blue-700: #123bb8;
  --blue-600: #1a4fe0;
  --blue-500: #2563f0;
  --blue-100: #e4ecff;
  --blue-050: #f3f7ff;
  --ink:      #0d1b3e;
  --ink-soft: #5b6a8f;
  --line:     #dfe6f5;
  --white:    #ffffff;
  --green:    #0f9d58;
  --red:      #d93025;
  --amber:    #b06f00;
  --radius:   14px;
  --shadow:   0 1px 2px rgba(13,27,62,.06), 0 8px 24px rgba(13,27,62,.06);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--blue-050);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 980px; }

/* ---- the split screen used by sign-in and registration ---------------- */

.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 48px;
}
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo img { width: 128px; height: auto; }
.auth-title { font-size: 1.45rem; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.auth-sub {
  text-align: center; color: var(--ink-soft); font-size: .93rem;
  margin: 6px 0 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* ---- forms ------------------------------------------------------------ */

.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 12px 13px;
  font-size: 1rem;           /* 16px: anything smaller makes iOS zoom on focus */
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .help { font-size: .78rem; color: var(--ink-soft); margin-top: 5px; }
.field .err  { font-size: .78rem; color: var(--red);      margin-top: 5px; font-weight: 600; }

/* Country code + number, side by side, without the code shrinking away. */
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 120px; }
.phone-row input  { flex: 1 1 auto; min-width: 0; }

.btn {
  display: block; width: 100%;
  padding: 13px 18px;
  font-size: 1rem; font-weight: 700; font-family: inherit;
  color: var(--white);
  background: var(--blue-600);
  border: none; border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
}
.btn:hover  { background: var(--blue-700); }
.btn:active { background: var(--blue-900); }
.btn:disabled { background: var(--ink-soft); cursor: not-allowed; }
.btn-ghost {
  background: var(--white); color: var(--blue-600);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--blue-050); }

.alt { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }

/* ---- notices ---------------------------------------------------------- */

.notice {
  padding: 11px 14px; border-radius: 10px;
  font-size: .88rem; margin-bottom: 16px; line-height: 1.5;
  border: 1px solid transparent;
}
.notice-err  { background: #fdeceb; color: #8f1d15; border-color: #f6c9c5; }
.notice-ok   { background: #e6f4ea; color: #0b6b3a; border-color: #b7e0c6; }
.notice-info { background: var(--blue-100); color: var(--blue-900); border-color: #c9d9ff; }
.notice-warn { background: #fff6e0; color: #7a4a06; border-color: #f2d79a; }

/* An "you still have to do this" block: a heading, a sentence and the button
   that fixes it. The left bar is what stops it reading as ordinary help text —
   these two notices are the only things on the dashboard the customer is
   actually being asked to act on. */
.alert-block { border-left: 4px solid #d99b1c; padding: 14px; }
.alert-block b { display: block; font-size: .95rem; margin-bottom: 4px; }
.alert-block p { margin: 0 0 11px; }

/* Sized to sit inside a notice without becoming the widest thing on the page,
   which is what a full-width .btn does here. */
.btn-sm {
  display: inline-block; width: auto; padding: 8px 16px;
  font-size: .84rem; margin: 0;
}

/* ---- the signed-in shell --------------------------------------------- */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.balance-card {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 10px 28px rgba(18,59,184,.28);
}
.balance-card .lbl { font-size: .78rem; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.balance-card .amt { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 12px; }
.balance-card .acct { font-size: .82rem; opacity: .9; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.action {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 6px; text-align: center; font-size: .74rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.action:hover { background: var(--blue-050); text-decoration: none; }
.action .ico { display: block; font-size: 1.25rem; margin-bottom: 5px; }

.section-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-soft); margin: 22px 0 10px;
}

.tx { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: none; }
.tx .ico {
  flex: 0 0 38px; height: 38px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.tx .mid { flex: 1 1 auto; min-width: 0; }
.tx .mid b { display: block; font-size: .92rem; font-weight: 600; }
.tx .mid span { font-size: .78rem; color: var(--ink-soft); }
.tx .amt { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.tx .amt.in  { color: var(--green); }
.tx .amt.out { color: var(--ink); }

.empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; font-size: .9rem; }

.pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pill-pending  { background: #fff4e0; color: var(--amber); }
.pill-approved { background: #e6f4ea; color: #0b6b3a; }
.pill-rejected { background: #fdeceb; color: #8f1d15; }

.foot { text-align: center; color: var(--ink-soft); font-size: .78rem; padding: 26px 0 34px; }

/* --------------------------------------------------------------------------
   Added with the money screens (deposit / send / withdraw / history / cards /
   settings / admin). Everything below reuses the variables above so the new
   pages cannot drift away from the brand colours.
   -------------------------------------------------------------------------- */

/* Seven tiles do not fit in four columns on a phone. Auto-fit keeps them
   square-ish at any width instead of squeezing them to a sliver. */
.actions { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }

/* A label/value list. Used for limits, fees and account details — the same
   shape everywhere so a customer learns to read it once. */
.kv { margin: 0 0 16px; }
.kv > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.kv > div:last-child { border-bottom: none; }
.kv span { color: var(--ink-soft); }
.kv b { font-weight: 700; text-align: right; }

/* A deposit rail or a card product. */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rail-head b { font-size: 1rem; }
.rail-blurb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 12px; }
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rail-fee { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
/* Shut rails stay readable — dimming them to unreadable is not the same as
   saying they are closed, and the pill already says it. */
.rail-shut { opacity: .72; }

/* History filters. */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab {
  font-size: .82rem; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
}
.tab:hover { text-decoration: none; border-color: var(--blue-500); }
.tab-on { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pager span { font-size: .82rem; color: var(--ink-soft); }

.tx .amt small { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-soft); }

.field input:disabled { background: var(--blue-050); color: var(--ink-soft); }

/* --- admin ---------------------------------------------------------------- */

.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.adm-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.adm-stat span { display: block; font-size: .76rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.adm-stat b { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

/* Wide tables must scroll inside their own box. A table that widens the page
   makes every other element on it scroll sideways too. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.adm { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.adm th, table.adm td { padding: 9px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.adm th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
table.adm tr:last-child td { border-bottom: none; }
table.adm td.num, table.adm th.num { text-align: right; }

/* One editable setting: its name, what it does, and its value. The
   explanation is not decoration — a settings screen that is only key/value
   pairs is a screen nobody dares change anything on. */
.set-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-row label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 2px; }
.set-row .what { font-size: .78rem; color: var(--ink-soft); margin-bottom: 7px; }
.set-row input, .set-row select {
  width: 100%; padding: 9px 11px; font-size: .92rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.set-row input:focus, .set-row select:focus { outline: none; border-color: var(--blue-500); }

/* ---------------------------------------------------------------------------
   Round 2: receipt, verification, statement, settings list, payment marks.
   Appended rather than merged into the sections above so a diff of this deploy
   is one block instead of thirty scattered lines.
   ------------------------------------------------------------------------ */

/* The transfer receipt. Its own screen, so it is centred and generous. */
.receipt { text-align: center; padding: 26px 0 8px; }
.receipt h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.receipt-sub { color: var(--ink-soft); font-size: .92rem; margin-top: 4px; }
.receipt-mark {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: var(--white); font-size: 2.1rem; line-height: 76px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(18,59,184,.28);
  animation: popIn .45s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes popIn { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.receipt-amt {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--blue-700); margin-top: 18px;
}
.receipt-cur { font-size: .78rem; color: var(--ink-soft); letter-spacing: .12em; margin-bottom: 18px; }
.receipt-kv {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 16px; text-align: left; box-shadow: var(--shadow);
}
.receipt-note { font-size: .82rem; color: var(--ink-soft); margin: 14px 0 18px; }

/* Identity verification states. */
.kyc-state {
  text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 20px; margin: 18px 0;
  box-shadow: var(--shadow);
}
.kyc-state b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.kyc-state span { display: block; color: var(--ink-soft); font-size: .9rem; }
.kyc-mark {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%;
  color: var(--white); font-size: 1.8rem; line-height: 66px; font-weight: 700;
}
.kyc-ok   .kyc-mark { background: var(--green); }
.kyc-no   .kyc-mark { background: var(--red); }
.kyc-wait .kyc-mark { background: var(--amber); }
.kyc-list { margin: 6px 0 12px 18px; font-size: .9rem; color: var(--ink-soft); }
.kyc-list li { margin-bottom: 5px; }

/* Statement. */
.period-row { display: flex; gap: 12px; }
.period-row .field { flex: 1 1 0; min-width: 0; }
.statement-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.statement-band > div { text-align: center; }
.statement-band span { display: block; font-size: .68rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .05em; }
.statement-band b { display: block; font-size: .98rem; font-weight: 700; margin-top: 3px; }
.statement-band b.in  { color: var(--green); }
.statement-band b.out { color: var(--ink); }
@media (max-width: 420px) { .statement-band { grid-template-columns: repeat(2, 1fr); } }

/* The settings list, one row per thing. */
.set-list { margin-bottom: 8px; }
.set-item {
  display: flex; align-items: center; gap: 13px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; color: inherit; box-shadow: var(--shadow);
}
.set-item:hover { text-decoration: none; border-color: var(--blue-500); background: var(--blue-050); }
.set-ico {
  flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--blue-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.set-body { flex: 1 1 auto; min-width: 0; }
.set-body b  { display: block; font-size: .93rem; font-weight: 650; }
.set-body em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-soft); }
.set-go { color: var(--ink-soft); font-size: 1.4rem; line-height: 1; }

/* Profile chip. */
.profile-chip { display: flex; align-items: center; gap: 15px; }
.avatar {
  flex: 0 0 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: var(--white); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.profile-who { min-width: 0; }
.profile-who b { display: block; font-size: 1rem; }
.profile-who span { display: block; font-size: .78rem; color: var(--ink-soft); word-break: break-word; }

/* Payment-method and card marks. */
.rail-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rail-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; flex: 0 0 auto; }
.rail-form { margin-top: 4px; }
.tx .ico.card-ico { background: var(--white); border: 1px solid var(--line); padding: 4px; }
.tx .ico.card-ico img { width: 100%; height: 100%; object-fit: contain; }

/* The band an admin sees while signed in as somebody else. */
.impersonate {
  background: #8f1d15; color: #fff; font-size: .82rem; line-height: 1.5;
  padding: 10px 18px; text-align: center;
}
.impersonate a { color: #fff; text-decoration: underline; font-weight: 700; margin-left: 6px; }

/* A row of admin buttons that wraps instead of overflowing on a phone. */
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-actions form { flex: 1 1 200px; }
.adm-actions .btn { width: 100%; }

/* ---------------------------------------------------------------------------
   Round 3: the hosted checkout, API keys and the documentation page.
   ------------------------------------------------------------------------ */

/* The amount on the checkout confirm page. It is the one thing on that screen
   somebody must not misread, so nothing else competes with it. */
.checkout-amt {
  text-align: center; padding: 18px 0 20px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.checkout-amt span {
  display: block; font-size: .72rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-soft);
}
.checkout-amt b {
  display: block; font-size: 2.3rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--blue-700); margin-top: 4px;
}

/* A freshly issued key. Monospace and breakable, because it is 57 characters
   with no spaces and it has to be readable to be copied by hand. */
.apikey-show {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.6; word-break: break-all;
  background: var(--blue-050); border: 1px solid var(--blue-100);
  border-radius: 10px; padding: 13px 14px; margin-bottom: 12px;
  -webkit-user-select: all; user-select: all;
}

/* Documentation. */
.doc-call { padding-top: 16px; }
.doc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.doc-method {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 6px; color: var(--white);
}
.doc-post { background: var(--blue-700); }
.doc-get  { background: var(--green); }
.doc-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem; font-weight: 600; word-break: break-all;
}
.doc-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 5px;
}
.doc-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem; line-height: 1.6; white-space: pre;
  background: #0d1b3e; color: #dbe4f7;
  border-radius: 10px; padding: 13px 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.doc-steps { margin: 10px 0 12px 20px; font-size: .9rem; color: var(--ink-soft); }
.doc-steps li { margin-bottom: 7px; }
.doc-steps b { color: var(--ink); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em; background: var(--blue-050);
  border: 1px solid var(--blue-100); border-radius: 5px; padding: 1px 5px;
}
.doc-code code { background: none; border: none; padding: 0; }

/* Long-form policy pages: privacy, terms, account deletion. Wider than a
   form card and set for reading rather than filling in. */
.doc { text-align: left; }
.doc h2 {
  font-size: 1rem; margin: 22px 0 8px; color: var(--ink);
}
.doc h2:first-child { margin-top: 0; }
.doc p {
  font-size: .92rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 11px;
}
.doc p strong, .doc li strong { color: var(--ink); }
.doc-list {
  margin: 0 0 12px 20px; padding: 0;
  font-size: .92rem; line-height: 1.6; color: var(--ink-soft);
}
.doc-list li { margin-bottom: 7px; }
.doc .field { text-align: left; }
.foot-links { display: block; margin-top: 6px; }
.foot-links a { color: inherit; text-decoration: none; margin: 0 7px; }
.foot-links a:hover { text-decoration: underline; }

/* ---- the debit card itself -------------------------------------------- */
/* A card that only exists as a line of text does not look like a card the
   customer owns. This is the same shape as the Dessalines card screen: the
   face, the balance under it, then the buttons. */

.cardbox { margin-bottom: 18px; }

.cardface {
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 62%, var(--blue-500) 100%);
  box-shadow: 0 10px 28px rgba(10,36,114,.28);
  overflow: hidden;
}
/* The soft sheen. Purely decorative, and it must never sit above the text. */
.cardface::after {
  content: "";
  position: absolute; right: -60px; top: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.cardface-mastercard {
  background: linear-gradient(135deg, #1b1f3b 0%, #3b2a6d 58%, #6a3fa0 100%);
  box-shadow: 0 10px 28px rgba(27,31,59,.3);
}

.cf-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
/* NO filter here. `brightness(0) invert(1)` turns any mark into a solid white
   silhouette — which for a wordmark on a plate is a plain white rectangle with
   the word gone. The two marks are chosen to read on a dark face instead. */
.cf-brand { height: 30px; width: auto; }
.cf-brand-visa { height: 26px; }
.cf-brand-mastercard { height: 34px; }

.cf-eye {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  min-width: 62px;
}
.cf-eye:hover:not(:disabled) { background: rgba(255,255,255,.24); }
.cf-eye:disabled { opacity: .6; cursor: default; }

.cf-num {
  position: relative; z-index: 1;
  margin: 22px 0 18px;
  font-size: 1.22rem; font-weight: 700; letter-spacing: .11em;
  font-variant-numeric: tabular-nums;
  /* A revealed 19-character number must not push the card wider on a phone. */
  word-break: break-all;
}

.cf-bottom { position: relative; z-index: 1; display: flex; gap: 18px; }
.cf-bottom > div { min-width: 0; }
.cf-lab {
  display: block; font-size: .62rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; opacity: .72;
}
.cf-val { font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.cardbal {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px; margin-top: 12px;
}
.cardbal .cf-lab { color: var(--ink-soft); opacity: 1; }
.cardbal-amt {
  font-size: 1.42rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--blue-700); font-variant-numeric: tabular-nums;
}

.card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.card-acts .btn { width: auto; flex: 1 1 auto; min-width: 96px; }

.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b3261e; border-color: #b3261e; }

.card-msg {
  margin-top: 10px; padding: 10px 13px; border-radius: 10px;
  font-size: .86rem; border: 1px solid var(--line); background: var(--white);
}
.card-msg-ok  { border-color: #b7e1c4; background: #e6f4ea; color: #0b6b3a; }
.card-msg-bad { border-color: #f3c3bf; background: #fdeceb; color: #8f1d15; }

.card-panel {
  margin-top: 10px; padding: 14px 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-panel .btn { width: 100%; }
.card-panel .tx:last-child { border-bottom: 0; }

.billgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.billgrid > div { min-width: 0; }
.cf-v2 { font-size: .9rem; font-weight: 600; word-break: break-word; }
