/* Member surfaces share one spacing system without changing storefront templates. */
.mc-template-preview { padding: 20px; }
.mps-preview .mc-template-preview .mc-identity h1 { color: #fff; font-size: 23px; }
.mps-preview .mc-template-preview .mc-identity .mc-greeting { color: #d5e6ff; }
.mc-account[data-mc-metrics="false"] .mc-metrics,
.mc-account[data-mc-recent-orders="false"] [data-mc-region="orders"],
.mc-account[data-mc-favorites="false"] [data-mc-region="favorites"] { display: none; }
.mc-account[data-mc-recent-orders="false"][data-mc-favorites="false"] .mc-home-main { display: none; }
.mc-account[data-mc-recent-orders="false"][data-mc-favorites="false"] .mc-home-grid { grid-template-columns: minmax(0, 1fr); }
.mc-account[data-mc-recent-orders="false"][data-mc-favorites="false"] .mc-home-side { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); }
.mc-account,
.mc-portal {
  --mc-blue: #2468da;
  --mc-text: #25334a;
  --mc-muted: #748094;
  --mc-line: #e8edf4;
  --mc-page: #f5f7fb;
  --mc-width: 1280px;
  color: var(--mc-text);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
}
body #accountView.mc-account {
  width: min(calc(100% - 40px), var(--store-body-width, 1280px));
  max-width: 1280px;
  margin: 20px auto 48px;
  padding: 0;
}
.mc-account *,
.mc-portal * {
  box-sizing: border-box;
  letter-spacing: 0;
}
.mc-account h1,
.mc-account h2,
.mc-account h3,
.mc-identity h1 {
  margin: 0;
  color: inherit;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.mc-account h2 {
  font-size: 20px;
}
.mc-account h3 {
  font-size: 15px;
}
.mc-account svg,
.mc-identity svg,
.mc-nav svg,
.mc-portal-header svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 1.8;
}
.mc-account button,
.mc-account input,
.mc-account select {
  font: inherit;
}
.mc-account :is(a, button),
.mc-nav a,
.mc-settings-nav a {
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.mc-account :is(a, button, input, select):focus-visible,
.mc-portal :is(a, button):focus-visible {
  outline: 3px solid #90baff;
  outline-offset: 3px;
}
.mc-account button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.mc-account .account-heading {
  align-items: center;
  margin: 0 0 12px;
  min-height: 30px;
}
.mc-account .account-heading h1,
.mc-account .account-heading p {
  display: none;
}
.mc-account .back-link {
  margin: 0;
  font-size: 13px;
  color: var(--mc-muted);
}
.mc-account #memberLogout {
  min-height: 32px;
  padding: 0 12px;
  border-color: var(--mc-line);
  font-size: 13px;
  border-radius: 6px;
}
.mc-account #memberDashboard {
  display: block;
}
.mc-account #memberPageDecoration:empty {
  display: none;
}
.mc-account .member-panel {
  border: 0;
  border-radius: 0;
  margin: 20px 0 0;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 12px #233b5710;
  min-width: 0;
}
.mc-account .member-panel.mc-overview {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.mc-identity,
.mc-account .member-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 164px;
  padding: 30px 34px;
  background: var(--mc-blue, #2468da);
  border: 1px solid #357ce7;
  border-radius: 8px 8px 0 0;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff30;
  overflow: hidden;
}
.mc-person {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1;
}
.mc-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 4px solid #ffffff35;
  border-radius: 50%;
  color: #2769cc;
  background: #eef5ff;
  background-clip: padding-box;
}
.mc-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.mc-avatar svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.6;
}
.mc-person > div {
  min-width: 0;
}
.mc-identity .mc-greeting {
  color: #d5e6ff;
  font-size: 12px;
  margin: 0 0 3px;
}
.mc-identity h1 {
  color: #fff;
  font-size: 23px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.mc-person-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.mc-person-meta > span {
  color: #fff;
  font-size: 12px;
}
.mc-person-meta button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: #d5e6ff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}
.mc-person-meta button svg {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}
.mc-identity .mc-person-meta button,
.mc-identity .mc-person-meta button span {
  color: #e1edff;
  font-family: inherit;
  font-size: 12px;
}
.mc-account .mc-avatar svg {
  color: #2468da;
}
.mc-level-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
}
.mc-level-slot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}
.mc-level-slot span {
  color: #d5e6ff;
}
.mc-wallet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 51%;
  margin: 0;
}
.mc-wallet a {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid #ffffff30;
  text-decoration: none;
  color: #fff;
}
.mc-wallet a:first-child {
  border-left: 0;
}
.mc-wallet span {
  display: block;
  font-size: 13px;
  color: #d5e6ff;
  margin-bottom: 5px;
}
.mc-wallet strong {
  display: block;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.mc-nav {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  min-height: 62px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--mc-line, #e8edf4);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: #586579;
  box-shadow: 0 3px 10px #233b5708;
}
.mc-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 6px;
  min-height: 46px;
  white-space: nowrap;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
}
.mc-nav a[aria-current="page"] {
  background: #edf4ff;
  color: #2468da;
}
.mc-nav a:hover {
  color: #2468da;
  background: #f3f7fe;
  text-decoration: none;
}
.mc-nav a.mc-recharge {
  color: #2468da;
}
.mc-nav svg {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.mc-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 15px;
  gap: 16px;
}
.mc-overview-heading p {
  margin: 4px 0 0;
  color: var(--mc-muted);
  font-size: 13px;
}
.mc-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mc-blue);
  font-size: 13px;
}
.mc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.mc-stat {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  color: #af572c;
  background: #fff1e9;
  border: 1px solid #f8e0d1;
  border-radius: 8px;
  box-shadow: 0 4px 12px #d7986320;
}
.mc-stat.green {
  color: #248467;
  background: #eaf7f1;
  border-color: #d7eee1;
  box-shadow: 0 4px 12px #62b59715;
}
.mc-stat.muted {
  color: #62738c;
  background: #eef2f8;
  border-color: #e0e7f0;
  box-shadow: 0 4px 12px #61728910;
}
.mc-stat.violet {
  color: #7563ad;
  background: #f2eefa;
  border-color: #e7dff4;
  box-shadow: 0 4px 12px #a387c717;
}
.mc-stat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 550;
  font-size: 14px;
}
.mc-stat-label svg {
  width: 28px;
  height: 28px;
  padding: 4px;
  flex-basis: 28px;
  border-radius: 6px;
  background: #ffffff80;
}
.mc-stat > strong {
  margin-top: 10px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.mc-stat-more {
  position: absolute;
  bottom: 23px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.mc-stat:hover {
  box-shadow: 0 8px 20px #324c7820;
  border-color: currentColor;
}
.mc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid var(--mc-line);
}
.mc-metrics a {
  text-align: center;
  border-right: 1px solid var(--mc-line);
  color: var(--mc-text);
  padding: 0 12px;
  min-width: 0;
}
.mc-metrics a:last-child {
  border: 0;
}
.mc-metrics strong {
  display: block;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.mc-metrics span {
  color: var(--mc-muted);
  font-size: 13px;
}
.mc-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 20px;
  align-items: start;
}
.mc-home-main,
.mc-home-side {
  min-width: 0;
  display: grid;
  gap: 20px;
}
.mc-section {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--mc-line);
}
.mc-section > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mc-section > header h3,
.mc-section > header a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-section > header h3 svg {
  color: var(--mc-blue);
}
.mc-section > header a {
  font-size: 12px;
  color: var(--mc-muted);
}
.mc-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 180px;
  gap: 12px;
  padding: 28px 18px;
  color: var(--mc-muted);
  text-align: center;
}
.mc-empty > svg {
  width: 36px;
  height: 36px;
  color: #a9bdd8;
  stroke-width: 1.2;
}
.mc-empty p {
  margin: 0;
  font-size: 14px;
}
.mc-facts {
  margin: 0;
  display: grid;
  gap: 14px;
}
.mc-facts div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
}
.mc-facts dt {
  color: var(--mc-muted);
  font-size: 12px;
}
.mc-facts dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.mc-security-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  padding: 10px;
  background: #f1f6ff;
  color: var(--mc-blue);
  border-radius: 6px;
  font-size: 13px;
}
.mc-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
}
.mc-quick-grid a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #586579;
  font-size: 13px;
  min-height: 34px;
}
.mc-quick-grid a svg {
  color: #6392d4;
}
.mc-service-links {
  display: grid;
}
.mc-service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  font-size: 13px;
  color: #586579;
  border-bottom: 1px solid #f0f3f7;
}
.mc-service-links a:last-child {
  border: 0;
}
.mc-favorite-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.mc-favorite-list a {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.mc-favorite-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.5;
  background: #f5f7fb;
  border-radius: 6px;
  overflow: hidden;
}
.mc-favorite-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mc-favorite-image svg {
  color: #a2b5cf;
  width: 32px;
  height: 32px;
}
.mc-favorite-list strong {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--mc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-favorite-list a > span:last-child {
  color: #d37443;
  font-size: 13px;
}
.mc-table-scroll {
  overflow: auto;
  max-width: 100%;
}
.mc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  background: #fff;
}
.mc-table th {
  padding: 12px;
  color: var(--mc-muted);
  background: #f7f9fc;
  font-weight: 500;
  white-space: nowrap;
}
.mc-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
  line-height: 1.6;
}
.mc-table th:first-child {
  width: 48%;
}
.mc-table td:first-child {
  min-width: 240px;
  max-width: 460px;
  overflow-wrap: anywhere;
}
.mc-table tr:hover td {
  background: #f9fbff;
}
.mc-table td > strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.mc-table small {
  display: block;
  color: var(--mc-muted);
  font-size: 12px;
  margin-top: 3px;
}
.mc-table strong small {
  display: inline;
}
.mc-dot {
  margin: 0 6px;
}
.mc-table .mc-amount {
  font-weight: 600;
  white-space: nowrap;
}
.mc-badge {
  display: inline-flex;
  border-radius: 4px;
  padding: 3px 9px;
  color: #69798f;
  background: #f0f3f7;
  font-size: 12px;
  white-space: nowrap;
}
.mc-badge.paid {
  background: #edf7f0;
  color: #2d7c52;
}
.mc-badge.pending_payment {
  background: #fff3e6;
  color: #b96d21;
}
.mc-badge.refunding,
.mc-badge.refunded {
  background: #f2edfa;
  color: #7960a1;
}
.mc-row-actions {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  min-width: 90px;
}
.mc-row-actions button,
.mc-row-actions a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--mc-blue);
  font-size: 13px;
}
.mc-row-actions svg {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.mc-account .panel-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.mc-account .panel-heading h2 {
  font-size: 20px;
}
.mc-account .panel-heading p {
  color: var(--mc-muted);
  font-size: 13px;
  margin: 5px 0 0;
  letter-spacing: 0;
}
.mc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mc-button,
.mc-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dce3ee;
  border-radius: 6px;
  background: #fff;
  color: var(--mc-text);
  font-size: 13px;
  line-height: 1.4;
}
.mc-icon-button {
  width: 40px;
  flex: 0 0 40px;
  padding: 0;
}
.mc-primary,
.mc-account .primary-action {
  background: var(--mc-blue);
  color: #fff;
}
.mc-button:hover,
.mc-icon-button:hover {
  border-color: #93b1df;
}
.mc-primary:hover {
  background: #195ccf;
}
.mc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--mc-line);
  border-radius: 6px;
}
.mc-filters label {
  display: grid;
  gap: 7px;
  color: #647287;
  font-size: 12px;
  min-width: 0;
}
.mc-filters .mc-search {
  flex: 1 1 250px;
}
.mc-filters :is(input, select),
.mc-account .profile-form input {
  border: 1px solid #dce3ee;
  border-radius: 5px;
  background: #fff;
  color: var(--mc-text);
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  min-width: 0;
  width: 100%;
}
.mc-filters input[type="date"] {
  width: 146px;
}
.mc-status-tabs {
  display: flex;
  overflow: auto;
  gap: 24px;
  margin-top: 20px;
  border-bottom: 1px solid var(--mc-line);
}
.mc-status-tabs button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 48px;
  padding: 0 2px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #65738a;
  white-space: nowrap;
  font-size: 13px;
}
.mc-status-tabs button[aria-pressed="true"] {
  color: var(--mc-blue);
  border-bottom-color: var(--mc-blue);
}
.mc-status-tabs span {
  padding: 0 6px;
  background: #f0f3f8;
  font-size: 11px;
  border-radius: 4px;
}
.mc-list-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--mc-muted);
}
.mc-list-summary b {
  color: var(--mc-blue);
  padding: 0 4px;
}
.mc-list-summary strong {
  color: #d17943;
  font-weight: 600;
  margin-left: 6px;
}
.mc-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 20px 0 0;
  color: var(--mc-muted);
  font-size: 13px;
}
.mc-pager > label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
.mc-pager > div {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mc-pager select {
  border: 1px solid #dce3ee;
  background: #fff;
  border-radius: 4px;
  height: 34px;
  padding: 0 5px;
}
.mc-settings-nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e8edf4;
  margin: 0 0 24px;
  overflow: auto;
}
.mc-settings-nav a {
  padding: 0 2px 16px;
  color: #748094;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.mc-settings-nav a[aria-current="page"] {
  color: #2468da;
  border-color: #2468da;
}
.mc-account .profile-form {
  max-width: 760px;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.mc-account .profile-form label {
  gap: 9px;
  font-size: 13px;
  color: #647287;
}
.mc-account .profile-form label:nth-child(3) {
  grid-column: auto;
}
.mc-account .profile-form .mc-profile-id {
  grid-column: 1 / -1;
}
.mc-account .profile-form input[readonly] {
  background: #f7f9fc;
  color: #748094;
}
.mc-account .profile-form button {
  margin: 0;
  border-radius: 6px;
}
.mc-profile-facts {
  border-top: 1px solid var(--mc-line);
  max-width: 760px;
  padding-top: 22px;
  display: flex;
  gap: 45px;
  margin-top: 28px;
}
.mc-profile-facts dt {
  font-size: 13px;
  color: var(--mc-muted);
}
.mc-profile-facts dd {
  font-size: 13px;
  margin: 5px 0 0;
}
.mc-account .mf-root {
  padding: 0;
}
.mc-account .mf-heading h2 {
  font-size: 20px;
}
.mc-account .mf-balances {
  background: #f8fafc;
  border-radius: 6px;
}
.mc-account .mf-pagination {
  background: transparent;
  color: var(--mc-muted);
}
.mc-account .mf-records th {
  background: #f7f9fc;
}
.mc-account .mf-tabs {
  margin-top: 20px;
}
.mc-account .member-auth {
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  padding: 40px;
  background: #fff;
  gap: 36px;
}
.mc-account .auth-intro {
  padding-top: 20px;
}
.mc-account .auth-intro h2 {
  font-size: 28px;
}
.mc-account .auth-panel {
  border-radius: 8px;
  box-shadow: 0 6px 24px #27497712;
}
.mc-account .auth-tabs button.is-active {
  color: var(--mc-blue);
  border-color: var(--mc-blue);
}
.mc-account .member-form label {
  font-size: 13px;
}
@media (min-width: 1000px) {
  .mc-stat {
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }
  .mc-stat:hover {
    transform: translateY(-3px);
  }
}
@media (max-width: 1200px) {
  .mc-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .mc-nav a {
    padding: 0 10px;
  }
  .mc-nav a > svg {
    display: none;
  }
  .mc-wallet a {
    padding: 0 16px;
  }
  .mc-wallet strong {
    font-size: 21px;
  }
  .mc-home-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 900px) {
  .mc-identity,
  .mc-account .member-welcome {
    gap: 20px;
    padding: 24px;
  }
  .mc-avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }
  .mc-wallet {
    width: 49%;
  }
  .mc-wallet a {
    padding: 0 10px;
  }
  .mc-wallet strong {
    font-size: 18px;
  }
  .mc-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mc-nav a {
    flex: 0 0 auto;
  }
  .mc-home-grid {
    grid-template-columns: 1fr;
  }
  .mc-home-side {
    grid-template-columns: 1fr 1fr;
  }
  .mc-home-side .mc-section:last-child {
    grid-column: 1/-1;
  }
  .mc-service-links {
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .mc-stat {
    padding: 18px;
  }
  .mc-stat-more {
    right: 15px;
  }
  .mc-stat-label {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  body #accountView.mc-account {
    width: calc(100% - 24px);
    margin: 12px auto 24px;
  }
  .mc-identity,
  .mc-account .member-welcome {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
  }
  .mc-identity h1 {
    font-size: 21px;
  }
  .mc-person {
    gap: 14px;
  }
  .mc-wallet {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #ffffff30;
  }
  .mc-wallet a:first-child {
    padding-left: 0;
  }
  .mc-wallet a:last-child {
    padding-right: 0;
  }
  .mc-wallet span {
    font-size: 12px;
  }
  .mc-wallet strong {
    font-size: 18px;
  }
  .mc-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
    min-height: 54px;
    border-radius: 0 0 6px 6px;
  }
  .mc-nav a {
    min-height: 44px;
    font-size: 13px;
    padding: 0 12px;
  }
  .mc-overview-heading {
    margin-top: 20px;
  }
  .mc-overview-heading p {
    display: none;
  }
  .mc-account h2 {
    font-size: 18px;
  }
  .mc-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mc-stat {
    min-height: 124px;
    padding: 16px;
  }
  .mc-stat > strong {
    font-size: 29px;
  }
  .mc-stat-label {
    font-size: 12px;
    gap: 6px;
  }
  .mc-stat-label svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .mc-stat-more {
    font-size: 11px;
    bottom: 18px;
  }
  .mc-stat-more svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
  .mc-metrics {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }
  .mc-metrics a:nth-child(2) {
    border: 0;
  }
  .mc-metrics strong {
    font-size: 20px;
  }
  .mc-home-side {
    grid-template-columns: 1fr;
  }
  .mc-home-side .mc-section:last-child {
    grid-column: auto;
  }
  .mc-service-links {
    grid-template-columns: 1fr;
  }
  .mc-section {
    padding: 18px 14px;
  }
  .mc-table th,
  .mc-table td {
    padding: 12px 10px;
  }
  .mc-account .member-panel:not(.mc-overview) {
    padding: 18px 14px;
    margin-top: 16px;
  }
  .mc-account .panel-heading {
    flex-wrap: wrap;
  }
  .mc-account .panel-heading h2 {
    font-size: 18px;
  }
  .mc-filters {
    padding: 14px;
    gap: 12px;
  }
  .mc-filters label {
    flex: 1 1 120px;
  }
  .mc-filters .mc-search {
    flex-basis: 100%;
  }
  .mc-filters input[type="date"] {
    width: 100%;
  }
  .mc-status-tabs {
    gap: 20px;
  }
  .mc-list-summary {
    flex-direction: column;
    gap: 4px;
  }
  .mc-pager {
    gap: 10px;
    flex-wrap: wrap;
  }
  .mc-pager > label {
    flex: 1;
  }
  .mc-pager > div {
    margin-left: auto;
  }
  .mc-account .profile-form {
    grid-template-columns: 1fr;
  }
  .mc-account .profile-form .mc-profile-id {
    grid-column: auto;
  }
  .mc-profile-facts {
    flex-direction: column;
    gap: 18px;
  }
  .mc-settings-nav {
    gap: 24px;
  }
  .mc-favorite-list {
    grid-template-columns: 1fr 1fr;
  }
  .mc-account .member-auth {
    grid-template-columns: 1fr;
    padding: 22px 16px;
    gap: 22px;
  }
  .mc-account .auth-intro {
    padding: 0;
  }
  .mc-account .auth-intro h2 {
    font-size: 22px;
  }
  .mc-account .auth-panel {
    padding: 20px 16px;
  }
  .mc-account .mf-balances {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  #mcRecent .mc-table thead {
    display: none;
  }
  #mcRecent .mc-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f5;
  }
  #mcRecent .mc-table td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  #mcRecent .mc-table td:first-child {
    grid-column: 1/-1;
    min-width: 0;
  }
  #mcRecent .mc-table td:nth-child(2)::before {
    content: "数量：";
    color: #748094;
  }
  #mcRecent .mc-table td:nth-child(3) {
    text-align: right;
  }
  #mcRecent .mc-row-actions {
    min-width: 0;
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mc-account * {
    transition: none !important;
    transform: none !important;
  }
}

/* Keep an authenticated account from briefly exposing the login form while the session is checked. */
.member-account-loading {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 32px;
  color: #748094;
  font-size: 14px;
  background: #fff;
}

/* Member centre depth: decorative layers never intercept account controls. */
.mc-identity,
.mc-account .member-welcome {
  isolation: isolate;
  min-height: 208px;
  padding: 32px 36px;
  border: 1px solid #ffffff30;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(115deg, #152750, #245ab5 65%, #19397a);
  background: radial-gradient(ellipse at 42% 8%, #83ceff40, transparent 52%),
    linear-gradient(115deg, #152750, color-mix(in srgb, var(--mc-blue, #2468da) 72%, #162c58) 65%, #19397a);
  box-shadow: inset 0 1px 0 #ffffff40, 0 16px 38px -24px #133e78b3;
}
.mc-identity::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 22%, #b6e6ff0d 44%, transparent 62%);
}
.mc-identity-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.mc-identity-scene::before {
  content: "";
  position: absolute;
  width: 65%;
  height: 240px;
  left: 20%;
  bottom: -170px;
  background-image: linear-gradient(#93ceff15 1px, transparent 1px), linear-gradient(90deg, #93ceff15 1px, transparent 1px);
  background-size: 32px 32px;
  transform: perspective(220px) rotateX(48deg) rotateZ(-12deg);
}
.mc-orbit {
  position: absolute;
  left: calc(42% - 116px);
  top: calc(50% - 116px);
  width: 232px;
  height: 232px;
  animation: mc-orbit-drift 9s ease-in-out infinite alternate;
}
.mc-orbit-core {
  position: absolute;
  inset: 51px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #f1fcff, #97daff 12%, #579eff 29%, #3861c9 54%, #152d6e 78%);
  box-shadow: inset -12px -16px 24px #0c1d6470, inset 2px 2px 7px #fff9, 0 16px 30px #08194460, 0 0 50px #75bfff30;
}
.mc-orbit-ring {
  position: absolute;
  inset: 0;
  border: 2px solid #a9e0ffa6;
  border-bottom-width: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 8px #9cdaff40, 0 5px 5px #10254c50, 0 0 14px #9cdaff30;
  transform: rotate(-28deg) rotateX(65deg);
}
.mc-orbit-ring-cross {
  inset: 16px;
  border-color: #b7ccff50;
  transform: rotate(58deg) rotateX(62deg);
}
.mc-orbit-satellite {
  position: absolute;
  width: 21px;
  height: 21px;
  top: 38px;
  right: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, #9ae5ff 30%, #439ce5 66%, #1b3e9b);
  box-shadow: 0 5px 12px #0b224c80;
  animation: mc-satellite-drift 6s ease-in-out infinite alternate;
}
.mc-identity .mc-person { position: relative; z-index: 1; }
.mc-identity .mc-avatar {
  width: 80px;
  height: 80px;
  flex-basis: 80px;
  border: 1px solid #ffffffb0;
  border-radius: 26px;
  background: linear-gradient(140deg, #fff, #dceaff);
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 #90b9f64d, 0 14px 25px #071d4a66;
  transform: rotate(-5deg);
}
.mc-identity .mc-avatar :is(svg, img) { transform: rotate(5deg); }
.mc-identity .mc-avatar img { border-radius: 24px; }
.mc-identity h1 { font-size: 26px; text-shadow: 0 2px 10px #0c23464d; }
.mc-identity .mc-person-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border: 1px solid #ffffff24;
  border-radius: 5px;
  background: #ffffff12;
}
.mc-identity .mc-wallet {
  position: relative;
  z-index: 1;
  width: 52%;
  padding: 22px 4px;
  border: 1px solid #b8d7ff40;
  border-radius: 16px;
  background: linear-gradient(125deg, #456ba680, #132e6499);
  box-shadow: inset 0 1px 0 #ffffff26, 0 12px 24px #0a234333;
}
.mc-identity .mc-wallet a { padding: 0 20px; }
.mc-identity .mc-wallet strong { font-size: clamp(19px, 1.8vw, 27px); line-height: 1.5; }
.mc-identity .mc-wallet span { color: #e0ecff; }
.mc-identity .mc-wallet a:hover strong { text-shadow: 0 0 18px #b9e5ff66; }
.mc-nav { border-radius: 0 0 18px 18px; padding: 10px 16px; box-shadow: 0 12px 22px -18px #23446950; }
.mc-nav a { border-radius: 9px; }
.mc-nav a[aria-current="page"] { box-shadow: inset 0 1px 0 #fff, 0 3px 7px #3974d812; }
.mc-overview-heading { margin: 26px 0 16px; }
.mc-overview-heading .mc-text-link {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce6f6;
  border-radius: 9px;
  background: #ffffffc9;
  box-shadow: 0 3px 8px #3c5e8010;
}
.mc-account .mc-stat {
  --mc-card-ink: #a95428;
  --mc-card-tint: #fff0e5;
  --mc-card-edge: #f4dccc;
  --mc-card-shadow: #d79a6550;
  min-height: 150px;
  padding: 21px 24px;
  color: var(--mc-card-ink);
  border: 1px solid var(--mc-card-edge);
  border-radius: 17px;
  background: linear-gradient(125deg, #fff 0%, var(--mc-card-tint) 72%);
  box-shadow: inset 0 1px 0 #fff, 0 6px 0 -3px var(--mc-card-edge), 0 12px 22px -15px var(--mc-card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mc-account .mc-stat.green { --mc-card-ink: #247760; --mc-card-tint: #e5f5ef; --mc-card-edge: #d1e9df; --mc-card-shadow: #66aa9050; }
.mc-account .mc-stat.muted { --mc-card-ink: #576b88; --mc-card-tint: #eaf0f9; --mc-card-edge: #dbe4f0; --mc-card-shadow: #879bbd50; }
.mc-account .mc-stat.violet { --mc-card-ink: #7255aa; --mc-card-tint: #f0eafa; --mc-card-edge: #e1d8ef; --mc-card-shadow: #ac93d050; }
.mc-account .mc-stat::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  right: 24px;
  top: 22px;
  border: 11px solid #ffffff9e;
  border-radius: 50%;
  box-shadow: inset 2px 2px 4px var(--mc-card-shadow), 4px 6px 0 -1px var(--mc-card-edge), 9px 15px 12px -9px var(--mc-card-shadow);
  transform: perspective(180px) rotateY(-28deg) rotateX(22deg);
  pointer-events: none;
  animation: mc-card-float 7s ease-in-out infinite alternate;
}
.mc-account .mc-stat:nth-child(2)::before { animation-delay: -2s; }
.mc-account .mc-stat:nth-child(3)::before { animation-delay: -4s; }
.mc-account .mc-stat:nth-child(4)::before { animation-delay: -1s; }
.mc-account .mc-stat-label { position: relative; z-index: 1; gap: 9px; }
.mc-account .mc-stat-label svg { border-radius: 9px; box-shadow: inset 0 1px 0 #fff, 0 3px 6px var(--mc-card-shadow); }
.mc-account .mc-stat > strong { position: relative; z-index: 1; font-size: 36px; letter-spacing: -1px; }
.mc-account .mc-stat-more { z-index: 1; }
.mc-account .mc-metrics {
  border: 1px solid #e1e9f3;
  border-radius: 17px;
  background: linear-gradient(110deg, #fff, #f9fbff);
  box-shadow: inset 0 1px 0 #fff, 0 10px 25px -19px #375b8970;
}
.mc-account .mc-metrics strong { font-size: 23px; }
.mc-account .mc-metrics a:hover strong { color: var(--mc-blue); }
.mc-overview .mc-section {
  border: 1px solid #e3eaf4;
  border-radius: 17px;
  background: linear-gradient(150deg, #fff, #fff 65%, #fbfcff);
  box-shadow: inset 0 1px 0 #fff, 0 10px 25px -20px #28436566;
}
.mc-overview .mc-section > header h3 { gap: 9px; }
.mc-overview .mc-section > header h3 svg {
  box-sizing: content-box;
  padding: 7px;
  border: 1px solid #e3eaf6;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #edf3ff);
  box-shadow: 0 3px 4px #334a8210;
}
.mc-overview .mc-table th { background: #f4f7fc; }
.mc-overview .mc-table th:first-child { border-radius: 8px 0 0 8px; }
.mc-overview .mc-table th:last-child { border-radius: 0 8px 8px 0; }
.mc-overview .mc-security-link { border-radius: 10px; }
.mc-overview .mc-quick-grid a { border-radius: 8px; padding: 5px; }
.mc-overview .mc-quick-grid a:hover { color: var(--mc-blue); background: #f1f6ff; }
@keyframes mc-orbit-drift {
  from { transform: translate3d(0, 6px, 0) rotate(-6deg); }
  to { transform: translate3d(0, -6px, 0) rotate(6deg); }
}
@keyframes mc-satellite-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-9px, 12px, 0); }
}
@keyframes mc-card-float {
  from { transform: perspective(180px) rotateY(-28deg) rotateX(22deg) translateY(2px); }
  to { transform: perspective(180px) rotateY(-12deg) rotateX(14deg) translateY(-4px); }
}
@media (hover: hover) and (pointer: fine) {
  .mc-account .mc-stat:hover { transform: perspective(700px) translateY(-4px) rotateX(2deg); box-shadow: inset 0 1px 0 #fff, 0 6px 0 -3px var(--mc-card-edge), 0 18px 24px -14px var(--mc-card-shadow); }
}
@media (max-width: 1000px) {
  .mc-identity, .mc-account .member-welcome { padding: 26px; gap: 24px; }
  .mc-identity .mc-wallet a { padding: 0 12px; }
  .mc-orbit { opacity: .5; }
  .mc-account .mc-stat::before { right: 14px; width: 36px; height: 36px; border-width: 9px; opacity: .65; }
}
@media (max-width: 900px) {
  .mc-identity, .mc-account .member-welcome { flex-direction: column; align-items: stretch; }
  .mc-identity .mc-wallet { width: 100%; padding: 16px 4px; }
  .mc-orbit { left: auto; right: 3%; top: -40px; opacity: .8; }
  .mc-account .mc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mc-identity, .mc-account .member-welcome { padding: 22px 18px; gap: 24px; border-radius: 16px 16px 0 0; }
  .mc-identity .mc-avatar { width: 62px; height: 62px; flex-basis: 62px; border-radius: 20px; }
  .mc-identity h1 { font-size: 22px; }
  .mc-orbit { right: -80px; opacity: .32; }
  .mc-identity .mc-wallet a { padding: 0 8px; }
  .mc-identity .mc-wallet strong { font-size: 17px; }
  .mc-nav { border-radius: 0 0 16px 16px; padding: 6px; }
  .mc-account .mc-stat { min-height: 133px; padding: 16px; border-radius: 14px; }
  .mc-account .mc-stat::before { top: 54px; right: 19px; width: 28px; height: 28px; border-width: 7px; opacity: .5; }
  .mc-account .mc-stat > strong { font-size: 30px; }
  .mc-account .mc-stat-label { gap: 6px; }
  .mc-account .mc-stat-more { right: 14px; bottom: 15px; }
  .mc-overview-heading { gap: 10px; }
  .mc-account .mc-metrics strong { font-size: 21px; }
}
@media (max-width: 380px) {
  .mc-identity .mc-wallet a { padding: 0 6px; }
  .mc-identity .mc-wallet strong { font-size: 14px; }
}
/* Keep static 3D geometry when motion is reduced, including service portals. */
@media (prefers-reduced-motion: reduce) {
  .mc-orbit, .mc-orbit-satellite, .mc-account .mc-stat::before { animation: none; }
  .mc-identity *, .mc-nav a, .mc-account .mc-stat { transition: none; }
  .mc-identity .mc-orbit-ring { transform: rotate(-28deg) rotateX(65deg) !important; }
  .mc-identity .mc-orbit-ring-cross { transform: rotate(58deg) rotateX(62deg) !important; }
  .mc-account .mc-stat:hover { transform: none; }
}
