/* ============================================================
   Heritage Trust Bank — Design System
   Mature, modern community-bank aesthetic. Deep evergreen
   primary palette with a warm brass accent and graphite neutrals.
   ============================================================ */

:root {
  --brand-950: #072B1E;
  --brand-900: #0A3D28;
  --brand-800: #0C4B33;
  --brand-700: #105A3C;
  --brand-600: #146B47;
  --brand-500: #1B7F55;
  --brand-400: #2E9B6E;
  --brand-300: #66C39A;
  --brand-200: #A5DCC2;
  --brand-100: #DCEFE4;
  --brand-50:  #F0F7F2;

  --brass-600: #97772F;
  --brass-500: #B08D3E;
  --brass-400: #C9A95C;
  --brass-300: #E0C98B;

  --ink-900: #16221C;
  --ink-700: #2B3A32;
  --ink-600: #41524A;
  --ink-500: #5B6B62;
  --ink-400: #7C8A81;
  --ink-300: #A6B1A9;
  --line:    #E3E8E4;
  --line-soft: #EDF1ED;
  --surface:  #FFFFFF;
  --canvas:   #F4F6F3;
  --canvas-deep: #EEF2ED;

  --danger-700: #8F1D14;
  --danger-600: #B3261E;
  --danger-100: #FBE9E7;
  --success-700: #0B5D3B;
  --success-100: #E2F3E9;
  --info-700: #1D4E6B;
  --info-100: #E5F0F6;
  --warn-700: #8A6210;
  --warn-100: #FCF3DC;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(22, 34, 28, 0.05);
  --shadow: 0 1px 3px rgba(22, 34, 28, 0.06), 0 8px 24px rgba(22, 34, 28, 0.05);
  --shadow-lg: 0 2px 6px rgba(22, 34, 28, 0.07), 0 18px 44px rgba(22, 34, 28, 0.10);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --side-width: 252px;
  --top-height: 68px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-700);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink-900); margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: 1.65rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
h4 { font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-600); }
img { max-width: 100%; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: .9em; }

::selection { background: var(--brand-200); color: var(--brand-950); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all .16s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 1px 2px rgba(16, 90, 60, .25); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-primary:active { background: var(--brand-800); transform: translateY(0); }

.btn-secondary { background: var(--surface); color: var(--ink-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand-400); color: var(--brand-700); }

.btn-ghost { background: transparent; color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-50); }

.btn-danger { background: var(--danger-600); color: #fff; }
.btn-danger:hover { background: var(--danger-700); color: #fff; }

.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-block { width: 100%; }

/* ------------------------------------------------------------ forms */
.form-group { margin-bottom: 18px; }
.form-group label, .field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: .01em;
}
.form-group .hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-400); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-900);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(27, 127, 85, .14);
}
.input::placeholder { color: var(--ink-300); }
.textarea { min-height: 96px; resize: vertical; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 40px; }
.input-icon-wrap > svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-400); pointer-events: none;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.checkbox-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand-700); }
.checkbox-row small { display: block; color: var(--ink-400); font-size: 12.5px; }

/* ------------------------------------------------------------ layout shell */
.shell { display: grid; grid-template-columns: var(--side-width) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--brand-950);
  color: #DFEAE3;
  display: flex; flex-direction: column;
  overflow-y: auto; scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }

.side-logo {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-logo .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.side-logo .mark svg { width: 21px; height: 21px; }
.side-logo .word { line-height: 1.1; }
.side-logo .word strong { display: block; color: #fff; font-size: 15.5px; letter-spacing: .01em; }
.side-logo .word span { display: block; font-size: 11px; color: var(--brand-300); letter-spacing: .12em; text-transform: uppercase; }

.side-nav { padding: 14px 12px 24px; flex: 1; }
.side-nav .nav-group { margin-bottom: 18px; }
.side-nav .nav-group-label {
  padding: 0 10px 6px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(220, 235, 226, .42);
}
.side-nav a.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9.5px 10px; margin-bottom: 2px;
  color: #D8E6DE; border-radius: 9px;
  font-size: 14px; font-weight: 500;
  transition: background .14s ease, color .14s ease;
}
.side-nav a.nav-link svg { width: 18px; height: 18px; color: rgba(220,235,226,.6); flex: 0 0 auto; }
.side-nav a.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.nav-link.active {
  background: var(--brand-700);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brass-400);
}
.side-nav a.nav-link.active svg { color: #fff; }
.side-nav .nav-badge {
  margin-left: auto; background: var(--brass-400); color: var(--brand-950);
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
}

.side-foot { padding: 14px 18px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot .help-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 13px 14px;
}
.side-foot .help-card strong { display: block; color: #fff; font-size: 13.5px; margin-bottom: 3px; }
.side-foot .help-card p { margin: 0; font-size: 12px; color: rgba(220,235,226,.72); }
.side-foot .help-card a { color: var(--brand-300); font-size: 12.5px; font-weight: 600; }

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--top-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
  padding: 0 28px;
}
.topbar .menu-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; place-items: center; color: var(--ink-700);
}
.topbar .crumb { font-size: 14px; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.topbar .crumb strong { color: var(--ink-900); font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .top-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative; width: 40px; height: 40px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-600);
  transition: all .15s ease;
}
.icon-btn:hover { border-color: var(--brand-400); color: var(--brand-700); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger-600); border: 2px solid #fff;
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; transition: border-color .15s ease;
}
.user-chip:hover { border-color: var(--brand-400); }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.user-chip .chip-meta { line-height: 1.15; text-align: left; }
.user-chip .chip-meta strong { display: block; font-size: 13px; color: var(--ink-900); }
.user-chip .chip-meta span { font-size: 11px; color: var(--ink-400); }

.content { padding: 30px 28px 60px; flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card .card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.card .card-head h3 { margin: 0; font-size: 15px; }
.card .card-head .sub { font-size: 12.5px; color: var(--ink-400); margin-left: auto; }
.card .card-body { padding: 22px; }
.card .card-body.flush { padding: 0; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-title-row h1 { margin: 0; }
.card-title-row .sub { color: var(--ink-500); font-size: 14px; }

/* ------------------------------------------------------------ stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-600); opacity: 0; transition: opacity .2s; }
.stat:hover::after { opacity: 1; }
.stat .stat-label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.stat .stat-label svg { width: 15px; height: 15px; }
.stat .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; line-height: 1.1; }
.stat .stat-delta { margin-top: 7px; font-size: 12.5px; color: var(--ink-400); display: flex; align-items: center; gap: 5px; }
.stat .stat-delta.up { color: var(--success-700); }
.stat .stat-delta.down { color: var(--danger-600); }

.stat.hero { background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); border-color: transparent; color: #fff; }
.stat.hero .stat-label, .stat.hero .stat-value { color: #fff; }
.stat.hero .stat-delta { color: rgba(255,255,255,.75); }
.stat.hero::after { display: none; }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 12px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400); background: var(--canvas-deep);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-700); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--brand-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .th-num { text-align: right; }
.table td.strong { font-weight: 600; color: var(--ink-900); }
.table .amount-pos { color: var(--success-700); font-weight: 600; }
.table .amount-neg { color: var(--ink-700); font-weight: 600; }
.table .muted { color: var(--ink-400); font-size: 12.5px; }

/* ------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3.5px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--success-100); color: var(--success-700); }
.badge-red { background: var(--danger-100); color: var(--danger-700); }
.badge-gold { background: var(--warn-100); color: var(--warn-700); }
.badge-blue { background: var(--info-100); color: var(--info-700); }
.badge-gray { background: var(--line-soft); color: var(--ink-500); }
.badge-plain::before { display: none; }

/* ------------------------------------------------------------ progress */
.progress { height: 8px; background: var(--line); border-radius: 20px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 20px; background: var(--brand-600); }
.progress.warn > span { background: var(--brass-500); }
.progress.danger > span { background: var(--danger-600); }

/* ------------------------------------------------------------ alerts / flash */
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: 10px;
  margin-bottom: 20px; font-size: 14px;
  border: 1px solid var(--brand-200); background: var(--brand-50); color: var(--brand-800);
}
.flash svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.flash-error { border-color: #F2C4BE; background: var(--danger-100); color: var(--danger-700); }
.flash-error ul { margin: 0; padding-left: 18px; }

/* ------------------------------------------------------------ empty state */
.empty {
  text-align: center; padding: 48px 20px; color: var(--ink-400);
}
.empty .empty-icon {
  width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 16px; background: var(--canvas-deep);
  display: grid; place-items: center; color: var(--ink-400);
}
.empty .empty-icon svg { width: 26px; height: 26px; }
.empty strong { display: block; color: var(--ink-700); font-size: 15px; margin-bottom: 4px; }
.empty p { font-size: 13.5px; margin: 0 0 16px; }

/* ------------------------------------------------------------ charts */
.chart-bars { display: flex; align-items: flex-end; gap: 18px; height: 200px; padding: 12px 8px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; }
.chart-col .bar-group { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.chart-col .bar {
  flex: 1; border-radius: 6px 6px 3px 3px; min-height: 2px; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.chart-col .bar:hover { opacity: .8; transform: translateY(-1px); }
.chart-col .bar.income { background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); }
.chart-col .bar.expense { background: linear-gradient(180deg, var(--brass-400), var(--brass-600)); }
.chart-col .bar.muted { opacity: .22; }
.chart-col .bar-label { font-size: 11px; color: var(--ink-400); text-align: center; font-weight: 600; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.chart-legend .legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-500); }
.chart-legend .swatch { width: 11px; height: 11px; border-radius: 3px; }

/* ------------------------------------------------------------ donut */
.donut-wrap { display: flex; align-items: center; gap: 26px; }
.donut { position: relative; width: 170px; height: 170px; flex: 0 0 auto; }
.donut svg { transform: rotate(-90deg); }
.donut .donut-center {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center;
}
.donut .donut-center strong { display: block; font-size: 20px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.donut .donut-center span { font-size: 11px; color: var(--ink-400); text-transform: uppercase; letter-spacing: .08em; }
.donut-legend { display: grid; gap: 9px; flex: 1; }
.donut-legend .row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.donut-legend .row .swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.donut-legend .row .label { color: var(--ink-600); }
.donut-legend .row .pct { margin-left: auto; color: var(--ink-400); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ account rows */
.account-list { display: grid; gap: 14px; }
.account-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.account-row:hover { border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateY(-1px); }
.account-row .acct-icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.acct-icon.checking { background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); }
.acct-icon.savings { background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); }
.acct-icon.money_market { background: linear-gradient(135deg, var(--brass-400), var(--brass-600)); }
.acct-icon.cd { background: linear-gradient(135deg, #4A6F8B, #2C4A63); }
.acct-icon.credit { background: linear-gradient(135deg, #8B6B2F, #5C4412); }
.acct-icon.auto_loan { background: linear-gradient(135deg, #5B7B6C, #334F42); }
.acct-icon.mortgage { background: linear-gradient(135deg, #6E5A8B, #4A3A63); }
.acct-icon.personal_loan { background: linear-gradient(135deg, #8B5A5A, #5C2F2F); }
.acct-icon.heloc { background: linear-gradient(135deg, #5A7A8B, #2F4A5C); }

.account-row .acct-meta { flex: 1; min-width: 0; }
.account-row .acct-meta strong { display: block; color: var(--ink-900); font-size: 15px; }
.account-row .acct-meta .acct-num { font-size: 12.5px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.account-row .acct-balance { text-align: right; }
.account-row .acct-balance .bal { display: block; font-weight: 700; font-size: 16.5px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.account-row .acct-balance .sub { font-size: 12px; color: var(--ink-400); }
.account-row .acct-chev { color: var(--ink-300); }
.account-row .acct-chev svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ heroes/banners */
.hero-band {
  background: linear-gradient(120deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-600) 100%);
  border-radius: var(--radius-lg);
  color: #fff; padding: 30px 32px;
  display: flex; align-items: center; gap: 26px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.hero-band::after {
  content: ""; position: absolute; right: -90px; top: -110px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,62,.28), transparent 65%);
}
.hero-band .hero-copy { flex: 1; position: relative; z-index: 1; }
.hero-band .hero-copy .eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-300); margin-bottom: 6px;
}
.hero-band .hero-copy h1 { color: #fff; margin: 0 0 6px; font-size: 1.55rem; }
.hero-band .hero-copy p { color: rgba(255,255,255,.82); margin: 0; font-size: 14px; }
.hero-band .hero-total { text-align: right; position: relative; z-index: 1; }
.hero-band .hero-total .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.hero-band .hero-total .amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-band .hero-total .delta { font-size: 12.5px; color: var(--brand-200); }

/* ------------------------------------------------------------ auth pages */
.auth-body { display: flex; min-height: 100vh; }
.auth-aside {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--brand-950) 0%, var(--brand-800) 60%, var(--brand-600) 100%);
  color: #fff; padding: 56px 64px;
  display: flex; flex-direction: column;
}
.auth-aside::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,62,.25), transparent 65%);
  right: -140px; bottom: -160px;
}
.auth-aside .quote { margin-top: auto; position: relative; z-index: 1; max-width: 440px; }
.auth-aside .quote p { font-size: 20px; line-height: 1.45; color: rgba(255,255,255,.94); font-weight: 500; }
.auth-aside .quote .by { margin-top: 14px; color: var(--brass-300); font-size: 13px; }
.auth-panel {
  width: 480px; flex: 0 0 auto;
  background: var(--canvas);
  display: flex; flex-direction: column;
  padding: 44px 52px;
}
.auth-panel .brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 40px; }
.auth-panel .brand-row .mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  display: grid; place-items: center; color: #fff;
}
.auth-panel .brand-row .mark svg { width: 22px; height: 22px; }
.auth-panel .brand-row strong { color: var(--ink-900); font-size: 16px; }
.auth-panel .brand-row span { display: block; font-size: 10.5px; color: var(--ink-400); letter-spacing: .14em; text-transform: uppercase; }
.auth-panel h1 { font-size: 1.45rem; }
.auth-panel .intro { color: var(--ink-500); font-size: 14px; margin-bottom: 26px; }
.auth-panel .auth-foot { margin-top: 26px; font-size: 13.5px; color: var(--ink-500); text-align: center; }

/* ------------------------------------------------------------ landing page */
.land-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.land-nav .inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: 76px; display: flex; align-items: center; gap: 30px;
}
.land-nav .logo { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink-900); font-size: 16px; }
.land-nav .logo .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  display: grid; place-items: center; color: #fff;
}
.land-nav .logo .mark svg { width: 21px; height: 21px; }
.land-nav .logo small { display: block; font-size: 10px; color: var(--ink-400); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.land-nav .links { display: flex; gap: 26px; }
.land-nav .links a { color: var(--ink-600); font-size: 14.5px; font-weight: 500; }
.land-nav .links a:hover { color: var(--brand-700); }
.land-nav .cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.land-nav .staff-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-500); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; transition: all .15s ease; }
.land-nav .staff-link:hover { color: var(--brand-700); border-color: var(--brand-300); background: var(--brand-50); }

/* Member sign-in → staff portal pointer */
.staff-portal-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--ink-500); }
.staff-portal-link svg { width: 15px; height: 15px; flex: none; }
.staff-portal-link a { color: var(--brand-700); }
.staff-portal-link a:hover { text-decoration: underline; }

.land-hero {
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-600) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.land-hero::before {
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,62,.22), transparent 62%);
  right: -160px; top: -220px;
}
.land-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 65%);
  left: -120px; bottom: -180px;
}
.land-hero .inner { max-width: 1240px; margin: 0 auto; padding: 96px 28px 110px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.land-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: var(--brass-300); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 30px; margin-bottom: 22px;
}
.land-hero h1 { color: #fff; font-size: 2.9rem; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; }
.land-hero h1 .accent { color: var(--brass-300); }
.land-hero .lede { font-size: 17px; color: rgba(255,255,255,.82); max-width: 480px; margin-bottom: 30px; }
.land-hero .cta-row { display: flex; gap: 14px; margin-bottom: 26px; }
.land-hero .hero-perks { display: flex; gap: 26px; flex-wrap: wrap; }
.land-hero .perk { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.78); }
.land-hero .perk svg { width: 17px; height: 17px; color: var(--brand-300); }

.rate-card {
  background: #fff; border-radius: 20px; padding: 28px 30px;
  box-shadow: 0 24px 60px rgba(7,43,30,.35);
}
.rate-card .rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.rate-card .rc-head strong { font-size: 15px; color: var(--ink-900); }
.rate-card .rc-head .lock { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--success-700); font-weight: 600; }
.rate-card .rc-head .lock svg { width: 14px; height: 14px; }
.rate-card .rc-list { display: grid; gap: 12px; }
.rate-card .rc-row { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rate-card .rc-row .rc-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); display: grid; place-items: center; color: var(--brand-600); flex: 0 0 auto; }
.rate-card .rc-row .rc-ico svg { width: 18px; height: 18px; }
.rate-card .rc-row .rc-meta { flex: 1; min-width: 0; }
.rate-card .rc-row .rc-meta strong { display: block; font-size: 13.5px; color: var(--ink-900); }
.rate-card .rc-row .rc-meta span { font-size: 12px; color: var(--ink-400); }
.rate-card .rc-row .rc-rate { font-weight: 700; color: var(--brand-700); font-size: 15px; font-variant-numeric: tabular-nums; }

.land-section { padding: 84px 0; }
.land-section .inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.land-section .sec-head { max-width: 560px; margin-bottom: 44px; }
.land-section .sec-head .eyebrow { color: var(--brand-600); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.land-section .sec-head h2 { font-size: 2rem; letter-spacing: -0.02em; }
.land-section .sec-head p { color: var(--ink-500); }
.land-section.alt { background: var(--canvas-deep); border-block: 1px solid var(--line-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .f-ico {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature .f-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-500); margin: 0; }

.cta-band { background: var(--brand-900); color: #fff; border-radius: 22px; padding: 54px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(176,141,62,.25), transparent 60%); left: -120px; bottom: -200px; }
.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 26px; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; position: relative; z-index: 1; }

.land-footer { background: var(--brand-950); color: #9FB8A9; padding: 60px 0 34px; }
.land-footer .inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.land-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.land-footer .cols strong { color: #fff; font-size: 14.5px; display: block; margin-bottom: 14px; }
.land-footer .cols a { display: block; color: #9FB8A9; font-size: 13.5px; padding: 4px 0; }
.land-footer .cols a:hover { color: #fff; }
.land-footer .cols p { font-size: 13px; color: #7C97A87F; color: #9FB8A9; }
.land-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: 12.5px; color: #7C9487; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------ misc */
.page-intro { margin-bottom: 26px; }
.page-intro .eyebrow { color: var(--brand-600); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.page-intro h1 { font-size: 1.75rem; margin-bottom: 6px; }
.page-intro p { color: var(--ink-500); max-width: 640px; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-main-side { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-action {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink-700); font-weight: 600; font-size: 13.5px;
  transition: all .14s ease;
}
.quick-action:hover { border-color: var(--brand-400); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.quick-action .qa-ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-50); color: var(--brand-700);
  display: grid; place-items: center; flex: 0 0 auto;
}
.quick-action .qa-ico svg { width: 16px; height: 16px; }

.alert-item { display: flex; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.alert-item:last-child { border-bottom: 0; }
.alert-item .a-ico { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; }
.alert-item .a-ico svg { width: 17px; height: 17px; }
.alert-item .a-body { flex: 1; min-width: 0; }
.alert-item .a-body strong { display: block; font-size: 13.5px; color: var(--ink-900); }
.alert-item .a-body p { margin: 2px 0 0; font-size: 13px; color: var(--ink-500); }
.alert-item .a-time { font-size: 11.5px; color: var(--ink-400); white-space: nowrap; }
.alert-item.unread { background: var(--brand-50); }
.alert-item.unread .a-body strong::after { content: " •"; color: var(--brand-600); }

.type-green { color: var(--brand-600); }
.type-gold { color: var(--brass-600); }
.type-red { color: var(--danger-600); }
.mono { font-variant-numeric: tabular-nums; }

.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-tabs a {
  padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-600); background: #fff;
}
.pill-tabs a.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.search-box { position: relative; min-width: 240px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-400); }
.search-box .input { padding-left: 36px; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filters .select { width: auto; min-width: 160px; }

.statement-rows { display: grid; gap: 12px; }
.statement-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: border-color .15s ease;
}
.statement-row:hover { border-color: var(--brand-400); }
.statement-row .s-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.statement-row .s-ico svg { width: 19px; height: 19px; }
.statement-row .s-meta { flex: 1; }
.statement-row .s-meta strong { display: block; color: var(--ink-900); font-size: 14.5px; }
.statement-row .s-meta span { font-size: 12.5px; color: var(--ink-400); }

.goal-card { padding: 22px; }
.goal-card .goal-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.goal-card .goal-top .g-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.goal-card .goal-top .g-ico svg { width: 19px; height: 19px; }
.goal-card .goal-top .g-meta { flex: 1; }
.goal-card .goal-top .g-meta strong { display: block; color: var(--ink-900); font-size: 15px; }
.goal-card .goal-top .g-meta span { font-size: 12.5px; color: var(--ink-400); }
.goal-card .goal-amt { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--ink-500); }
.goal-card .goal-amt strong { color: var(--ink-900); }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 22px; }
.pagination a, .pagination span {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink-600); font-weight: 600;
}
.pagination .active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.mg-0 { margin: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; } .text-lg { font-size: 17px; }
.text-muted { color: var(--ink-400); } .text-strong { color: var(--ink-900); font-weight: 600; }
.flex { display: flex; } .flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.flex-col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; } .hide-sm { }

/* ------------------------------------------------------------ components addendum */
.stat .stat-num { font-size: 1.75rem; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; line-height: 1.1; }
.stat .stat-sub { margin-top: 7px; font-size: 12.5px; color: var(--ink-400); display: block; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  color: #fff; font-weight: 700; font-size: 13px;
  display: inline-grid; place-items: center;
  overflow: hidden;
  flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-avatar { width: 58px; height: 58px; font-size: 24px; }

.hero-greet { display: flex; align-items: center; gap: 16px; }

/* Welcome popup after sign-in */
.welcome-panel { max-width: 440px; text-align: center; }
.welcome-mark {
  width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--success-100); color: var(--success-700);
  display: grid; place-items: center;
}
.welcome-mark svg { width: 28px; height: 28px; }

.welcome-actions .btn { min-width: 120px; }

.input-icon-wrap { position: relative; display: block; }
.input-icon-wrap .input { padding-left: 34px; width: 100%; }
.input-icon-wrap .input-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); font-weight: 700; font-size: 15px; pointer-events: none;
}

.seg { display: inline-flex; background: var(--canvas-deep); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.seg-btn {
  border: 0; background: transparent; color: var(--ink-500); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 7px; cursor: pointer; transition: all .15s ease;
}
.seg-btn:hover { color: var(--brand-700); }
.seg-btn.active { background: var(--surface); color: var(--brand-800); box-shadow: var(--shadow-sm); }

.visual-link { display: block; transition: transform .15s ease, box-shadow .15s ease; }
.visual-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.cardvisual {
  position: relative; overflow: hidden; border-radius: 14px;
  padding: 20px 22px 18px; color: #fff; aspect-ratio: 1.586;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 26px rgba(6, 44, 30, .35);
}
.cardvisual::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none;
}
.cardvisual::before {
  content: ""; position: absolute; right: 30px; bottom: -70px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none;
}
.card-debit { background: linear-gradient(135deg, #0E5D40, #0A3B28 70%, #06281B); }
.card-credit { background: linear-gradient(135deg, #1F6B4C, #0B4630 60%, #07301F); border: 1px solid rgba(255,255,255,.14); }
.cardvisual .cv-top { display: flex; justify-content: space-between; align-items: center; }
.cardvisual .cv-bank { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.cardvisual .cv-brand { font-weight: 800; font-style: italic; letter-spacing: .04em; font-size: 15px; opacity: .92; }
.cardvisual .cv-chip {
  width: 38px; height: 30px; border-radius: 6px; margin-top: 16px;
  background: linear-gradient(135deg, #E9C46A, #C89B3C 60%, #A97F28);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 3px; padding: 5px; box-shadow: inset 0 0 6px rgba(0,0,0,.25);
}
.cardvisual .cv-chip span { background: rgba(255,255,255,.75); border-radius: 1px; }
.cardvisual .cv-num {
  margin-top: auto; font-size: 19px; font-weight: 700; letter-spacing: .12em;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.cardvisual .cv-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; }
.cardvisual .cv-holder, .cardvisual .cv-exp { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.cardvisual .cv-holder small, .cardvisual .cv-exp small {
  display: block; font-size: 8.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; opacity: .65; margin-bottom: 2px;
}

.kv { display: flex; flex-direction: column; gap: 2px; }
.kv span { font-size: 12px; color: var(--ink-400); }
.kv strong { font-size: 14px; color: var(--ink-900); }

.toggle-list { border-top: 1px solid var(--line-soft); }
.switch-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.switch-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.switch-text strong { color: var(--ink-900); font-size: 14px; }
.switch-text span { font-size: 12.5px; color: var(--ink-400); }
.switch-input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  position: relative; width: 42px; height: 24px; flex: 0 0 auto;
  background: var(--line); border-radius: 20px; transition: background .18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s ease;
}
.switch-input:checked + .switch { background: var(--brand-600); }
.switch-input:checked + .switch::after { transform: translateX(18px); }
.switch-input:focus-visible + .switch { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.alert-list .alert-item.unread { background: var(--brand-50); }
.alert-list .alert-item.unread:hover { background: var(--brand-50); }
.alert-item .alert-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--canvas-deep);
}
.alert-item .alert-ico svg { width: 17px; height: 17px; }
.alert-item.unread .alert-ico { background: var(--brand-100); color: var(--brand-700); }

.bar-block { display: grid; gap: 14px; }
.bar-line { display: grid; grid-template-columns: 130px 1fr 110px; align-items: center; gap: 12px; }
.bar-label { font-size: 13px; font-weight: 600; color: var(--ink-600); }
.bar-track { height: 10px; background: var(--line); border-radius: 20px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); }
.bar-val { font-size: 13px; color: var(--ink-500); text-align: right; font-variant-numeric: tabular-nums; }

.status-legend { font-size: 14px; }
.status-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }

.goal-done { border-color: var(--success-300); background: linear-gradient(180deg, #fff, var(--success-50)); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-main-side { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .land-hero .inner { grid-template-columns: 1fr; gap: 40px; }
  .land-hero .rate-card { max-width: 480px; }
  .land-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: -280px; top: 0; bottom: 0; width: var(--side-width);
    z-index: 60; transition: left .22s ease; box-shadow: 0 0 60px rgba(0,0,0,.25);
  }
  .sidebar.open { left: 0; }
  .main { overflow-x: hidden; }
  .topbar .menu-toggle { display: grid; }
  .content { padding: 22px 18px 50px; }
  .hero-band { flex-direction: column; align-items: flex-start; }
  .hero-band .hero-total { text-align: left; }
  .auth-body { flex-direction: column; }
  .auth-aside { padding: 32px; display: none; }
  .auth-panel { width: 100%; padding: 32px 24px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .land-nav .links { display: none; }
  .table th, .table td { padding: 10px 12px; }
  .hide-sm { display: none; }
}

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .land-hero h1 { font-size: 2.1rem; }
  .land-section { padding: 56px 0; }
  .cta-band { padding: 34px 22px; }
  .content { padding: 18px 14px 40px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .user-chip .chip-meta { display: none; }
  .chart-bars { gap: 8px; }
}

/* ============================================================
   Market ticker & BTC equivalents
   ============================================================ */
.btc-line {
  font-size: 11px;
  font-weight: 600;
  color: var(--brass-600, #B08D3E);
  letter-spacing: .02em;
  line-height: 1.4;
}
.hero-total .btc-line { text-align: right; }
.stat-value ~ .btc-line { margin-top: 2px; }

.ticker { display: grid; }
.ticker-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.ticker-row:last-child { border-bottom: 0; }
.tkr-sym {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ink-900);
  letter-spacing: .03em;
}
.tkr-name {
  font-size: 12.5px;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tkr-price {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-900);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tkr-chg {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  min-width: 62px;
  font-variant-numeric: tabular-nums;
}
.tkr-chg.up { color: var(--brand-600); }
.tkr-chg.down { color: var(--danger-600); }

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger-700);
}

/* ------------------------------------------------------------
   Zelle / Cash App & digital currency addendum
   ------------------------------------------------------------ */
.seg a.seg-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pv-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 12px; font-weight: 800; font-style: normal; color: #fff; flex: none;
}
.pv-badge.zelle { background: #6D1ED4; }
.pv-badge.cashapp { background: #00A82D; }
.crypto-hero { background: linear-gradient(120deg, #0A3B2A 0%, var(--brand-800) 55%, #1B4F77 100%); }
.crypto-hero .eyebrow { color: rgba(255,255,255,.75); }
.card .form-block-sub { font-size: 12px; color: var(--ink-500); }

/* ============================================================
   Print (eStatements)
   ============================================================ */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   After-transfer receipt popup
   ============================================================ */
.receipt-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.receipt-modal.open { display: flex; }
.receipt-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 28, 20, 0.55);
}
.receipt-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 780px; width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px 30px;
  box-shadow: 0 24px 60px rgba(10, 28, 20, 0.35);
}
.receipt-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.receipt-modal-head h3 { margin: 0 !important; }
.receipt-modal-head .icon-btn { flex: none; }
.receipt-modal-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media print {
  body.receipt-modal-open .content > *:not(.receipt-modal) { display: none !important; }
  body.receipt-modal-open .receipt-modal { position: static; display: block; padding: 0; background: #fff; }
  body.receipt-modal-open .receipt-modal-backdrop { display: none !important; }
  body.receipt-modal-open .receipt-modal-panel {
    max-width: none; max-height: none; overflow: visible;
    box-shadow: none; border: 1px solid #ccc; border-radius: 0; padding: 0;
  }
  body.receipt-modal-open .receipt-watermark { opacity: 0.07; }
}

/* ============================================================
   Receipt watermark (bank logo)
   ============================================================ */
.receipt-wrap { position: relative; }
.receipt-watermark {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  pointer-events: none; text-align: center;
  color: var(--brand-700); opacity: 0.09;
}
.receipt-watermark-mark { width: 168px; height: 168px; }
.receipt-watermark-word {
  font-size: 17px; font-weight: 700; letter-spacing: 0.42em;
  text-transform: uppercase; margin-left: 0.42em;
}

/* ============================================================
   Frozen-account notice (transfer popup)
   ============================================================ */
.frozen-panel { max-width: 460px; text-align: center; }
.frozen-panel h2 { color: var(--warn-700); }
.frozen-mark {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--warn-100); color: var(--warn-700);
  border: 1px solid var(--brass-400);
}
.frozen-mark svg { width: 26px; height: 26px; }
.frozen-acct { font-size: 14px; color: var(--ink-700); margin: 4px 0 10px; }
.frozen-actions { display: flex; justify-content: center; }
select.option-frozen { color: var(--warn-700); font-weight: 600; }
/* ============================================================
   Site branding (admin-configurable name + logo)
   ============================================================ */
.bank-logo-img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
.branding-preview {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
}
.branding-preview-mark {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px rgba(10, 28, 20, 0.18);
}
.branding-list { display: grid; gap: 10px; margin-bottom: 22px; }
.branding-list > div {
  display: flex; align-items: baseline; gap: 18px;
  padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}
.branding-list strong { min-width: 170px; font-size: 13.5px; }
.branding-list span { color: var(--ink-500); font-size: 13px; }

/* ============================================================
   Card request catalogue (cards/request)
   ============================================================ */
.step-dot {
  flex: 0 0 auto; width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-100, #E4EFEA); color: var(--brand-700);
  font-size: 13px; font-weight: 800;
  border: 1px solid var(--brand-300, #B9D4C8);
}
.cc-product {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cc-product:has(input[type="radio"]:checked) {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(12, 75, 51, 0.12);
}
.cc-product input[type="radio"] {
  position: absolute; top: 14px; right: 14px;
  width: 17px; height: 17px; margin: 0;
  accent-color: var(--brand-700);
  flex: none;
}
.cc-product-taken { cursor: not-allowed; }
.cc-product-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-right: 26px;
}
.cc-product-head strong { color: var(--ink-900); font-size: 14.5px; }
.cc-product-stats {
  display: flex; gap: 14px; margin: 2px 0 6px;
}
.cc-product-stats > div {
  display: flex; align-items: baseline; gap: 3px;
  background: var(--brand-50, #F2F7F4);
  border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 8px;
  font-size: 12px; color: var(--ink-500);
}
.cc-product-stats strong { color: var(--brand-800); font-size: 13px; }
.cc-features {
  margin: 6px 0 0; padding: 0;
  list-style: none;
  display: grid; gap: 5px;
}
.cc-features li {
  position: relative; padding-left: 17px;
  font-size: 13px; color: var(--ink-600);
}
.cc-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand-600);
  font-weight: 800; font-size: 13px;
}
@media (max-width: 760px) {
  .cc-product input[type="radio"] { top: auto; bottom: 12px; }
}
