.desk-actions, .member-entry, .member-heading, .member-dialog-head { display: flex; align-items: center; }
.desk-actions { gap: 23px; }
.member-entry { gap: 8px; padding: 9px 15px; border: 1px solid #b8c7d8; border-radius: 7px; color: var(--navy); background: white; font-size: 14px; }
.member-entry:hover { border-color: var(--navy); background: var(--navy-soft); }

.member-icon { position: relative; display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; color: inherit; }
.member-icon::before, .member-icon::after { position: absolute; content: ""; box-sizing: border-box; }
.icon-person::before { top: 1px; left: 7px; width: 7px; height: 7px; border: 1.6px solid; border-radius: 50%; }
.icon-person::after { bottom: 2px; left: 3px; width: 15px; height: 8px; border: 1.6px solid; border-radius: 9px 9px 1px 1px; border-bottom: 0; }
.icon-ticket { height: 13px; border: 1.6px solid; border-radius: 3px; transform: rotate(-6deg); }
.icon-ticket::before { height: 7px; left: 6px; top: 1px; border-left: 1.5px dashed; }
.icon-gift::before { left: 2px; top: 7px; width: 16px; height: 12px; border: 1.5px solid; border-radius: 2px; background: linear-gradient(currentColor,currentColor) center / 1.5px 100% no-repeat, linear-gradient(currentColor,currentColor) 50% 3px / 100% 1.5px no-repeat; }
.icon-gift::after { left: 4px; top: 1px; width: 12px; height: 7px; border: 1.5px solid; border-radius: 55% 55% 20% 20%; background: linear-gradient(currentColor,currentColor) center / 1.5px 100% no-repeat; }

.member-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid #cfd7df; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 70px rgba(14,35,60,.16); overflow: auto; }
.member-dialog::backdrop { background: rgba(20,37,58,.42); }
.member-dialog[data-view="auth"] { max-width: 420px; }
.member-dialog-head { gap: 10px; }
.member-heading { flex: 1; gap: 13px; min-width: 0; }
.member-heading > div { min-width: 0; }
.member-heading h2, .invite-reward h3 { margin: 0; font: 700 20px/1.45 "Noto Serif SC", SimSun, serif; color: var(--ink); }
.member-heading h2:focus { outline: none; }
.member-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.member-avatar, .member-back, .member-close { display: grid; place-items: center; flex: none; }
.member-avatar { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #f5f8fb; color: var(--navy); }
.member-close, .member-back { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 50%; font: 400 23px/1 system-ui, sans-serif; }
.member-close:hover, .member-back:hover { background: var(--navy-soft); color: var(--navy); }
.member-status { display: inline-flex; gap: 5px; align-items: center; padding: 3px 8px; border-radius: 100px; background: #eaf5ee; color: #286548; font-size: 12px; white-space: nowrap; }
.member-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.member-view { margin-top: 22px; }
.member-view p { line-height: 1.65; }
.member-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 8px 18px; margin: 0 0 10px; }
.member-stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.member-stats dt { color: var(--muted); font-size: 13px; }
.member-stats dd { display: flex; align-items: baseline; gap: 7px; margin: 3px 0 0; font-size: 13px; }
.member-stats strong { font: 700 30px/1.3 Georgia, serif; font-variant-numeric: tabular-nums; }
.member-menu { display: grid; gap: 10px; }
.member-menu button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-align: left; }
.member-menu button:hover { border-color: #93abc4; background: #f8fafc; }
.member-menu button > .member-icon { color: var(--navy); }
.member-menu b, .member-menu small { display: block; }
.member-menu b { font-size: 15px; }
.member-menu small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.member-menu i { margin-left: auto; color: var(--muted); font: 400 22px/1 system-ui, sans-serif; }
.member-quiet, .member-switch button { background: transparent; font-size: 13px; color: var(--navy); }
.member-quiet { display: block; padding: 6px 0; margin: 13px 0 -5px auto; color: var(--muted); }
.member-switch button { padding: 4px; }
.member-quiet:hover, .member-switch button:hover { text-decoration: underline; text-underline-offset: 3px; }
.member-view label, .checkout-coupon label { display: block; color: var(--ink); font-size: 13px; font-weight: 650; }
.member-view input { height: 43px; padding: 0 11px; border-radius: 6px; font-size: 14px; }
#member-auth-intro { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.member-form label { margin: 12px 0 6px; }
.member-form .primary { border-radius: 6px; height: 43px; }
.member-switch { margin: 13px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.coupon-filters { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); }
.coupon-filters button { padding: 9px 13px; border-radius: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 13px; }
.coupon-filters button[aria-pressed="true"] { border-bottom-color: var(--navy); color: var(--navy); }
.member-coupon-list { display: grid; gap: 10px; margin-top: 14px; }
.coupon-row { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
.coupon-value { flex: none; min-width: 62px; padding-right: 12px; border-right: 1px dashed #acbdce; color: var(--navy); font: 700 21px/1.8 Georgia, serif; }
.coupon-row b { font-size: 14px; }
.coupon-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.coupon-row button { flex: none; margin-left: auto; padding: 6px 10px; background: var(--navy-soft); color: var(--navy); border-radius: 4px; font-size: 12px; }
.coupon-empty { margin: 0; padding: 32px 12px; color: var(--muted); text-align: center; font-size: 14px; }
.invite-reward { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; padding: 17px; border-radius: 9px; border: 1px solid #d4e4db; background: #f3f8f5; color: var(--green); }
.invite-reward h3 { font-size: 16px; color: inherit; }
.invite-reward p { margin: 5px 0 0; color: #466352; font-size: 13px; }
.share-field { display: flex; gap: 8px; margin-top: 7px; }
.share-field input { min-width: 0; }
.share-field button { flex: none; border-radius: 6px; padding: 0 14px; background: var(--navy); color: white; font-size: 13px; }
.member-feedback { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.member-feedback.is-error { color: var(--red); }
.checkout-coupon { margin: 14px 0 2px; }
.checkout-coupon select { width: 100%; margin-top: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.order-coupon-saving { margin: 8px 0; color: var(--green); font-size: 13px; text-align: center; }
.home-partner-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.partner-status { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.partner-terms, #partner-progress, .partner-wallet p, .partner-wallet li { color: var(--muted); font-size: 13px; }
#partner-benefits .member-stats { margin-bottom: 0; border-bottom: 1px solid var(--line); }
#partner-benefits .secondary { padding: 8px 12px; }
.partner-wallet { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.partner-wallet .member-quiet { margin: 0; color: var(--navy); }
.partner-wallet ul { padding-left: 20px; }
@media (max-width: 540px) {
  .desk-actions { gap: 0; }
  .member-entry { gap: 5px; padding: 8px 10px; }
  .member-dialog { width: calc(100% - 24px); padding: 18px; max-height: calc(100dvh - 24px); }
  .member-dialog-head, .member-heading { gap: 7px; }
  .coupon-filters button { padding: 9px; }
}
