/* =========================================================
   会员端 · WeChat mini-program simulation
   ========================================================= */
.mobile-body {
  background-color: #e8eae4;
  background-image:
    linear-gradient(rgba(50, 66, 56, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 66, 56, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center top;
}
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px #d7dbd3, 0 30px 80px rgba(19, 30, 24, 0.16);
}
@media (max-width: 540px) {
  .mobile-body { background-image: none; background: var(--paper); }
  .app-shell { box-shadow: none; }
}

.mini-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(227, 230, 223, 0.9);
  backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top, 0);
}
.mini-nav {
  height: 50px; display: grid; grid-template-columns: 54px 1fr 84px;
  align-items: center; padding: 0 7px;
}
.mini-nav .mini-side { justify-self: start; }
.mini-nav .mini-side-right { justify-self: end; }
.mini-title {
  text-align: center; font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: 0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-back {
  width: 38px; height: 38px; border: 0; background: transparent; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.mini-back:hover { background: var(--paper-2); }
.capsule {
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 78px; height: 30px; padding: 0 10px;
  border: 1px solid #e1e4de; border-radius: 16px; background: rgba(247, 248, 245, 0.9);
  color: var(--ink-2);
}
.capsule:hover { border-color: var(--line-strong); }
.capsule-dots { display: flex; gap: 3px; }
.capsule-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); display: block; }
.capsule-sep { width: 1px; height: 15px; background: #e0e3dc; }
.capsule-ring { width: 14px; height: 14px; border: 1px solid var(--ink-3); border-radius: 50%; position: relative; }
.capsule-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--ink-3); }

.page {
  padding: 16px 16px 96px;
  animation: pageIn 0.24s ease both;
}
.page.is-plain { padding-left: 0; padding-right: 0; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.page > * { min-width: 0; }

.wallet-greeting {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 2px 2px 13px;
}
.greeting-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.greeting-sub { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.greeting-sub .dot { margin: 0 5px -1px; }
.greeting-date { font-size: 10.5px; color: var(--muted); text-align: right; line-height: 1.5; padding-bottom: 2px; }

/* ---------------- Member card ---------------- */
.member-card {
  position: relative; overflow: hidden;
  padding: 17px 17px 15px;
  border-radius: 14px;
  color: #f5f0e4;
  background: linear-gradient(122deg, #19483a 0%, #12382e 46%, #0b2922 100%);
  box-shadow: 0 12px 28px rgba(12, 36, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.member-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(113deg, rgba(255, 255, 255, 0.042) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.member-card::after {
  content: ""; position: absolute; width: 230px; height: 230px; right: -92px; top: -118px;
  border: 1px solid rgba(221, 190, 137, 0.20); border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(221, 190, 137, 0.035), 0 0 0 38px rgba(221, 190, 137, 0.022);
  pointer-events: none;
}
.mc-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mc-brand { display: flex; align-items: center; gap: 9px; }
.mc-brand .brand-seal {
  width: 31px; height: 31px; border: 1px solid rgba(224, 198, 153, 0.5);
  background: rgba(255, 255, 255, 0.055); color: #e8d3ac; border-radius: 6px;
  font-size: 16px;
}
.mc-brand-text strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em; }
.mc-brand-text span {
  display: block; margin-top: 1px; font-size: 8px; letter-spacing: 0.22em;
  color: rgba(238, 227, 206, 0.5); font-family: var(--num);
}
.mc-level {
  border: 1px solid rgba(219, 187, 130, 0.48); background: rgba(180, 137, 70, 0.14);
  color: #eddbb9; border-radius: 4px; padding: 3px 8px; font-size: 10px; font-weight: 500;
  white-space: nowrap;
}
.mc-number { position: relative; margin-top: 25px; font-family: var(--num); font-size: 12.5px; letter-spacing: 0.14em; color: rgba(246, 240, 226, 0.72); }
.mc-number span { font-family: var(--font); letter-spacing: 0; font-size: 10px; color: rgba(246, 240, 226, 0.42); margin-right: 6px; }
.mc-bottom { position: relative; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(228, 206, 167, 0.16); }
.mc-stat label { display: block; font-size: 9.5px; color: rgba(240, 232, 214, 0.5); margin-bottom: 3px; }
.mc-stat b { font-family: var(--num); font-size: 17px; font-weight: 500; letter-spacing: 0.01em; color: #f7f1e3; }
.mc-qr {
  min-height: 34px; padding: 0 11px; border-radius: 6px;
  border: 1px solid rgba(231, 209, 170, 0.35); background: rgba(255, 255, 255, 0.08);
  color: #f0e3c9; font-size: 10.5px; display: inline-flex; align-items: center; gap: 5px;
}
.mc-qr:hover { background: rgba(255, 255, 255, 0.13); }
.mc-progress { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.mc-progress .track { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.mc-progress .track i { display: block; height: 100%; background: #c6a265; border-radius: 2px; }
.mc-progress span { font-size: 9px; color: rgba(238, 226, 203, 0.55); white-space: nowrap; }

/* ---------------- Quick grid ---------------- */
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  margin-top: 14px; padding: 9px 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.quick-item {
  min-height: 67px; border: 0; background: transparent; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink); position: relative;
  transition: background .15s ease;
}
.quick-item:hover { background: var(--brand-wash); }
.quick-item:active { background: #eaf2ed; }
.quick-item .qi-icon { width: 31px; height: 31px; display: grid; place-items: center; color: var(--brand); position: relative; }
.quick-item .qi-icon .icon { width: 22px; height: 22px; }
.quick-label { font-size: 11px; color: var(--ink-2); font-weight: 500; letter-spacing: 0.01em; }
.qi-badge {
  position: absolute; right: -7px; top: -5px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--gold); color: #fff; font-size: 9px; line-height: 15px;
  text-align: center; font-family: var(--num); box-shadow: 0 0 0 2px #fff;
}

/* ---------------- Promo ---------------- */
.member-promo {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin-top: 14px; padding: 13px 15px;
  border: 1px solid var(--gold-line); border-radius: 10px;
  background: #fcf8ef; text-align: left; overflow: hidden;
}
.member-promo::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold);
}
.member-promo .eyebrow { font-size: 8.5px; letter-spacing: .16em; }
.member-promo-title { margin-top: 3px; font-size: 13.5px; font-weight: 600; color: #4c3c24; }
.member-promo-title em { font-style: normal; color: var(--gold); font-family: var(--num); font-size: 15px; }
.member-promo-desc { margin-top: 2px; font-size: 10.5px; color: #897453; }
.member-promo-side { text-align: right; flex: none; padding-left: 4px; }
.member-promo-side .promo-day { font-family: var(--num); font-size: 22px; color: #c49a5c; line-height: 1; letter-spacing: -0.02em; }
.member-promo-side .promo-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 10px; color: #7a6036; }

/* ---------------- Sections ---------------- */
.section-block { margin-top: 19px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.section-head h2 { font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; }
.section-head a, .section-head button { font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 1px; background: none; border: 0; }
.section-head h2 span { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 5px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.panel-pad { padding: 14px 15px; }

.activity-list { padding: 2px 14px; }
.activity-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #eff1ed; }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); }
.activity-icon.coupon { background: var(--gold-soft); color: var(--gold); }
.activity-icon.redeem, .activity-icon.consume { background: #edf0ec; color: #53635a; }
.activity-icon.refund { background: var(--danger-soft); color: var(--danger); }
.activity-icon .icon { width: 16px; height: 16px; }
.activity-title { font-size: 12px; font-weight: 550; color: var(--ink); }
.activity-detail { font-size: 10.5px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.activity-time { font-size: 9.5px; color: #a0a7a1; white-space: nowrap; font-family: var(--num); }

/* ---------------- Tabbar ---------------- */
.tabbar {
  position: fixed; z-index: 60; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-width);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(23, 34, 29, 0.04);
  backdrop-filter: blur(10px);
}
.tab-item {
  min-height: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-3); font-size: 10px; position: relative;
}
.tab-item .icon { width: 20px; height: 20px; }
.tab-item.is-active { color: var(--brand); font-weight: 600; }
.tab-item.is-active::before {
  content: ""; position: absolute; top: 0; width: 18px; height: 2px; border-radius: 0 0 2px 2px; background: var(--brand);
}

/* ---------------- Claim ---------------- */
.claim-page { padding-bottom: 100px; }
.claim-store {
  position: relative; overflow: hidden; padding: 20px 18px;
  border-radius: 13px; background: linear-gradient(125deg, #174a3b, #0e3128);
  color: #f2ead9;
}
.claim-store::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(218, 186, 130, 0.2);
  box-shadow: 0 0 0 16px rgba(218, 186, 130, 0.035);
}
.claim-store-top { position: relative; display: flex; align-items: center; gap: 10px; }
.claim-store .brand-seal { background: rgba(255,255,255,.06); border: 1px solid rgba(224,198,153,.4); color: #e9d5ae; width: 34px; height: 34px; font-size: 17px; }
.claim-store-brand { font-size: 11px; color: rgba(241, 230, 209, 0.62); letter-spacing: 0.06em; }
.claim-store-name { font-size: 17px; font-weight: 600; margin-top: 1px; }
.claim-store-meta { position: relative; display: flex; gap: 13px; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(234, 213, 176, 0.16); font-size: 10.5px; color: rgba(241, 231, 212, 0.62); }
.claim-store-meta span { display: inline-flex; align-items: center; gap: 4px; }
.claim-store-meta .icon { width: 12px; height: 12px; }
.claim-form { margin-top: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.claim-title { font-size: 15px; font-weight: 600; }
.claim-sub { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.claim-fields { margin-top: 16px; display: flex; flex-direction: column; gap: 15px; }
.claim-field { display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 8px; min-height: 42px; border-bottom: 1px solid #eff1ed; padding-bottom: 8px; }
.claim-field:last-child { border-bottom: 0; }
.claim-field label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.claim-field label em { font-style: normal; color: var(--danger); font-size: 11px; margin-left: 2px; }
.claim-field .input, .claim-field .bordered { border: 0; min-height: 32px; padding: 2px 0; box-shadow: none; font-size: 13px; }
.claim-field .input:focus { border: 0; box-shadow: none; }
.claim-field .field-inline { display: flex; align-items: center; gap: 6px; }
.claim-phone-bind {
  flex: none; border: 1px solid #cfe0d6; background: var(--brand-wash); color: var(--brand);
  font-size: 10.5px; border-radius: 4px; padding: 4px 7px; font-weight: 500;
}
.claim-gender { display: flex; gap: 8px; }
.gender-opt { min-width: 58px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: 11.5px; color: var(--ink-3); }
.gender-opt.is-active { border-color: var(--brand); background: var(--brand-wash); color: var(--brand); font-weight: 600; }
.claim-referrer { font-size: 11px; color: var(--ink-3); }
.claim-consent { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; font-size: 10.5px; color: var(--ink-3); line-height: 1.55; }
.claim-consent input {
  appearance: none; width: 16px; height: 16px; margin: 0; flex: none;
  border: 1px solid var(--line-strong); border-radius: 3px; background: #fff;
  position: relative; cursor: pointer;
}
.claim-consent input:checked { background: var(--brand); border-color: var(--brand); }
.claim-consent input:checked::after {
  content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}
.claim-consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.claim-note { margin-top: 11px; font-size: 9.5px; color: #a0a7a1; line-height: 1.6; }
.sticky-action {
  position: fixed; z-index: 55; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-width); padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -3px 16px rgba(23, 34, 29, 0.05);
}
.sticky-action .btn { width: 100%; min-height: 46px; }
.sticky-action .action-hint { text-align: center; font-size: 10px; color: var(--muted); margin-top: 6px; }

/* ---------------- Coupons ---------------- */
.coupon-summary-bar { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 11px; }
.coupon-summary-bar .strong { font-size: 12px; }
.coupon-summary-bar .sub { font-size: 10.5px; }
.coupon-tabs { margin: 0 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.coupon-tabs .tabs { border-bottom: 0; justify-content: space-between; gap: 8px; }
.coupon-tabs .tabs button { padding: 10px 0 9px; font-size: 11.5px; }
.coupon-tabs .tabs .count { font-size: 9.5px; }
.coupon-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-card {
  position: relative; display: grid; grid-template-columns: 89px 1fr; align-items: stretch;
  width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  text-align: left; overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .13s ease, box-shadow .15s ease;
}
.coupon-card:hover { box-shadow: 0 3px 12px rgba(23,34,29,.08); }
.coupon-card:active { transform: scale(.995); }
.coupon-card.is-dim { opacity: .58; filter: saturate(.65); }
.coupon-left {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 6px 14px 9px; border-right: 1px dashed #dbe1da;
}
.coupon-left::before, .coupon-left::after {
  content: ""; position: absolute; right: -5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.coupon-left::before { top: -6px; }
.coupon-left::after { bottom: -6px; }
.coupon-left .cv { font-family: var(--num); font-weight: 600; color: var(--brand); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.coupon-left .cv small { font-size: 12px; font-weight: 500; margin-right: 1px; }
.coupon-left .cv.big { font-size: 26px; }
.coupon-left .cv.mid { font-size: 18px; }
.coupon-left .cl-type { margin-top: 5px; font-size: 9px; color: var(--brand-3); border: 1px solid #cfe1d7; background: #f2f8f4; border-radius: 3px; padding: 1px 4px; }
.coupon-card.coupon-redeem .coupon-left .cv { color: #876126; }
.coupon-card.coupon-redeem .coupon-left .cl-type { color: #856b42; border-color: #e6d7bb; background: #fbf6eb; }
.coupon-card.coupon-rights .coupon-left .cv { color: #4f6574; font-size: 20px; }
.coupon-card.coupon-rights .coupon-left .cl-type { color: #5b6c78; border-color: #d9e1e7; background: #f3f7f9; }
.coupon-main { padding: 12px 12px 11px 13px; min-width: 0; }
.coupon-main .row { align-items: flex-start; }
.coupon-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.coupon-cond { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); }
.coupon-meta { margin-top: 7px; font-size: 9.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.coupon-action { margin-top: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--brand); font-weight: 500; }
.coupon-main .badge { margin-left: auto; }

.coupon-detail { margin-top: 6px; }
.ticket {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
  box-shadow: var(--shadow-1);
}
.ticket-head { padding: 22px 20px 17px; text-align: center; position: relative; }
.ticket-head .ticket-type { font-size: 10px; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.ticket-amount { margin-top: 9px; font-family: var(--num); font-size: 46px; font-weight: 500; line-height: 1; color: var(--brand); letter-spacing: -0.04em; }
.ticket-amount small { font-size: 20px; margin-right: 3px; font-weight: 400; }
.ticket-amount.is-text { font-size: 32px; letter-spacing: 0; color: var(--gold); }
.ticket-name { margin-top: 7px; font-size: 14px; font-weight: 600; }
.ticket-cond { margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.ticket-perf { position: relative; height: 1px; margin: 0 18px; border-top: 1px dashed #dbe1da; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.ticket-perf::before { left: -25px; }
.ticket-perf::after { right: -25px; }
.ticket-code { padding: 20px 20px 22px; text-align: center; }
.ticket-code .qr-frame { border: 0; padding: 0; }
.ticket-code .qr-frame svg { width: 176px; height: 176px; }
.ticket-code .code-text { margin-top: 10px; font-family: var(--num); font-size: 12px; letter-spacing: .12em; color: var(--ink-2); }
.ticket-code .code-hint { margin-top: 5px; font-size: 10px; color: var(--muted); }
.ticket-code.is-inactive { padding-top: 24px; padding-bottom: 26px; }
.ticket-code .inactive-mark { color: #9aa29c; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; }
.ticket-code .inactive-mark .icon { width: 34px; height: 34px; }
.ticket-info { padding: 3px 18px 16px; }
.ticket-info .kv { grid-template-columns: 72px 1fr; font-size: 11.5px; gap: 9px 10px; }
.coupon-rules { margin-top: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.coupon-rules h3 { font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.coupon-rules ol { padding-left: 16px; font-size: 10.5px; color: var(--ink-3); line-height: 1.75; }
.coupon-rules li + li { margin-top: 2px; }
.copy-code { border: 0; background: none; color: var(--brand); font-size: 10px; margin-left: 4px; }

/* ---------------- Member code ---------------- */
.code-page { padding: 18px 16px 40px; text-align: center; background: #fff; min-height: calc(100vh - 50px); }
.code-brand { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 10px; }
.code-brand .brand-seal { width: 40px; height: 40px; font-size: 20px; }
.code-brand strong { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.code-brand span { font-size: 9px; letter-spacing: .2em; color: var(--muted); font-family: var(--num); }
.code-qr-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 25px; padding: 15px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-1);
}
.code-qr-wrap svg { width: 242px; height: 242px; display: block; }
.code-member-name { margin-top: 17px; font-size: 16px; font-weight: 600; }
.code-number { margin-top: 4px; font-family: var(--num); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.code-phone { margin-top: 5px; font-size: 11px; color: var(--muted); }
.code-refresh { margin-top: 16px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.code-refresh b { color: var(--brand); font-family: var(--num); }
.code-refresh button { color: var(--brand); background: none; border: 0; font-size: 10.5px; display: inline-flex; align-items: center; gap: 3px; }
.code-note { max-width: 290px; margin: 18px auto 0; font-size: 10px; line-height: 1.7; color: #929a94; }
.code-pulse { display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; padding: 5px 9px; border-radius: 4px; background: var(--brand-wash); color: var(--brand-3); font-size: 10px; }

/* ---------------- Recharge ---------------- */
.balance-strip { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 15px 16px; }
.balance-strip .row { align-items: flex-end; }
.balance-strip .lbl { font-size: 10.5px; color: var(--muted); }
.balance-strip .amount { font-family: var(--num); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.balance-strip .amount small { font-size: 13px; font-weight: 400; margin-right: 2px; }
.balance-strip .level-tag { font-size: 10px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 3px; padding: 2px 6px; }
.balance-strip .progress { margin-top: 12px; }
.balance-strip .progress-note { margin-top: 6px; display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); }
.plan-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.plan-card {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  width: 100%; padding: 15px 15px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; text-align: left; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.plan-card:hover { border-color: #c5d4ca; }
.plan-card.is-selected { border-color: var(--brand); background: var(--brand-wash); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan-card .plan-rec { position: absolute; top: -1px; right: 14px; font-size: 9px; color: #fff; background: var(--gold); border-radius: 0 0 4px 4px; padding: 2px 6px; }
.plan-main .plan-title { font-size: 12px; color: var(--ink-3); }
.plan-main .plan-amount { margin-top: 1px; font-family: var(--num); font-size: 25px; font-weight: 500; letter-spacing: -0.02em; }
.plan-main .plan-amount small { font-size: 12px; margin-right: 2px; font-weight: 400; }
.plan-main .plan-gift { margin-top: 5px; font-size: 10px; color: var(--gold); }
.plan-radio { width: 20px; height: 20px; border: 1px solid #cbd2cb; border-radius: 50%; position: relative; }
.plan-card.is-selected .plan-radio { border-color: var(--brand); background: var(--brand); }
.plan-card.is-selected .plan-radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.recharge-note { margin-top: 13px; }
.pay-amount { text-align: center; padding: 16px 0 20px; }
.pay-amount .pay-label { font-size: 10.5px; color: var(--muted); }
.pay-amount .pay-value { margin-top: 3px; font-family: var(--num); font-size: 38px; font-weight: 500; letter-spacing: -0.03em; }
.pay-amount .pay-value small { font-size: 16px; margin-right: 3px; font-weight: 400; }
.pay-method {
  display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px;
}
.pay-method .pay-icon { width: 30px; height: 30px; border-radius: 7px; background: #f1f6f2; color: var(--brand); display: grid; place-items: center; }
.pay-method .check-mark { margin-left: auto; color: var(--brand); }
.pay-secure { margin-top: 12px; text-align: center; font-size: 9.5px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 4px; }

/* ---------------- Packages ---------------- */
.package-intro { padding: 3px 2px 12px; }
.package-intro h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.package-intro p { margin-top: 5px; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.pkg-list { display: flex; flex-direction: column; gap: 11px; }
.pkg-card {
  display: grid; grid-template-columns: 1fr 92px; gap: 12px; align-items: center; width: 100%;
  position: relative; overflow: hidden; padding: 16px 15px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left;
  box-shadow: var(--shadow-1);
}
.pkg-card:hover { border-color: #c8d5cc; }
.pkg-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-3); }
.pkg-card.pkg-sand::before { background: var(--gold); }
.pkg-card.pkg-ink::before { background: #526b60; }
.pkg-card.pkg-rose::before { background: #a5756b; }
.pkg-card .pkg-name { font-size: 14.5px; font-weight: 600; }
.pkg-card .pkg-sub { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.pkg-card .pkg-tags { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 4px; }
.pkg-tag { font-size: 9.5px; padding: 2px 6px; border-radius: 3px; background: var(--paper-2); color: var(--ink-3); }
.pkg-price { text-align: right; }
.pkg-price .p-price { font-family: var(--num); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.pkg-price .p-price small { font-size: 12px; font-weight: 500; }
.pkg-price .p-old { margin-top: 4px; font-size: 10px; color: var(--muted); text-decoration: line-through; }
.pkg-price .p-sold { margin-top: 3px; font-size: 9px; color: #a0a7a1; }
.pkg-detail-hero { position: relative; overflow: hidden; padding: 21px 19px; border-radius: 13px; background: linear-gradient(125deg, #17483a, #0e3128); color: #f4eedf; }
.pkg-detail-hero::after { content: ""; position: absolute; right: -40px; top: -55px; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(217,185,128,.2); box-shadow: 0 0 0 14px rgba(217,185,128,.03); }
.pkg-detail-hero .eyebrow { color: #cdb182; }
.pkg-detail-hero h2 { margin-top: 5px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pkg-detail-hero p { margin-top: 4px; font-size: 10.5px; color: rgba(241,232,213,.6); }
.pkg-detail-price { display: flex; align-items: flex-end; gap: 9px; margin-top: 20px; }
.pkg-detail-price .now { font-family: var(--num); font-size: 31px; font-weight: 500; line-height: 1; color: #f7ecd4; }
.pkg-detail-price .now small { font-size: 14px; font-weight: 400; margin-right: 2px; }
.pkg-detail-price .old { font-size: 11px; color: rgba(241,232,213,.42); text-decoration: line-through; padding-bottom: 2px; }
.pkg-detail-price .sold { margin-left: auto; font-size: 9.5px; color: rgba(241,232,213,.5); padding-bottom: 2px; }
.pkg-coupon-card { margin-top: 13px; background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.pkg-coupon-head { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eff1ed; }
.pkg-coupon-head h3 { font-size: 12.5px; font-weight: 600; }
.pkg-coupon-head span { font-size: 10px; color: var(--muted); }
.pkg-coupon-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 11px 15px; border-bottom: 1px solid #f1f3ef; }
.pkg-coupon-row:last-child { border-bottom: 0; }
.pkg-coupon-type { width: 36px; height: 36px; border-radius: 7px; display: grid; place-items: center; font-size: 9px; font-weight: 600; background: var(--brand-wash); color: var(--brand); }
.pkg-coupon-type.redeem { background: var(--gold-soft); color: #876126; }
.pkg-coupon-type.rights { background: var(--info-soft); color: var(--info); }
.pkg-coupon-row .n { font-size: 11.5px; font-weight: 550; }
.pkg-coupon-row .d { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.pkg-coupon-row .c { font-family: var(--num); font-size: 12px; color: var(--ink-3); }
.pkg-rules { margin-top: 12px; padding: 0 2px; font-size: 10px; color: var(--muted); line-height: 1.75; }
.pkg-rules li { list-style: none; position: relative; padding-left: 10px; }
.pkg-rules li::before { content: ""; position: absolute; left: 0; top: 7px; width: 3px; height: 3px; border-radius: 50%; background: #b9c0ba; }

/* ---------------- Gift ---------------- */
.gift-intro { padding: 2px 2px 13px; }
.gift-intro h2 { font-size: 17px; font-weight: 600; }
.gift-intro p { margin-top: 5px; font-size: 10.5px; line-height: 1.65; color: var(--muted); }
.gift-select-list { display: flex; flex-direction: column; gap: 8px; }
.gift-coupon-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.gift-coupon-opt.is-selected { border-color: var(--brand); background: var(--brand-wash); }
.gift-coupon-opt .gv { font-family: var(--num); font-size: 17px; font-weight: 550; color: var(--brand); min-width: 46px; }
.gift-coupon-opt .gn { font-size: 11.5px; font-weight: 550; }
.gift-coupon-opt .gd { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.gift-coupon-opt .g-radio { margin-left: auto; width: 18px; height: 18px; border: 1px solid #cbd2cb; border-radius: 50%; position: relative; flex: none; }
.gift-coupon-opt.is-selected .g-radio { border-color: var(--brand); background: var(--brand); }
.gift-coupon-opt.is-selected .g-radio::after { content: ""; position: absolute; inset: 4px; background: #fff; border-radius: 50%; }
.gift-form { margin-top: 15px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.gift-form .field { gap: 6px; }
.gift-records { margin-top: 17px; }
.transfer-card { padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; }
.transfer-card .row { align-items: flex-start; }
.transfer-card .tr-title { font-size: 11.5px; font-weight: 550; }
.transfer-card .tr-sub { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.transfer-card .badge { margin-left: auto; }

/* ---------------- Profile ---------------- */
.profile-card { position: relative; overflow: hidden; padding: 18px 16px; border-radius: 13px; background: #fff; border: 1px solid var(--line); }
.profile-card::after { content: ""; position: absolute; right: -30px; top: -50px; width: 130px; height: 130px; border-radius: 50%; border: 1px solid #edf0eb; box-shadow: 0 0 0 12px #f7f8f4; }
.profile-top { position: relative; display: flex; align-items: center; gap: 12px; }
.profile-top .avatar { width: 54px; height: 54px; border-radius: 50%; font-size: 20px; }
.profile-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.profile-sub { margin-top: 3px; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.profile-sub .badge { font-size: 9px; padding: 1px 5px; }
.profile-card-no { margin-top: 4px; font-family: var(--num); font-size: 10.5px; letter-spacing: .1em; color: #8b958e; }
.profile-stats { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eff1ed; }
.profile-stat { text-align: center; position: relative; }
.profile-stat + .profile-stat::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: #eff1ed; }
.profile-stat b { display: block; font-family: var(--num); font-size: 16px; font-weight: 600; }
.profile-stat span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.menu-group { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.menu-group-label { padding: 11px 15px 5px; font-size: 9.5px; color: var(--muted); letter-spacing: .1em; }
.menu-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 15px;
  border: 0; background: transparent; text-align: left; color: var(--ink);
  border-bottom: 1px solid #f1f3ef;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: #fafbf8; }
.menu-row .menu-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--ink-3); }
.menu-row .menu-icon .icon { width: 18px; height: 18px; }
.menu-row .menu-label { font-size: 12px; }
.menu-row .menu-value { margin-left: auto; font-size: 10.5px; color: var(--muted); text-align: right; }
.menu-row .icon-chevron { color: #b4bbb5; }
.utility-group { margin-top: 18px; border: 1px dashed #d5dad3; border-radius: 10px; padding: 3px 0; background: rgba(255,255,255,.45); }
.utility-label { padding: 8px 13px 3px; font-size: 9px; color: #9aa29b; letter-spacing: .05em; }
.utility-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 38px; padding: 7px 13px; border: 0; background: none; font-size: 10.5px; color: var(--ink-3); }
.utility-row:hover { background: rgba(255,255,255,.6); }
.utility-row .icon { color: #9aa29b; }
.utility-row.danger { color: var(--danger); }
.profile-footer { margin: 18px 2px 4px; text-align: center; font-size: 9px; color: #a0a7a1; line-height: 1.8; }

/* ---------------- Card detail / benefits ---------------- */
.mini-card-preview { border-radius: 12px; overflow: hidden; }
.card-info-group { margin-top: 13px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 15px; }
.card-info-group h3 { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.level-list { display: flex; flex-direction: column; gap: 0; }
.level-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f1f3ef; }
.level-row:last-child { border-bottom: 0; }
.level-badge-circle { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--paper-2); color: var(--ink-3); }
.level-row.is-current .level-badge-circle { background: var(--brand); color: #f1e4cb; }
.level-row .ln { font-size: 11.5px; font-weight: 550; }
.level-row .lt { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.level-row .lv { margin-left: auto; font-family: var(--num); font-size: 11px; color: var(--ink-3); }
.level-row.is-current .lv { color: var(--brand); font-weight: 600; }
.benefits-hero { position: relative; overflow: hidden; padding: 23px 19px; border-radius: 13px; background: linear-gradient(125deg, #17483a, #0e3128); color: #f2ead9; }
.benefits-hero::after { content: "MEMBER"; position: absolute; right: -8px; bottom: -10px; font-family: var(--num); font-size: 54px; letter-spacing: .04em; color: rgba(221,190,137,.10); }
.benefits-hero .eyebrow { color: #cdaf7e; }
.benefits-hero h2 { margin-top: 7px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.benefits-hero p { margin-top: 5px; font-size: 10.5px; color: rgba(241,231,211,.58); line-height: 1.6; max-width: 260px; }
.benefit-list { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.benefit-row { display: grid; grid-template-columns: 37px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eff1ed; }
.benefit-row:last-child { border-bottom: 0; }
.benefit-no { font-family: var(--num); font-size: 14px; color: var(--gold); padding-top: 1px; }
.benefit-title { font-size: 12.5px; font-weight: 600; }
.benefit-desc { margin-top: 4px; font-size: 10px; line-height: 1.65; color: var(--muted); }
.benefit-note { margin-top: 12px; font-size: 9.5px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------------- Balance ---------------- */
.balance-hero { padding: 20px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.balance-hero .lbl { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.balance-hero .amount { margin-top: 5px; font-family: var(--num); font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.balance-hero .amount small { font-size: 15px; font-weight: 400; margin-right: 3px; }
.balance-hero .note { margin-top: 8px; font-size: 9.5px; color: var(--muted); }
.balance-filter { margin: 14px 0 8px; }
.tx-list { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; }
.tx-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f3ef; }
.tx-row:last-child { border-bottom: 0; }
.tx-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); }
.tx-icon.out { background: #f2f3f0; color: #69756d; }
.tx-title { font-size: 11.5px; font-weight: 550; }
.tx-sub { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.tx-amount { font-family: var(--num); font-size: 14px; font-weight: 600; text-align: right; }
.tx-amount.in { color: var(--brand); }
.tx-amount.out { color: var(--ink-3); }
.tx-amount small { display: block; font-family: var(--font); font-size: 9px; color: var(--muted); font-weight: 400; margin-top: 1px; }

/* ---------------- Misc member ---------------- */
.service-card { margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; text-align: center; }
.service-avatar { width: 54px; height: 54px; border-radius: 10px; margin: 0 auto; display: grid; place-items: center; background: var(--brand); color: #f0ddba; font-family: "Songti SC", serif; font-size: 24px; }
.service-name { margin-top: 11px; font-size: 14px; font-weight: 600; }
.service-sub { margin-top: 2px; font-size: 10px; color: var(--muted); }
.service-features { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.service-feature { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: 6px; font-size: 10.5px; color: var(--ink-3); }
.service-feature .icon { color: var(--brand-3); }
.follow-state { margin-top: 14px; }
.no-data { padding: 25px 16px; text-align: center; color: var(--muted); font-size: 10.5px; }

/* ---------------- Demo sheet ---------------- */
.demo-current { display: flex; align-items: center; gap: 10px; padding: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.demo-current .n { font-size: 12px; font-weight: 600; }
.demo-current .s { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.demo-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.demo-action {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 7px; text-align: left; font-size: 11.5px;
}
.demo-action:hover { border-color: var(--line-strong); background: var(--surface-2); }
.demo-action .icon { color: var(--brand-3); }
.demo-action .da-sub { margin-left: auto; font-size: 9px; color: var(--muted); }
.demo-action.danger { color: var(--danger); }
.demo-action.danger .icon { color: var(--danger); }
.demo-switch-list { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; max-height: 190px; overflow: auto; }
.demo-member-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 1px solid var(--line); background: #fff; border-radius: 6px; text-align: left; font-size: 10.5px; }
.demo-member-opt.is-active { border-color: var(--brand); background: var(--brand-wash); }
.demo-member-opt .badge { margin-left: auto; }
.demo-label { margin-top: 14px; font-size: 9.5px; color: var(--muted); letter-spacing: .04em; }

/* Success generic */
.success-sheet { text-align: center; padding: 8px 0 2px; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.success-title { margin-top: 13px; font-size: 17px; font-weight: 600; }
.success-sub { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.success-rows { margin-top: 18px; text-align: left; background: var(--surface-2); border-radius: 8px; padding: 3px 13px; }
.success-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #ecefe9; font-size: 11px; }
.success-row:last-child { border-bottom: 0; }
.success-row .k { color: var(--muted); }
.success-row .v { font-weight: 550; }
.upgrade-note { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; border-radius: 5px; background: var(--gold-soft); color: #7c612f; font-size: 10px; }

@media (max-width: 370px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .member-card { padding: 15px 14px 13px; }
  .mc-bottom { grid-template-columns: 1fr 1fr; }
  .mc-qr { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
  .quick-label { font-size: 10px; }
  .coupon-card { grid-template-columns: 78px 1fr; }
}
