.listing h3,
.store-product-grid h3 {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.listing h3 { min-height: 34px; }
.store-product-grid h3 { min-height: 25px; }

.mini-level.reputation-level {
  display: inline-flex !important;
  min-height: 16px;
  padding: 1px 4px;
  margin: 0 4px !important;
  align-items: center;
  gap: 1px;
  border: 1px solid #dce5ec;
  border-radius: 3px;
  background: #f8fafc;
  vertical-align: middle;
}

.rep-marks { display: inline-flex; align-items: center; gap: 1px; }
.rep-icon { display: inline-grid; width: 13px; height: 14px; place-items: center; font-size: 13px; font-style: normal; line-height: 1; }
.level-heart .rep-icon { color: #ef5d6c; }
.level-diamond .rep-icon { color: #3989dc; }
.level-silver-crown .rep-icon { color: #7893ad; }
.level-gold-crown .rep-icon { color: #e4a51e; text-shadow: 0 1px 0 #fff4c8; }

.shop-level .level-marks { display: inline-flex !important; gap: 1px; }
.shop-level .level-marks i {
  display: inline-grid;
  width: 13px;
  height: 14px;
  transform: none;
  place-items: center;
  border-radius: 0;
  background: none !important;
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}
.shop-level.heart .level-marks i { color: #ff7681; }
.shop-level.diamond .level-marks i { color: #5aa9ed; }
.shop-level.silver-crown .level-marks i { color: #b8c8d8; }
.shop-level.gold-crown .level-marks i { color: #f2bf43; }

.profile-btn.member-ready {
  display: inline-flex;
  max-width: 210px;
  padding: 6px 10px 6px 7px;
  align-items: center;
  gap: 7px;
}
.header-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--theme-accent-contrast, #fff);
  background-color: var(--blue, #2357e8);
  background-position: center;
  background-size: cover;
  font-size: 10px;
  font-weight: 800;
}
.header-member-copy { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; overflow: hidden; white-space: nowrap; }
.header-member-copy b { max-width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.header-member-copy small { margin-top: 1px; color: var(--blue, #b88a2a); font-size: 9px; font-weight: 700; }

.member-center { display: grid; min-height: 620px; grid-template-columns: 210px minmax(0, 1fr); --member-accent: var(--blue, #2357e8); --member-accent-dark: var(--blue-dark, #173a9e); --member-accent-soft: var(--theme-accent-soft, #eef3ff); --member-accent-contrast: var(--theme-accent-contrast, #fff); }
.member-center.member-core-center,
.member-center.member-subpage-center { grid-template-columns: minmax(0, 1fr); }
.profile-dialog { --member-accent: var(--blue, #2357e8); --member-accent-dark: var(--blue-dark, #173a9e); --member-accent-soft: var(--theme-accent-soft, #eef3ff); --member-accent-contrast: var(--theme-accent-contrast, #fff); }
.member-sidebar { padding: 24px 18px; color: #d9e3ee; background: var(--navy-2, #101b2d); }
.member-avatar-trigger { display: block; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.member-avatar-trigger:focus-visible { outline: 3px solid var(--member-accent); outline-offset: 3px; }
.member-identity { padding-bottom: 20px; border-bottom: 1px solid #ffffff18; text-align: center; }
.member-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 11px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #ffffff8c;
  border-radius: 50%;
  color: var(--member-accent-contrast);
  background: var(--member-accent) center / cover;
  font-size: 25px;
  font-weight: 800;
}
.member-identity b,
.member-identity small { display: block; overflow-wrap: anywhere; }
.member-identity b { color: #fff; font-size: 11px; }
.member-identity small { margin-top: 4px; color: #8fa0b5; font-size: 8px; }
.buyer-level { display: flex; margin-top: 11px; align-items: center; justify-content: center; gap: 7px; }
.buyer-level .rep-marks { padding: 4px 7px; border-radius: 3px; background: #ffffff10; }
.buyer-level b { color: #d9e3ee; font-size: 11px; }
.member-sidebar nav { display: flex; margin-top: 18px; flex-direction: column; gap: 5px; }
.member-sidebar nav button {
  display: flex;
  min-height: 38px;
  padding: 9px 10px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  color: #9fafc2;
  background: transparent;
  text-align: left;
  font-size: 9px;
}
.member-sidebar nav button:hover,
.member-sidebar nav button.active { color: var(--member-accent-contrast); background: var(--member-accent); }
.member-nav-icon { display: grid; width: 24px; height: 24px; flex: none; place-items: center; }
.member-nav-icon .ui-icon { width: 20px; height: 20px; }
.member-nav-label,
.member-store-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-main { min-width: 0; padding: 27px 29px 34px; background: #fff; }
.member-transaction-detail > .member-review-back { display: none; }
.member-head { display: flex; margin-bottom: 20px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.member-head h2 { margin: 7px 0 0; font-family: "Space Grotesk", sans-serif; font-size: 24px; }
.member-head p { margin: 6px 0 0; color: #8190a0; font-size: 9px; }
.member-head-badge { color: #8a97a6; font-size: 8px; }

.member-summary { display: grid; margin-bottom: 22px; grid-template-columns: repeat(3, 1fr); border: 1px solid #e1e8ee; border-radius: 5px; }
.member-summary > div { min-width: 0; padding: 15px; border-right: 1px solid #e7edf2; }
.member-summary > div:last-child { border-right: 0; }
.member-summary span,
.member-summary strong,
.member-summary small { display: block; }
.member-summary span { color: #8492a1; font-size: 8px; }
.member-summary strong { margin-top: 6px; font-size: 18px; overflow-wrap: anywhere; }
.member-summary small { margin-top: 4px; color: #a0abb6; font-size: 7px; }

.member-summary.member-summary-compact { margin-bottom: 13px; background: #f7f9fb; }
.member-summary.member-summary-compact > div { padding: 10px 12px; }
.member-summary-compact span { line-height: 1.3; }
.member-summary-compact strong { margin-top: 3px; font-size: 15px; line-height: 1.25; }
.member-summary-compact small { margin-top: 2px; }
.member-summary-compact + .game-rank-progress { padding: 10px 12px; margin: -4px 0 11px; }
.member-summary-compact + .game-rank-progress + .game-rank-legend { margin: -2px 0 15px; }

.profile-settings-form { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
.avatar-editor {
  display: flex;
  min-width: 0;
  padding: 2px 22px 2px 0;
  align-items: center;
  flex-direction: column;
  border: 0;
  border-right: 1px solid #e3e9ef;
  color: #34465a;
  background: transparent;
  cursor: pointer;
  text-align: center;
}
.avatar-editor:hover .member-avatar { border-color: var(--member-accent); box-shadow: 0 0 0 4px var(--member-accent-soft); }
.avatar-editor .member-avatar { width: 76px; height: 76px; margin-bottom: 10px; color: #fff; transition: border-color .2s, box-shadow .2s; }
.avatar-editor-copy b,
.avatar-editor-copy small { display: block; }
.avatar-editor-copy b { font-size: 12px; }
.avatar-editor-copy small { margin-top: 5px; color: #8a97a4; font-size: 9px; font-weight: 400; line-height: 1.45; }
.avatar-editor-action { display: inline-flex; min-height: 32px; padding: 0 10px; margin-top: 10px; align-items: center; gap: 6px; border: 1px solid var(--member-accent); border-radius: 4px; color: var(--member-accent-dark); background: var(--member-accent-soft); font-size: 9px; font-weight: 700; }
.avatar-editor-action .ui-icon { width: 15px; height: 15px; }
.avatar-editor-action em { font-style: normal; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.profile-fields label { display: flex; flex-direction: column; gap: 6px; color: #536476; font-size: 8px; font-weight: 700; }
.profile-fields label.full { grid-column: 1 / -1; }
.profile-fields input,
.profile-fields select { min-width: 0; padding: 10px; border: 1px solid #d9e2ea; border-radius: 4px; outline-color: var(--member-accent); color: #34465a; background: #fff; font-size: 9px; }
.profile-fields input[readonly] { color: #8895a3; background: #f7f9fb; }
.profile-fields .confirm { justify-self: start; padding: 10px 18px; border: 0; border-radius: 4px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 9px; font-weight: 700; }
.account-binding { display: flex; min-width: 0; min-height: 58px; padding: 10px 0; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e6ebef; border-bottom: 1px solid #e6ebef; }
.account-binding div { min-width: 0; }
.account-binding span,
.account-binding b { display: block; }
.account-binding span { color: #748395; font-size: 9px; }
.account-binding b { margin-top: 4px; overflow: hidden; color: #34465a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-binding button { display: inline-flex; min-height: 34px; padding: 0 10px; flex: none; align-items: center; gap: 6px; border: 1px solid var(--member-accent); border-radius: 4px; color: var(--member-accent-dark); background: var(--member-accent-soft); font-size: 9px; font-weight: 700; }
.account-binding button:hover { border-color: var(--member-accent-dark); color: var(--member-accent-dark); }
.account-binding .ui-icon { width: 14px; height: 14px; }

.profile-dialog-head h2 { margin-top: 9px; }
.profile-dialog-head p { margin: 8px 0 20px; color: #748394; font-size: 12px; line-height: 1.6; }
.avatar-dialog { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 18px; }
.avatar-preview { display: grid; width: 104px; height: 104px; place-items: center; overflow: hidden; border: 2px solid #d7dfe6; border-radius: 50%; color: var(--member-accent-contrast); background: var(--member-accent) center / cover; font-size: 34px; font-weight: 800; }
.avatar-dialog-tools { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; gap: 8px; }
.avatar-dialog-tools label,
.avatar-dialog-tools button { display: inline-flex; min-height: 38px; padding: 0 12px; align-items: center; gap: 7px; border: 1px solid #d5dee6; border-radius: 4px; color: #43566a; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.avatar-dialog-tools label { color: var(--member-accent-contrast); border-color: var(--member-accent); background: var(--member-accent); }
.avatar-dialog-tools button { border-color: var(--member-accent); color: var(--member-accent-dark); background: var(--member-accent-soft); }
.avatar-dialog-tools input { display: none; }
.avatar-dialog-tools .ui-icon { width: 16px; height: 16px; }
.avatar-dialog-tools small { color: #8795a4; font-size: 11px; line-height: 1.45; }
.avatar-dialog .modal-actions { grid-column: 1 / -1; }
.account-rebind-form { display: grid; gap: 14px; }
.account-rebind-form label { display: grid; gap: 7px; color: #526476; font-size: 12px; font-weight: 700; }
.account-rebind-form input { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #d6dfe7; border-radius: 4px; outline-color: var(--member-accent); color: #34465a; background: #fff; font-size: 14px; }
.account-rebind-form input[readonly] { color: #788697; background: #f5f7f9; }

.wallet-balance-band { display: flex; padding: 22px 24px; align-items: center; justify-content: space-between; gap: 24px; border-radius: 6px; color: #fff; background: #15233a; }
.wallet-balance-band span,
.wallet-balance-band strong,
.wallet-balance-band small { display: block; }
.wallet-balance-band span { color: #9eafc4; font-size: 8px; }
.wallet-balance-band strong { margin: 5px 0; font-family: "Space Grotesk", sans-serif; font-size: 30px; }
.wallet-balance-band small { color: #7f92aa; font-size: 7px; }
.wallet-balance-band .buyer-level { min-width: 0; margin: 0; align-items: center; }
.wallet-balance-band .buyer-level b { flex: none; white-space: nowrap; }
.wallet-balance-band .game-rank-marks { flex-wrap: wrap; justify-content: flex-end; }
.wallet-balance-side { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 18px; }
.wallet-balance-band .wallet-currency-pill { padding: 6px 9px; border: 1px solid #ffffff24; border-radius: 4px; color: #dce7f2; background: #ffffff0c; font-size: 10px; font-weight: 700; }
.wallet-frozen-panel { display: grid; padding: 16px 18px; margin-top: 12px; grid-template-columns: minmax(180px,.7fr) minmax(0,1.3fr); gap: 18px; border: 1px solid #ead9ae; border-left: 4px solid var(--member-accent); border-radius: 5px; background: #fffbf1; }
.wallet-frozen-panel>header { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }
.wallet-frozen-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 4px; color: var(--member-accent-dark); background: var(--member-accent-soft); }
.wallet-frozen-icon .ui-icon { width: 18px; height: 18px; }
.wallet-frozen-panel h3 { margin: 1px 0 4px; color: #3e4750; font-size: 12px; }
.wallet-frozen-panel header p { margin: 0; color: #8a7548; font-size: 10px; font-weight: 700; }
.wallet-frozen-list { display: grid; min-width: 0; gap: 7px; }
.wallet-frozen-list article { display: grid; min-width: 0; padding: 9px 10px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #eee1bf; border-radius: 4px; background: #fff; }
.wallet-frozen-list article>div { min-width: 0; }
.wallet-frozen-list article>div:last-child { text-align: right; }
.wallet-frozen-list b,.wallet-frozen-list small,.wallet-frozen-list strong,.wallet-frozen-list time { display: block; }
.wallet-frozen-list b { overflow: hidden; color: #4d5965; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-frozen-list small { margin-top: 3px; color: #8b7850; font-size: 9px; }
.wallet-frozen-list strong { color: #8f6721; font-size: 12px; }
.wallet-frozen-list time { margin-top: 3px; color: #8c9094; font-size: 8px; }
.wallet-actions { display: grid; margin: 18px 0 28px; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); align-items: stretch; gap: 16px; }
.wallet-action { min-width: 0; padding: 20px; border: 1px solid #dce4eb; border-radius: 6px; background: #fff; }
.wallet-action.recharge { border-color: #cbd9f8; background: #fbfdff; }
.wallet-action-head { display: flex; align-items: flex-start; gap: 12px; }
.wallet-recharge-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.wallet-recharge-toolbar .wallet-action-head { min-width: 0; flex: 1; }
.wallet-currency-picker { display: grid; width: min(210px, 42%); min-width: 165px; gap: 6px; }
.wallet-currency-picker > span { color: #526476; font-size: 10px; font-weight: 700; }
.wallet-currency-picker select { width: 100%; min-height: 38px; padding: 8px 28px 8px 10px; border: 1px solid #d5dfe8; border-radius: 4px; outline-color: var(--member-accent); color: #34465a; background: #fff; font-size: 12px; font-weight: 700; }
.wallet-currency-picker small { color: #8b98a6; font-size: 9px; line-height: 1.45; }
.account-route-page .wallet-currency-picker > span,
.account-route-page .wallet-currency-picker small { font-size: 12px; }
.account-route-page .wallet-currency-picker select { min-height: 42px; font-size: 14px; }
.wallet-action-icon { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 5px; color: var(--member-accent); background: var(--member-accent-soft); }
.wallet-action-icon .ui-icon { width: 20px; height: 20px; }
.wallet-action.withdraw .wallet-action-icon { color: #52677b; background: #edf2f6; }
.wallet-action h3 { margin: 0; font-size: 13px; }
.wallet-action-head p { margin: 5px 0 0; color: #8795a4; font-size: 10px; line-height: 1.5; }
.wallet-quick-block { margin: 20px 0; }
.wallet-quick-block > span,
.wallet-amount-form > label { display: block; margin-bottom: 8px; color: #526476; font-size: 10px; font-weight: 700; }
.wallet-quick-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.wallet-quick-amounts button { min-width: 0; min-height: 38px; padding: 7px 5px; border: 1px solid #d8e2eb; border-radius: 4px; color: #52677c; background: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.wallet-quick-amounts button:hover,
.wallet-quick-amounts button.active { border-color: var(--member-accent); color: var(--member-accent-dark); background: var(--member-accent-soft); }
.wallet-amount-form { min-width: 0; }
.wallet-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.wallet-input-wrap { display: flex; min-width: 0; min-height: 42px; align-items: center; overflow: hidden; border: 1px solid #d5dfe8; border-radius: 4px; background: #fff; }
.wallet-input-wrap:focus-within { border-color: var(--member-accent); box-shadow: 0 0 0 3px var(--member-accent-soft); }
.wallet-input-wrap > span { padding: 0 10px; color: #6e7f90; font-size: 10px; font-weight: 700; }
.wallet-action .wallet-input-wrap input { width: 100%; min-width: 0; padding: 10px 11px; border: 0; border-left: 1px solid #e3e8ed; border-radius: 0; outline: 0; font-size: 12px; }
.wallet-form-row > button,
.wallet-action.withdraw .wallet-amount-form > button { display: inline-flex; min-height: 42px; padding: 10px 15px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 4px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 11px; font-weight: 700; }
.wallet-form-row > button:hover { background: #194ac5; }
.wallet-form-row > button .ui-icon,
.wallet-action.withdraw .wallet-amount-form > button .ui-icon { width: 16px; height: 16px; }
.wallet-available { display: flex; margin: 20px 0; padding: 13px 0; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid #e5eaee; border-bottom: 1px solid #e5eaee; }
.wallet-available>span { min-width: 0; }
.wallet-available>span:last-child { text-align: right; }
.wallet-available small { display: block; color: #82909e; font-size: 10px; }
.wallet-available strong { color: #2d4054; font-size: 17px; overflow-wrap: anywhere; }
.wallet-available .wallet-locked-stat strong { color: #9a6d1f; }
.wallet-action.withdraw .wallet-amount-form { display: grid; gap: 10px; }
.wallet-action.withdraw .wallet-amount-form > button { width: 100%; color: #425466; background: #edf2f6; }
.wallet-action.withdraw .wallet-amount-form > button:hover { background: #e2e9ef; }
.wallet-transactions-head { margin-top: 0; }
.transaction-list { border-top: 1px solid #e0e7ed; }
.transaction-row { display: grid; padding: 11px 3px; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f4; }
.transaction-row b,
.transaction-row small { display: block; }
.transaction-row b { font-size: 9px; }
.transaction-row small { margin-top: 4px; color: #929eaa; font-size: 7px; }
.transaction-row strong { color: #16846f; font-size: 10px; }
.transaction-row strong.out { color: #d55e4b; }

.order-tabs { display: flex; margin-bottom: 15px; gap: 4px; overflow-x: auto; border-bottom: 1px solid #dfe6ec; }
.order-tabs button { position: relative; flex: none; padding: 10px 11px; border: 0; color: #758596; background: #fff; font-size: 8px; white-space: nowrap; }
.order-tabs button.active { color: var(--member-accent); font-weight: 800; }
.order-tabs button.active::after { position: absolute; right: 7px; bottom: -1px; left: 7px; height: 2px; content: ""; background: var(--member-accent); }
.order-tabs em { display: inline-grid; min-width: 17px; height: 17px; margin-left: 4px; place-items: center; border-radius: 9px; color: #69798a; background: #edf2f6; font-size: 7px; font-style: normal; }

@media (max-width: 620px) {
  .order-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; overflow: visible; }
  .order-tabs button { display: flex; min-width: 0; padding: 8px 2px 7px; align-items: center; flex-direction: column; gap: 2px; font-size: 10px; line-height: 1.2; }
  .order-tabs em { min-width: 16px; height: 14px; margin-left: 0; font-size: 8px; }
  .order-tabs button.active::after { right: 4px; left: 4px; }
}
.member-order-list { display: flex; flex-direction: column; gap: 10px; }
.member-order-swipe { position: relative; display: grid; overflow: hidden; grid-template-columns: minmax(0, 1fr) 176px; align-items: stretch; border-radius: 5px; }
.member-order-swipe-content { position: relative; z-index: 1; background: #fff; transition: transform .2s ease; touch-action: pan-y; }
.member-order-swipe-content { width: 100%; min-width: 100%; grid-column: 1 / -1; grid-row: 1; }
.member-order-swipe-actions { position: relative; z-index: 0; display: none; width: 176px; min-height: 100%; grid-column: 2; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; overflow: hidden; border-radius: inherit; visibility: hidden; pointer-events: none; }
.member-order-swipe-actions button { display: flex; width: 100%; height: 100%; min-height: 100%; padding: 8px 5px; align-items: center; justify-content: center; border: 0; color: #fff; font-size: 11px; font-weight: 800; line-height: 1.25; text-align: center; }
.member-order-swipe-pin { color: var(--member-accent-contrast) !important; background: var(--member-accent); }
.member-order-swipe-delete { background: #c94e47; }
.member-order-swipe.is-open .member-order-swipe-actions { visibility: visible; pointer-events: auto; }
.member-order-swipe.is-dragging .member-order-swipe-actions { visibility: visible; pointer-events: auto; }
.member-order { border: 1px solid #dfe7ed; border-radius: 5px; }
.member-order-head { display: flex; padding: 10px 13px; align-items: center; justify-content: space-between; gap: 12px; color: #8996a3; background: #f7f9fb; font-size: 8px; }
.member-order-head b { color: #526376; font-size: 9px; }
.member-order-body { display: grid; width: 100%; padding: 13px; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 0; color: inherit; background: #fff; text-align: left; }
.member-order-body:hover { background: #f8fbff; }
.member-order-body img { width: 72px; aspect-ratio: 1 / 1; border: 1px solid #e5ebef; border-radius: 4px; background: #fff; object-fit: contain; }
.member-order-title { min-width: 0; }
.member-order-title b,
.member-order-title small { display: block; overflow-wrap: anywhere; }
.member-order-title b { font-size: 11px; line-height: 1.45; }
.member-order-title small { margin-top: 5px; color: #8a97a4; font-size: 9px; }
.member-order-title em { display: block; margin-top: 6px; color: #b35d4c; font-size: 9px; font-style: normal; }
.member-order.product-unavailable .member-order-body img { filter: grayscale(.75); opacity: .7; }
.member-order-total { min-width: 95px; text-align: right; }
.member-order-total strong,
.member-order-total span { display: block; }
.member-order-total strong { color: #ee6b52; font-size: 14px; }
.member-order-total span { margin-top: 5px; color: #657688; font-size: 9px; font-weight: 700; }
.member-order-actions { display: grid; padding: 9px 11px; grid-template-columns: repeat(var(--action-count, 2), minmax(0, 1fr)); gap: 6px; border-top: 1px solid #e8edf1; }
.member-order-actions button,
.review-form button { padding: 7px 10px; border: 1px solid #d7e0e8; border-radius: 4px; color: #566779; background: #fff; font-size: 8px; }
.member-order-actions button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-order-actions button.primary,
.review-form button.primary { border-color: var(--member-accent); color: var(--member-accent-contrast); background: var(--member-accent); }
.delivered-details { margin: 0 11px 10px; border: 1px solid #d8ece6; background: #f3fbf8; }
.delivered-details summary { padding: 8px 10px; color: #287a69; cursor: pointer; font-size: 8px; font-weight: 700; }
.delivered-details code { display: block; padding: 8px 10px; border-top: 1px solid #d8ece6; color: #416b62; font-size: 8px; overflow-wrap: anywhere; }
.review-form { display: grid; padding: 14px; grid-template-columns: 120px 1fr auto; gap: 8px; border-top: 1px solid #e8edf1; }
.review-form select,
.review-form input { min-width: 0; padding: 8px; border: 1px solid #d8e1e8; border-radius: 4px; font-size: 8px; }

.gift-tabs { display: flex; gap: 5px; }
.gift-tabs button { padding: 8px 11px; border: 1px solid #dae3ea; border-radius: 4px; color: #607184; background: #fff; font-size: 8px; }
.gift-tabs button.active { border-color: var(--member-accent); color: var(--member-accent); background: var(--member-accent-soft); font-weight: 800; }
.gift-redeem { display: grid; padding: 20px 0; grid-template-columns: 1fr auto; gap: 8px; border-bottom: 1px solid #e3e9ee; }
.gift-redeem input { min-width: 0; padding: 11px; border: 1px solid #d7e1e9; border-radius: 4px; outline-color: var(--member-accent); font-family: monospace; font-size: 9px; text-transform: uppercase; }
.gift-redeem button { padding: 10px 17px; border: 0; border-radius: 4px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 9px; font-weight: 700; }
.gift-demo-note { display: flex; margin: 13px 0 20px; align-items: center; justify-content: space-between; gap: 10px; color: #8b6849; font-size: 8px; }
.gift-demo-note code { padding: 5px 7px; border: 1px solid #ecd6bd; border-radius: 3px; color: #8d5d32; background: #fff8ef; }
.coupon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.coupon-item { display: grid; padding: 12px; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #eadfd0; border-left: 4px solid #ef775e; background: #fffaf5; }
.coupon-item strong { color: #e6664e; font-size: 17px; text-align: center; }
.coupon-item b,
.coupon-item small { display: block; }
.coupon-item b { font-size: 9px; }
.coupon-item small { margin-top: 4px; color: #998b7e; font-size: 7px; }
.coupon-use-button { min-height: 32px; padding: 0 11px; border: 1px solid #c49a37; border-radius: 4px; color: #17130b; background: #d1a741; font-size: 10px; font-weight: 800; cursor: pointer; }
.coupon-use-button:hover { background: #e1bd59; }
.coupon-use-button:disabled { opacity: .48; cursor: not-allowed; }
.member-empty { padding: 38px 15px; border: 1px dashed #d6e0e8; color: #8a97a4; text-align: center; font-size: 9px; }

/* Account home follows the compact member-and-orders hierarchy from the mobile references. */
.member-dashboard { display: grid; gap: 15px; }
.member-dashboard-profile {
  display: grid;
  min-width: 0;
  padding: 19px 20px;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy-2, #18191b);
}
.member-dashboard-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--member-accent) 65%, #fff);
  border-radius: 50%;
  color: var(--member-accent-contrast);
  background: var(--member-accent) center / cover;
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.member-dashboard-avatar:hover { border-color: var(--member-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--member-accent) 28%, transparent); transform: translateY(-1px); }
.member-dashboard-avatar:focus-visible { outline: 3px solid var(--member-accent); outline-offset: 3px; }
.member-dashboard-profile .kicker { color: color-mix(in srgb, var(--member-accent) 72%, #fff); }
.member-dashboard-profile h2 { margin: 6px 0 7px; overflow: hidden; color: #fff; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.member-dashboard-profile .buyer-level { margin: 0; align-items: flex-start; }
.member-dashboard-profile .buyer-level b { color: #c8d1db; }
.member-dashboard-profile .game-rank-marks { min-height: 18px; }
.member-dashboard-identity { min-width: 0; }
.member-id-line { display: block; margin: -2px 0 7px; color: var(--member-accent, #d1a741); font-size: 11px; font-weight: 750; letter-spacing: 0; }
.member-dashboard-profile .buyer-level { justify-content: flex-start; }

.member-benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e1e7ec;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.member-benefit-strip > button,
.member-benefit-strip > div {
  min-width: 0;
  min-height: 72px;
  padding: 13px 9px;
  border: 0;
  border-right: 1px solid #e7ecf0;
  color: inherit;
  background: #fff;
  text-align: center;
}
.member-benefit-strip > :last-child { border-right: 0; }
.member-benefit-strip > button:hover { background: var(--member-accent-soft); }
.member-benefit-strip span,
.member-benefit-strip strong { display: block; overflow-wrap: anywhere; }
.member-benefit-strip span { color: #7a8998; font-size: 10px; }
.member-benefit-strip strong { margin-top: 7px; color: #26384a; font-size: 17px; line-height: 1.2; }

.member-order-shortcuts { border: 1px solid #e1e7ec; border-radius: 6px; background: #fff; }
.member-order-shortcuts > header { display: flex; min-height: 44px; padding: 0 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f3; }
.member-order-shortcuts h3,
.member-setting-list h3 { margin: 0; font-size: 13px; }
.member-order-shortcuts > header button { display: inline-flex; padding: 5px 0; align-items: center; gap: 5px; border: 0; color: #7b8997; background: none; font-size: 10px; }
.member-order-shortcuts > header .ui-icon { width: 14px; height: 14px; }
.member-order-shortcuts > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.member-order-shortcuts > div > button { display: flex; min-width: 0; min-height: 84px; padding: 11px 7px; align-items: center; flex-direction: column; justify-content: center; gap: 8px; border: 0; color: #536578; background: #fff; }
.member-order-shortcuts > div > button:hover { color: var(--member-accent-dark); background: var(--member-accent-soft); }
.member-order-shortcuts > div > button > span { position: relative; display: grid; width: 31px; height: 31px; place-items: center; color: #26384a; }
.member-order-shortcuts > div > button .ui-icon { width: 25px; height: 25px; }
.member-order-shortcuts > div > button em { position: absolute; top: -5px; right: -7px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 2px solid #fff; border-radius: 9px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 8px; font-style: normal; line-height: 1; }
.member-order-shortcuts > div > button b { min-width: 0; font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }

.monthly-coupon-claim {
  display: grid;
  min-width: 0;
  padding: 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--member-accent) 36%, #e0e5ea);
  border-radius: 6px;
  background: var(--member-accent-soft);
}
.coupon-claim-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 5px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 17px; font-weight: 800; }
.monthly-coupon-claim div { min-width: 0; }
.monthly-coupon-claim b,
.monthly-coupon-claim p,
.monthly-coupon-claim small { display: block; overflow-wrap: anywhere; }
.monthly-coupon-claim b { color: #2c3c4c; font-size: 11px; }
.monthly-coupon-claim p { margin: 4px 0; color: #657484; font-size: 10px; line-height: 1.45; }
.monthly-coupon-claim small { color: var(--member-accent-dark); font-size: 9px; }
.monthly-coupon-claim > button,
.seller-section-head [data-claim-monthly-coupons] { min-height: 36px; padding: 0 14px; border: 0; border-radius: 4px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 10px; font-weight: 800; }
.monthly-coupon-claim > button:hover,
.seller-section-head [data-claim-monthly-coupons]:hover { background: var(--member-accent-dark); }
.monthly-coupon-claim > button:disabled,
.seller-section-head [data-claim-monthly-coupons]:disabled,
.seller-section-head [data-claim-monthly-coupons].is-claimed { border: 1px solid #cfe1d6; color: #527562; background: #eaf4ee; cursor: default; }
.seller-section-head [data-claim-monthly-coupons]:disabled:hover { background: #eaf4ee; }

.member-setting-list { border: 1px solid #e1e7ec; border-radius: 6px; overflow: hidden; background: #fff; }
.member-setting-list h3 { padding: 14px 15px; border-bottom: 1px solid #edf0f3; }
.member-setting-list > button { position: relative; display: grid; width: 100%; min-height: 48px; padding: 8px 46px 8px 14px; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px; border: 0; border-bottom: 1px solid #edf0f3; color: #425467; background: #fff; text-align: left; }
.member-setting-list > button:last-child { border-bottom: 0; }
.member-setting-list > button:hover { background: #f8fafb; }
.member-setting-list > button > span { display: flex; min-width: 0; align-items: center; gap: 10px; }
.member-setting-list > button > span .ui-icon { width: 18px; height: 18px; flex: none; color: var(--member-accent); }
.member-setting-list > button > span b { min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
.member-setting-list > button > em { position: absolute; right: 44px; display: grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center; border-radius: 11px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 9px; font-style: normal; }
.member-setting-list > button > .ui-icon { position: absolute; right: 15px; width: 16px; height: 16px; color: #9aa5af; }
.member-setting-list > button.member-logout-button { margin-top: 5px; border-top: 1px solid color-mix(in srgb, var(--member-accent) 28%, #edf0f3); color: #674f23; background: color-mix(in srgb, var(--member-accent-soft) 54%, #fff); }
.member-setting-list > button.member-logout-button:hover { color: var(--member-accent-dark); background: var(--member-accent-soft); }
.member-setting-list > button.member-logout-button > span .ui-icon { color: #9c7424; }
.member-language-setting {
    display: grid;
    min-height: 66px;
    padding: 10px 14px;
    grid-template-columns: minmax(0, 1fr) minmax(124px, 38%);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #edf0f3;
    color: #425467;
    background: #fff;
  }
.member-language-setting > .member-language-copy { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
.member-language-setting > .member-language-copy .ui-icon { width: 18px; height: 18px; grid-row: span 2; color: var(--member-accent); }
.member-language-setting > .member-language-copy b { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.member-language-setting > .member-language-copy small { min-width: 0; margin-top: 3px; color: #7d8c9b; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.member-language-control { min-width: 0; }
.member-language-setting select { width: 100%; min-width: 0; min-height: 42px; padding: 0 30px 0 11px; border: 1px solid #d1dce5; border-radius: 4px; color: #34485e; background: #fbfcfd; font: inherit; font-size: 13px; font-weight: 700; }
.member-language-setting select:focus-visible { border-color: var(--member-accent); outline: 2px solid color-mix(in srgb, var(--member-accent) 24%, transparent); outline-offset: 1px; }
.member-language-setting select option { white-space: nowrap; }
/* Keep the language row readable at every desktop width while preserving a
   full-width control on narrow phones. */
.member-language-setting { grid-template-columns: minmax(0, 1fr) minmax(150px, 40%); }
.member-language-setting select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 620px) {
  .member-language-setting { grid-template-columns: minmax(0, 1fr) minmax(132px, 44%); gap: 10px; }
  .member-language-setting > .member-language-copy { column-gap: 8px; }
  .member-language-setting > .member-language-copy b { font-size: 13px; }
  .member-language-setting > .member-language-copy small { font-size: 11px; }
  .member-language-setting select { min-height: 44px; font-size: 13px; }
}
@media (max-width: 420px) {
  .member-language-setting { min-height: 0; padding: 13px 14px; grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .member-language-setting > .member-language-copy { grid-template-columns: 18px minmax(0, 1fr); }
  .member-language-setting > .member-language-copy small { grid-column: 2; }
  .member-language-control { width: 100%; }
  .member-language-setting select { min-height: 46px; font-size: 14px; }
}

/* Keep long localized language names readable on phones. */
@media (max-width: 760px) {
  .member-language-setting {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 13px 14px;
    gap: 10px;
  }
  .member-language-setting > .member-language-copy {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 9px;
  }
  .member-language-setting > .member-language-copy small { grid-column: 2; }
  .member-language-control { width: 100%; }
  .member-language-setting select {
    width: 100%;
    min-height: 46px;
    padding: 0 34px 0 12px;
    font-size: 14px;
  }
}

/* English copy is wider than the CJK labels. Reserve a stable control track
   so the setting row never compresses or clips the label on desktop. */
html[lang="en"] .member-language-setting {
  grid-template-columns: minmax(0, 1fr) minmax(176px, 42%);
}
html[lang="en"] .member-language-setting > .member-language-copy b,
html[lang="en"] .member-language-setting > .member-language-copy small {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  html[lang="en"] .member-language-setting { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the language row readable when English labels are selected. The
   control remains a full, clearly labelled field instead of squeezing into a
   narrow badge beside the setting copy. */
.member-language-setting[data-language-setting] {
  grid-template-columns: minmax(0, 1fr) minmax(164px, 38%);
  min-height: 72px;
  padding: 12px 16px;
  gap: 16px;
}
.member-language-setting[data-language-setting] .member-language-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}
.member-language-setting[data-language-setting] .member-language-copy > div { min-width: 0; }
.member-language-setting[data-language-setting] .member-language-copy .ui-icon { width: 20px; height: 20px; grid-row: 1; }
.member-language-setting[data-language-setting] .member-language-copy b { display: block; line-height: 1.35; }
.member-language-setting[data-language-setting] .member-language-copy small { display: block; margin-top: 4px; line-height: 1.4; }
.member-language-setting[data-language-setting] .member-language-control { min-width: 0; }
.member-language-setting[data-language-setting] select { min-height: 44px; font-size: 14px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 760px) {
  .member-language-setting[data-language-setting] { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .member-language-setting[data-language-setting] select { width: 100%; }
}

.avatar-cropper { display: grid; grid-column: 1 / -1; gap: 10px; justify-items: center; }
.avatar-cropper[hidden] { display: none; }
.avatar-crop-viewport { position: relative; width: 176px; height: 176px; overflow: hidden; border: 2px solid var(--member-accent, #d1a741); border-radius: 50%; background: #101214; box-shadow: 0 0 0 5px var(--member-accent-soft, #f7f1e3); cursor: grab; touch-action: none; }
.avatar-crop-viewport:active { cursor: grabbing; }
.avatar-crop-viewport img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.avatar-crop-zoom { display: grid; width: min(260px, 100%); gap: 5px; color: #68788a; font-size: 10px; }
.avatar-crop-zoom input { width: 100%; accent-color: var(--member-accent, #d1a741); }
.wallet-frozen-summary { display: grid; width: 100%; min-height: 68px; padding: 13px 16px; margin-top: 12px; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 11px; border: 1px solid #ead9ae; border-left: 4px solid var(--member-accent); border-radius: 5px; color: #4d5965; background: #fffbf1; text-align: left; cursor: pointer; }
.wallet-frozen-summary:hover { border-color: var(--member-accent); background: #fff8e8; }
.wallet-frozen-summary > span:not(.wallet-frozen-icon) { display: grid; gap: 4px; }
.wallet-frozen-summary b { font-size: 12px; }
.wallet-frozen-summary small { color: #8b7850; font-size: 11px; font-weight: 800; }
.wallet-frozen-summary > .ui-icon { width: 17px; height: 17px; color: #a17b2a; }
.wallet-frozen-detail { display: grid; gap: 13px; }
.wallet-frozen-detail > header { display: flex; padding: 15px 17px; align-items: center; gap: 11px; border: 1px solid #ead9ae; border-left: 4px solid var(--member-accent); border-radius: 5px; background: #fffbf1; }
.wallet-frozen-detail > header > div { display: grid; gap: 4px; }
.wallet-frozen-detail > header b { color: #4d5965; font-size: 12px; }
.wallet-frozen-detail > header strong { color: #8f6721; font-size: 19px; }

@media (max-width: 760px) {
  .transaction-snapshot-grid { grid-template-columns: 1fr; }
  .transaction-snapshot-hero { grid-template-columns: 56px minmax(0,1fr); }
  .transaction-snapshot-hero img { width:56px; height:56px; }
  .transaction-snapshot-hero strong { grid-column: 2; text-align:left; }
  .member-center { display: block; min-height: 0; }
  .member-sidebar { padding: 14px; }
  .member-identity { display: grid; padding-bottom: 12px; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; text-align: left; }
  .member-identity .member-avatar { width: 48px; height: 48px; margin: 0; }
  .member-identity .buyer-level { margin: 0; align-items: flex-end; }
  .member-sidebar nav { margin-top: 11px; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .member-sidebar nav::-webkit-scrollbar { display: none; }
  .member-sidebar nav button { flex: none; min-height: 34px; white-space: nowrap; }
  .member-main { padding: 20px 14px 26px; }
  .profile-settings-form { grid-template-columns: 1fr; }
  .avatar-editor { display: grid; padding: 0 0 15px; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; border-right: 0; border-bottom: 1px solid #e3e9ef; text-align: left; }
  .avatar-editor .member-avatar { width: 62px; height: 62px; margin: 0; }
  .avatar-editor-action { min-width: 38px; padding: 0 9px; margin: 0; justify-content: center; }
  .avatar-editor-action em { display: none; }
  .wallet-actions,
  .coupon-list { grid-template-columns: 1fr; }
  .coupon-item { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 9px; }
  .coupon-use-button { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .wallet-frozen-panel { grid-template-columns: 1fr; gap: 12px; }
  .wallet-balance-band { align-items: flex-start; gap: 14px; }
  .wallet-balance-copy { min-width: 0; flex: 1; }
  .wallet-balance-side { max-width: 52%; flex-direction: column; align-items: flex-end; gap: 9px; }
  .wallet-balance-band .buyer-level { align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
  .wallet-balance-band .game-rank-marks { max-width: 132px; }
  .wallet-recharge-toolbar { flex-direction: column; }
  .wallet-currency-picker { width: 100%; min-width: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .wallet-currency-picker small { grid-column: 1 / -1; }
  .member-order-body { grid-template-columns: 60px minmax(0, 1fr); gap: 11px; }
  .member-order-body img { width: 60px; }
  .member-order-total { grid-column: 2; text-align: left; }
  .member-order-swipe-actions { display: grid; }
  .member-order-swipe.is-open .member-order-swipe-content { transform: translateX(-176px); }
  .member-order-swipe.is-dragging .member-order-swipe-content { transition: none; }
  .member-order-swipe .member-order { margin: 0; }
  .review-form { grid-template-columns: 1fr; }
  .member-dashboard-center .member-sidebar { display: none; }
  .member-dashboard-center .member-main { padding-top: 14px; }
  .member-dashboard-profile { padding: 16px; grid-template-columns: 54px minmax(0, 1fr); gap: 11px; }
  .member-dashboard-avatar { width: 54px; height: 54px; }
  .member-dashboard-profile h2 { font-size: 18px; }
}

@media (max-width: 500px) {
  .header-tools { gap: 3px; }
  .profile-btn.member-ready { max-width: 72px; padding: 5px; }
  .profile-btn.member-ready .header-member-copy { display: none; }
  .member-summary:not(.member-summary-compact) { grid-template-columns: 1fr; }
  .member-summary:not(.member-summary-compact) > div { border-right: 0; border-bottom: 1px solid #e7edf2; }
  .member-summary:not(.member-summary-compact) > div:last-child { border-bottom: 0; }
  .member-summary.member-summary-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-summary.member-summary-compact > div { padding: 9px 8px; }
  .member-summary-compact span { min-height: 25px; font-size: 9px; }
  .member-summary-compact strong { font-size: 14px; }
  .member-summary-compact small { font-size: 8px; line-height: 1.3; }
  .profile-fields { grid-template-columns: 1fr; }
  .profile-fields label.full { grid-column: auto; }
  .account-binding { grid-column: auto; }
  .account-binding b { max-width: 190px; }
  .avatar-dialog { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .avatar-dialog-tools { align-items: center; }
  .avatar-dialog .modal-actions { grid-column: auto; width: 100%; }
  .account-rebind-form input { font-size: 16px; }
  .gift-redeem { grid-template-columns: 1fr; }
  .wallet-quick-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wallet-currency-picker { grid-template-columns: 1fr; }
  .wallet-currency-picker small { grid-column: auto; }
  .wallet-form-row { grid-template-columns: 1fr; }
  .wallet-form-row > button { width: 100%; }
  .wallet-balance-band { align-items: flex-start; }
  .wallet-frozen-panel { padding: 14px; }
  .wallet-frozen-list article { grid-template-columns: 1fr; gap: 7px; }
  .wallet-frozen-list article>div:last-child { text-align: left; }
  .wallet-balance-side { flex-direction: column; align-items: flex-end; gap: 8px; }
  .member-identity .buyer-level b { display: none; }
  .member-dashboard { gap: 11px; }
  .member-benefit-strip > button,
  .member-benefit-strip > div { min-height: 65px; padding: 10px 5px; }
  .member-benefit-strip span { font-size: 9px; }
  .member-benefit-strip strong { margin-top: 5px; font-size: 14px; }
  .member-order-shortcuts > header { padding: 0 12px; }
  .member-order-shortcuts > div > button { min-height: 75px; padding: 9px 4px; }
  .member-order-shortcuts > div > button b { font-size: 9px; }
  .monthly-coupon-claim { padding: 12px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
  .coupon-claim-icon { width: 38px; height: 38px; font-size: 15px; }
  .monthly-coupon-claim b { font-size: 10px; }
  .monthly-coupon-claim p { font-size: 9px; }
  .monthly-coupon-claim > button { min-height: 34px; padding: 0 11px; }
}

.account-security-panel { overflow: hidden; border: 1px solid #dde4ea; border-radius: 6px; background: #fff; }
.security-setting-row { display: grid; min-height: 78px; padding: 14px; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf0f3; }
.security-setting-row:last-child { border-bottom: 0; }
.security-setting-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb, var(--member-accent) 38%, #e4e9ed); border-radius: 50%; color: var(--member-accent-dark); background: var(--member-accent-soft); }
.security-setting-icon .ui-icon { width: 21px; height: 21px; }
.security-setting-row > div { min-width: 0; }
.security-setting-row small,
.security-setting-row b,
.security-setting-row p { display: block; }
.security-setting-row small { color: #7a8794; font-size: 11px; }
.security-setting-row b { margin-top: 4px; overflow: hidden; color: #26384a; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.security-setting-row b em { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; vertical-align: 1px; }
.security-setting-row b em.is-set { background: #2c9b68; box-shadow: 0 0 0 3px #2c9b6817; }
.security-setting-row b em.is-unset { background: #c98b32; box-shadow: 0 0 0 3px #c98b3217; }
.security-setting-row p { margin: 5px 0 0; color: #7c8996; font-size: 11px; line-height: 1.45; }
.security-setting-row > button { min-height: 36px; padding: 0 12px; border: 1px solid var(--member-accent); border-radius: 4px; color: var(--member-accent-dark); background: #fff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.security-setting-row > button:hover,
.security-setting-row > button.security-primary-action { color: var(--member-accent-contrast); background: var(--member-accent); }
.security-required-notice { display: flex; min-height: 46px; padding: 10px 12px; margin-bottom: 13px; align-items: center; gap: 9px; border: 1px solid color-mix(in srgb, var(--member-accent) 58%, #d8dee4); border-radius: 5px; color: var(--member-accent-dark); background: var(--member-accent-soft); font-size: 12px; font-weight: 750; }
.security-required-notice .ui-icon { width: 20px; height: 20px; flex: none; }
.payment-password-form { display: grid; gap: 13px; }
.payment-password-form label { display: grid; gap: 7px; color: #526476; font-size: 12px; font-weight: 700; }
.payment-password-form input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d3dce4; border-radius: 4px; outline: 0; color: #26384a; background: #fff; font-size: 16px; letter-spacing: 0; }
.payment-password-form input:focus { border-color: var(--member-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--member-accent) 18%, transparent); }
.security-form-message { padding: 10px 12px; border: 1px solid #e5baba; border-radius: 4px; color: #983b3b; background: #fff5f5; font-size: 11px; font-weight: 700; line-height: 1.5; }
.payment-verification-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 13px; }
.payment-verification-head p { margin-bottom: 0; }
.payment-verification-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--member-accent); border-radius: 50%; color: var(--member-accent-dark); background: var(--member-accent-soft); }
.payment-verification-icon .ui-icon { width: 25px; height: 25px; }
.payment-verification-order { display: flex; min-height: 48px; padding: 10px 12px; margin: 16px 0 14px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e0e5e9; border-radius: 5px; background: #f8fafb; }
.payment-verification-order span { overflow: hidden; color: #72808e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.payment-verification-order strong { flex: none; color: var(--member-accent-dark); font-size: 17px; }

@media (max-width: 500px) {
  .security-setting-row { padding: 13px 12px; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; }
  .security-setting-icon { width: 40px; height: 40px; }
  .security-setting-row > button { grid-column: 2; width: 100%; min-height: 40px; }
  .security-setting-row b { font-size: 14px; }
  .security-setting-row p { font-size: 12px; }
  .payment-password-form input { font-size: 16px; }
}

.wallet-balance-copy .wallet-frozen-summary { width: auto; min-height: 0; padding: 8px 0 0; margin: 10px 0 0; grid-template-columns: 18px auto 14px; gap: 7px; border: 0; border-top: 1px solid rgb(255 255 255 / 13%); border-radius: 0; color: #d9bd72; background: transparent; }
.wallet-balance-copy .wallet-frozen-summary:hover { border-color: rgb(255 255 255 / 20%); background: transparent; }
.wallet-balance-copy .wallet-frozen-icon { width: 18px; height: 18px; color: #d9bd72; background: transparent; }
.wallet-balance-copy .wallet-frozen-icon .ui-icon { width: 14px; height: 14px; }
.wallet-balance-copy .wallet-frozen-summary > span:not(.wallet-frozen-icon) { display: flex; align-items: center; gap: 7px; }
.wallet-balance-copy .wallet-frozen-summary b { color: #c9d2dd; font-size: 10px; }
.wallet-balance-copy .wallet-frozen-summary small { color: #d9bd72; font-size: 11px; }
.wallet-balance-copy .wallet-frozen-summary > .ui-icon { width: 14px; height: 14px; color: #d9bd72; }
.wallet-transactions-button { display: inline-flex; min-height: 38px; padding: 0 12px; align-items: center; gap: 7px; border: 1px solid var(--member-accent); border-radius: 4px; color: var(--member-accent-contrast); background: var(--member-accent); font-size: 11px; font-weight: 800; }
.wallet-transactions-button .ui-icon { width: 15px; height: 15px; }
.member-order-countdown { display: block; margin-top: 6px; color: #a3761e !important; font-size: 10px !important; font-weight: 800; }
.member-transaction-detail { padding: 18px; border: 1px solid #e1e7ec; border-radius: 6px; background: #fff; }
.transaction-detail-head { display: flex; min-width: 0; padding-bottom: 14px; align-items: center; gap: 11px; border-bottom: 1px solid #e4e9ed; }
.transaction-detail-back { display: grid; width: 38px; height: 38px; flex: none; padding: 0; place-items: center; border: 1px solid #d9e1e8; border-radius: 4px; color: #5e7186; background: #fff; }
.transaction-detail-back:hover { border-color: var(--member-accent); color: var(--member-accent-dark); background: var(--member-accent-soft); }
.transaction-detail-back .ui-icon { width: 18px; height: 18px; }
.transaction-detail-heading { min-width: 0; flex: 1 1 auto; }
.transaction-detail-heading h2 { margin: 0; overflow: hidden; color: #1d2d40; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-detail-heading p { margin: 4px 0 0; overflow: hidden; color: #8794a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-detail-head > .verified-order-badge { flex: none; }
.transaction-snapshot-hero { display:grid; margin:16px 0; padding:14px; grid-template-columns:72px minmax(0,1fr) auto; gap:12px; align-items:center; border:1px solid #e4e9ed; border-radius:5px; }
.transaction-snapshot-hero img { width:72px; height:72px; border-radius:5px; object-fit:contain; background:#f5f7f8; }
.transaction-snapshot-hero h3 { margin:0; font-size:15px; overflow-wrap:anywhere; }
.transaction-snapshot-hero small { display:block; margin-top:5px; color:#8794a1; font-size:10px; }
.transaction-snapshot-hero strong { color:#b88421; font-size:16px; }
.transaction-snapshot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; border:1px solid #e5eaee; background:#e5eaee; }
.transaction-snapshot-grid div { display:flex; min-height:42px; padding:9px 11px; align-items:center; justify-content:space-between; gap:12px; background:#fff; }
.transaction-snapshot-grid .transaction-total-row { grid-column: 1 / -1; background: #faf7ef; }
.transaction-snapshot-grid span { color:#8a97a4; font-size:10px; }
.transaction-snapshot-grid b { color:#304254; font-size:11px; text-align:right; overflow-wrap:anywhere; }
.transaction-snapshot-note { display:flex; margin-top:12px; justify-content:space-between; color:#8a97a4; font-size:10px; }
.transaction-snapshot-note b { color:#526376; }
.member-transaction-detail .member-review-back { display: inline-flex; min-height: 40px; padding: 0 12px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #c6a451; border-radius: 6px; color: #e6c873; background: #121315; font-size: 13px; font-weight: 700; line-height: 1; }
.member-transaction-detail .member-review-back > svg { width: 18px; height: 18px; flex: none; }
.member-transaction-detail .member-review-back > span { white-space: nowrap; }
.transaction-detail-actions { margin-top: 15px; padding-top: 14px; border-top: 1px solid #e4e9ed; }
.transaction-detail-actions .delivered-details { margin-bottom: 12px; }
.transaction-detail-actions .member-order-actions { display: grid; grid-template-columns: repeat(var(--action-count, 2), minmax(0, 1fr)); gap: 8px; }
.transaction-detail-actions .member-order-actions button { min-height: 42px; }
.transaction-detail-actions .member-order-actions button.primary { color: var(--member-accent-contrast); background: var(--member-accent); }
.member-order-actions { flex-wrap: wrap; }
.member-order-actions button { min-height: 34px; }
.order-reason-form { display:grid; gap:12px; }
.order-reason-form textarea { width:100%; min-height:140px; padding:12px; border:1px solid #dfe7ed; border-radius:5px; resize:vertical; line-height:1.6; }
.order-reason-form small { color:#8a97a4; line-height:1.5; }
.member-order-actions.post-receipt-actions { flex-wrap: nowrap; }
.member-order-actions.post-receipt-actions button { min-width: 0; white-space: nowrap; }
.refund-status-button { cursor: pointer; }
.refund-timeline-dialog { padding: 4px; }
.refund-timeline-dialog > header { padding-bottom: 15px; border-bottom: 1px solid #e4e9ed; }
.refund-timeline-dialog > header h2 { margin: 7px 0 4px; font-size: 20px; }
.refund-timeline-dialog > header p { margin: 0; color: #8794a1; font-size: 10px; }
.refund-timeline-list { position: relative; display: grid; gap: 0; padding: 17px 0 4px; margin: 0; list-style: none; }
.refund-timeline-list::before { position: absolute; top: 29px; bottom: 29px; left: 14px; width: 1px; content: ""; background: #dcc78e; }
.refund-timeline-item { position: relative; display: grid; padding: 0 0 18px; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; }
.refund-timeline-item:last-child { padding-bottom: 0; }
.refund-timeline-marker { position: relative; z-index: 1; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #d4b565; border-radius: 50%; color: #7f5e1d; background: #fff9e9; font-size: 10px; font-weight: 800; }
.refund-timeline-item.is-current .refund-timeline-marker { color: #fff; background: #b88825; }
.refund-timeline-item > div { min-width: 0; padding: 3px 0 0; }
.refund-timeline-item > div > b { display: block; color: #34485b; font-size: 12px; }
.refund-timeline-item > div > small { display: block; margin-top: 4px; color: #8a97a4; font-size: 9px; }
.refund-timeline-item p { padding: 8px 10px; margin: 8px 0 0; border-left: 2px solid #d4b565; color: #8a6726; background: #fffaf0; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.refund-timeline-item p b { margin-right: 5px; color: #735317; }

@media (max-width: 620px) {
  .wallet-balance-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 16px; gap: 12px; }
  .wallet-balance-side { max-width: 150px; }
  .wallet-transactions-button { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .wallet-balance-copy .wallet-frozen-summary { grid-template-columns: 16px minmax(0, 1fr) 12px; }
  .wallet-balance-copy .wallet-frozen-summary > span:not(.wallet-frozen-icon) { display: grid; gap: 2px; }
  .member-order-actions { display: grid; grid-template-columns: repeat(var(--action-count, 2), minmax(0, 1fr)); }
  .member-order-actions button { width: 100%; min-width: 0; padding: 0 8px; white-space: normal; }
  .member-order-actions.post-receipt-actions { display: grid; grid-template-columns: repeat(var(--action-count, 2), minmax(0, 1fr)); gap: 4px; }
  .member-order-actions.post-receipt-actions button { padding: 0 3px; font-size: 9px; white-space: nowrap; }
  .transaction-detail-actions .member-order-actions, 
  .transaction-detail-actions .member-order-actions.post-receipt-actions { display: grid; grid-template-columns: repeat(var(--action-count, 2), minmax(0, 1fr)); gap: 7px; }
  .transaction-detail-actions .member-order-actions button,
  .transaction-detail-actions .member-order-actions.post-receipt-actions button { min-height: 42px; padding: 0 7px; font-size: 11px; white-space: normal; }
  .member-transaction-detail { padding: 14px; }
  .transaction-detail-head { gap: 9px; }
  .transaction-detail-back { width: 40px; height: 40px; }
  .transaction-detail-heading h2 { font-size: 18px; }
  .transaction-detail-head > .verified-order-badge { max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
