:root {
  --account-background: #ebf5fe;
  --account-blue: #169df7;
  --account-track: #cce1fc;
  --account-border: #f0f0f1;
  --account-muted: #858999;
}
.reference-art {
  display: inline-block; flex-shrink: 0; width: var(--art-w); height: var(--art-h);
  background-image: url('/assets/account-reference.jpg');
  background-size: 420px 933.3333px; background-position: var(--art-x) var(--art-y);
  background-repeat: no-repeat; vertical-align: middle;
}
.account-view .app, .vip-view .app { background: var(--account-background); }
.account-view .header { display: none; }
.account-view .app { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.subpage-view .app { padding-bottom: env(safe-area-inset-bottom); }
.account-page { padding: 0 15px 22px; }
.account-edit-tools { position: absolute; top: 0; left: 15px; z-index: 2; }
.account-edit-tools .header-action { padding: 0; min-height: 20px; font-size: 10px; }
.profile-header { display: flex; align-items: center; gap: 12px; padding: 24px 0 15px; min-height: 91px; }
.profile-avatar { border-radius: 50%; }
.profile-copy { flex: 1; min-width: 0; }
.profile-copy h1 { position: static; transform: none; font-weight: 650; font-size: calc(19px * var(--font-scale)); line-height: 1.35; }
.profile-name { padding: 0; text-align: left; max-width: 100%; overflow-wrap: anywhere; font-weight: inherit; }
.profile-copy p { font-size: calc(13px * var(--font-scale)); color: var(--account-muted); margin-top: 2px; }
.profile-controls { position: relative; flex-shrink: 0; width: 68px; height: 44px; margin-right: -5px; transform: translateY(-13px); background: url('/assets/account-reference.jpg') -342px -51px / 420px 933.3333px no-repeat; }
.profile-settings, .profile-messages-button { position: absolute; top: 0; height: 44px; padding: 0; border-radius: 8px; }
.profile-settings { left: 0; width: 32px; }
.profile-messages-button { right: 0; width: 36px; }
.account-wallet, .account-services, .account-about { background: var(--surface); border-radius: 10px; }
.account-wallet { padding: 17px 14px 14px; }
.vip-summary { border: 1px solid var(--account-border); border-radius: 9px; padding: 12px; }
.vip-progress { display: flex; align-items: center; gap: 7px; }
.vip-badge { display: inline-block; width: 53px; height: 20px; flex-shrink: 0; position: relative; background: url('/assets/account-reference.jpg') -47px -160px / 420px 933.3333px no-repeat; filter: drop-shadow(0 1px 1px #819ac888); }
.vip-badge b { position: absolute; top: 2px; left: 18px; width: 34px; height: 16px; font: italic 700 10px/16px Arial, sans-serif; text-align: center; white-space: nowrap; color: #fff; background: linear-gradient(90deg,#627a9c,#344b66 55%,#9dabc0); clip-path: polygon(0 0,100% 0,92% 50%,100% 100%,0 100%); }
.growth-track { height: 9px; background: var(--account-track); border-radius: 10px; flex: 1; min-width: 20px; position: relative; }
.growth-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#139cf4,#16a4ff); }
.growth-summary { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--account-muted); }
.growth-value { font-size: calc(14px * var(--font-scale)); text-align: left; padding: 0; min-width: 0; line-height: 1.4; white-space: nowrap; }
.growth-value > span { white-space: nowrap; }
.more-vip { padding: 0; white-space: nowrap; font-size: calc(13px * var(--font-scale)); color: inherit; }
.more-vip span { margin-left: 3px; font-size: 18px; line-height: 12px; }
.vip-gifts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.vip-gifts > span { display: inline-flex; align-items: center; gap: 2px; background: #edf8fe; border-radius: 10px; font-size: calc(11px * var(--font-scale)); color: var(--account-muted); padding: 1px 4px 1px 0; }
.wallet-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.wallet-label { display: flex; align-items: center; gap: 6px; color: var(--account-muted); font-size: calc(14px * var(--font-scale)); }
.wallet-amount { display: flex; align-items: center; gap: 8px; padding: 7px 0 0; font-size: calc(25px * var(--font-scale)); font-weight: 750; letter-spacing: -.5px; }
.wallet-actions { display: flex; gap: 15px; }
.wallet-actions > button, .wallet-actions > span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; font-size: calc(14px * var(--font-scale)); color: var(--text); }
.account-services { margin-top: 14px; overflow: hidden; }
.benefits-banner { aspect-ratio: 390 / 40; background-image: url('/assets/account-reference.jpg'); background-size: 107.6923% auto; background-position: 50% 38.9552%; background-repeat: no-repeat; }
.account-menu { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); row-gap: 12px; padding: 17px 5px 14px; }
.account-menu > button, .account-menu > div { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 0; font-size: calc(14px * var(--font-scale)); white-space: nowrap; }
.account-about { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 10px 16px; margin-top: 10px; font-size: calc(16px * var(--font-scale)); }
.about-symbol { display: inline-flex; align-items: center; justify-content: center; border: 2px solid #353e4b; color: var(--account-blue); width: 19px; height: 19px; border-radius: 50%; font-size: 17px; font-weight: 650; }
.about-arrow { margin-left: auto; color: #c9cbd2; font-size: 25px; line-height: 1; }
.account-view .bottom-nav { display: flex; align-items: stretch; justify-content: space-around; background: #fff; border-radius: 13px 13px 0 0; border: none; padding: 7px 0 calc(5px + env(safe-area-inset-bottom)); min-height: 54px; }
.account-nav-item { display: flex; flex: 1; align-items: center; justify-content: center; flex-direction: column; gap: 2px; font-size: calc(12px * var(--font-scale)); color: #ccc; padding: 0; }
.account-nav-item.active { color: #2799c5; }
.clean-preview .account-edit-tools { display: none; }
.clean-preview .profile-header { padding-top: 22px; min-height: 89px; }
.clean-preview.account-view .bottom-nav { display: flex; }
.clean-preview .header-leading { visibility: visible; pointer-events: auto; }
.clean-preview .header-leading .finish-edit { visibility: hidden; pointer-events: none; }
.clean-preview .profile-settings, .clean-preview .growth-value, .clean-preview .wallet-amount { pointer-events: none; }
.overview-reference-icon { display: block; flex-shrink: 0; width: 32px; height: 32px; background: url('/assets/overview-reference.jpg') var(--icon-x) var(--icon-y) / 420px 933.3333px no-repeat; }
.overview-view .stat-card { gap: 8px; }
.overview-view .stat-label { font-size: calc(12px * var(--font-scale)); }
.overview-view .overview-dates { width: calc(100% - 28px); }
.vip-view .header { background: transparent; }
.vip-page { background: linear-gradient(var(--account-background) 0,#fff 390px); padding-top: 6px; }
.vip-profile { text-align: center; padding: 14px 15px 0; }
.vip-avatar { border-radius: 50%; width: 54px; height: 54px; }
.vip-profile > div { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 13px; }
.vip-greeting { padding: 0; font-size: calc(18px * var(--font-scale)); font-weight: 600; max-width: 65%; overflow-wrap: anywhere; }
.vip-progress-detail { margin: 32px 48px 0; gap: 9px; }
.vip-level { font-size: 12px; border-radius: 11px; padding: 2px 7px; color: #fff; font-weight: 600; }
.vip-level.current { background: var(--account-blue); }
.vip-level.next { background: #b6b7bb; }
.vip-progress-detail .growth-track { background: #fff; }
.growth-percent { position: absolute; top: -21px; transform: translateX(-50%); font-size: 12px; white-space: nowrap; }
.vip-growth-copy { display: block; padding: 11px 12px 0; margin: auto; text-align: center; font-size: calc(13px * var(--font-scale)); }
.vip-growth-copy em { font-style: normal; font-weight: 600; color: var(--account-blue); }
.vip-growth-copy strong { white-space: nowrap; }
.vip-detail-label { margin: 17px auto 0; border-radius: 22px; padding: 6px 20px; width: fit-content; background: #c7e8fb; color: #2a9edf; font-size: 16px; }
.vip-detail-label span { margin-left: 4px; font-size: 23px; line-height: 14px; }
.vip-level-route { margin: -9px 24px 18px; height: 68px; }
.vip-level-route svg { width: 100%; height: 48px; }
.vip-level-route > div { display: flex; justify-content: space-between; color: #ced1da; font-size: 11px; margin-top: -5px; }
.vip-level-route strong { font-size: 15px; font-weight: 400; color: #339fd7; }
.vip-member-card { border-radius: 13px; margin: 0 27px 18px; height: 145px; background: linear-gradient(165deg,#e1e4e8,#d6dbe2 55%,#c5cdd6); position: relative; padding: 22px 24px; color: #fff; }
.vip-member-card > strong { font-size: 30px; font-weight: 650; }
.vip-member-card::before, .vip-member-card::after { content: ''; position: absolute; top: 0; height: 100%; width: 14px; border-radius: 13px; background: linear-gradient(165deg,#e1e4e8,#c5cdd6); }
.vip-member-card::before { left: -27px; }
.vip-member-card::after { right: -27px; }
.vip-member-card > div { display: flex; align-items: center; justify-content: space-between; margin-top: 42px; padding-inline: 25px 5px; font-size: 13px; }
.vip-member-card > div > span:last-child { font-size: 20px; }
.vip-medal { position: absolute; right: 10px; top: 0; width: 73px; height: 74px; background: url('/assets/vip-reference.jpg') -312px -410px / 420px 933.3333px no-repeat; }
.vip-perks, .vip-retention { padding: 14px; background: #fff; border-top: 8px solid #f5fafc; }
.vip-page h2 { font-size: 16px; font-weight: 650; position: relative; padding-left: 13px; }
.vip-page h2::before { content: ''; width: 3px; height: 17px; background: var(--account-blue); position: absolute; left: 0; top: 3px; border-radius: 3px; }
.vip-perk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 16px; padding: 20px 8px 10px; }
.vip-perk-grid > div, .vip-retention > div { display: flex; align-items: center; gap: 10px; }
.vip-perk-grid > div > span:last-child, .vip-retention > div > span:last-child { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--account-muted); }
.vip-perk-grid strong, .vip-retention strong { color: var(--text); font-size: 17px; font-weight: 700; }
.vip-perk-icon { display: inline-block; flex-shrink: 0; width: 34px; height: 34px; background-image: url('/assets/vip-reference.jpg'); background-size: 420px 933.3333px; background-repeat: no-repeat; }
.perk-0 { background-position: -20px -636px; }
.perk-1 { background-position: -219px -636px; }
.perk-2 { background-position: -20px -696px; }
.perk-3 { background-position: -219px -696px; }
.perk-4 { background-position: -20px -757px; }
.perk-keep { background-position: -20px -900px; }
.vip-retention p { margin: 13px 11px 18px; color: #bfc2c9; font-size: 13px; }
.vip-retention > div { margin: 0 8px 12px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; min-height: 24px; font-size: calc(12px * var(--font-scale)); }
.random-field { padding: 4px 9px; min-height: 30px; font-size: calc(12px * var(--font-scale)); border-radius: 6px; color: var(--focus); background: var(--primary-soft); white-space: nowrap; }
.record-entry { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.record-entry .record-row { flex: 1; min-width: 0; width: auto; border-bottom: 0; padding-right: 0; }
.record-merchant-link { width: 32px; min-height: 62px; flex-shrink: 0; color: #c2c9cd; font-size: calc(25px * var(--font-scale)); padding: 0; }
.game-records-note { padding: 12px 14px; background: #f3f9fd; color: var(--account-muted); font-size: calc(12px * var(--font-scale)); }
.game-records .record-row { width: 100%; padding-right: 14px; }
.game-records .record-date, .game-records .record-status { display: block; }
.game-records .record-money { color: #ce8a75; }
.game-records .record-money small { font-size: calc(11px * var(--font-scale)); font-weight: 400; }
.game-record-arrow { color: #c2c9cd; font-size: calc(25px * var(--font-scale)); line-height: 1; }
.merchant-view .header { background: #f0f4fd; }
.merchant-dispute { display: flex; align-items: center; flex-direction: column; gap: 2px; font-size: calc(10px * var(--font-scale)); color: var(--text); padding-top: 4px; }
.merchant-dispute > span:first-child { width: 21px; height: 19px; background: url('/assets/merchant-reference.jpg') -379px -53px / 420px 933.3333px no-repeat; }
.merchant-hero-shell { background: linear-gradient(#f0f4fd,#fff 83%); padding: 8px 30px 0; }
.merchant-hero { position: relative; text-align: center; border-radius: 10px; background: #fff; min-height: 100px; padding: 38px 10px 0; box-shadow: 0 7px 12px #233f5b04; }
.merchant-brand { position: absolute; top: 3px; left: calc(50% - 14px); width: 28px; height: 24px; background: url('/assets/merchant-reference.jpg') -196px -104px / 420px 933.3333px no-repeat; }
.merchant-reference-badge { position: absolute; top: 11px; left: 0; padding: 5px 7px; background: #d68d75; color: #fff; font-size: calc(11px * var(--font-scale)); border-radius: 10px 0 10px 0; }
.merchant-reference-amount { color: #ce8a75; font-size: calc(38px * var(--font-scale)); line-height: 1.38; font-weight: 400; white-space: nowrap; }
.merchant-reference-unit { font-size: calc(13px * var(--font-scale)); margin-top: 0; }
.merchant-reference-pairs { margin: 25px 32px 0; }
.merchant-reference-pairs > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; min-height: 42px; border-bottom: 1px solid var(--line); font-size: calc(16px * var(--font-scale)); }
.merchant-reference-pairs > div:last-child { border-bottom: 0; }
.merchant-reference-pairs dt { flex-shrink: 0; }
.merchant-reference-pairs dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.merchant-balance-number { color: #ce8a75; }
.merchant-order { display: flex; align-items: center; justify-content: flex-end; white-space: nowrap; }
.merchant-order-number { white-space: nowrap; letter-spacing: -0.2px; }
.copy-order { position: relative; padding: 0; width: 16px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }
.copy-order::before { content: ""; position: absolute; inset: -9px; }
.copy-order:hover { background: transparent; }
.copy-order span { width: 16px; height: 16px; background: url('/assets/merchant-reference.jpg') -373px -295px / 420px 933.3333px no-repeat; }
@media(max-width: 370px) {
  .account-page { padding-inline: 12px; }
  .profile-header { gap: 8px; }
  .profile-copy h1 { font-size: calc(17px * var(--font-scale)); }
  .profile-copy p { font-size: calc(11px * var(--font-scale)); }
  .vip-summary { padding: 10px 8px; }
  .vip-badge { width: 47px; }
  .growth-value, .more-vip { font-size: calc(11px * var(--font-scale)); }
  .vip-gifts { gap: 3px; }
  .vip-gifts > span { font-size: 10px; }
  .wallet-actions { gap: 9px; }
  .wallet-amount { font-size: 23px; }
  .account-menu > button, .account-menu > div { font-size: calc(12px * var(--font-scale)); }
  .vip-progress-detail { margin-inline: 30px; }
  .vip-growth-copy { font-size: calc(11px * var(--font-scale)); }
  .vip-perk-grid { gap: 16px 8px; padding-inline: 0; }
  .vip-perk-grid > div { gap: 5px; }
  .vip-perk-grid > div > span:last-child { font-size: 11px; }
  .merchant-reference-pairs { margin-inline: 22px; }
  .merchant-reference-pairs > div { font-size: calc(14px * var(--font-scale)); }
  .merchant-view .header h1 { font-size: calc(18px * var(--font-scale)); }
}
