/* Applied only while a personal-center child panel is open. */
.app-header.is-subpage {
  position: relative;
  gap: 10px;
}
.app-header.is-subpage .app-brand {
  min-height: 44px;
  gap: 0;
}
.app-header.is-subpage .ant-ai-mark {
  display: none;
}
.app-header.is-subpage #viewTitle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 128px);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header.is-subpage .my-header-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 11px;
  margin-left: -10px;
  color: #243e69;
}
.app-header.is-subpage .my-header-back svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.9;
}
.app-header.is-subpage .my-header-back:active {
  background: #f0f4fc;
}
.activity-app.is-subpage .activity-main {
  padding-top: 18px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.activity-app.is-subpage .mobile-nav {
  display: none;
}
.activity-app.is-subpage .my-page [data-my-panel]:not([data-my-panel='overview']) {
  min-width: 0;
}

/* Redeemed order cards: membership at redemption, cashback, and reference details. */
.my-page .my-redemption-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2eafa;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px #23447303;
}
.my-page .my-redemption-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-bottom: 12px;
}
.my-page .my-redemption-top img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.my-page .my-redemption-top .level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  color: #50658a;
  font-weight: 600;
}
.my-page .my-redemption-top .level span,
.my-page .my-redemption-top > strong {
  font-size: 15px;
  color: #50658a;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.my-page .my-redemption-rate {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid #e4ecfb;
  border-radius: 8px;
  background: #f7faff;
  color: #7189b2;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
.my-page .my-redemption-rate b,
.my-page .my-redemption-rate strong {
  font-size: 13px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  color: #6183c0;
}
.my-page .my-redemption-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 12px 14px;
  border: 1px solid #e5edff;
  border-radius: 12px;
  background: linear-gradient(110deg, #f7faff, #edf3ff);
}
.my-page .my-redemption-amount > span {
  font-size: 13px;
  font-weight: 500;
  color: #7187ab;
}
.my-page .my-redemption-amount > strong {
  font-family: 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.4px;
  color: #315fc4;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}
.my-page .my-redemption-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
}
.my-page .my-redemption-details > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  line-height: 1.8;
  min-width: 0;
}
.my-page .my-redemption-details dt {
  flex-shrink: 0;
  color: #97a6be;
}
.my-page .my-redemption-details dd {
  min-width: 0;
  text-align: right;
  color: #7d93b6;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.my-page .my-redemption-details dd code {
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.2px;
}
.my-page .my-records-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 23px 2px 12px;
}
.my-page .my-records-heading h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #344f78;
}
.my-page .my-records-heading > span {
  font-size: 11px;
  color: #9baac3;
}
.my-page .my-records-description {
  margin: 0 2px 17px;
  font-size: 12px;
  line-height: 1.9;
  color: #91a1bd;
}

/* Wallet tabs and balance summary. */
.my-page .my-wallet-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e6edf9;
  border-radius: 13px;
  background: #ecf1fb;
  margin-bottom: 15px;
}
.my-page .my-wallet-tabs button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border-radius: 9px;
  padding: 8px 3px;
  font-size: 13px;
  line-height: 1.5;
  color: #8a9cba;
  white-space: nowrap;
}
.my-page .my-wallet-tabs button.active {
  background: #fff;
  color: #416bce;
  font-weight: 600;
  box-shadow: 0 2px 8px #284d8c0a;
}
.my-page .my-wallet-summary {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dce6fa;
  border-radius: 18px;
  background: linear-gradient(120deg, #f5f8ff, #edf3ff 63%, #e8efff);
  padding: 23px 21px 19px;
}
.my-page .my-wallet-balance > span {
  display: block;
  font-size: 13px;
  color: #8197be;
  line-height: 1.7;
}
.my-page .my-wallet-balance > strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 5px;
  min-width: 0;
  line-height: 1.35;
  color: #365fa8;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
}
.my-page .my-wallet-balance small {
  flex-shrink: 0;
  font-size: 21px;
  font-weight: 400;
}
.my-page .my-wallet-balance b {
  min-width: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.my-page .my-wallet-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #dbe5f6;
}
.my-page .my-wallet-totals > div {
  min-width: 0;
}
.my-page .my-wallet-totals > div + div {
  padding-left: 17px;
  border-left: 1px solid #dce6f6;
}
.my-page .my-wallet-totals dt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a5c2;
  line-height: 1.7;
}
.my-page .my-wallet-totals dt i {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
}
.my-page .my-credit-dot {
  background: #7eb49a;
}
.my-page .my-debit-dot {
  background: #87a2d8;
}
.my-page .my-wallet-totals dd {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.my-page .my-wallet-totals .credit {
  color: #438d70;
}
.my-page .my-wallet-totals .debit {
  color: #6889c4;
}

/* Ledger rows are populated from actual recorded wallet changes. */
.my-page .my-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.my-page .my-ledger-card {
  min-width: 0;
  border: 1px solid #e3eafa;
  border-radius: 14px;
  background: #fff;
  padding: 17px 18px;
}
.my-page .my-ledger-card > heading,
.my-page .my-ledger-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 14px;
  min-width: 0;
}
.my-page .my-ledger-title {
  min-width: 0;
  flex: 1;
  display: block;
  color: #3f587f;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.my-page .my-ledger-card .amount {
  flex-shrink: 0;
  max-width: 100%;
  font-family: 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.25px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.my-page .my-ledger-card .amount.credit {
  color: #348b68;
}
.my-page .my-ledger-card .amount.debit {
  color: #5a7fc4;
}
.my-page .my-ledger-card .amount.debit.orange {
  color: #c49360;
}
.my-page .my-ledger-card > p.time {
  font-size: 11px;
  color: #a0aec5;
  line-height: 1.8;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.my-page .my-ledger-card > dl {
  padding-top: 11px;
  margin-top: 12px;
  border-top: 1px solid #eef2fa;
}
.my-page .my-ledger-card > dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 11px;
  line-height: 1.8;
  min-width: 0;
}
.my-page .my-ledger-card > dl dt {
  color: #a0aec5;
  flex-shrink: 0;
}
.my-page .my-ledger-card > dl dd {
  min-width: 0;
  color: #8b9fc0;
  text-align: right;
  overflow-wrap: anywhere;
  font-family: 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
}
.my-page .my-ledger-sample {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #f0f4fb;
  color: #91a1bb;
  font-size: 10px;
  font-weight: 400;
  vertical-align: middle;
}
.my-page .my-recharge-card > dl > div + div {
  margin-top: 7px;
}
.my-page .my-ledger-empty {
  padding: 34px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #e3eafa;
  border-radius: 16px;
}
.my-page .my-ledger-empty strong {
  display: block;
  font-size: 15px;
  color: #8298b9;
  font-weight: 500;
}
.my-page .my-ledger-empty p {
  margin-top: 7px;
  font-size: 12px;
  color: #a0aec5;
  line-height: 1.8;
}
@media (max-width: 360px) {
  .app-header.is-subpage #viewTitle {
    font-size: 17px;
    max-width: calc(100% - 120px);
  }
  .my-page .my-redemption-card {
    padding: 16px;
  }
  .my-page .my-redemption-top {
    gap: 6px;
  }
  .my-page .my-redemption-top .level {
    gap: 6px;
    font-size: 14px;
  }
  .my-page .my-redemption-top .level span,
  .my-page .my-redemption-top > strong {
    font-size: 14px;
  }
  .my-page .my-redemption-rate {
    font-size: 11px;
    padding: 4px 7px;
  }
  .my-page .my-redemption-rate b,
  .my-page .my-redemption-rate strong {
    font-size: 12px;
  }
  .my-page .my-redemption-amount {
    padding: 11px 12px;
    gap: 6px 10px;
  }
  .my-page .my-redemption-amount > strong {
    font-size: 26px;
  }
  .my-page .my-redemption-details > div {
    font-size: 11px;
    gap: 10px;
  }
  .my-page .my-redemption-details dd code {
    font-size: 11px;
  }
  .my-page .my-wallet-tabs button {
    font-size: 12px;
  }
  .my-page .my-wallet-summary {
    padding: 20px 18px 18px;
  }
  .my-page .my-wallet-balance b {
    font-size: 36px;
  }
  .my-page .my-wallet-totals {
    gap: 8px;
  }
  .my-page .my-wallet-totals > div + div {
    padding-left: 13px;
  }
  .my-page .my-wallet-totals dd {
    font-size: 15px;
  }
  .my-page .my-ledger-card {
    padding: 16px;
  }
  .my-page .my-ledger-title {
    font-size: 14px;
  }
  .my-page .my-ledger-card .amount {
    font-size: 18px;
  }
  .my-page .my-ledger-card > dl > div {
    font-size: 10px;
    gap: 10px;
  }
}

/* The child-page title is presented once in its navigation bar. */
.app-header.is-subpage .app-brand {
  pointer-events: none;
}
.app-header.is-subpage .more-button {
  margin-left: auto;
}
.activity-app.is-subpage .my-page-heading {
  padding: 0 1px 18px;
}
.activity-app.is-subpage .my-page-heading h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.activity-app.is-subpage .my-page-heading p {
  margin: 0;
}
.my-page .my-wallet-entry {
  margin-top: 12px;
}
