/* ==========================================================================
   AMB — Private Banking · design system
   Black lacquer, brass hairlines, serif numerals.
   ========================================================================== */

:root {
  --bg: #070708;
  --bg-2: #0b0b0d;
  --surface: #111114;
  --surface-2: #17171b;
  --surface-3: #1e1e23;
  --surface-4: #26262c;
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);

  --text: #f2efe8;
  --text-2: #a8a49b;
  --text-3: #6d6a64;
  --text-4: #4a4844;

  --brass: #cdae74;
  --brass-2: #e7d2a4;
  --brass-3: #8f7748;
  --brass-dim: rgba(205, 174, 116, 0.12);
  --brass-line: rgba(205, 174, 116, 0.28);

  --pos: #8fd6ab;
  --pos-dim: rgba(143, 214, 171, 0.1);
  --neg: #ef8d7c;
  --neg-dim: rgba(239, 141, 124, 0.1);
  --info: #93b2e3;
  --warn: #e6c27a;

  --c1: #cdae74; --c2: #9db7a0; --c3: #8fa4c9; --c4: #c99393;
  --c5: #b4a6cf; --c6: #7fb5b0; --c7: #c8a27f; --c8: #8d8a84;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar: 256px;
  --tabbar: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
/* film grain — keeps the black from feeling flat */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--brass); color: #000; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- typography ---------- */
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1; }
.display em, .serif-i { font-family: var(--f-display); font-style: italic; font-weight: 400; }
.mono, .num { font-family: var(--f-mono); font-feature-settings: "tnum", "zero"; letter-spacing: -0.02em; }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.brass { color: var(--brass); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; }

/* ---------- layout ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}
.main { min-width: 0; display: flex; flex-direction: column; }
.view {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 40px 64px;
  outline: none;
}

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0a0c 0%, #070708 100%);
  display: flex; flex-direction: column;
  padding: 22px 14px 18px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 26px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #2a2620 0%, #0f0e0c 70%);
  border: 1px solid var(--brass-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 20px -8px rgba(205,174,116,.35);
}
.brand-name { font-family: var(--f-display); font-size: 26px; line-height: 1; letter-spacing: 0.02em; }
.brand-sub { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }

.nav-label { padding: 18px 12px 8px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); }
.nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 450;
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-item.active { color: var(--text); background: var(--surface-2); }
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 3px; height: 18px;
  transform: translateY(-50%); border-radius: 0 3px 3px 0; background: var(--brass);
  box-shadow: 0 0 14px rgba(205,174,116,.6);
}
.nav-item.active svg { color: var(--brass); }
.nav-item .kbd { margin-left: auto; }
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brass); color: #120f08; font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center;
}
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.concierge {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; background: linear-gradient(160deg, rgba(205,174,116,.07), transparent 60%);
  display: grid; gap: 10px;
}
.concierge-row { display: flex; align-items: center; gap: 10px; }
.concierge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px var(--pos-dim); animation: pulse 2.4s infinite; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 40px;
  max-width: 1280px; width: 100%; margin: 0 auto;
  background: linear-gradient(180deg, var(--bg) 60%, rgba(7,7,8,0));
}
.topbar-title { min-width: 0; }
.topbar-title .eyebrow { margin-bottom: 4px; }
.topbar-title h1 { font-family: var(--f-display); font-size: 30px; font-weight: 400; line-height: 1.05; white-space: nowrap; }
.topbar-title h1 em { color: var(--brass-2); }
.topbar-spacer { flex: 1; }
.search-trigger {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px 0 14px; width: 280px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--text-3); transition: border-color .2s, background .2s;
}
.search-trigger:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text-2); }
.search-trigger span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger .kbd { flex: none; }
@media (max-width: 1280px) {
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .search-trigger span { display: none; }
}
.kbd {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; position: relative;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn:active { transform: scale(.95); }
.icon-btn .ping {
  position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 2px var(--surface);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line-2);
}
.avatar.sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 76px; height: 76px; font-size: 24px; }
.avatar.me {
  background: conic-gradient(from 210deg, #cdae74, #5a4a2c, #e7d2a4, #8f7748, #cdae74);
  padding: 2px; border: 0;
}
.avatar.me > span {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: #15130f; color: var(--brass-2);
}

/* ---------- tabbar (mobile) ---------- */
.tabbar { display: none; }

/* ---------- panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  min-width: 0;
}
.panel.flush { padding: 0; overflow: hidden; }
.panel.raised { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; min-height: 28px; }
.panel.flush .panel-head { padding: 20px 22px 0; }
.panel-head h3 { font-size: 15px; font-weight: 500; }
.panel-head .sub { color: var(--text-3); font-size: 12.5px; }
.panel-head .spacer { flex: 1; }
.link { color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.link:hover { color: var(--brass-2); }

.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.cols-main-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; } .gap-6 { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  font-weight: 500; font-size: 13.5px; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
  user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn-primary {
  background: linear-gradient(180deg, #dcc08a 0%, #c4a467 100%);
  color: #17130b; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -12px rgba(205,174,116,.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #e6cc98 0%, #cdae74 100%); border-color: transparent; }
.btn-light { background: var(--text); color: #0b0b0c; border-color: transparent; }
.btn-light:hover { background: #fff; border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-danger { color: var(--neg); border-color: rgba(239,141,124,.25); background: var(--neg-dim); }
.btn-danger:hover { background: rgba(239,141,124,.16); border-color: rgba(239,141,124,.4); }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-round { width: 42px; padding: 0; }
.btn-sm.btn-round { width: 34px; }

/* quick actions */
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; font-weight: 450;
  transition: all .25s var(--ease);
}
.action .ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line-2);
  transition: all .25s var(--ease);
}
.action:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.action:hover .ico { background: var(--brass); color: #17130b; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(205,174,116,.6); }

/* chips & segmented */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font-size: 12.5px; white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--text); color: #0b0b0c; border-color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

.seg {
  display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line);
  position: relative;
}
.seg button {
  height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12px; color: var(--text-3); font-weight: 500;
  transition: color .2s, background .2s; position: relative; z-index: 1;
}
.seg button:hover { color: var(--text); }
.seg button.active { color: var(--text); background: var(--surface-3); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 6px rgba(0,0,0,.4); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .01em;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
}
.badge.pos { background: var(--pos-dim); color: var(--pos); border-color: rgba(143,214,171,.18); }
.badge.neg { background: var(--neg-dim); color: var(--neg); border-color: rgba(239,141,124,.18); }
.badge.brass { background: var(--brass-dim); color: var(--brass-2); border-color: var(--brass-line); }
.badge .d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* toggle switch */
.switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--surface-4);
  border: 1px solid var(--line-2); transition: background .25s var(--ease), border-color .25s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #d9d6cf; box-shadow: 0 2px 6px rgba(0,0,0,.5);
  transition: transform .3s var(--ease-out), background .25s;
}
.switch input:checked + .track { background: var(--brass); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(16px); background: #17130b; }
.switch input:focus-visible + .track { outline: 1.5px solid var(--brass); outline-offset: 2px; }

/* form fields */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 80px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a49b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brass-line); box-shadow: 0 0 0 4px var(--brass-dim); background: var(--bg); }
.input::placeholder { color: var(--text-4); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.input-wrap .input { padding-left: 40px; }
.hint { font-size: 12px; color: var(--text-3); }
.error-text { font-size: 12px; color: var(--neg); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; outline: none;
  background: linear-gradient(90deg, var(--brass) 0 var(--p, 50%), var(--surface-4) var(--p, 50%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--brass), 0 4px 12px rgba(0,0,0,.6);
  cursor: grab; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--brass); }

/* progress */
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--brass); width: 0; transition: width 1s var(--ease-out); }
.progress.thin { height: 4px; }

/* ---------- list rows (transactions etc.) ---------- */
.list { display: flex; flex-direction: column; }
.li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 10px; margin: 0 -10px; border-radius: 12px;
  transition: background .2s var(--ease);
  cursor: pointer; text-align: left; width: calc(100% + 20px);
}
.li:hover { background: rgba(255,255,255,.028); }
.li + .li { box-shadow: 0 -1px 0 var(--line); }
.li:hover + .li, .li:hover { box-shadow: none; }
.li-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text-2);
  font-weight: 600; font-size: 13px;
}
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-end { text-align: right; flex-shrink: 0; }
.li-amt { font-family: var(--f-mono); font-size: 13.5px; font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.li-amt.in { color: var(--pos); }
.day-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0 6px; font-size: 12px; color: var(--text-3); letter-spacing: .02em;
  position: sticky; top: 76px; background: var(--surface); z-index: 2;
}
.day-head:first-child { padding-top: 0; }

/* ---------- hero balance ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(205,174,116,.14) 0%, rgba(205,174,116,0) 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(143,164,201,.06) 0%, transparent 60%),
    linear-gradient(180deg, #141417 0%, #0e0e10 100%);
}
.hero::before {
  /* guilloché-esque hairlines, the language of banknotes */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-radial-gradient(circle at 105% -20%, transparent 0 22px, rgba(205,174,116,.07) 22px 23px);
  mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}
.hero > * { position: relative; }
.balance {
  font-family: var(--f-display); font-size: 76px; line-height: .95; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px; white-space: nowrap;
}
.balance .cur { font-size: .5em; color: var(--text-3); margin-right: 6px; transform: translateY(-.55em); }
.balance .cents { font-size: .45em; color: var(--text-3); }
.balance.masked { letter-spacing: .08em; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-meta .k { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.hero-meta .v { font-family: var(--f-mono); font-size: 14px; letter-spacing: -.02em; }

/* ---------- account tiles ---------- */
.acct-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.acct {
  padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); display: grid; gap: 14px; text-align: left;
  transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.acct:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--surface-2); }
.acct .tag { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.acct .sw { width: 8px; height: 8px; border-radius: 2px; }
.acct .amt { font-family: var(--f-mono); font-size: 18px; letter-spacing: -.03em; }
.acct .spark { position: absolute; right: 0; bottom: 0; opacity: .7; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--text-4); font-family: var(--f-mono); font-size: 10.5px; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(20,20,23,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px;
  font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px));
  opacity: 0; transition: opacity .15s;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
}
.chart-tip.show { opacity: 1; }
.chart-tip .t { color: var(--text-3); font-size: 11px; }
.chart-tip .v { font-family: var(--f-mono); }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease-out) forwards; }
.fade-area { opacity: 0; animation: fadeIn 1s .4s var(--ease) forwards; }
.legend { display: grid; gap: 10px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-row .v { margin-left: auto; font-family: var(--f-mono); font-size: 12.5px; color: var(--text-2); }
.donut-wrap { position: relative; display: grid; place-items: center; }
.donut-center { position: absolute; text-align: center; }
.donut-seg { transition: opacity .2s, stroke-width .2s; cursor: pointer; }
.donut-wrap:hover .donut-seg { opacity: .35; }
.donut-wrap .donut-seg:hover { opacity: 1; stroke-width: 15; }

/* bars */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar-pair { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar { width: 100%; max-width: 18px; border-radius: 5px 5px 2px 2px; transform-origin: bottom; animation: growY .9s var(--ease-out) both; position: relative; }
.bar.in { background: linear-gradient(180deg, var(--pos), rgba(143,214,171,.25)); }
.bar.out { background: linear-gradient(180deg, var(--brass), rgba(205,174,116,.2)); }
.bar-col .lbl { font-size: 11px; color: var(--text-3); font-family: var(--f-mono); }
.bar-col.current .lbl { color: var(--text); }

/* ---------- bank cards ---------- */
.bankcard-stage { perspective: 1400px; }
.bankcard {
  --rx: 0deg; --ry: 0deg;
  width: 100%; max-width: 400px; aspect-ratio: 1.586; position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out);
  border-radius: 18px;
}
.bankcard.flipped { transform: rotateY(180deg); }
.bankcard .face {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 22px 24px; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.bankcard .back { transform: rotateY(180deg); }
.face.metal {
  background:
    radial-gradient(120% 90% at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,.12), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #1c1c1f 0%, #0b0b0c 45%, #18181a 100%);
}
.face.brassy {
  background:
    radial-gradient(120% 90% at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,.35), transparent 50%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #e3c88f 0%, #b8955a 50%, #d6ba82 100%);
  color: #1b150a;
}
.face.virtual {
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(147,178,227,.25), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(205,174,116,.18), transparent 60%),
    linear-gradient(135deg, #15161b 0%, #0b0c10 100%);
}
.face.virtual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 60%);
  background-size: 250% 100%; animation: sheen 6s ease-in-out infinite;
}
.bc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bc-logo { font-family: var(--f-display); font-size: 26px; line-height: 1; letter-spacing: .03em; }
.bc-tier { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; opacity: .6; margin-top: 4px; }
.chip-gfx {
  width: 44px; height: 34px; border-radius: 7px; margin-top: 20px;
  background: linear-gradient(135deg, #e8d3a2 0%, #a98c55 50%, #dfc58f 100%);
  position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.chip-gfx::before, .chip-gfx::after { content: ""; position: absolute; border: 1px solid rgba(60,44,15,.35); }
.chip-gfx::before { inset: 9px 0; border-left: 0; border-right: 0; }
.chip-gfx::after { inset: 0 15px; border-top: 0; border-bottom: 0; border-radius: 3px; }
.brassy .chip-gfx { background: linear-gradient(135deg, #f3e3bd, #c5a66b); }
.bc-number { font-family: var(--f-mono); font-size: 17px; letter-spacing: .14em; margin-top: auto; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.brassy .bc-number { text-shadow: 0 1px 0 rgba(255,255,255,.3); }
.bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.bc-bottom .k { font-size: 8.5px; opacity: .55; letter-spacing: .2em; margin-bottom: 3px; }
.network { display: flex; }
.network i { width: 26px; height: 26px; border-radius: 50%; display: block; }
.network i:first-child { background: rgba(235,235,235,.85); }
.network i:last-child { background: rgba(205,174,116,.85); margin-left: -10px; mix-blend-mode: screen; }
.brassy .network i:first-child { background: rgba(20,16,8,.85); }
.brassy .network i:last-child { background: rgba(255,255,255,.6); mix-blend-mode: normal; }
.back .stripe { height: 42px; background: #050505; margin: 4px -24px 18px; }
.back .sig { display: flex; align-items: center; gap: 10px; }
.back .sig .pad { flex: 1; height: 34px; border-radius: 4px; background: repeating-linear-gradient(135deg, #e9e4d8 0 6px, #ddd6c6 6px 12px); }
.back .sig .cvv { font-family: var(--f-mono); background: #fff; color: #000; padding: 6px 10px; border-radius: 4px; font-size: 13px; }
.brassy.back .stripe { background: #1b150a; }
.frost {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background:
    radial-gradient(circle at 20% 30%, rgba(200,225,255,.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200,225,255,.25), transparent 45%),
    rgba(160,190,230,.12);
  backdrop-filter: blur(3px) saturate(.4); -webkit-backdrop-filter: blur(3px) saturate(.4);
  opacity: 0; transition: opacity .6s var(--ease);
  display: grid; place-items: center; color: #e6f0ff;
}
.bankcard.frozen .frost { opacity: 1; }
.card-thumbs { display: flex; gap: 10px; }
.card-thumb {
  width: 78px; aspect-ratio: 1.586; border-radius: 8px; position: relative; overflow: hidden;
  border: 1px solid var(--line-2); opacity: .55; transition: all .25s var(--ease);
}
.card-thumb:hover { opacity: .85; }
.card-thumb.active { opacity: 1; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-dim); }
.card-thumb .face { position: absolute; inset: 0; padding: 0; }
.card-thumb .l4 { position: absolute; left: 8px; bottom: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; }
.card-thumb.add { display: grid; place-items: center; background: transparent; border-style: dashed; color: var(--text-3); opacity: 1; }
.card-thumb.add:hover { color: var(--brass); border-color: var(--brass-line); }

/* setting rows */
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }
.set-row .t { font-weight: 500; }
.set-row .s { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }

/* ---------- KPIs ---------- */
.kpi { display: grid; gap: 6px; }
.kpi .k { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-family: var(--f-display); font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.kpi .v.mono { font-family: var(--f-mono); font-size: 22px; }
.kpi .d { font-size: 12px; }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--text-3); letter-spacing: .04em; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; cursor: pointer; }
.table tbody tr:hover { background: rgba(255,255,255,.025); }
.table .num { text-align: right; }
.table th.num { text-align: right; }
.tick-up { animation: tickUp .9s var(--ease); }
.tick-down { animation: tickDown .9s var(--ease); }
.sym { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0; border: 1px solid var(--line-2); flex-shrink: 0; }

/* ---------- vault ring ---------- */
.ring { position: relative; display: grid; place-items: center; }
.ring svg circle { transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring .c { position: absolute; text-align: center; }
.vault {
  display: grid; gap: 18px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); transition: all .25s var(--ease); text-align: left; position: relative; overflow: hidden;
}
.vault:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vault.new { place-items: center; align-content: center; border-style: dashed; color: var(--text-3); min-height: 230px; background: transparent; }
.vault.new:hover { color: var(--brass); border-color: var(--brass-line); }

/* gauge */
.gauge-num { font-family: var(--f-display); font-size: 54px; line-height: 1; }

/* ---------- overlay: sheet / modal ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease) both;
}
.backdrop.out { animation: fadeOut .25s var(--ease) both; }
.sheet {
  position: fixed; z-index: 201; top: 12px; right: 12px; bottom: 12px;
  width: min(460px, calc(100vw - 24px));
  background: linear-gradient(180deg, #141417, #0f0f11);
  border: 1px solid var(--line-2); border-radius: 24px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: -30px 0 80px -20px rgba(0,0,0,.8);
  animation: sheetIn .45s var(--ease-out) both;
}
.sheet.out { animation: sheetOut .3s var(--ease) both; }
.sheet.center {
  top: 50%; left: 50%; right: auto; bottom: auto; width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  transform: translate(-50%, -50%);
  animation: popIn .35s var(--ease-out) both;
}
.sheet.center.out { animation: popOut .2s var(--ease) both; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 6px; }
.sheet-head h3 { font-family: var(--f-display); font-size: 26px; font-weight: 400; flex: 1; }
.sheet-body { padding: 14px 22px 22px; overflow-y: auto; flex: 1; }
.sheet-foot { padding: 14px 22px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.grabber { display: none; }

.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv .k { color: var(--text-3); }
.kv .v { text-align: right; }

/* PIN pad */
.pin-dots { display: flex; gap: 16px; justify-content: center; margin: 22px 0 26px; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-3); transition: all .2s var(--ease-out); }
.pin-dots i.on { background: var(--brass); border-color: var(--brass); transform: scale(1.1); box-shadow: 0 0 14px rgba(205,174,116,.5); }
.pin-dots.shake { animation: shake .45s var(--ease); }
.pin-dots.ok i { background: var(--pos); border-color: var(--pos); box-shadow: 0 0 14px rgba(143,214,171,.5); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.key {
  height: 60px; border-radius: 18px; font-size: 22px; font-family: var(--f-ui); font-weight: 400;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: background .15s, transform .1s;
  display: grid; place-items: center;
}
.key:hover { background: var(--surface-3); }
.key:active { transform: scale(.94); background: var(--surface-4); }
.key.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.key small { display: block; font-size: 8.5px; letter-spacing: .2em; color: var(--text-3); margin-top: -2px; }

/* ---------- lock screen ---------- */
.lock {
  position: fixed; inset: 0; z-index: 500;
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
  animation: fadeIn .5s var(--ease) both;
}
.lock.out { animation: lockOut .7s var(--ease) both; }
.lock-art {
  position: relative; overflow: hidden; border-right: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 30% 40%, rgba(205,174,116,.16), transparent 70%),
    linear-gradient(180deg, #0d0d0f, #070708);
  padding: 44px; display: flex; flex-direction: column;
}
.lock-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.lock-art > *:not(canvas) { position: relative; }
.lock-quote { margin-top: auto; max-width: 520px; }
.lock-quote h2 { font-family: var(--f-display); font-size: 64px; font-weight: 400; line-height: .98; letter-spacing: -.02em; }
.lock-quote h2 em { color: var(--brass-2); }
.lock-panel { display: grid; place-items: center; padding: 32px; }
.lock-inner { width: 100%; max-width: 340px; text-align: center; }
.lock-time { font-family: var(--f-mono); color: var(--text-3); font-size: 12px; letter-spacing: .1em; }
.faceid {
  margin: 0 auto 6px; width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center; color: var(--brass);
  border: 1px solid var(--brass-line); background: var(--brass-dim);
  transition: all .3s var(--ease);
}
.faceid:hover { background: rgba(205,174,116,.2); transform: scale(1.04); }
.faceid.scanning { animation: scan 1.1s var(--ease) infinite; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 600; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: calc(100vw - 32px);
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(24,24,28,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); box-shadow: 0 20px 50px -15px rgba(0,0,0,.9);
  animation: toastIn .45s var(--ease-out) both;
}
.toast.out { animation: toastOut .3s var(--ease) both; }
.toast .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--brass); flex-shrink: 0; }
.toast.pos .ti { color: var(--pos); background: var(--pos-dim); }
.toast.neg .ti { color: var(--neg); background: var(--neg-dim); }
.toast .tt { font-weight: 500; font-size: 13px; }
.toast .ts { font-size: 12px; color: var(--text-3); }

/* ---------- notifications dropdown ---------- */
.popover {
  position: fixed; z-index: 210; width: 380px; max-width: calc(100vw - 24px); max-height: 70vh;
  background: rgba(18,18,21,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  animation: dropIn .3s var(--ease-out) both; transform-origin: top right;
}
.popover-head { padding: 16px 18px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.popover-body { overflow-y: auto; padding: 6px; }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 12px; position: relative; }
.notif:hover { background: rgba(255,255,255,.03); }
.notif.unread::after { content: ""; position: absolute; right: 14px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.notif .t { font-weight: 500; font-size: 13px; padding-right: 16px; }
.notif .s { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.notif .w { color: var(--text-4); font-size: 11px; margin-top: 4px; font-family: var(--f-mono); }

/* ---------- command palette ---------- */
.palette {
  position: fixed; z-index: 220; top: 14vh; left: 50%; transform: translateX(-50%);
  width: min(620px, calc(100vw - 24px));
  background: rgba(18,18,21,.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.95);
  animation: paletteIn .3s var(--ease-out) both;
}
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette-input input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; color: var(--text); }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 6px; font-size: 11px; color: var(--text-4); letter-spacing: .12em; text-transform: uppercase; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text-2); cursor: pointer; width: 100%; text-align: left; }
.palette-item.sel { background: var(--surface-3); color: var(--text); }
.palette-item.sel svg { color: var(--brass); }
.palette-item .end { margin-left: auto; font-size: 12px; color: var(--text-3); font-family: var(--f-mono); }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-4); }

/* ---------- transfer flow ---------- */
.steps { display: flex; gap: 6px; }
.steps i { height: 3px; flex: 1; border-radius: 3px; background: var(--surface-4); transition: background .4s var(--ease); }
.steps i.on { background: var(--brass); }
.amount-input {
  width: 100%; background: none; border: 0; outline: none; text-align: center;
  font-family: var(--f-display); font-size: 84px; line-height: 1; color: var(--text); letter-spacing: -.02em;
  caret-color: var(--brass);
}
.amount-input::placeholder { color: var(--text-4); }
.amount-wrap { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 18px 0 8px; }
.amount-wrap .cur { font-family: var(--f-display); font-size: 42px; color: var(--text-3); }
.src-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-2); text-align: left; width: 100%;
  transition: all .2s var(--ease);
}
.src-card:hover { border-color: var(--line-2); }
.src-card.active { border-color: var(--brass-line); background: var(--brass-dim); }
.src-card .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); position: relative; flex-shrink: 0; }
.src-card.active .radio { border-color: var(--brass); }
.src-card.active .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brass); }
.payee-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.payee-strip::-webkit-scrollbar { display: none; }
.payee-bubble { display: grid; justify-items: center; gap: 8px; width: 68px; flex-shrink: 0; font-size: 12px; color: var(--text-2); text-align: center; }
.payee-bubble .avatar { transition: all .2s var(--ease); }
.payee-bubble:hover .avatar { border-color: var(--brass); transform: translateY(-2px); }
.payee-bubble span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

.success-mark { width: 92px; height: 92px; margin: 10px auto 18px; }
.success-mark circle { stroke-dasharray: 280; stroke-dashoffset: 280; animation: dash .8s var(--ease-out) forwards; }
.success-mark path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash .5s .6s var(--ease-out) forwards; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--surface-4); border-top-color: var(--brass); animation: spin .8s linear infinite; margin: 0 auto; }

.receipt {
  border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); padding: 4px 18px;
  position: relative;
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}

/* misc */
.empty { text-align: center; padding: 48px 16px; color: var(--text-3); }
.empty svg { margin: 0 auto 12px; color: var(--text-4); }
.insight {
  display: flex; gap: 14px; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(205,174,116,.09), rgba(205,174,116,.02));
  border: 1px solid var(--brass-line);
}
.insight .ico { color: var(--brass); }
.copy { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); transition: color .2s; }
.copy:hover { color: var(--brass-2); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pos); font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); animation: pulse 1.8s infinite; }
.fx-flag { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; font-weight: 500; border: 1px solid var(--line-2); background: var(--surface-3); flex-shrink: 0; }
.swap-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); margin: -10px auto; position: relative; z-index: 2; transition: transform .4s var(--ease-out), background .2s; }
.swap-btn:hover { background: var(--brass); color: #17130b; transform: rotate(180deg); }
.fx-box { padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.fx-box input { background: none; border: 0; outline: none; font-family: var(--f-display); font-size: 44px; width: 100%; color: var(--text); }
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker { display: flex; gap: 36px; padding: 10px 0; width: max-content; animation: marquee 50s linear infinite; font-family: var(--f-mono); font-size: 12px; }
.ticker:hover { animation-play-state: paused; }
.ticker span b { font-weight: 500; color: var(--text); margin-right: 6px; }

/* entrance stagger */
.enter > * { animation: rise .7s var(--ease-out) both; }
.enter > *:nth-child(1) { animation-delay: .02s; }
.enter > *:nth-child(2) { animation-delay: .08s; }
.enter > *:nth-child(3) { animation-delay: .14s; }
.enter > *:nth-child(4) { animation-delay: .2s; }
.enter > *:nth-child(5) { animation-delay: .26s; }
.enter > *:nth-child(6) { animation-delay: .32s; }
.enter > *:nth-child(n+7) { animation-delay: .38s; }
.li.in { animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetOut { to { transform: translateX(40px); opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes popOut { to { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes paletteIn { from { opacity: 0; transform: translate(-50%, -10px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes scan { 0%, 100% { box-shadow: 0 0 0 0 rgba(205,174,116,.5); } 50% { box-shadow: 0 0 0 12px rgba(205,174,116,0); } }
@keyframes lockOut { to { opacity: 0; transform: scale(1.03); filter: blur(6px); } }
@keyframes sheen { 0%, 100% { background-position: 150% 0; } 50% { background-position: -50% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes tickUp { 0% { color: var(--pos); background: var(--pos-dim); } 100% { background: transparent; } }
@keyframes tickDown { 0% { color: var(--neg); background: var(--neg-dim); } 100% { background: transparent; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cols-main, .cols-main-r { grid-template-columns: minmax(0, 1fr); }
  .search-trigger { width: 220px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
  .topbar-title h1 { font-size: 24px; }
  .search-trigger { display: none; }
  .topbar .hide-m { display: none; }
  .view { padding: 4px 16px calc(var(--tabbar) + 40px); }
  .cols-2, .cols-3 { grid-template-columns: minmax(0,1fr); }
  .acct-strip { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .acct-strip > * { scroll-snap-align: start; }
  .acct-strip::-webkit-scrollbar { display: none; }
  .balance { font-size: 56px; }
  .hero { padding: 24px 20px 20px; border-radius: 24px; }
  .actions { gap: 6px; }
  .action { padding: 12px 4px; font-size: 11.5px; border-radius: 14px; }
  .action .ico { width: 38px; height: 38px; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel.flush .panel-head { padding: 18px 18px 0; }
  .lock { grid-template-columns: 1fr; }
  .lock-art { display: none; }
  .day-head { top: 64px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; z-index: 40; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    height: 64px; border-radius: 22px;
    background: rgba(17,17,20,.86); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0,0,0,.9);
  }
  .tab { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; color: var(--text-3); transition: color .2s; padding: 6px 0; }
  .tab.active { color: var(--text); }
  .tab.active svg { color: var(--brass); }
  .tab.center .bub { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #dcc08a, #c4a467); color: #17130b; box-shadow: 0 10px 24px -8px rgba(205,174,116,.6); margin-top: -2px; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; animation: sheetUp .45s var(--ease-out) both; border-bottom: 0; }
  .sheet.out { animation: sheetDown .3s var(--ease) both; }
  .sheet .grabber { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-3); margin: 10px auto 0; }
  .sheet-body { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(var(--tabbar) + 24px); }
  .amount-input { font-size: 64px; }
  .table .hide-m { display: none; }
  .table td, .table th { padding-left: 6px; padding-right: 6px; }
  .popover { right: 12px !important; left: 12px !important; width: auto; }
}
@media (max-width: 480px) {
  .balance { font-size: 48px; }
  .cols-4 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .action span.lbl { font-size: 11px; }
  .kpi .v { font-size: 28px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }

/* auth */
@media (min-width: 901px) { #auth-brand-m { display: none; } }
.lock-panel { overflow-y: auto; }
