/* Mutual Pay OTC — Design System */
:root {
  --brand-900: #1A2449;
  --brand-800: #232F63;
  --brand-700: #2A3878;
  --brand-600: #354695;
  --brand-500: #4254AB;
  --brand-100: #E0E4F2;
  --brand-50: #F0F2F8;

  --accent: #FCB71B;

  --ink-900: #0A0A0A;
  --ink-800: #101828;
  --ink-700: #1E2939;
  --ink-600: #364153;
  --ink-500: #45556C;
  --ink-400: #6A7282;
  --ink-300: #99A1AF;
  --ink-200: #D1D5DC;
  --ink-100: #E5E7EB;
  --ink-50: #F9FAFB;

  --line: #E8EAF2;
  --line-strong: #D1D5DC;

  --bg: #F4F5F8;
  --surface: #FFFFFF;

  --green: #22C55E;
  --green-bg: #D1FAE5;
  --green-border: #A7F3D0;
  --green-text: #065F46;

  --red: #EF4444;
  --red-bg: #FEE2E2;
  --red-text: #B91C1C;

  --amber: #FCB71B;
  --amber-bg: #FEF3C7;
  --amber-border: #FDE68A;
  --amber-text: #92400E;

  --blue: #3B82F6;
  --blue-bg: #DBEAFE;
  --blue-text: #1E40AF;

  --shadow-sm: 0 1px 2px -1px rgba(0,0,0,.08), 0 1px 3px 0 rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 24px -8px rgba(35,47,99,.12), 0 4px 8px -2px rgba(0,0,0,.04);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* App layout */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.app.collapsed { grid-template-columns: 64px 1fr; }

/* Sidebar */
.sidebar {
  background: var(--brand-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 18px 20px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text .pay { color: var(--accent); font-weight: 600; }
.collapse-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.6);
  transition: background .15s, color .15s;
}
.collapse-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 2px;
  width: 100%;
  text-align: left;
  position: relative;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
}
.nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.nav-item .badge {
  margin-left: auto;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .3px;
}

.app.collapsed .brand-text,
.app.collapsed .nav-item span:not(.badge):not(.nav-icon),
.app.collapsed .nav-item .badge,
.app.collapsed .sidebar-foot .user-info,
.app.collapsed .sidebar-foot .foot-action span { display: none; }
.app.collapsed .nav-item { justify-content: center; padding: 10px; }

.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
}
.foot-action {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.7);
  padding: 8px 12px;
  border-radius: 8px;
  width: 100%;
  font-size: 12px;
}
.foot-action:hover { background: rgba(255,255,255,.06); color: #fff; }
.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-info { font-size: 11.5px; line-height: 1.3; }
.user-info .name { font-weight: 600; color: #fff; }
.user-info .email { color: rgba(255,255,255,.55); font-size: 10.5px; }

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

/* Topbar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.account-pick {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .15s;
}
.account-pick:hover { background: var(--ink-50); }
.account-pick .label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--ink-400);
  text-transform: uppercase;
}
.account-pick .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-800);
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-500);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--ink-50); color: var(--ink-800); }
.user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.user-pill:hover { background: var(--ink-50); }
.user-pill .avatar { width: 26px; height: 26px; background: var(--brand-50); color: var(--brand-700); }
.user-pill .name { font-size: 13px; font-weight: 600; }

/* Page */
.page {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.page-head { margin-bottom: 24px; }
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-800);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.page-sub { color: var(--ink-500); font-size: 13.5px; margin: 0; }

/* Tab strip */
.tab-strip {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--ink-800); background: var(--ink-50); }
.tab.active { background: var(--brand-800); color: #fff; }
.tab .tab-icon { width: 16px; height: 16px; }

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-pad { padding: 24px; }
.card-h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-800);
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}
.card-sub { color: var(--ink-500); font-size: 12.5px; margin: 0 0 20px; }

/* Form bits */
.label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
  color: var(--ink-800);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(35,47,99,.08); }
.input::placeholder { color: var(--ink-300); }
.input.input-lg {
  height: 64px;
  font-size: 18px;
  font-weight: 600;
}

.select {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  background: #fff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color .15s;
  position: relative;
}
.select:hover:not(.disabled) { border-color: var(--ink-300); }
.select.disabled { background: var(--ink-50); cursor: not-allowed; color: var(--ink-400); }
.select .placeholder { color: var(--ink-300); font-size: 14px; }

/* Buttons */
.btn {
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, transform .05s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-800); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-primary:disabled { background: #B0B5C9; color: #fff; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink-800); border: 1px solid var(--ink-100); }
.btn-ghost:hover { background: var(--ink-50); }
.btn-block { width: 100%; }

/* Badges */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-live { background: rgba(34,197,94,.15); color: var(--green); }
.badge-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 2px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.badge-up { background: rgba(34,197,94,.10); color: var(--green); padding: 3px 10px 3px 8px; }
.badge-down { background: rgba(239,68,68,.10); color: var(--red); padding: 3px 10px 3px 8px; }
.badge-success { background: var(--green-bg); color: var(--green-text); border: 1px solid var(--green-border); }
.badge-warn { background: var(--amber-bg); color: var(--amber-text); border: 1px solid var(--amber-border); }
.badge-buy { background: #D1FAE5; color: #065F46; }
.badge-sell { background: #FEE2E2; color: #B91C1C; }

/* Coin avatars */
.coin {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}
.coin-sm { width: 32px; height: 32px; font-size: 13px; }
.coin-md { width: 40px; height: 40px; font-size: 15px; }
.coin-lg { width: 56px; height: 56px; font-size: 20px; }
.coin-brl { background: #16A34A; }
.coin-usdt { background: #26A17B; }
.coin-usdc { background: #2775CA; }
.coin-btc { background: #F7931A; }
.coin-eth { background: #627EEA; }

/* Quote header */
.quote-head {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-900) 100%);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.quote-head::after {
  content: ""; position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,183,27,.10), transparent 65%);
  pointer-events: none;
}
.quote-head .qh-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; margin: 0 0 8px;
}
.quote-head .qh-rates {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.quote-head .qh-rates b { color: #fff; font-weight: 600; }
.quote-head .qh-rates .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.4); }

.quote-id {
  text-align: right;
}
.quote-id .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.quote-id .value {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Cousine', 'Consolas', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .8px;
  color: #fff;
}

/* Market data */
.market-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.market-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: #fff;
}
.market-cell .l {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--ink-400);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.market-cell .v {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-800);
  font-variant-numeric: tabular-nums;
}

.meta-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--ink-400);
  margin-bottom: 10px;
}
.meta-row b { color: var(--ink-700); font-weight: 600; }
.meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-200); }

/* Currency selector toggle */
.fx-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.fx-side {
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-500);
  transition: all .15s;
}
.fx-side:hover { border-color: var(--ink-300); }
.fx-side.on {
  background: var(--brand-800);
  color: #fff;
  border-color: var(--brand-800);
  box-shadow: 0 1px 4px rgba(35,47,99,.2);
}
.fx-swap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--ink-50);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin: 0 auto;
  color: var(--ink-500);
  transition: transform .25s, background .15s, color .15s;
}
.fx-swap:hover { background: var(--brand-50); color: var(--brand-700); transform: rotate(180deg); }

/* Conversion result card */
.result-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #FAFBFC 100%);
}
.result-card .tag { font-size: 12.5px; color: var(--ink-500); margin: 0 0 6px; }
.result-card .big {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-800);
  letter-spacing: -.6px;
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}
.result-card .qid { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-400); letter-spacing: .3px; }
.result-card .qid b { color: var(--ink-700); font-weight: 700; font-family: 'Cousine', monospace; }

/* Toggle */
.switch {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--ink-200);
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.switch.on { background: var(--brand-800); }
.switch::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch.on::after { transform: translateX(18px); }

/* Auto refresh row */
.auto-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  font-size: 12.5px;
}
.auto-row .lhs { display: flex; align-items: center; gap: 10px; }
.auto-row .rhs { color: var(--ink-400); }

/* Action row */
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Holdings cards */
.holdings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.holding-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.holding-card .top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.holding-card .name {
  font-weight: 700;
  color: var(--ink-700);
  font-size: 13px;
}
.holding-card .qty {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.holding-card .brl {
  font-size: 11.5px;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}
.holding-card .change {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
}
.up { color: var(--green); }
.down { color: var(--red); }

/* History */
.history-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.history-tab {
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-500);
  text-align: center;
  transition: background .15s, color .15s;
}
.history-tab:hover { color: var(--ink-800); }
.history-tab.active { background: var(--brand-800); color: #fff; }

table.tx { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tx th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-400);
  font-size: 10.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.tx th.r, table.tx td.r { text-align: right; }
table.tx td {
  padding: 16px;
  border-bottom: 1px solid var(--ink-50);
  color: var(--ink-700);
  vertical-align: middle;
}
table.tx tbody tr { transition: background .12s; }
table.tx tbody tr:hover { background: var(--ink-50); }
.num { font-variant-numeric: tabular-nums; }

/* Info banner */
.info {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 12.5px;
  align-items: flex-start;
}
.info-blue { background: #EFF6FF; border-color: #DBEAFE; color: #1E3A8A; }
.info-amber { background: #FEF9E0; border-color: #FCEFC0; color: #78350F; }
.info-icon { flex-shrink: 0; margin-top: 1px; }
.info b { display: block; font-weight: 700; margin-bottom: 2px; font-size: 13px; }

/* Address row */
.addr-row {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.addr-row .addr {
  flex: 1;
  padding: 14px 16px;
  font-family: 'Cousine', 'Consolas', monospace;
  font-size: 12.5px;
  background: var(--ink-50);
  word-break: break-all;
  color: var(--ink-700);
}
.addr-row .copy-btn {
  border-left: 1px solid var(--line);
  padding: 0 18px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-700);
  display: flex; align-items: center; gap: 6px;
  background: #fff;
  transition: background .15s;
}
.addr-row .copy-btn:hover { background: var(--ink-50); }

/* Coin selector tiles */
.coin-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.coin-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  background: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-700);
  transition: all .15s;
}
.coin-tile:hover { border-color: var(--ink-300); }
.coin-tile.active {
  border: 2px solid var(--brand-800);
  padding: 15px 13px;
  box-shadow: 0 0 0 3px rgba(35,47,99,.08);
}
.coin-tile-from {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.coin-tile-from .coin-tile { padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.coin-tile-from .coin-tile.active { padding: 11px; }
.coin-tile-from .top { display: flex; align-items: center; gap: 8px; }
.coin-tile-from .label { font-weight: 700; font-size: 13px; color: var(--ink-800); }
.coin-tile-from .ticker { font-size: 10.5px; color: var(--ink-400); font-weight: 500; }
.coin-tile-from .change { font-size: 10.5px; font-weight: 600; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,21,40,.55);
  display: grid;
  place-items: center;
  z-index: 100;
  animation: fadein .2s;
  backdrop-filter: blur(2px);
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius-md);
  width: 480px;
  max-width: 92vw;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop .25s cubic-bezier(.2,.7,.4,1);
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  background: var(--brand-800);
  color: #fff;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.modal-head button { color: rgba(255,255,255,.8); }
.modal-head button:hover { color: #fff; }
.modal-body { padding: 28px; text-align: center; }
.modal-body p { color: var(--ink-700); font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.modal-body p.strong { color: var(--ink-900); font-weight: 700; }
.warning-hex {
  width: 96px; height: 96px; margin: 4px auto 22px;
}

/* Toast */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--ink-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s;
}
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Empty state */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-400);
}
.empty .empty-ic {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: var(--ink-100);
  display: grid; place-items: center;
}
.empty p { margin: 0 0 14px; font-size: 13px; }

/* Helpers */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* Floating bot */
.bot {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -4px rgba(252,183,27,.5);
  cursor: pointer;
  z-index: 50;
  transition: transform .15s;
}
.bot:hover { transform: scale(1.05); }
.bot::after {
  content: ""; position: absolute;
  top: 6px; right: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}

.divider { height: 1px; background: var(--line); margin: 16px 0; }

.summary {
  background: var(--ink-50);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 20px;
}
.summary .row-between { padding: 6px 0; font-size: 13px; }
.summary .row-between .l { color: var(--ink-500); }
.summary .row-between .v { font-weight: 600; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.summary .total { padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.summary .total .v { font-weight: 700; font-size: 15px; color: var(--green-text); }
.summary .total .l { font-weight: 700; color: var(--ink-800); }

/* QR placeholder */
.qr {
  width: 200px; height: 200px;
  margin: 0 auto;
  background:
    repeating-conic-gradient(var(--ink-900) 0% 25%, #fff 25% 50%) 50% / 16px 16px;
  border-radius: 8px;
  position: relative;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.qr::after {
  content: "";
  position: absolute; inset: calc(50% - 24px) calc(50% - 24px);
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 8px;
  border: 4px solid var(--brand-800);
}
