:root {
  --logo: #D8F34B;
  --lime: #D8F34B;
  --lime-soft: #F4FBD3;
  --ink: #0B0B0C;
  --ink-2: #1C1C1E;
  --ink-3: #2A2A2D;
  --text: #111113;
  --muted: #8A8A8F;
  --line: #EEEEEB;
  --field: #F4F4F2;
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --red: #FF2D2D;
  --green: #178A3A;
  --amber: #E08600;
  --radius: 20px;
  --sidebar: 240px;
  --lift: 0 1px 2px rgba(17, 17, 19, 0.04);
}

html,
body {
  background: #fff;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 100vh;
  background: #fff !important;
  box-shadow: none !important;
  display: block !important;
  position: relative;
  z-index: 1;
}

.wordmark {
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #D8F34B;
  font-size: 26px;
  line-height: 1;
}

.login-box .wordmark {
  display: inline-block;
  background: var(--ink);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 22px;
}

#login-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff !important;
  display: grid;
  place-items: center;
  padding: 24px;
}

#login-screen.hidden { display: none !important; }

.login-box {
  width: min(400px, 100%);
  background: var(--paper) !important;
  color: var(--text) !important;
  border-radius: 24px;
  padding: 32px 28px 26px;
  border: none;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04), 0 18px 48px rgba(17, 17, 19, 0.08);
}

.login-box h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 22px 0 6px;
  letter-spacing: -0.02em;
}

.login-lead {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.login-input {
  width: 100%;
  background: var(--field) !important;
  color: var(--text) !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  padding: 13px 14px !important;
  margin-bottom: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.login-input:focus {
  outline: none;
  background: var(--paper) !important;
  border-color: var(--ink) !important;
}

.login-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--lime) !important;
  color: var(--ink) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#login-error {
  color: var(--red);
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
}

#login-success {
  color: var(--green);
  background: var(--lime-soft);
  border: 1px solid var(--green);
  border-radius: 12px;
  text-align: center;
  margin-bottom: 16px;
  padding: 10px 14px;
  font-size: 14px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
}

.login-links a { color: var(--muted); text-decoration: none; }
.login-links a:hover { color: var(--text); }

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: var(--ink);
  color: #fff;
  padding: 26px 14px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}

.sidebar > .wordmark { padding: 0 8px; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 30px;
}

.side-link,
.dock-btn,
.side-logout,
.action-btn,
.btn-lime,
.btn-dark,
.btn-outline,
.chip,
.text-link,
.bell-btn {
  font-family: inherit;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  background: transparent;
  color: #C7C7CB;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-link svg,
.dock-btn svg,
.side-logout svg,
.action-btn svg,
.bell-btn svg,
.search-pill svg,
.currency-pill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.side-link:hover { background: #151517; color: #fff; }

.side-link.active {
  background: var(--ink-2);
  color: #fff;
}

.side-link.active svg { color: var(--lime); }

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 8px 6px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.side-user-name { font-weight: 600; font-size: 14px; }
.side-user-role { color: #8A8A8F; font-size: 12px; }

.side-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  color: var(--red);
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  margin-top: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s ease;
}

.side-logout:hover { background: rgba(255, 45, 45, 0.1); }

.shell-main {
  --shell-pad-top: 26px;
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar);
  padding: var(--shell-pad-top) 32px 40px;
}

.mobile-brand { display: none; }

.home-top,
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.hello,
.view-head h1,
#view-reload h1,
#view-activity h1,
#view-settings h1 {
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
}

.hello-sub,
.view-head p { color: var(--muted); margin-top: 4px; font-size: 13px; }

.home-tools { display: flex; align-items: center; gap: 8px; }

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  min-width: 230px;
  height: 42px;
  color: var(--muted);
  box-shadow: var(--lift);
}

.search-pill svg { width: 16px; height: 16px; flex: 0 0 16px; }

.search-pill input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
}

.search-pill input::placeholder { color: var(--muted); }

.bell-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  position: relative;
  cursor: pointer;
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--lift);
}

.bell-dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.home-main,
.home-side { display: flex; flex-direction: column; gap: 16px; }

.balance-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 24px 20px;
}

.balance-label { color: #9A9AA0; font-size: 13px; margin-bottom: 8px; }

.balance-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.balance-amount #currency-symbol {
  font-size: 24px;
  align-self: flex-start;
  margin-top: 2px;
}

.icon-inline {
  background: none;
  border: none;
  color: #8A8A8F;
  cursor: pointer;
  display: inline-flex;
  margin-left: 8px;
}

.icon-inline:hover { color: #fff; }

.currency-pill {
  height: 42px;
  background: var(--paper);
  color: var(--text);
  border: none;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--lift);
}

.currency-pill svg { width: 14px; height: 14px; flex: 0 0 14px; }

.balance-actions { display: flex; gap: 8px; margin: 22px 0 22px; }

.btn-lime,
.btn-dark,
.btn-outline {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease, background 0.15s ease;
}

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { filter: brightness(0.96); }
.btn-dark { background: var(--ink); color: #fff; }
.balance-card .btn-dark { background: var(--ink-3); color: #fff; }
.balance-card .btn-dark:hover { background: #343438; }

.btn-outline {
  background: var(--paper);
  color: var(--text);
  border: 1px solid #DEDEDA;
}

.btn-outline:hover { background: var(--field); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid #222225;
  padding-top: 18px;
}

.stat-row span { display: block; color: #8A8A8F; font-size: 12px; margin-bottom: 4px; }
.stat-row strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
#stat-delta.delta-down { color: var(--lime); }
#stat-delta.delta-up { color: var(--lime); }

.panel {
  background: var(--paper);
  border: none;
  border-radius: var(--radius);
  padding: 20px 20px 8px;
  box-shadow: var(--lift);
}

.panel-head,
.summary-head,
.limit-row,
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-head { margin-bottom: 10px; }
.panel-head h2, .card-panel h2 { font-size: 15px; letter-spacing: -0.01em; font-weight: 600; }

.text-link {
  background: none;
  border: none;
  color: #5C6E00;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
}

.text-link:hover { color: var(--ink); }

.muted { color: var(--muted); font-size: 12px; }

.tx-filters {
  display: flex;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.chip {
  border: none;
  background: var(--field);
  color: #55555A;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}

.chip.is-on { background: var(--ink); color: #fff; }

.tx-list { display: flex; flex-direction: column; gap: 0; }

.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.tx-list > .tx-row:first-child { border-top: none; }

.tx-row[data-tx-id] {
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

.tx-row[data-tx-id]::before {
  content: '';
  position: absolute;
  inset: 2px -10px;
  z-index: -1;
  border-radius: 12px;
  background: transparent;
  transition: background 0.15s ease;
}

.tx-row[data-tx-id]:hover::before { background: #F7F7F5; }
.tx-row[data-tx-id]:focus-visible { outline: none; }
.tx-row[data-tx-id]:focus-visible::before { box-shadow: inset 0 0 0 2px var(--ink); }

.txd-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.txd-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.35);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.txd-panel-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  box-shadow: -16px 0 48px rgba(11, 11, 12, 0.16);
  padding: 22px 22px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.txd-panel.is-open .txd-panel-backdrop { opacity: 1; }
.txd-panel.is-open .txd-panel-sheet { transform: none; }

.txd-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
}

.txd-hero .tx-icon-circle {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 14px;
  font-size: 20px;
  margin-bottom: 12px;
}

.txd-name { font-size: 14px; color: var(--muted); font-weight: 500; }

.txd-amount {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 4px 0 10px;
  font-variant-numeric: tabular-nums;
}

.txd-amount.is-credit { color: var(--green); }
.txd-amount.is-declined { color: #B9B9BE; text-decoration: line-through; }

.txd-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.txd-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.txd-status.is-green { background: #E7F5EC; color: var(--green); }
.txd-status.is-amber { background: #FFF1DE; color: var(--amber); }
.txd-status.is-red { background: #FFF0F0; color: #D92626; }
.txd-status.is-muted { background: var(--field); color: var(--muted); }
.txd-status.is-amber::before { animation: txdPulse 1.2s ease-in-out infinite; }

@keyframes txdPulse {
  50% { opacity: 0.3; }
}

.txd-confirm {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #FFF8EC;
}

.txd-confirm.is-done { background: #EEF8F1; }

.txd-confirm-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.txd-confirm-head strong { color: var(--text); font-variant-numeric: tabular-nums; }

.txd-confirm-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.08);
  overflow: hidden;
}

.txd-confirm-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--amber);
  transition: width 0.4s ease;
}

.txd-confirm.is-done .txd-confirm-bar span { background: var(--green); }

.txd-confirm p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}

.txd-rows { margin-top: 10px; }

.txd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.txd-row:last-child { border-bottom: none; }
.txd-label { color: var(--muted); flex: 0 0 auto; }

.txd-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  text-align: right;
}

.txd-value .coin-icon { width: 18px; height: 18px; }

.txd-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

a.txd-mono { text-decoration: underline; text-underline-offset: 3px; }

.txd-copy {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: none;
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.txd-copy:hover { background: #E8E8E4; }
.txd-copy svg { width: 14px; height: 14px; }

.tx-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  flex: 0 0 38px;
  background: var(--field);
  color: var(--text);
}

.tx-icon-circle.tone-lime { background: var(--lime); color: var(--ink); }
.tx-icon-circle.tone-soft { background: var(--field); color: var(--text); }
.tx-icon-circle.tone-dark { background: var(--ink); color: #fff; }

.tx-details { flex: 1; min-width: 0; }
.tx-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.tx-subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tx-amount-wrap { text-align: right; }
.tx-amount { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.tx-amount.negative::before { content: '\2212'; }
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--text); }
.tx-amount.declined { color: #B9B9BE; text-decoration: line-through; }
.tx-amount.is-pending { color: var(--text); }
.tx-pending {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFF1DE;
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
}

.tx-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.tx-status-declined { background: #FFECEC; color: #D92626; }

.tx-empty {
  text-align: center;
  padding: 48px 16px 36px;
}

.tx-empty-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #D8F34B;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 18px;
}

.tx-empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tx-empty p { color: var(--muted); font-size: 13px; max-width: 280px; margin: 0 auto 16px; line-height: 1.45; }

.card-panel { padding-bottom: 18px; }

.card-wrapper {
  margin: 4px 0 8px;
  aspect-ratio: 1.7;
  position: relative;
}

.metal-card,
.vcard-face {
  overflow: hidden;
  isolation: isolate;
}

.metal-card::after,
.vcard-face::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  top: -42%;
  right: -26%;
  border-radius: 50%;
  border: 1px solid rgba(11, 11, 12, 0.1);
  pointer-events: none;
}

.metal-card {
  width: 100%;
  height: 100%;
  background: #D8F34B !important;
  color: #142000 !important;
  border-radius: 16px !important;
  border: none !important;
  padding: 18px 20px !important;
  position: relative;
  box-shadow: none !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-brand {
  position: absolute;
  top: 18px;
  left: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 19px;
}

.card-eye-overlay {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: rgba(20, 32, 0, 0.5);
  display: grid;
  place-items: center;
  opacity: 1;
  box-shadow: none;
  backdrop-filter: none;
}

.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.card-last4 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; font-weight: 600; font-size: 13px; }
.card-name { font-size: 10px; letter-spacing: 0.16em; font-weight: 600; opacity: 0.6; margin-top: 4px; }
.visa-text { font-weight: 800; font-style: italic; letter-spacing: 0.02em; font-size: 20px; text-align: right; }
.platinum-text { font-size: 8px; letter-spacing: 0.18em; text-align: right; font-weight: 600; opacity: 0.7; text-transform: uppercase; }

.card-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(17, 17, 19, 0.12);
  cursor: pointer;
}

#card-prev-btn { left: -8px; }
#card-next-btn { right: -8px; }

.card-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.card-dot { width: 6px; height: 6px; border-radius: 50%; background: #E0E0DC; }
.card-dot.active { background: var(--ink); }

.limit-block { margin-top: 14px; }
.limit-row { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.limit-row strong { color: var(--text); font-weight: 600; }
.limit-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
#limit-fill { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; }

.spend-list { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 16px; }
.spend-row { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.spend-line { display: flex; justify-content: space-between; gap: 12px; }
.spend-line strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.spend-track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.spend-track span { display: block; height: 100%; border-radius: 999px; }

#no-card-state {
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  box-shadow: var(--lift);
}

.app-view h1 { margin-bottom: 0; }

.vcard {
  border: none;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  padding: 10px 10px 12px;
  border-radius: 22px;
  box-shadow: var(--lift);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.vcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(17, 17, 19, 0.08);
}

.vcard-face {
  border-radius: 16px;
  aspect-ratio: 1.586;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: none;
  box-shadow: none;
}

.vcard-lime .vcard-face { background: #D8F34B; color: #142000; }
.vcard-dark .vcard-face { background: var(--ink); color: #F2F2F0; }
.vcard-dark .vcard-face::after { border-color: rgba(255, 255, 255, 0.08); }
.vcard-dark .vcard-brand { color: #D8F34B; }
.vcard-top, .vcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.vcard-brand { font-weight: 800; letter-spacing: -0.05em; font-size: 19px; }
.vcard-last4 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; font-weight: 600; font-size: 13px; }
.vcard-name { font-size: 10px; letter-spacing: 0.16em; opacity: 0.6; margin-top: 4px; font-weight: 600; }
.vcard-visa { font-weight: 800; font-style: italic; text-align: right; font-size: 20px; }
.vcard-visa span { display: block; font-style: normal; font-size: 8px; letter-spacing: 0.18em; opacity: 0.7; font-weight: 600; }
.vcard-meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 6px 0;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.vcard-meta strong { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.card-action-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  max-width: 480px;
}

.action-btn {
  flex: 1;
  min-width: 120px;
  background: var(--paper);
  color: var(--text);
  border: none;
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--lift);
}

.reload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

#deposit-modal.reload-sheet {
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  display: block !important;
  z-index: auto !important;
  backdrop-filter: none !important;
  width: auto;
}

#deposit-modal.reload-sheet.hidden { display: none !important; }

#deposit-modal.reload-sheet .modal-content {
  max-width: none;
  width: 100%;
  padding: 22px;
  background: var(--paper);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--lift);
  animation: none;
}

.legacy-deposit { display: none !important; }

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  margin: 4px 0 12px;
}

.step-label span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 16px;
}

.asset-card {
  border: 1px solid #E6E6E2;
  background: var(--paper);
  border-radius: 10px;
  padding: 11px 7px 10px;
  text-align: center;
  font-family: inherit;
  color: var(--text);
  pointer-events: none;
  user-select: none;
}

.asset-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  background: transparent;
  border: none;
  overflow: hidden;
}

.coin-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.coin-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-weight: 700;
}

.app-currency-btn {
  width: 100%;
  padding: 12px 14px !important;
  text-align: left;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.pay-asset,
.pay-network {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pay-network {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}

.app-currency-btn .coin-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.pay-network .coin-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.asset-card .coin-icon,
.asset-card .coin-fallback {
  width: 24px;
  height: 24px;
}

.asset-sym { display: block; font-weight: 600; font-size: 10px; }
.asset-name { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }

.network-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.net-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #E6E6E2;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.net-pill .coin-icon,
.net-pill .net-fallback {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.net-pill .net-fallback {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.net-pill.is-on {
  background: var(--lime-soft);
  border-color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 0.5px var(--ink);
}

#copy-seed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

#copy-seed-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

#impersonation-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #2E2E30;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#impersonation-banner button {
  background: #D8F34B;
  color: #2E2E30;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  flex: 0 0 auto;
}

body.debug-mode .sidebar {
  top: var(--debug-bar, 0px);
  height: calc(100dvh - var(--debug-bar, 0px));
}

body.debug-mode .shell-main {
  padding-top: calc(var(--shell-pad-top) + var(--debug-bar, 0px));
}

.amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #E6E6E2;
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 4px;
  background: var(--paper);
}

.amount-field:focus-within { border-color: var(--ink); }

.amount-field span { font-size: 22px; font-weight: 500; color: var(--muted); }
.amount-field input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 26px;
  font-weight: 600;
  width: 100%;
  background: transparent;
  letter-spacing: -0.02em;
  color: var(--text);
}

.reload-note { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.summary-card {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 22px;
}

.summary-head { margin-bottom: 14px; font-size: 15px; }
.summary-head strong { font-weight: 600; }
.summary-head span { color: #8A8A8F; font-size: 12px; }
.summary-row span:first-child { color: #9A9AA0; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #1F1F22;
  font-size: 13px;
}
.summary-receive { align-items: center; padding-top: 18px; }
.summary-receive strong { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

#generate-deposit-btn {
  width: 100%;
  margin-top: 14px;
  background: var(--lime);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#generate-deposit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.summary-note { text-align: center; color: #8A8A8F; font-size: 11px; margin-top: 12px; }
.summary-back {
  background: none;
  border: none;
  color: #C7C7CB;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
  font-family: inherit;
}
.summary-address { background: var(--ink-2); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.summary-address p { word-break: break-all; }
#deposit-send-amount { font-weight: 600; margin-bottom: 8px; }
.summary-address-row { display: flex; gap: 8px; align-items: flex-start; }
#copy-deposit-address-btn { background: none; border: none; color: #D8F34B; cursor: pointer; }
#deposit-qr { display: flex; justify-content: center; margin: 8px 0; }
#deposit-qr img { border-radius: 10px; background: #fff; }
#deposit-status-text, #deposit-min-hint { text-align: center; color: #9A9AA0; font-size: 12px; }

.settings-card { padding-bottom: 6px; }
.settings-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.settings-row:first-child { border-top: none; padding-top: 4px; }
.settings-row strong { font-size: 14px; font-weight: 600; }
.settings-row p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.settings-row .js-logout {
  background: #FFF0F0;
  color: #D92626;
  border-color: transparent;
}
.settings-row .js-logout:hover { background: #FFE3E3; }

#referral-section.panel { margin-top: 16px; padding-bottom: 20px; }

.dock {
  display: none;
}

.modal:not(.reload-sheet) {
  align-items: center;
}

.modal.card-modal {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 11, 12, 0.45);
  backdrop-filter: blur(4px);
}

.modal.card-modal .modal-content.card-modal-panel {
  width: min(420px, 100%);
  max-width: 420px;
  margin: 0;
  border-radius: 24px;
  border: none;
  padding: 22px 22px 20px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(11, 11, 12, 0.22);
  animation: modalPop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-card { margin: 0 0 20px; }
.drawer-card .vcard-face {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.card-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.card-modal-actions button:disabled { opacity: 0.55; cursor: wait; }
.card-modal-actions svg { width: 16px; height: 16px; flex: 0 0 16px; }

.card-action-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.card-action-reveal:hover { background: var(--field); }
.card-action-reveal:disabled { opacity: 0.55; cursor: wait; }
.card-action-reveal.is-revealed { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-action-reveal.is-revealed:hover { background: #2A2A2E; }
.card-action-reveal svg { width: 16px; height: 16px; flex: 0 0 16px; }

.card-action-freeze { background: var(--field); color: var(--text); }
.card-action-freeze:hover { background: #E8E8E4; }
.card-action-freeze.is-frozen { background: #E5F0FB; color: #1C64A8; }
.card-action-freeze.is-frozen:hover { background: #D7E8F8; }
.card-action-delete { background: #FFF0F0; color: #D92626; }
.card-action-delete:hover { background: #FFE3E3; }

.vcard-face.is-frozen::before,
.metal-card.is-frozen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(214, 228, 240, 0.62);
  backdrop-filter: blur(1.5px) saturate(0.4);
  pointer-events: none;
}

.frozen-badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1C64A8;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(11, 11, 12, 0.1);
}

.frozen-badge svg { width: 14px; height: 14px; }

.metal-card.is-frozen .card-eye-overlay { display: none; }

.metal-card.is-frozen::after {
  content: 'Frozen';
  z-index: 2;
  width: auto;
  aspect-ratio: auto;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1C64A8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.drawer-head h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drawer-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--field);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.drawer-close:hover { background: #E8E8E4; }
.drawer-close svg { width: 16px; height: 16px; }

.drawer-status {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0 8px;
}

.drawer-status-error { color: var(--red); }

.drawer-field { margin-bottom: 14px; }

.drawer-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.drawer-value,
.drawer-plain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--field);
  border: none;
  border-radius: 12px;
  padding: 0 10px 0 14px;
  height: 52px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

#detail-pan { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.drawer-value button {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: none;
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--lift);
}

.drawer-value button svg { width: 15px; height: 15px; }

.drawer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal:not(.reload-sheet) .modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 24px 60px rgba(11, 11, 12, 0.18);
  background: var(--paper);
}

@media (max-width: 980px) {
  .sidebar { display: none; }
  .shell-main { --shell-pad-top: 18px; margin-left: 0; padding: var(--shell-pad-top) 16px 120px; }
  .mobile-brand {
    display: inline-block;
    color: #D8F34B;
    background: var(--ink);
    margin: 0 0 14px;
    width: auto;
    padding: 6px 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.05em;
    border-radius: 10px;
  }
  .balance-card { padding: 20px 18px 16px; }
  .stat-row { gap: 8px; }
  .stat-row span { font-size: 11px; line-height: 1.25; }
  .stat-row strong { font-size: 14px; }
  .home-grid,
  .reload-layout { grid-template-columns: 1fr; }
  .home-side { display: none; }
  .home-top, .view-head { flex-direction: column; }
  .search-pill { min-width: 0; flex: 1; width: auto; }
  .home-tools { width: 100%; }
  .hello, .view-head h1 { font-size: 24px; }
  .balance-amount { font-size: 38px; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .net-pill { line-height: 1.25; }
  .dock {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 6px;
    z-index: 80;
    justify-content: space-around;
    box-shadow: 0 10px 30px rgba(11, 11, 12, 0.25);
  }
  .dock-btn {
    flex: 1;
    background: none;
    border: none;
    color: #8A8A8F;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    padding: 6px 2px;
  }
  .dock-btn svg { width: 20px; height: 20px; }
  .dock-btn.active { color: var(--lime); }

  /* Transaction details: bottom drawer on mobile */
  .txd-panel-sheet {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: min(88vh, 720px);
    padding: 10px 18px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 48px rgba(11, 11, 12, 0.18);
    transform: translateY(100%);
  }

  .txd-panel-sheet::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 2px auto 14px;
    border-radius: 999px;
    background: #D8D8D4;
  }

  .txd-panel.is-open .txd-panel-sheet { transform: none; }
}

@media (min-width: 981px) {
  #card-dashboard {
    display: block !important;
    height: auto !important;
  }
  #card-dashboard.hidden { display: none !important; }
}

#no-card-state input,
#no-card-state select,
#no-card-state textarea,
.modal-content input,
.modal-content select,
.modal-content textarea,
.app-dialog-input {
  border: 1px solid #E6E6E2 !important;
  border-radius: 12px !important;
  background: var(--paper) !important;
  box-shadow: none;
  font-family: inherit;
}

.modal-content .amount-field input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

#submit-application-btn,
#submit-refund-btn,
#submit-claim-btn,
#seed-continue-btn,
#claim-rewards-btn,
.app-dialog-btn-primary {
  background: var(--lime) !important;
  color: var(--ink) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: none;
  font-weight: 600;
}

.app-currency-btn,
#change-payment-method-btn {
  border: 1px solid #E6E6E2 !important;
  border-radius: 14px !important;
  box-shadow: none;
  background: var(--paper) !important;
  font-weight: 600;
}

.app-dialog-btn-primary.app-dialog-btn-danger {
  background: var(--red) !important;
  color: #fff !important;
}

.app-dialog-panel {
  border: none;
  box-shadow: 0 24px 60px rgba(11, 11, 12, 0.18);
  border-radius: var(--radius);
}
