/* ============================================================================
   Pulse — visual system v5
   参照 Cash App 官方界面的浅色体系：浅灰底 / 白色卡片 / 黑胶囊按钮 / 绿色点缀
   ========================================================================== */

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dmsans.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --card-3: #3a3a3c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --dim: rgba(255, 255, 255, 0.55);
  --dim-2: rgba(255, 255, 255, 0.32);
  --green: #00d632;
  --green-deep: #00bd2c;
  --green-wash: rgba(0, 214, 50, 0.14);
  --green-ink: #04240f;
  --red: #ff3b30;
  --red-wash: rgba(255, 59, 48, 0.12);
  --radius: 20px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0a0b;
  color: var(--text);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

button, input {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  outline: none;
}

button { cursor: pointer; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.card-balance,
.card-amount,
.pay-amount,
.suc-amt,
.detail-amt,
.req-amount,
.tile-score {
  font-family: 'Satoshi', -apple-system, sans-serif;
}

/* ------------------------------------------------------------------- shell */

.stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #000;
}

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}



/* --------------------------------------------------------------- statusbar */

.statusbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 26px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.phone.on-green .statusbar { color: var(--green-ink); }

.sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-icons svg { display: block; }

.sb-batt { font-size: 11px; font-weight: 600; margin-right: 1px; opacity: 0.9; }

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 35px;
  border-radius: 18px;
  background: #000;
  z-index: 35;
  pointer-events: none;
}

/* -------------------------------------------------------------------- view */

.app {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  transform-origin: center top;
  transition: transform 0.38s var(--ease), border-radius 0.38s var(--ease);
}

.phone.sheet-open .app {
  transform: scale(0.965);
  border-radius: 16px;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 104px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  transition: opacity 0.2s ease, transform 0.28s var(--ease);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.view::-webkit-scrollbar { display: none; }
.view.is-active { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------------------------------------------- icons */

.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--dim);
  transition: background 0.15s ease, transform 0.12s ease;
}

.round-btn:active { transform: scale(0.94); background: var(--card-3); }
.round-btn svg { width: 19px; height: 19px; }

.round-btn.avatar-btn { padding: 0; overflow: hidden; background: none; }
.round-btn.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------- light cards */

.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 4px;
}

.page-top-right { display: flex; align-items: center; gap: 10px; }

.page-h1 {
  margin: 0;
  padding: 2px 20px 10px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.032em;
  color: #fff;
}

.group-h2 {
  margin: 0;
  padding: 19px 20px 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.card {
  margin: 0 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 15px;
}

.card + .card { margin-top: 8px; }

.card[data-action] { cursor: pointer; }
.card[data-action]:active { transform: scale(0.994); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

.card-chev { display: flex; align-items: center; color: rgba(255, 255, 255, 0.35); font-size: 15px; }

.card-balance {
  margin-top: 2px;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}

.card-meta {
  margin-top: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.btn-row { display: flex; gap: 10px; margin-top: 15px; }

.btn-black {
  flex: 1 1 0;
  height: 46px;
  border-radius: 23px;
  background: var(--card-2);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.14s ease, transform 0.1s ease;
}

.btn-black:active { opacity: 0.78; transform: scale(0.985); }

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px -16px 0;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}

.mini-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: 0 0 auto;
}

.mini-icon svg { width: 13px; height: 13px; }

.mini-title { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.mini-val { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }

.card-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-amount {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.15;
  color: #fff;
}

.card-sub { margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.card-sub.up { color: var(--green); }
.card-sub.down { color: var(--red); }

.ring { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring-bg { stroke: rgba(0, 0, 0, 0.07); }
.ring-fg { stroke: var(--green); stroke-linecap: round; }
.ring-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-ink);
}

.ring-core svg { width: 26px; height: 26px; }

.spark-sm { width: 66px; height: 30px; flex: 0 0 auto; color: var(--green); }

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.explore-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.explore-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #2c2c2e;
  color: #fff;
}

.explore-ico svg { width: 22px; height: 22px; }

.explore-item .ex-label {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tile-score { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* -------------------------------------------------------------- bottom dock */

.dock-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 158px;
  z-index: 20;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 42%, #000 92%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.2s ease;
}

.phone.on-green .dock,
.phone.on-green .dock-fade { opacity: 0; pointer-events: none; }

.dock-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  height: 54px;
  padding: 0 16px;
  border-radius: 27px;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.dock-pill .dp-label { font-size: 12px; color: var(--dim); }
.dock-pill .dp-val { font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; }

.dock-pill .dp-graph {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: flex-end;
  height: 18px;
}

.dock-pill .dp-graph i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  opacity: 0.8;
}

.dock-dollar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f0f0f3;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  flex: 0 0 auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  transition: transform 0.12s ease;
}

.dock-dollar:active { transform: scale(0.93); }

.dock-clock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  color: #fff;
  flex: 0 0 auto;
}

.dock-clock svg { width: 20px; height: 20px; }

.dock-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #f2f2f2;
}

/* --------------------------------------------------------------- pay screen */

.pay-screen {
  position: absolute;
  inset: 0;
  z-index: 15;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: var(--green-ink);
  transform: translateY(100%);
  transition: transform 0.38s var(--ease);
}

.pay-screen.is-open { transform: translateY(0); }

.pay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 0;
  flex: 0 0 auto;
}

.pay-top .round-btn { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.pay-top .round-btn svg { width: 20px; height: 20px; }

.pay-top-right { display: flex; align-items: center; gap: 9px; }

.pay-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 26px 20px 6px;
  font-size: 92px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #ffffff;
  flex: 0 0 auto;
}

.pay-amount .cur { font-size: 58px; font-weight: 500; margin-right: 2px; color: #ffffff; }
.pay-amount.is-zero { opacity: 0.28; }

.pay-keys {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 78px;
  align-content: center;
  padding: 6px 26px 10px;
  min-height: 0;
}

.pkey {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  border-radius: 14px;
  transition: background 0.1s ease;
}

.pkey:active { background: rgba(0, 0, 0, 0.07); }
.pkey svg { width: 24px; height: 24px; }

.pay-actions {
  display: flex;
  gap: 12px;
  padding: 0 20px;
  flex: 0 0 auto;
}

.pay-actions button {
  flex: 1 1 0;
  height: 46px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin: 11px 20px 0;
  border-radius: 28px;
  background: #000000;
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.pay-btn:active { transform: scale(0.985); }
.pay-btn:disabled { opacity: 0.3; }

.pay-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  flex: 0 0 auto;
}

.pay-balance { font-size: 14px; font-weight: 500; color: rgba(4, 36, 15, 0.72); }

.pay-dollar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: transparent;
  color: var(--green-ink);
  font-size: 24px;
  font-weight: 500;
}

.pay-clock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(4, 36, 15, 0.65);
}

.pay-clock svg { width: 21px; height: 21px; }

.pay-clock .pay-badge {
  position: absolute;
  top: -1px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------- txn detail */

.txn-screen {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: flex;
  flex-direction: column;
  background: var(--green);
  padding: 56px 18px 26px;
  overflow-y: auto;
  scrollbar-width: none;
  animation: sIn 0.34s var(--ease) both;
}

.txn-screen::-webkit-scrollbar { display: none; }

.txn-close {
  position: absolute;
  top: 78px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
}

.txn-close svg { width: 16px; height: 16px; }

.txn-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 22px 8px;
}

.txn-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}

.txn-ico svg { width: 22px; height: 22px; }
.txn-ico img { width: 100%; height: 100%; object-fit: cover; }

.txn-title { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.txn-time { margin-top: 3px; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }

.txn-big {
  margin-top: 14px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.txn-big.in { color: var(--green); }

.txn-hr { height: 1px; background: rgba(0, 0, 0, 0.08); margin: 18px -22px; }
.txn-card .kv-row { border-bottom-color: rgba(0, 0, 0, 0.08); }
.txn-card .kv-row > span:first-child { color: #8a8a8e; }

.txn-sec {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.txn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
}

.txn-item .ti-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #fff;
}

.txn-item .ti-ico svg { width: 20px; height: 20px; }

.txn-item .ti-body { flex: 1 1 auto; min-width: 0; }
.txn-item .ti-t { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.txn-item .ti-s { display: block; margin-top: 1px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }

.txn-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.txn-link .tl-chev { margin-left: auto; color: rgba(255, 255, 255, 0.35); display: flex; }
.txn-link .tl-chev svg { width: 14px; height: 14px; }

.txn-legal {
  padding: 4px 10px 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(4, 36, 15, 0.55);
  text-align: center;
}

/* ---------------------------------------------------------- success screen */

.success-screen {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--green-ink);
  padding: 24px 24px 52px;
  animation: sIn 0.42s var(--ease) both;
}

@keyframes sIn {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: none; }
}

.suc-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--green);
  animation: pop 0.46s var(--ease) both;
}

.suc-tick svg { width: 46px; height: 46px; }

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.suc-amt {
  margin-top: 26px;
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1;
}

.suc-to { margin-top: 10px; font-size: 15px; color: rgba(4, 36, 15, 0.62); }
.suc-to b { color: var(--green-ink); font-weight: 600; }
.suc-memo { margin-top: 5px; font-size: 13px; color: rgba(4, 36, 15, 0.48); }

.suc-done {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  height: 56px;
  border-radius: 28px;
  background: #000000;
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ sheets */

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.sheet-layer.is-open { pointer-events: auto; }

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.sheet-layer.is-open .scrim { opacity: 1; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 92%;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  transform: translateY(101%);
  transition: transform 0.38s var(--ease);
  overflow: hidden;
  box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.2);
}

.sheet-layer.is-open .sheet { transform: translateY(0); }

.sheet-grab {
  width: 34px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  margin: 9px auto 0;
  flex: 0 0 auto;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 6px;
  flex: 0 0 auto;
}

.sheet-title { flex: 1 1 auto; font-size: 15px; font-weight: 600; text-align: center; }

.sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--dim);
  flex: 0 0 auto;
}

.sheet-close svg { width: 16px; height: 16px; }

.sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 0 16px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }

.sheet-foot { flex: 0 0 auto; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------------------------------------- pick sheet */

.pick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px 10px;
  flex: 0 0 auto;
}

.pick-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.pick-title .amt-inline { color: rgba(0, 0, 0, 0.45); }

.pick-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--dim);
  flex: 0 0 auto;
  margin-top: 2px;
}

.pick-close svg { width: 17px; height: 17px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  margin: 0 18px 6px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--card-2);
  flex: 0 0 auto;
}

.search-box svg { width: 16px; height: 16px; color: var(--dim-2); flex: 0 0 auto; }

.search-box input { flex: 1 1 auto; font-size: 14.5px; letter-spacing: -0.01em; }
.search-box input::placeholder { color: var(--dim-2); }

.people { padding: 4px 0 10px; }

.person {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 9px 18px;
  text-align: left;
}

.person:active { background: rgba(255, 255, 255, 0.06); }

.person .avatar { width: 42px; height: 42px; font-size: 15px; }
.person .who { flex: 1 1 auto; min-width: 0; }

.person .who .n {
  display: block;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person .who .t {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-match { padding: 46px 26px; text-align: center; }
.no-match .nm-t { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.no-match .nm-s { margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--dim-2); }

/* ------------------------------------------------------------- note sheet */

.note-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: 64%;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding-bottom: 4px;
  transform: translateY(101%);
  transition: transform 0.38s var(--ease);
  box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.2);
}

.sheet-layer.is-open .note-sheet { transform: translateY(0); }

.note-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text);
  margin-left: 6px;
  margin-top: 8px;
}

.note-back svg { width: 20px; height: 20px; }

.note-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 20px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.note-line .nl-dim { color: rgba(0, 0, 0, 0.4); }
.note-person { display: inline-flex; align-items: center; gap: 8px; }
.note-person .avatar { width: 30px; height: 30px; font-size: 11px; }

.note-input {
  margin: 16px 20px 0;
  padding: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.note-input::placeholder { color: var(--dim-2); }

.note-hint { margin: 12px 20px 0; font-size: 12px; line-height: 1.5; color: var(--dim-2); }

.note-send {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  margin: 22px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 27px;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  flex: 0 0 auto;
}

.note-send:disabled { opacity: 0.35; }

/* ---------------------------------------------------------------- activity */

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 8px;
}

.page-title { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; }

.pill-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--card-2);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--dim);
}

.day-label {
  padding: 16px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.rows { padding: 0 20px; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  min-width: 0;
}

.row + .row { border-top: 0.5px solid var(--line); }
.row.tappable { cursor: pointer; }
.row.tappable:active { opacity: 0.6; }

.row-body { flex: 1 1 auto; min-width: 0; }

.row-title {
  display: block;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-amt {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: right;
  white-space: nowrap;
}

.row-amt.in { color: var(--green); }
.row-amt.out { color: var(--text); }

.empty { padding: 54px 20px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--dim-2); }

/* ------------------------------------------------------------------ avatar */

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  user-select: none;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.merchant svg { width: 54%; height: 54%; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 16px; }
.avatar.xl { width: 72px; height: 72px; font-size: 22px; }

/* ------------------------------------------------------------------ ledger */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 4px 20px 0;
}

.stat { padding: 14px; border-radius: 14px; background: var(--card); }

.stat .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.stat .v { margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

.verify-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 20px 0;
  padding: 14px 15px;
  border-radius: 14px;
  background: var(--card);
}

.verify-card .t { font-size: 13.5px; font-weight: 600; }
.verify-card .s { margin-top: 3px; font-size: 11.5px; color: var(--dim); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge.ok { background: var(--green-wash); color: var(--green); }
.badge.bad { background: var(--red-wash); color: var(--red); }

.note-text { margin: 10px 20px 0; font-size: 11.5px; line-height: 1.65; color: var(--dim-2); }

.txn { margin: 0 20px 8px; border-radius: 14px; background: var(--card); overflow: hidden; }

.txn-head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}

.txn-head .chev {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--dim-2);
  transition: transform 0.2s var(--ease);
}

.chev svg { width: 14px; height: 14px; display: block; }
.txn.is-open .txn-head .chev { transform: rotate(90deg); }

.txn-posts { display: none; padding: 0 14px 11px; }
.txn.is-open .txn-posts { display: block; }

.post {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 0.5px solid var(--line);
  font-size: 12.5px;
}

.tag-dc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}

.tag-dc.d { background: var(--red-wash); color: var(--red); }
.tag-dc.c { background: var(--green-wash); color: var(--green); }

.post .who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.post.is-sys .who { color: var(--dim); }

.txn-foot {
  padding: 2px 0 8px;
  font-size: 10.5px;
  color: var(--dim-2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* -------------------------------------------------------------- kv / detail */

.kv { margin-top: 18px; border-top: 0.5px solid var(--line); }

.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.kv-row > span:first-child { color: var(--dim); flex: 0 0 auto; }
.kv-row > span:last-child {
  font-weight: 500;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-top { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px 0 18px; }
.detail-name { font-size: 15px; font-weight: 600; text-align: center; }
.detail-amt { font-size: 33px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }

.tile-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--green);
  font-size: 22px;
  font-weight: 600;
}

.tile-badge svg { width: 26px; height: 26px; }

.req-amount { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn:active { transform: scale(0.97); }
.btn-primary { background: #000; color: #fff; }
.btn-ghost { background: var(--card-2); color: var(--text); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.35; pointer-events: none; }

/* ------------------------------------------------------------------ toast */

.toast {
  position: absolute;
  left: 50%;
  bottom: 176px;
  transform: translate(-50%, 14px);
  z-index: 60;
  max-width: 82%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.94);
  color: #fff;
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* -------------------------------------------------------------------- misc */

.setting {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  border-top: 0.5px solid var(--line);
}

.setting .s-body { flex: 1 1 auto; min-width: 0; }
.setting .s-title { display: block; font-size: 14px; font-weight: 500; }
.setting .s-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--dim); }
.setting .s-val { font-size: 13px; color: var(--dim); }

.caption { padding: 10px 20px 4px; font-size: 11.5px; line-height: 1.6; color: var(--dim-2); }

.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.fade-in { animation: fade 0.22s ease both; }

@keyframes fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================================
   v8 — 依据真实截图（dc1 / dc3 / pcmag）补充：两列网格 + 5 项底部导航
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 16px;
}

.grid-2 + .grid-2 { margin-top: 9px; }

.tile-card {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  cursor: pointer;
}

.tile-card:active { opacity: 0.82; }

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tile-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

.tile-chev { color: rgba(255, 255, 255, 0.35); font-size: 14px; }

.tile-mid {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.tile-val {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.tile-note {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

.tile-note.up { color: #30d158; }

.savings-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #04240f;
}

.savings-orb svg { width: 28px; height: 28px; }

.folder-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffd60a;
  color: #4a3b00;
}

.folder-ico svg { width: 30px; height: 30px; }

.spark-btc { width: 100%; height: 42px; color: #0a84ff; }
.spark-stk { width: 100%; height: 42px; color: #bf5af2; }

.section-cap {
  padding: 22px 20px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.more-row {
  margin: 0 16px;
  padding: 15px;
  border-radius: 18px;
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

/* ------------------------------------------------------------ 底部导航 */

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 56px;
  height: 46px;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.15s ease, transform 0.1s ease;
}

.tab-item:active { transform: scale(0.92); }
.tab-item svg { width: 25px; height: 25px; display: block; }
.tab-item .ti-dollar { font-size: 25px; font-weight: 500; line-height: 1; }

.tab-item.is-active { color: #ffffff; }
.tab-item.is-money { color: #ffffff; }
.tab-item.is-money.is-on { color: var(--green); }

.phone.on-green .tabbar {
  background: transparent;
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.phone.on-green .tab-item { color: rgba(255, 255, 255, 0.72); }
.phone.on-green .tab-item.is-active,
.phone.on-green .tab-item.is-money { color: #ffffff; }

.view { padding-bottom: 96px; }

.boost-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 18px;
  border-radius: 22px;
  background: var(--card);
}

.boost-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  flex: 0 0 auto;
}

.boost-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.boost-off { font-size: 14px; font-weight: 600; color: #ff453a; }

.btn-boost {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: #f5a623;
  color: #1a1200;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 32;
  pointer-events: none;
}

.phone.on-green .home-indicator { background: rgba(255, 255, 255, 0.9); }

/* 成功页：隐藏底部导航，避免 Done 被压住 */
.phone.success-mode .tabbar { opacity: 0; pointer-events: none; }

/* 成功页文字与付款页一致，用白色 */
.success-screen { color: #ffffff; }
.suc-amt { color: #ffffff; }
.suc-to { color: rgba(255, 255, 255, 0.75); }
.suc-to b { color: #ffffff; }
.suc-memo { color: rgba(255, 255, 255, 0.6); }
.suc-done { background: #ffffff; color: #04240f; }

/* 交易详情：白卡内部强制深色文字（批量改色时被误伤） */
.txn-card,
.txn-card .txn-title,
.txn-card .txn-sec,
.txn-card .txn-big,
.txn-card .ti-t,
.txn-card .txn-link { color: #000000; }

.txn-card .txn-big.in { color: #00b32d; }
.txn-card .txn-time,
.txn-card .ti-s { color: #8a8a8e; }
.txn-card .ti-ico { color: #000000; }
.txn-card .tl-chev,
.txn-card .card-chev { color: #c2c2c7; }
.txn-card .kv-row > span:first-child { color: #8a8a8e; }
.txn-card .kv-row > span:last-child { color: #000000; }

.txn-close { color: #8a8a8e; }

.phone.txn-mode .tabbar { opacity: 0; pointer-events: none; }

/* ============================================================================
   v10 — 动效与质感
   ========================================================================== */

/* 卡片质感：0.5px 内描边，让纯色块在纯黑背景上有边界感 */
.card,
.tile-card,
.more-row,
.stat,
.verify-card,
.boost-card {
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.07);
}

/* 页面切换：位移 + 轻微缩放，比纯淡入更像原生推入 */
.view {
  transform: translateY(14px) scale(0.994);
  transition: opacity 0.24s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.is-active { transform: none; }

/* 付款页：滑入配合淡入，避免生硬 */
.pay-screen {
  opacity: 0;
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s ease;
}

.pay-screen.is-open { opacity: 1; }

/* 键盘按键：按下缩放 + 提亮 */
.pkey { transition: background 0.1s ease, transform 0.1s ease; }
.pkey:active { transform: scale(0.9); }

/* 成功页对勾：描边逐段画出 */
.suc-tick svg path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: drawCheck 0.5s 0.28s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* tab 图标：选中时轻微上浮放大 */
.tab-item svg,
.tab-item .ti-dollar {
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-item.is-active svg,
.tab-item.is-money svg { transform: translateY(-1px) scale(1.05); }

/* sheet：带一点回弹的曲线 */
.sheet,
.note-sheet {
  transition: transform 0.48s cubic-bezier(0.22, 1.08, 0.36, 1);
}

/* 统一按压缩放 */
.more-row:active,
.btn-black:active,
.btn:active { transform: scale(0.97); }

/* 交易行按下时整行微缩 */
.row.tappable:active { transform: scale(0.992); transition: transform 0.1s ease; }

/* 字体：标题用可变字重 650，数字字距收紧 */
.page-h1 { font-weight: 650; letter-spacing: -0.036em; }
.card-balance { letter-spacing: -0.042em; }
.tile-val { letter-spacing: -0.036em; }
.card-amount { letter-spacing: -0.036em; }
.pay-amount { letter-spacing: -0.055em; }
.suc-amt { letter-spacing: -0.048em; }

/* 数字变化时的呼吸感 */
.card-balance { transition: opacity 0.18s ease; }

/* ============================================================================
   v11 — Cash Card / Boosts / Profile 三个完整页面
   ========================================================================== */

.cc-wrap { padding: 5px 16px 0; }

.cc-card {
  position: relative;
  aspect-ratio: 1.62;
  padding: 17px 18px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(150deg, #2a2a2e 0%, #1a1a1e 58%, #0e0e12 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}

.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: rgba(255,255,255,.92); }
.cc-net { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; color: rgba(255,255,255,.38); }

.cc-chip {
  width: 32px;
  height: 24px;
  margin-top: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e6d29a 0%, #b99b52 48%, #8d7336 100%);
}

.cc-num { margin-top: auto; font-size: 15px; letter-spacing: 0.1em; color: rgba(255,255,255,.88); }
.cc-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 9.5px; letter-spacing: 0.1em; color: rgba(255,255,255,.5); }

.boost-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  margin: 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.07);
  text-align: left;
}

.boost-row + .boost-row { margin-top: 8px; }
.boost-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.boost-body b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.boost-body small { font-size: 12px; color: var(--dim); }
.boost-on { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--green); }
.row-chev { color: rgba(255, 255, 255, 0.28); font-size: 17px; line-height: 1; }

.boost-hero {
  margin: 4px 16px 0;
  padding: 22px 20px;
  border-radius: 22px;
  background: linear-gradient(150deg, #ff3b1f 0%, #c41800 100%);
  color: #fff;
}

.bh-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.bh-title { margin-top: 7px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.bh-off { margin-top: 3px; font-size: 15px; font-weight: 600; opacity: 0.92; }

.prof-head { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 10px 0 18px; }
.prof-name { font-size: 22px; font-weight: 650; letter-spacing: -0.026em; }
.prof-tag { font-size: 13px; color: var(--dim); }

.invite-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 18px;
  height: 48px;
  border-radius: 24px;
  background: var(--green);
  color: #04240f;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.prof-list {
  margin: 0 16px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.prof-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
}

.prof-row + .prof-row { border-top: 0.5px solid rgba(255, 255, 255, 0.07); }
.prof-ico { display: flex; width: 24px; flex: 0 0 auto; color: rgba(255, 255, 255, 0.85); }
.prof-ico svg { width: 21px; height: 21px; }
.prof-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prof-body b { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.prof-body small { font-size: 12px; color: var(--dim); }

.prof-signout {
  display: block;
  width: calc(100% - 32px);
  margin: 18px 16px 0;
  height: 46px;
  border-radius: 23px;
  background: var(--card);
  color: #ff453a;
  font-size: 14.5px;
  font-weight: 600;
}

.btn-orange {
  display: block;
  height: 52px;
  border-radius: 26px;
  background: #f5a623;
  color: #1a1200;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Cash Card 修正 */
.cc-card { aspect-ratio: 1.75; }

.cc-chip { position: relative; overflow: hidden; }
.cc-chip::before,
.cc-chip::after { content: ""; position: absolute; background: rgba(0, 0, 0, 0.22); }
.cc-chip::before { left: 0; right: 0; top: 50%; height: 1px; }
.cc-chip::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.btn-orange {
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
}

/* 金额字重更接近官方 */
.card-balance { font-weight: 800; }
.tile-val { font-weight: 800; }

.invite-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 16px 0;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(150deg, #00d632 0%, #00b32d 100%);
  color: #04240f;
  cursor: pointer;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}

.invite-card:active { transform: scale(0.99); }

.ic-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ic-text b { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.ic-text span { font-size: 12px; opacity: 0.72; }
.ic-chev { font-size: 20px; opacity: 0.5; }

.ic-text span { color: rgba(4, 36, 15, 0.82); opacity: 1; }
.more-row { width: calc(100% - 32px); text-align: left; }

/* 付款页精修：键盘贴底、金额一体化、扫码按钮可见 */
.pay-keys {
  align-content: end;
  grid-auto-rows: 62px;
  padding: 0 30px 6px;
}

.pay-amount {
  font-size: 96px;
  padding: 30px 20px 4px;
}

.pay-amount .cur {
  font-size: 70px;
  font-weight: 500;
  margin-right: 0;
  letter-spacing: -0.04em;
}

.pay-top .round-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #04240f;
}

.pay-top .round-btn svg { width: 21px; height: 21px; }

.pay-actions { padding: 0 22px 6px; }
.pay-actions button {
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.26);
}

.pkey { font-size: 26px; font-weight: 500; }

.pay-keys { padding-bottom: 42px; }

/* ============================================================================
   卡片 3D 拖拽
   ========================================================================== */

.cc-wrap {
  perspective: 1100px;
  padding: 5px 16px 0;
  cursor: grab;
  touch-action: pan-y;
}

.cc-wrap:active { cursor: grabbing; }

.cc-inner {
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1.18, 0.36, 1);
  will-change: transform;
}

.cc-inner.is-dragging {
  transition: transform 0.06s linear;
}

.cc-card {
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 卡片厚度：绕 Y 轴转时露出的侧边 */
.cc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, #141418, #05050a);
  transform: translateZ(-9px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cc-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
  transform: translateZ(1px);
}

/* 去掉会遮住卡面内容的厚度层，改用阴影表现立体 */
.cc-card::before { display: none; }

/* 内容层级高于高光层之下、阴影之上 */
.cc-card > .cc-top,
.cc-card > .cc-chip,
.cc-card > .cc-num,
.cc-card > .cc-foot { position: relative; z-index: 1; }

.cc-card > .cc-glare { z-index: 2; }

.cc-wrap,
.cc-card {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* 高光再亮一点，3D 感更足 */
.cc-glare { mix-blend-mode: screen; }

/* ============================================================================
   付款金额逐位弹入
   ========================================================================== */

.pay-amount .val {
  display: inline-flex;
  align-items: baseline;
  will-change: transform;
}

.pay-amount .dg {
  display: inline-block;
  transform-origin: 50% 80%;
}

.pay-amount .dg-in {
  animation: digitPop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes digitPop {
  0% {
    opacity: 0;
    transform: translateY(34%) scale(0.62);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 金额整体轻轻跳一下，强化"按下有反馈" */
@keyframes amountBeat {
  0% { transform: scale(1); }
  40% { transform: scale(1.028); }
  100% { transform: scale(1); }
}

.pay-amount.beat { animation: amountBeat 0.16s ease-out; }

/* 金额下移，贴近官方比例（约屏幕上 1/4 处） */
.pay-amount { padding-top: 88px; }

/* ============================================================================
   搜索：加载转圈 + 标题金额可见性
   ========================================================================== */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 0;
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: #ffffff;
  animation: spin 0.72s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 修：Pick 标题里的金额在深色上不可见 */
.pick-title .amt-inline { color: rgba(255, 255, 255, 0.52); }

/* ============================================================================
   备注页：两行式标题 + Review 胶囊（对齐官方）
   ========================================================================== */

.note-sheet {
  height: 44%;
  min-height: 320px;
  background: #000000;
  border-radius: 22px 22px 0 0;
  padding: 6px 20px 0;
  box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.6);
}

.note-back {
  width: 34px;
  height: 34px;
  margin: 6px 0 0 -6px;
  color: #ffffff;
}

.note-title {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.2;
  color: #ffffff;
}

.note-person-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.note-person-row .avatar { width: 28px; height: 28px; }

.np-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.np-for {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.42);
}

.note-hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 16px 0 0;
}

.note-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 0;
}

.note-input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  caret-color: #0a84ff;
  border: 0;
  background: none;
  padding: 0;
}

.note-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.note-review {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.note-review:active { background: rgba(255, 255, 255, 0.24); }
.note-review:disabled { opacity: 0.38; pointer-events: none; }

/* 备注页修正：去掉压暗上方金额的阴影，高度改为内容自适应 */
.note-sheet {
  height: auto;
  min-height: 0;
  padding-bottom: 22px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
}

/* ============================================================================
   备注确认态（输入完 → Review 之后）
   ========================================================================== */

.note-sheet.final {
  height: auto;
  min-height: 66%;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.memo-big {
  margin-top: 18px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.022em;
  color: #ffffff;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.style-it {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: 16px;
  height: 36px;
  padding: 0 15px;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(#141416, #141416) padding-box,
    linear-gradient(120deg, #ff5fa2, #a855f7) border-box;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.style-it svg { width: 15px; height: 15px; color: #ff8ac4; }
.style-it:active { opacity: 0.75; }

.note-gap { flex: 1 1 auto; min-height: 44px; }

.pay-balance-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #141416;
  cursor: pointer;
}

.pay-balance-row:active { opacity: 0.8; }

.pbr-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #04240f;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}

.pbr-label { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.pbr-val { font-size: 17px; font-weight: 700; letter-spacing: -0.022em; }
.pbr-chev { margin-left: auto; display: flex; color: rgba(255, 255, 255, 0.35); }
.pbr-chev svg { width: 14px; height: 14px; transform: rotate(90deg); }

.pay-legal {
  margin: 14px 0 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.pay-confirm {
  width: 100%;
  height: 56px;
  border-radius: 28px;
  background: #ffffff;
  color: #000000;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.pay-confirm:active { opacity: 0.85; }

/* ============================================================================
   Face ID → 转圈 → 成功（黑底）
   ========================================================================== */

.pay-screen.auth-mode { background: #000000; }

.auth-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.faceid-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: #101014;
  color: #6f8cff;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.faceid-box svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 14px rgba(96, 128, 255, 0.9));
  animation: facePulse 1.15s ease-in-out infinite;
}

@keyframes facePulse {
  0%, 100% { opacity: 0.6; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.faceid-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.auth-spin {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #ff6b5a;
  border-right-color: #ff6b5a;
  animation: spin 0.85s linear infinite;
}

/* 成功页 */
.sent-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 58px 22px 26px;
  background: #000000;
}

.sent-x {
  width: 34px;
  height: 34px;
  margin-left: -4px;
  color: rgba(255, 255, 255, 0.78);
}

.sent-x svg { width: 18px; height: 18px; }

.sent-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #04240f;
  margin-top: 24px;
  animation: pop 0.45s var(--ease) both;
  flex: 0 0 auto;
}

.sent-tick svg { width: 30px; height: 30px; }

.sent-title {
  margin-top: 20px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.022em;
  color: #ff7a5c;
}

.sent-gap { flex: 1 1 auto; min-height: 30px; }

.sent-btn {
  height: 54px;
  border-radius: 27px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.sent-btn + .sent-btn { margin-top: 10px; }
.sent-btn.ghost { background: #2c2c2e; color: #ffffff; }
.sent-btn.primary { background: #ff7a5c; color: #2b0f08; }
.sent-btn:active { opacity: 0.82; }

.phone.auth-mode .tabbar { opacity: 0; pointer-events: none; }
.phone.auth-mode .home-indicator { background: rgba(255, 255, 255, 0.35); }

/* 转圈：只保留 90° 弧，接近官方 */
.auth-spin {
  border: 4.5px solid transparent;
  border-top-color: #ff6b5a;
  border-right-color: transparent;
  width: 52px;
  height: 52px;
}

/* 成功页微调 */
.sent-tick { width: 60px; height: 60px; margin-top: 26px; }
.sent-title { font-size: 26px; }

/* Face ID 真机录屏 */
.faceid-video {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  object-fit: cover;
  background: #000;
}

/* 成功页：文字改白，Done 改白按钮，Receipt 保持深灰 */
.sent-title { color: #ffffff; }
.sent-btn.primary { background: #ffffff; color: #000000; }

/* 转圈：改白色、加淡入、放慢 */
.auth-spin {
  border: 4px solid transparent;
  border-top-color: #ffffff;
  border-right-color: transparent;
  width: 52px;
  height: 52px;
  animation: spin 0.95s linear infinite;
}

.auth-fade { animation: authFade 0.32s ease both; }

@keyframes authFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 成功页淡入，避免从转圈硬切 */
.sent-screen { animation: sIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* iOS 式分段水滴转圈：12 个短水滴依次点亮 */
.spinner-ios {
  position: relative;
  width: 52px;
  height: 52px;
}

.spinner-ios i {
  position: absolute;
  left: 24.5px;
  top: 2px;
  width: 3px;
  height: 11px;
  border-radius: 1.5px;
  background: #ffffff;
  transform-origin: 50% 24px;
  animation: iosFade 0.9s linear infinite;
  will-change: opacity;
}

@keyframes iosFade {
  0% { opacity: 1; }
  100% { opacity: 0.18; }
}

/* 真圆弧版：12 段 20° 圆弧，透明度 1→0，同一瞬间只有 2-3 段可见 */
.spinner-arc { width: 58px; height: 58px; }

.spinner-arc .arc {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4.6;
  stroke-linecap: round;
  animation: iosFade 0.9s linear infinite;
  will-change: opacity;
}

@keyframes iosFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* 快速衰减：同一瞬间只有 3 段左右可见 */
@keyframes iosFade {
  0% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================================
   全屏 App 模式：真机上隐藏模拟状态栏/灵动岛/指示条（系统自带）
   ========================================================================== */

@media (pointer: coarse) {
  .statusbar,
  .dynamic-island,
  .home-indicator { display: none !important; }

  .pay-screen { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .success-screen, .sent-screen, .txn-screen { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
}

/* ============================================================================
   付款页按真机实拍修正：黑字、三按钮、旧式底栏
   ========================================================================== */

.pay-amount {
  color: #000000;
  padding-top: 118px;
  font-size: 104px;
}

.pay-amount .cur { color: #000000; }
.pay-amount.is-zero { opacity: 0.32; }

.pkey { color: #000000; }
.pkey:active { background: rgba(0, 0, 0, 0.08); }

.pay-keys { grid-auto-rows: 66px; }

.pay-actions button {
  background: rgba(255, 255, 255, 0.22);
  color: #062f13;
  font-weight: 600;
}

.pay-btn {
  height: 58px;
  border-radius: 29px;
  font-size: 17px;
  font-weight: 600;
  margin: 12px 20px 0;
}

.pay-foot { padding: 10px 24px calc(14px + env(safe-area-inset-bottom, 0px)); }
.pay-balance { font-size: 15px; font-weight: 600; color: #062f13; }

.pay-dollar {
  background: none;
  color: #ffffff;
  font-size: 30px;
  font-weight: 500;
  width: auto;
  height: auto;
}

.pay-clock { color: #062f13; }
.pay-clock svg { width: 23px; height: 23px; }

.pay-top .round-btn {
  background: rgba(0, 0, 0, 0.14);
  color: #062f13;
}

.pay-top .round-btn.avatar-btn { background: none; }

/* 付款页：隐藏五项导航，只显示 pay-foot 旧式底栏 */
.phone.on-green .tabbar { opacity: 0; pointer-events: none; }

.pay-foot button { cursor: pointer; }
.pay-foot button:active { opacity: 0.7; }

/* ============================================================================
   Review → 确认页过渡：新元素错峰滑入
   ========================================================================== */

.note-sheet.final .memo-big,
.note-sheet.final .style-it,
.note-sheet.final .pay-balance-row,
.note-sheet.final .pay-legal,
.note-sheet.final .pay-confirm {
  animation: finalIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.note-sheet.final .memo-big { animation-delay: 0.05s; }
.note-sheet.final .style-it { animation-delay: 0.1s; }
.note-sheet.final .pay-balance-row { animation-delay: 0.15s; }
.note-sheet.final .pay-legal { animation-delay: 0.18s; }
.note-sheet.final .pay-confirm { animation-delay: 0.22s; }

@keyframes finalIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* 返回输入态时，输入行也滑入 */
.note-sheet .note-field { animation: finalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Review 按下反馈 */
.note-review:active { transform: scale(0.93); }
.note-review { transition: transform 0.12s ease, background 0.15s ease; }

/* 付款页顶部裸图标（官方无圆形底） */
.pay-top { gap: 6px; }

.pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #062f13;
}

.pay-icon svg { width: 27px; height: 27px; }
.pay-icon:active { opacity: 0.55; }

.pay-top-right { display: flex; align-items: center; gap: 3px; }

.pay-top .round-btn.avatar-btn { width: 40px; height: 40px; }

/* 转圈加粗、衰减放缓：同一瞬间 3-4 段渐变可见，不再孤零零 */
.spinner-arc .arc { stroke-width: 5; }

@keyframes iosFade {
  0% { opacity: 1; }
  45% { opacity: 0; }
  100% { opacity: 0; }
}

/* 底栏 $：官方是浅色胶囊包着，不是裸字 */
.pay-dollar {
  width: 56px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  color: #062f13;
  font-size: 22px;
  font-weight: 700;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.4);
}

.pay-balance { font-size: 15px; }

/* 底栏修正：胶囊是深色半透明、$ 浅色；三项居中收紧 */
.pay-dollar {
  background: rgba(0, 0, 0, 0.17);
  color: #eafff2;
  box-shadow: none;
}

.pay-foot {
  justify-content: center;
  gap: 26px;
  padding-left: 20px;
  padding-right: 20px;
}

.pay-foot .pay-balance,
.pay-foot .pay-clock { flex: 0 0 auto; }

/* ============================================================================
   余额详情页（点付款页底栏金额进入）
   ========================================================================== */

.balance-card { margin: 4px 16px 0; }

.bal-acct { display: flex; align-items: center; gap: 8px; }
.ba-label { font-size: 14px; font-weight: 500; color: var(--dim); }
.ba-acct { font-size: 12px; color: var(--dim); }
.ba-eye {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
}
.ba-eye svg { width: 19px; height: 19px; }

.bal-amount {
  margin: 4px 0 14px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
}

.green-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.07);
  text-align: left;
}

.gr-dot { width: 11px; height: 11px; border-radius: 3.5px; background: var(--green); flex: 0 0 auto; }
.gr-name { font-size: 14.5px; font-weight: 500; color: #fff; }
.gr-renew { margin-left: auto; font-size: 13px; color: var(--dim); }

.big-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.07);
  text-align: left;
}

.big-card:active { opacity: 0.85; }

.bc-info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-name { font-size: 14.5px; font-weight: 500; color: #fff; }
.bc-val { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.bc-note { font-size: 12.5px; color: var(--dim); }
.bc-note.down { color: #ff453a; }
.bc-note.up { color: #30d158; }

.bc-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #04240f;
  font-size: 20px;
  font-weight: 700;
  flex: 0 0 auto;
}

.view[data-view="balance"] { display: flex; flex-direction: column; }

.pools-green {
  margin: 18px 0 0;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--green);
  margin-top: auto;
}

.pg-head { font-size: 14px; font-weight: 600; color: #062f13; }
.pg-empty {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #04240f;
}

.bf-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 16px;
}

.bf-pill {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.17);
  color: #eafff2;
  font-size: 15px;
  font-weight: 600;
}

.bf-dollar { font-size: 26px; font-weight: 700; color: #04240f; }

.bf-clock {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #062f13;
}

.bf-clock svg { width: 25px; height: 25px; }

/* Bitcoin 走势以最新实拍为准：绿色 */
.spark-grn { width: 100%; height: 42px; color: var(--green); }

.bc-note { white-space: nowrap; }

.phone.hide-tabbar .tabbar { opacity: 0; pointer-events: none; }

/* ============================================================================
   付款页整体比例修正（对照真机实拍）
   ========================================================================== */

.pay-screen { padding-top: max(14px, env(safe-area-inset-top, 0px)); }

/* 金额区：占据弹性空间并垂直居中，视觉重心上移 */
.pay-amount {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 110px;
  font-size: 110px;
  color: #000000;
}

.pay-amount .cur { color: #000000; }

/* 官方实拍里 $0 是实心黑，不是半透明 */
.pay-amount.is-zero { opacity: 1; }

.pay-keys { grid-auto-rows: 74px; padding: 0 34px 10px; }
.pkey { font-size: 27px; }

.pay-actions { padding: 0 20px 4px; }
.pay-actions button {
  height: 56px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
}

.pay-btn {
  height: 66px;
  border-radius: 33px;
  font-size: 17.5px;
  margin: 12px 20px 0;
}

.pay-foot { padding: 10px 24px calc(14px + env(safe-area-inset-bottom, 0px)); }

/* ============================================================================
   余额页改为覆盖层：黑色 sheet 从底部滑上，盖在绿色付款页上，内容渐入
   ========================================================================== */

.balance-layer {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: #000000;
  border-radius: 22px 22px 0 0;
  transform: translateY(100%);
  transition: transform 0.52s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.balance-layer::-webkit-scrollbar { display: none; }

.balance-layer.is-open { transform: none; }

.phone.balance-mode .tabbar { opacity: 0; pointer-events: none; }

/* 内容渐入（sheet 滑到位后依次浮现） */
.balance-layer .balance-card,
.balance-layer .green-row,
.balance-layer .big-card {
  animation: finalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.balance-layer .balance-card { animation-delay: 0.28s; }
.balance-layer .green-row { animation-delay: 0.34s; }
.balance-layer .big-card:nth-of-type(1) { animation-delay: 0.4s; }
.balance-layer .big-card:nth-of-type(2) { animation-delay: 0.46s; }

.balance-layer .pools-green { animation: poolsUp 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }

@keyframes poolsUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* 覆盖层内容通用 padding */
.balance-layer .page-top { padding-top: max(10px, env(safe-area-inset-top, 0px)); }

/* Pools 区块统一黑色（照片色偏导致之前误判为绿色） */
.pools-green { background: #000000; }
.pg-head { color: var(--dim); }
.pg-empty { color: #ffffff; }

.bf-pill { background: var(--card-2); color: #ffffff; box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.08); }
.bf-dollar { color: #ffffff; }
.bf-clock { color: #ffffff; }

/* Savings 圆章：官方是描边圆圈（绿边 + 绿 $），非实心 */
.bc-orb {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 22px;
}

/* 展开完成后圆角归零，避免全屏时两上角露出下层绿色 */
.balance-layer {
  transition: transform 0.52s cubic-bezier(0.32, 0.72, 0, 1), border-radius 0.52s cubic-bezier(0.32, 0.72, 0, 1);
}

.balance-layer.is-open { border-radius: 0; }

/* 余额页黑底上图标用浅色（原深绿是付款页绿底专用） */
.balance-layer .pay-icon { color: rgba(255, 255, 255, 0.85); }
.balance-layer .pay-icon:active { opacity: 0.55; }

/* Cash Card：黑卡质感（金色细节 + 金属渐变） */
.cc-card {
  background: linear-gradient(150deg, #232327 0%, #0c0c0e 52%, #000000 100%);
  box-shadow:
    inset 0 0 0 0.5px rgba(212, 175, 55, 0.28),
    0 18px 44px -18px rgba(0, 0, 0, 0.95);
}

.cc-brand { color: #d4af37; }
.cc-net { color: rgba(212, 175, 55, 0.85); letter-spacing: 0.2em; }
.cc-chip { background: linear-gradient(135deg, #e8d49c 0%, #b99b52 45%, #8a6f2e 100%); box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cc-num { color: rgba(255, 255, 255, 0.94); }

/* ============================================================================
   黑卡真实化：拉丝金属、凸印卡号、NFC、刻印小字、卡组织标志
   ========================================================================== */

.cc-card {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.06) 100%),
    repeating-linear-gradient(97deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 3px),
    linear-gradient(150deg, #26262a 0%, #0e0e10 52%, #000000 100%);
}

.cc-num {
  font-family: 'Courier New', 'Satoshi', monospace;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-shadow: 0 1.5px 1px rgba(0, 0, 0, 0.95), 0 -0.5px 0.5px rgba(255, 255, 255, 0.18);
}

.cc-chiprow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.cc-nfc { width: 24px; height: 24px; color: rgba(255, 255, 255, 0.55); }

.cc-foot {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 8px;
}

.cc-col { display: flex; flex-direction: column; gap: 2px; }
.cc-col small {
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
}
.cc-col b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Courier New', monospace;
}

.cc-holder {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
}

.cc-network {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.cc-dots {
  font-size: 13px;
  letter-spacing: 0.1em;
  vertical-align: 1.5px;
  color: rgba(255, 255, 255, 0.8);
}


/* ============================================================================
   认证 gate（登录界面 / 被踢提示）
   ========================================================================== */

#authGate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#authGate .ag-back {
  position: absolute;
  inset: 0;
  background: #000;
}

#authGate .ag-card {
  position: relative;
  width: min(340px, 88vw);
  padding: 34px 28px 26px;
  border-radius: 22px;
  background: #141416;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#authGate .ag-logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #d4af37;
  text-align: center;
}

#authGate .ag-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: -3px 0 12px;
}

#authGate input {
  height: 46px;
  border-radius: 12px;
  background: #0a0a0c;
  color: #fff;
  padding: 0 14px;
  font-size: 14.5px;
  border: 0;
  outline: none;
  font-family: inherit;
}

#authGate input:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

#authGate .ag-btn {
  height: 48px;
  border-radius: 24px;
  background: var(--green);
  color: #04240f;
  font-size: 15px;
  font-weight: 650;
}

#authGate .ag-btn:active { opacity: 0.85; }

#authGate .ag-msg {
  min-height: 16px;
  font-size: 12.5px;
  color: #ff6b5a;
  text-align: center;
}

/* 锁定画面：锁图标 + 提示（token 无效时，不出登录框） */
#authGate .ag-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto -4px;
  border-radius: 50%;
  background: rgba(255, 69, 58, 0.12);
  color: #ff6b5a;
}

#authGate .ag-lock svg { width: 28px; height: 28px; }

/* 强制登录确认区 */
#authGate .ag-q {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 4px 0 2px;
}

#authGate .ag-force {
  height: 46px;
  border-radius: 23px;
  background: #ff6b5a;
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

#authGate .ag-cancel {
  height: 42px;
  border-radius: 21px;
  background: #2c2c2e;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* 强制登录确认区 v2：上下排列、全宽 */
#authGate #agConfirm {
  display: none;
  flex-direction: column;
  gap: 9px;
  padding-top: 4px;
}

#authGate #agConfirm .ag-q {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 10px 6px;
  background: rgba(255, 107, 90, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 107, 90, 0.25);
}

#authGate .ag-force,
#authGate .ag-cancel { width: 100%; }

#authGate .ag-force {
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ff7a6b, #ff5a48);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 6px 16px -6px rgba(255, 90, 72, 0.5);
}

#authGate .ag-cancel {
  height: 44px;
  border-radius: 22px;
  background: #232326;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
}
