.member-app {
  --surface: #fffefa;
  --gold: #9b7745;
  --blue: #4e7893;
  background:
    radial-gradient(ellipse at 90% 3%, #dfece680, transparent 38%), #f4f6f2;
}
.member-app :focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.member-app main,
.member-app header,
.member-app footer {
  max-width: 1320px;
}
.member-app main {
  padding-top: 28px;
  min-height: 75vh;
}
.member-header {
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.header-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}
.header-label {
  font-size: 13px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.header-actions a {
  font-size: 14px;
}
.member-app button,
.member-app .button {
  min-height: 42px;
  font-family: inherit;
  font-size: 14px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.member-app .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 18px;
  text-decoration: none;
}
.member-app .primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.member-app button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.member-app h1 {
  font-family: "HK Perks Editorial", serif;
  font-size: clamp(32px, 3.6vw, 44px);
  margin: 15px 0 10px;
  font-weight: 600;
  line-height: 1.3;
}
.member-app h1 em {
  color: var(--green);
  font-style: normal;
}
.member-app h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 9px 0 18px;
  font-family: "HK Perks Editorial", serif;
  font-weight: 600;
  line-height: 1.45;
}
.member-app h3 {
  font-size: 17px;
  margin: 0 0 13px;
}
.workspace-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.member-app .eyebrow {
  margin-top: 0;
  font:
    11px "HK Perks Tech",
    monospace;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.member-app .lede {
  font-size: 15px;
  margin: 0;
  line-height: 1.8;
}
.identity {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 330px;
}
.identity-mark {
  display: grid;
  place-items: center;
  background: #e7ede3;
  border: 1px solid #d6dfcf;
  border-radius: 18px;
  width: 52px;
  height: 60px;
  flex-shrink: 0;
  font:
    29px "HK Perks Editorial",
    serif;
  color: #7e7745;
}
.identity strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.identity small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.member-app .pill {
  font:
    11px "HK Perks Tech",
    "HK Perks Sans",
    sans-serif;
  padding: 5px 8px;
  letter-spacing: 0.02em;
  border-radius: 5px;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dashboard button {
  text-align: left;
  padding: 17px 22px;
  min-height: 102px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 4px 14px #203e3603;
}
.dashboard button:first-child {
  background: #e8f0e9;
  border-color: #cddfd2;
}
.dashboard button small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.dashboard strong {
  display: block;
  font:
    32px "HK Perks Tech",
    monospace;
  margin-top: 10px;
  letter-spacing: -0.05em;
}
.dashboard button:nth-child(2) strong {
  color: var(--gold);
}
.dashboard button:nth-child(3) strong {
  color: var(--blue);
}
.dashboard button:nth-child(4) strong {
  color: #807097;
}
.workspace-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin: 20px 0 24px;
}
.workspace-nav a {
  text-decoration: none;
  padding: 15px 0;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
}
.workspace-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}
.workspace-nav a[aria-current="page"]::after {
  content: "";
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.workspace-nav a span {
  font:
    11px "HK Perks Tech",
    monospace;
  background: #e5ece4;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 4px;
}
.workspace-nav button {
  margin-left: auto;
  min-height: 34px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.member-app .section-heading {
  gap: 20px;
  align-items: center;
  margin: 0 0 16px;
}
.member-app .section-heading h2 {
  margin: 6px 0 0;
}
.member-app .panel {
  border-radius: 18px;
  background: var(--surface);
  padding: 25px;
}
.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 10px;
}
.segmented {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.segmented button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 8px 13px;
  min-height: 34px;
  font-size: 12px;
}
.segmented button[aria-pressed="true"] {
  background: #e4ece3;
  border-color: #d5e0d3;
  color: var(--green);
  font-weight: 650;
}
.month-control {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.member-app .month-control input {
  width: 144px;
  font-size: 12px;
  margin: 0;
  min-height: 37px;
  padding: 7px 9px;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}
.next-action {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #dfd8c4;
  background: #f5f1e6;
  border-radius: 14px;
  padding: 14px 20px;
}
.next-action .action-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: #ad8b46;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #ad8b4614;
}
.next-action div {
  flex: 1;
  min-width: 0;
}
.next-action strong {
  font-size: 13px;
}
.next-action p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #796d50;
  line-height: 1.7;
}
.next-action button {
  font-size: 12px;
  background: #fffaf1;
  border-color: #dcd2b9;
  white-space: nowrap;
}
.plan-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.member-app .plan {
  margin: 0;
  border-radius: 18px;
  padding: 24px;
  background: var(--surface);
  min-width: 0;
}
.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.bank-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.bank-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--bank-color, var(--green));
  flex-shrink: 0;
}
.member-app .plan h3 {
  font-size: 17px;
  line-height: 1.7;
  margin: 16px 0 4px;
  overflow-wrap: anywhere;
}
.plan-context {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.plan-status {
  font-size: 11px;
  color: var(--green);
  background: #e8f0e8;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
}
.plan-status.attention {
  color: #896738;
  background: #f4ecdc;
}
.plan-status.received {
  color: #766087;
  background: #f0eaf4;
}
.plan-status.archived {
  color: #75847b;
  background: #edf0eb;
}
.member-app .metric {
  margin: 21px 0 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.member-app .metric strong {
  font:
    24px "HK Perks Tech",
    monospace;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.member-app .metric small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.member-app .progress {
  height: 5px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  gap: 12px;
}
.plan-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 21px 0;
  gap: 5px;
}
.plan-steps li {
  font-size: 10px;
  color: #89968e;
  display: flex;
  align-items: center;
  gap: 5px;
}
.plan-steps i {
  font:
    10px "HK Perks Tech",
    monospace;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #edf0e9;
  flex-shrink: 0;
}
.plan-steps .done {
  color: var(--green);
}
.plan-steps .done i {
  background: #dcebdd;
}
.plan-next {
  font-size: 12px;
  line-height: 1.9;
  background: #f1f5ef;
  border-radius: 9px;
  padding: 11px 13px;
  min-height: 65px;
  color: #536e62;
}
.plan-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.plan-actions button {
  font-size: 12px;
  padding: 8px 11px;
  min-height: 36px;
}
.plan-actions .quiet {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  border: 1px dashed #cbdacc;
  background: #fbfcf680;
  border-radius: 18px;
  padding: 44px 24px;
}
.empty-symbol {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e5ede2;
  font:
    25px "HK Perks Tech",
    monospace;
  margin-bottom: 13px;
}
.empty-state h3 {
  margin: 0;
  font:
    23px "HK Perks Editorial",
    serif;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}
.offer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 12px;
  background: #eaf0e780;
  padding: 18px;
  border-radius: 14px;
}
.offer-toolbar label {
  font-size: 11px;
}
.offer-toolbar input,
.offer-toolbar select {
  margin: 6px 0 0;
  font-size: 13px;
  background: var(--surface);
  width: 100%;
}
.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.offer h3 {
  font-size: 17px;
  line-height: 1.7;
  margin: 17px 0 10px;
}
.offer .reward-copy {
  color: var(--muted);
  line-height: 1.9;
  font-size: 13px;
  margin: 0 0 18px;
  flex: 1;
}
.offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.offer-footer a {
  font-size: 12px;
  color: var(--muted);
}
.offer-footer button {
  font-size: 12px;
  min-height: 36px;
}
#more-offers {
  display: block;
  margin: 24px auto;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}
.account-grid .panel {
  margin: 0;
}
.member-app .row {
  gap: 15px;
}
.member-app .row strong {
  font-size: 14px;
}
.member-app .row p {
  font-size: 12px;
  line-height: 1.9;
}
.member-app .row small {
  font-size: 11px;
  color: var(--muted);
}
.member-app .row .actions {
  max-width: 210px;
}
.member-app .row button {
  min-height: 34px;
  font-size: 11px;
  padding: 7px 10px;
}
.notice-list {
  margin-top: 18px;
}
.notice-list a {
  font-size: 12px;
}
.account-facts {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.account-facts dt {
  font-size: 11px;
  color: var(--muted);
}
.account-facts dd {
  margin: 5px 0 0;
  font-size: 16px;
}
.activation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin: 45px 0;
}
.activation-intro h2 {
  font-size: 36px;
  line-height: 1.6;
  margin: 20px 0;
}
.activation-intro ol {
  padding: 0;
  list-style: none;
}
.activation-intro li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 25px 0;
}
.activation-intro b {
  font:
    14px "HK Perks Tech",
    monospace;
  color: var(--gold);
  padding-top: 4px;
}
.activation-intro strong {
  font-size: 15px;
}
.activation-intro p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
  line-height: 1.8;
}
.activation-card {
  margin: 0 !important;
}
.activation-card h2 {
  font-size: 29px;
}
.activation-card p {
  font-size: 13px;
  line-height: 1.9;
}
.activation-card label {
  font-size: 12px;
}
.activation-card input {
  font-size: 14px;
}
.activation-card .primary {
  width: 100%;
  margin: 5px 0 18px;
}
.activation-card small {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  display: block;
}
.member-app dialog {
  width: min(740px, calc(100vw - 28px));
  max-height: 88dvh;
  border: 1px solid #cfddd1;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  padding: 26px 30px;
  box-shadow: 0 24px 90px #19382f30;
  overflow: auto;
}
.member-app dialog::backdrop {
  background: #18362d55;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-heading button {
  border: 0;
  background: #edf1e9;
  border-radius: 50%;
  font-size: 22px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.member-app dialog h2 {
  font-family: var(--font-body);
  font-size: 23px;
  margin: 20px 0 12px;
  line-height: 1.65;
}
.member-app dialog label {
  font-size: 12px;
}
.member-app dialog input,
.member-app dialog select {
  font-size: 14px;
}
.member-app dialog p,
.member-app dialog li {
  font-size: 13px;
  line-height: 1.9;
}
.member-app dialog li {
  margin-bottom: 9px;
}
.dialog-tabs {
  display: flex;
  gap: 5px;
  padding: 10px 0 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.dialog-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 37px;
  padding: 8px;
  font-size: 13px;
}
.dialog-tabs button[aria-pressed="true"] {
  background: #e6eee2;
  color: var(--green);
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}
.dialog-actions a {
  font-size: 12px;
}
.form-error {
  background: #fbebe7;
  padding: 12px;
  border-radius: 8px;
  color: #943d30;
}
.member-app .note {
  font-size: 12px;
  line-height: 1.9;
  background: #f5efdf;
}
.guide-steps {
  list-style: none;
  padding: 0;
  counter-reset: guide;
}
.guide-steps li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  display: flex;
  gap: 14px;
}
.guide-steps i {
  font:
    14px "HK Perks Tech",
    monospace;
  color: var(--muted);
  padding-top: 4px;
}
.guide-steps .done i {
  color: var(--green);
}
.guide-steps strong {
  font-size: 14px;
}
.guide-steps p {
  margin: 5px 0;
  color: var(--muted);
}
.guide-steps .done {
  background: #f0f5eb;
}
.guide-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.guide-facts div {
  background: #f0f4ed;
  padding: 14px;
  border-radius: 10px;
}
.guide-facts small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.guide-facts strong {
  font-size: 13px;
  line-height: 1.7;
}
.member-app .ledger {
  max-height: 440px;
  overflow: auto;
}
.member-app .ledger .row {
  flex-wrap: wrap;
}
.member-app .ledger .row > div:first-child {
  min-width: 180px;
}
.inline-confirm {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}
.inline-confirm input {
  width: 145px;
  font-size: 12px !important;
  min-height: 34px;
  margin: 0;
}
.member-app #feedback {
  position: sticky;
  top: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  box-shadow: 0 4px 20px #153d2810;
}
.loading-state {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}
.member-app footer {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 45px;
  padding-top: 23px;
}
@media (max-width: 1000px) {
  .identity {
    max-width: 270px;
  }
  .header-label {
    display: none;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .plan-steps {
    gap: 2px;
  }
  .plan-steps li {
    font-size: 9px;
    gap: 3px;
  }
  .plan-actions .quiet {
    margin-left: 0;
  }
  .offer-toolbar {
    grid-template-columns: minmax(0, 1fr) 145px 145px;
  }
  .activation-layout {
    gap: 30px;
  }
}
@media (max-width: 700px) {
  .member-app main {
    padding-top: 26px;
  }
  .member-header {
    padding: 17px 18px;
    gap: 12px;
  }
  .header-divider {
    display: none;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions a {
    font-size: 12px;
  }
  .workspace-hero {
    display: block;
    margin-bottom: 23px;
  }
  .identity {
    margin-top: 22px;
    max-width: none;
  }
  .identity-mark {
    width: 39px;
    height: 45px;
    border-radius: 12px;
    font-size: 22px;
  }
  .identity strong {
    display: inline-block;
    margin: 0 0 0 8px;
    font-size: 14px;
  }
  .identity small {
    margin-top: 5px;
  }
  .member-app h1 {
    font-size: 34px;
  }
  .member-app .lede {
    font-size: 13px;
  }
  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .dashboard button {
    min-height: 100px;
    padding: 16px;
  }
  .dashboard strong {
    font-size: 28px;
  }
  .dashboard button small {
    font-size: 11px;
  }
  .workspace-nav {
    gap: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 15px 0 25px;
  }
  .workspace-nav a {
    font-size: 12px;
    padding: 16px 0;
  }
  .workspace-nav button {
    display: none;
  }
  .workspace-nav a span {
    font-size: 10px;
    margin-left: 2px;
  }
  .member-app .section-heading h2 {
    font-size: 22px;
  }
  .member-app .section-heading {
    gap: 12px;
    align-items: center;
  }
  .member-app .section-heading .button {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 37px;
  }
  .member-app .eyebrow {
    margin-top: 0;
    font-size: 9px;
    letter-spacing: 0.13em;
  }
  .plan-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .segmented {
    gap: 1px;
  }
  .segmented button {
    padding: 8px 11px;
    font-size: 11px;
  }
  .month-control {
    align-self: flex-end;
  }
  .plan-grid,
  .offer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .member-app .plan,
  .offer {
    padding: 20px;
  }
  .next-action {
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .next-action button {
    margin-left: 21px;
  }
  .next-action div {
    min-width: 200px;
  }
  .plan-steps li {
    font-size: 10px;
    gap: 5px;
  }
  .offer-toolbar {
    grid-template-columns: 1fr 1fr;
    padding: 13px;
    gap: 10px;
  }
  .offer-toolbar .search-field {
    grid-column: 1/-1;
  }
  .offer-toolbar input,
  .offer-toolbar select {
    font-size: 12px;
  }
  .offer h3 {
    font-size: 16px;
  }
  .offer-footer {
    gap: 8px;
  }
  .account-grid {
    gap: 15px;
  }
  .member-app dialog {
    padding: 21px 18px;
    border-radius: 17px;
    max-height: 91dvh;
  }
  .member-app dialog h2 {
    font-size: 20px;
  }
  .dialog-tabs {
    gap: 2px;
  }
  .dialog-tabs button {
    font-size: 12px;
    padding: 7px 4px;
  }
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .guide-facts {
    gap: 10px;
  }
  .guide-facts strong {
    font-size: 12px;
  }
  .activation-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
  }
  .activation-intro {
    display: none;
  }
  .member-app .row .actions {
    max-width: none;
  }
  .member-app #feedback {
    font-size: 12px;
  }
  .member-app footer {
    margin-top: 25px;
  }
  .empty-state {
    padding: 34px 20px;
  }
  .empty-state h3 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .workspace-panel {
    animation: member-in 0.28s ease both;
  }
  .dashboard button:hover,
  .offer:hover {
    transform: translateY(-2px);
    border-color: #baccbd;
  }
  .member-app .progress span {
    transition: width 0.45s ease;
  }
  @keyframes member-in {
    from {
      opacity: 0.4;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.member-header .brand {
  margin-right: 0;
  font-family: "HK Perks Editorial", serif;
}

.member-app { --font-body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --font-tech: "HK Perks Tech", var(--font-body); font-family: var(--font-body); }
