.points-app {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}

.points-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.back-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #FFF1D0;
  text-decoration: none;
  background: rgba(8, 33, 21, .48);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .1s ease, background .2s ease;
}

.back-btn:active { transform: scale(.94); background: rgba(8, 33, 21, .7); }
.back-btn .mp-icon { width: 21px; height: 21px; }

.top-title {
  font-size: 17px;
  font-weight: 900;
  color: #FFF7E6;
  letter-spacing: .02em;
}

.top-chip {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #FFDFA0;
  background: rgba(8, 33, 21, .42);
  border: 1px solid rgba(255, 201, 60, .24);
}

.balance-hero {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  padding: 17px 17px 15px;
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(120% 130% at 88% -10%, rgba(255, 138, 61, .35), transparent 56%),
    linear-gradient(180deg, #FFFDF5, #FFEFCF);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 14px 30px rgba(4, 24, 14, .3), inset 0 -3px 0 rgba(201, 132, 44, .12);
  overflow: hidden;
}

.balance-hero::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -36px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 18px solid rgba(255, 176, 61, .13);
}

.hero-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #8B5B24;
  letter-spacing: .02em;
}

.hero-label .mp-icon { width: 16px; height: 16px; color: #D47A18; }

.hero-value {
  position: relative;
  z-index: 1;
  margin: 5px 0 2px;
  font-size: clamp(38px, 12vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #3A220B;
  font-variant-numeric: tabular-nums;
}

.hero-purpose {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #7C3A05;
  background: rgba(255, 186, 76, .3);
  border: 1px solid rgba(190, 106, 18, .14);
}

.hero-purpose .mp-icon { width: 13px; height: 13px; }

.wallet-line {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 15px;
  color: rgba(255, 246, 226, .9);
  background: rgba(8, 33, 21, .46);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.wallet-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 237, 196, .9);
}

.wallet-label .mp-icon { width: 15px; height: 15px; color: #FFC85E; }
.wallet-line b { margin-left: auto; font-size: 18px; font-weight: 900; color: #FFE09A; font-variant-numeric: tabular-nums; }

.history-card {
  position: relative;
  z-index: 2;
  padding: 13px 13px 8px;
  border-radius: 19px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 251, 240, .98), rgba(251, 240, 218, .98));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 10px 24px rgba(4, 24, 14, .24);
}

.history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 2px 8px;
  border-bottom: 1px solid rgba(130, 92, 45, .12);
}

.history-head h2 { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.history-head span { font-size: 9px; color: #957B5B; }

.history-list { max-height: 38vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.history-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(130, 92, 45, .1);
}

.history-row:last-child { border-bottom: 0; }

.history-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #8B4A0B;
  background: linear-gradient(180deg, #FFEBC1, #FFD27E);
  border: 1px solid rgba(255, 255, 255, .65);
}

.history-icon .mp-icon { width: 17px; height: 17px; }

.history-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.history-copy b { font-size: 12.5px; font-weight: 800; color: #3D2A16; }
.history-copy small { font-size: 9.5px; color: #957B5B; }
.history-amount { margin-left: auto; font-size: 15px; font-weight: 900; color: #C05A12; font-variant-numeric: tabular-nums; }

.history-empty {
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #957B5B;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

.history-empty .mp-icon { width: 26px; height: 26px; color: #C7A46A; }

.footnote {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 9.5px;
  color: rgba(255, 241, 212, .5);
  line-height: 1.5;
}

@media (max-width: 340px) {
  .points-app { padding-left: 12px; padding-right: 12px; gap: 9px; }
  .top-title { font-size: 15.5px; }
  .top-chip { display: none; }
  .balance-hero { padding: 14px 14px 13px; }
  .hero-value { font-size: 38px; }
}

/* 可转送余额与转送记录 */
.transfer-line {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px 9px 13px;
  border-radius: 15px;
  color: rgba(255, 246, 226, .9);
  background: rgba(8, 33, 21, .46);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.transfer-line .wallet-label { flex: 0 0 auto; }
.transfer-line > b {
  margin-left: auto;
  font-size: 18px;
  font-weight: 900;
  color: #FFE09A;
  font-variant-numeric: tabular-nums;
}

.transfer-btn {
  flex: 0 0 auto;
  min-height: 32px;
  margin-left: 3px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #4A2105;
  font-size: 10.5px;
  font-weight: 900;
  background: linear-gradient(180deg, #FFDE8A, #F3B13E);
  border: 1px solid rgba(255, 244, 198, .8);
  box-shadow: 0 2px 0 rgba(160, 80, 8, .35);
}

.transfer-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(160, 80, 8, .35); }
.transfer-btn .mp-icon { width: 13px; height: 13px; color: #5A2904; }

.my-id {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 11px;
  color: rgba(255, 244, 218, .55);
  font-size: 9.5px;
  background: rgba(8, 33, 21, .3);
  border: 1px solid rgba(255, 255, 255, .09);
}

.my-id b {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 224, 154, .9);
  font-size: 9px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.my-id button {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 7px;
  color: #FFE09A;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 201, 60, .12);
  border: 1px solid rgba(255, 201, 60, .24);
}

.my-id button:active { background: rgba(255, 201, 60, .22); }

.transfer-history .history-list { max-height: 30vh; }
.history-amount.out { color: #C05A12; }
.history-amount.in { color: #2E8A53; }

.transfer-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
  background: rgba(4, 18, 11, .66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: pointsMaskIn .2s ease both;
}

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

.transfer-sheet {
  width: 100%;
  max-width: 500px;
  padding: 11px 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
  border-radius: 24px 24px 19px 19px;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFDF6, #FFF1D6);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .32);
  animation: pointsSheetUp .28s cubic-bezier(.18, .86, .34, 1) both;
}

@keyframes pointsSheetUp { from { transform: translateY(24px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }

.transfer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.transfer-head h2 { margin: 0; font-size: 19px; font-weight: 900; }

.transfer-balance { margin: 7px 0 12px; font-size: 11px; color: #8B7357; }
.transfer-balance b { margin-left: 4px; font-size: 17px; color: #C05A12; font-variant-numeric: tabular-nums; }

.field { display: block; margin-bottom: 10px; }
.field > span { display: block; margin: 0 2px 5px; font-size: 10.5px; font-weight: 800; color: #70563A; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 13px;
  color: #3A2510;
  font-size: 15px;
  background: #FFFDF6;
  border: 1px solid rgba(133, 94, 45, .22);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus { border-color: rgba(235, 133, 43, .8); box-shadow: 0 0 0 3px rgba(255, 138, 61, .12); }
.field input::placeholder { color: #B9A58B; font-size: 12px; }

.transfer-error {
  margin: 1px 2px 9px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #B43C15;
  font-size: 10.5px;
  line-height: 1.45;
  background: #FFE2D6;
  border: 1px solid rgba(196, 78, 37, .18);
}

.transfer-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  border-radius: 15px;
  color: #431F04;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #FFC062, #FF8A3D);
  border: 1px solid rgba(255, 240, 195, .8);
  box-shadow: 0 5px 0 #B94B0D, 0 10px 20px rgba(0, 0, 0, .2);
}

.transfer-submit:active { transform: translateY(3px); box-shadow: 0 2px 0 #B94B0D, 0 5px 12px rgba(0, 0, 0, .2); }
.transfer-submit:disabled { opacity: .6; }

@media (max-width: 340px) {
  .transfer-line > b { font-size: 16px; }
  .my-id { font-size: 9px; }
}

.points-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  z-index: 90;
  max-width: 82vw;
  padding: 9px 16px;
  border-radius: 999px;
  color: #FFF7E2;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  background: rgba(10, 33, 21, .96);
  border: 1px solid rgba(255, 228, 160, .26);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.points-toast.show { opacity: 1; transform: translate(-50%, 0); }
