.member-code-screen { padding-bottom: 82px; background: #e5eee8; }
.member-code-head { height: 49px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 0 7px; background: var(--green2); color: #fff; }
.member-code-head strong { text-align: center; font-size: 15px; }
.member-code-head button { min-width: 0; border: 0; background: transparent; color: inherit; padding: 8px; font-size: 10px; }
.member-code-head button:first-child { justify-self: start; }
.member-code-head button:last-child { justify-self: end; white-space: nowrap; }
.member-code-head svg { width: 20px; height: 20px; }
.member-code-card { margin: 14px 14px 0; background: #fff; border-radius: 7px; overflow: hidden; text-align: center; box-shadow: 0 5px 18px rgba(28, 62, 42, .09); }
.member-code-type { height: 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 16px; background: var(--mint); color: var(--green); }
.member-code-type span { height: 1px; background: #cbded2; }
.member-code-type strong { font-size: 12px; }
.member-code-avatar { display: block; width: 62px; height: 62px; margin: 18px auto 8px; border-radius: 50%; object-fit: cover; }
.member-code-card h2 { margin: 0; font-size: 16px; }
.member-code-level { display: inline-block; margin-top: 5px; padding: 3px 7px; background: #f8efd9; color: #8a641d; border-radius: 3px; font-size: 9px; }
.member-code-card > p { margin: 10px 0 12px; color: #425249; font-size: 11px; font-variant-numeric: tabular-nums; }
.member-code-qr-wrap { position: relative; width: 190px; height: 190px; margin: 0 auto; padding: 7px; border: 1px solid #e3e9e5; background: #fff; }
.member-code-qr { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .16s, transform .16s; }
.member-code-qr.refreshing { opacity: .45; transform: scale(.96); }
.member-code-qr-wrap > span { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); display: grid; place-items: center; border: 3px solid #fff; background: var(--green); color: #fff; font-size: 9px; font-weight: 700; }
.member-code-refresh { margin: 10px auto 15px; border: 0; background: transparent; color: var(--sub); display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 9px; }
.member-code-refresh svg { width: 13px; height: 13px; color: var(--green); }
.member-code-shortcuts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); background: #f3f8f5; }
.member-code-shortcuts button { min-width: 0; height: 62px; border: 0; background: transparent; display: grid; grid-template-columns: 20px minmax(0, 1fr) 13px; align-items: center; gap: 7px; padding: 0 13px; color: var(--green); text-align: left; }
.member-code-shortcuts button + button { border-left: 1px solid #dce8e0; }
.member-code-shortcuts button > svg { width: 18px; height: 18px; }
.member-code-shortcuts button > svg:last-child { width: 12px; height: 12px; color: #829087; }
.member-code-shortcuts strong, .member-code-shortcuts small { display: block; }
.member-code-shortcuts strong { color: var(--ink); font-size: 11px; }
.member-code-shortcuts small { margin-top: 3px; color: var(--sub); font-size: 8px; }
.member-code-note { margin: 10px 14px 0; min-height: 60px; padding: 11px 13px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; background: #fff; border: 1px solid #dce7e0; border-radius: 6px; }
.member-code-note > svg { width: 24px; height: 24px; color: var(--green); }
.member-code-note strong, .member-code-note small { display: block; }
.member-code-note strong { font-size: 10px; }
.member-code-note small { margin-top: 4px; color: var(--sub); font-size: 8px; line-height: 1.5; }
.member-code-return { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.member-code-return button { width: 100%; height: 42px; border: 0; border-radius: 4px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 700; }
.member-code-return svg { width: 16px; height: 16px; }
@media (max-width: 340px) {
  .member-code-card { margin-inline: 10px; }
  .member-code-qr-wrap { width: 174px; height: 174px; }
  .member-code-note { margin-inline: 10px; }
  .member-code-shortcuts button { padding-inline: 9px; gap: 5px; }
}
