.member-home {
  --navy: #a94239;
  --coral: #a94239;
  --member-surface: #fff;
  --member-highlight: #fff2eb;
  --member-text: #6b5e64;
}

.member-home.dark {
  --navy: #f8a998;
  --coral: #f8a998;
  --member-surface: #22242c;
  --member-highlight: #352a2d;
  --member-text: #c9bec3;
}

.member-home .sibling-links { display: flex; gap: 2px; }
.member-home #verified-account {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--navy);
  background: var(--soft);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.member-home #verified-account small {
  display: block;
  margin-top: 3px;
  color: var(--member-text);
  font-size: .75rem;
}
.member-home button.add-button { border: 0; cursor: pointer; }
.member-home button.add-button:disabled { opacity: .65; cursor: wait; }
.card-action-status { color: var(--navy); }
.card-action-status:empty { display: none; }
.member-home .member-panel {
  margin: 28px 0 0;
  padding: clamp(18px, 4vw, 54px) 6%;
  border-radius: clamp(22px, 4vw, 34px);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.member-home :is(.member-panel, .points-dialog) p,
.member-home .profile-stats dt,
.member-home .recharge-option small,
.member-home .demo-plans .plan-discount {
  color: var(--member-text);
}
.member-home .demo-plans article {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(15px, 2vw, 24px);
  background: var(--member-surface);
}
.member-home .demo-plans article button { margin-top: auto; }
.member-home .demo-plans .annual-plan,
.member-home .recharge-option:has(input:checked),
.member-home .profile-invite,
.member-home .vip-subscription { background: var(--member-highlight); }
.member-home .demo-plans .lifetime-plan { background: #f9eff5; }
.member-home.dark .demo-plans .lifetime-plan { background: #332833; }
.member-home .vip-subscription button { margin: 0; }
.member-home .vip-order-state:not([data-state="paid"]):not([data-state="open"]) {
  background: var(--member-highlight);
  color: var(--ink);
}

.member-home :is(.member-panel, .points-dialog) :is(button, .demo-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(90deg,#b74436,#a73d56);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.member-home :is(.member-panel, .points-dialog) :is(.secondary, .close-demo) {
  border-color: var(--line);
  background: var(--member-surface);
  color: var(--navy);
}
.member-home :is(.member-panel, .points-dialog) button:disabled { opacity: .55; cursor: default; }
.member-home .points-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: min(420px, calc(100% - 24px));
  max-height: 88dvh;
  padding: clamp(16px, 4vw, 22px);
  overflow-y: auto;
}
.member-home #verified-dialog[open]:has(.vip-profile:not([hidden])) {
  width: min(470px, calc(100% - 24px));
}
.member-home .points-dialog h2 {
  margin: 0;
  padding-right: 36px;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  line-height: 1.35;
}
.member-home .points-dialog p { margin: 0; }
.member-home .points-dialog > [role="status"]:empty { position: absolute; }
.member-home .points-dialog > [role="status"] {
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.member-home .points-dialog .close-demo {
  width: 40px;
  min-height: 40px;
  padding: 0;
}
.member-home .points-dialog form { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.member-home .points-dialog form .secondary { justify-self: start; }
.member-home :is(.points-dialog, .member-panel) :is(input:not([type="radio"]), textarea) {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--member-surface);
  color: var(--ink);
}
.member-home .points-dialog label:not(.profile-copy-fallback) { display: grid; gap: 5px; }
.member-home .profile-header { background: linear-gradient(135deg, #9c483d, #91425a); }
.member-home .profile-header[data-membership="plus"] { background: linear-gradient(135deg, #225766, #347185); }
.member-home .profile-header[data-membership="annual"] { background: linear-gradient(135deg, #585076, #6e5289); }
.member-home .profile-header:is([data-membership="lifetime"], [data-membership="lifetime_diamond"]) {
  background: linear-gradient(135deg, #493464, #764976);
}
.member-home .vip-profile { gap: 10px; }
.member-home .profile-header { padding: 12px; }
.member-home .profile-stats dd { font-variant-numeric: tabular-nums; }
.member-home .profile-invite { display: grid; gap: 8px; padding: 11px 12px; }
.member-home .profile-invite button,
.member-home .points-dialog .profile-logout { justify-self: start; }
.member-home .profile-copy-fallback { min-width: 0; }
.member-home .points-dialog .history-copy { min-height: 32px; margin-inline-start: 7px; padding: 4px 8px; }
.member-home .recharge-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.member-home #recharge { scroll-margin-top: 16px; }

@media (min-width: 601px) {
  .member-home .sibling-link { display: block; }
}
@media (max-width: 600px) {
  .member-home .public-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 7px;
  }
  .member-home .header-actions { display: contents; }
  .member-home .sibling-links {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-evenly;
    border-top: 1px solid var(--line);
    padding-top: 3px;
  }
  .member-home .sibling-link { padding: 6px 4px; font-size: .75rem; }
  .member-home #verified-account { max-width: 140px; padding-inline: 8px; }
}

.wechat-browser-tip:not([open]) { display: none; }
.member-home .wechat-browser-tip[open] {
  position: fixed;
  z-index: 20;
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
  display: block;
  width: calc(100% - 24px);
  max-width: 350px;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
}
.wechat-browser-tip h2 { margin: 0 0 8px; font-size: 1.125rem; }
.wechat-browser-tip p { margin: 0 0 14px; color: var(--member-text); }
.wechat-browser-tip button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  background: #a94239;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
